Shipdealer CDT
-
I dont think its something in the model, texture or button cause it worked in the beta01-03 and in the beta04 it stoped working.
I changed nothing so its rly weird, this was also the reason why i though it could be a crc/hash error (could be with one the the new ships or another equipment thingy I’ve added) but after changing the nickname a few times without anything changed i think it must be something else. -
… when u klick on a shipdealer where this ship is for sale it will crash the client to desktop…
My bet goes to
- 1. the texture
- 2. the ship package
- 3. the room file
Try to remove the other ships from that dealer and
to strip the package down.If it still CTD it can’t be much else than the texture (especially if it’s dds)
or maybe missing room / room file.PS. And maybe move the ship 2 base,
where the dealer doesn’t crash atm. -
It might be the way you posted it, but I see an obvious error. If you highlight the text (like you are going to copy it), see all the spaces after most of the lines? VERY bad no-no! Clean all that up and try again.
Basically, this entry:
(nickname = delta_flyer_package)
is now being seen as this by the game:
(nickname = delta_flyer_package )
So it can’t find it.
It is correct in your shiparch (which needs cleanup as well) so the ship appears at the dealer. The crash is when you try to buy it and no valid package is found.
-
I seriously doubt Freelancer doesn’t trim the values it gets from the INIs, otherwise you could say that adding spaces around equal signs would mess it up.
Still, it’s better to remove trailing spaces on all lines, if only to make a cleaner code.
-
I don’t understand what you mean by 1.7beta 03/beta 04 - if you mean your mod versions?
Did you use the same ship .cmp, .sur, ship icon (.3db) file?
1. remove the ship from market_ships.ini by placing a “smelly-colon” '; in front and see if the ship dealer is OK with the 2 other ships.
2. If it’s OK then it’s most likely your ship icon (.3db) file, replace it with another vanilla ship’s icon file temporarily in goods.ini and recheck.
It’s largely irrelevant that it worked in your mod previously, since I had a similar icon problem only last week. To get it off my chest and make a little pause for you, here’s a shaggy-dog version of my tale of woe… ::)
… I made a copy of an existing ship’s files by changing the folder it was in, foolishly by deleting the original folder in my Freelancer game and copying in from the mod backup folder, which I had simply renamed, and that one had somehow inexplicably got corrupted - ctd on clicking my shipdealer, just like you. Of course when I copied in again from the mod folder it was still corrupted!
Once I had determined it was the .3db file and not the .cmp nor the .mat nor .sur (I took the long way round by using another ship’s files one by one instead of changing the paths in the shiparch.ini file and later the ship icon file in goods.ini, which would have reduced my diagnosis time by at least 15 minutes), I got a fresh vanilla icon, fixed the hash codes and imported my .dds ship icon picture file again by exporting from the copy icon file and importing into the new one - guess what? The .dds was bad, CTD.
Hmmm… so I imported another ship’s picture, checked - CTD! So did it again all over, made another new icon file from the same vanilla ship, did not import my pic, went to the shipdealer OK, bought it, launched OK, took a screenshot, made a new 64x64x24bpp icon, saved it as .JPG, converted it to .DDS with DDS Converter2, and imported that. It showed upside down!! Huh?? WELL I NEVER had that problem before! Reconverted it - same. What the…?? NUTS!! Lost my rag! Went back and saved the .JPG as a .tga, renamed the node to MIP0, imported that. Phew! it worked finally - but 3 hours of farting around though! And a 14k .3db file instead of 3k. Gnaaahh!!
I hope this is your problem, replace the ship .3db file with a vanilla one in your goods.ini and see if your dealer is then ok. Then fix it, just like wot I had to do!
-
Uhh… after all that, I just saw you are using the same icon as the federation fighter.
OK - does that ship work OK when you put it in the market-ships.ini in place of the delta flyer? If yes then its not your icon file.
But I’ll leave my shaggy-dog story up for amusement at my expense!
-
Its named deltaflyer.cmp
@ST: Yes we’re currently betatesting the next mod on a public server and the latest beta is 04 within this bug (its the only bug).
I have removed the ship from the dealer and placed on the manhatten dealer that was the way how i found out that it is the delta flyer and not one of the other ships.
Ty for all your help i will search for the bug when i come home.
-
When does it CTD ?
Can you get into the shipdealer room, if not then check your market_ships.ini doesn’t have a typo in that base’s section, check your shiparch actually does point to the CMP.
If it CTD’s when you open the buy window, then it’s either a bad entry in the package or your icon.
-
You could… remove the lights and tractor, just leave engine, power and scanner in the package.
Then, if it still crashes - change the reference of the hull in the package to another working ship (like the default starting ship - just copy/paste another hull line here instead).
You can change the icon to any icon (steal from another ship again) etc, check the actual base sell line, make sure the package it’s talking about exists - sub another package name (copy from another station) into it to check…May help tracking down the issue to narrow it down like this.
-
Aye fixed it …. its a shame that i did not see it earlier.
Anyway ty for all your help it was the damned texture i made a lightmap from tga to dds and didnt remember it (yeah u can blame me for it).
After trying to reimport the dds a few times (converted it again and again) i will now go with the tga lightmap, cause it still crashes.Again thank u all it was simple but silly sometimes u dont see the wood because of all the trees ;D
-
Just use DXT1 no alpha, then change the MIP0 entry in the mat file to MIPS.
As for it showing upside down, the converter likely converts TGA to DDS just as it sees it. TGAs are normally used upside down in FL -beats me why- so you’d need to flip it before conversion, or after, and before importing to .mat. -
Just use DXT1 no alpha, then change the MIP0 entry in the mat file to MIPS.
As for it showing upside down, the converter likely converts TGA to DDS just as it sees it. TGAs are normally used upside down in FL -beats me why- so you’d need to flip it before conversion, or after, and before importing to .mat.I know i know I’ve converted almost all textures in our mod from tga to dds and the delta flyer was the only one with such a bug.
I don’t care i will go with the tga textures its only 1.5mb more. -
… i know that prob very ‘well’.
I spend a lot time converting
malfuctional dds textures back 2 tga.