Reminder: Internet Explorer 6 or below are NOT supported.





|
There are currently 135 users playing Freelancer on
80 servers. | May. 22, 2013 |
The Starport Forum Index
>
The Shipyard
>
Conventional Modding
>
Modeling and Texturing
>
Game crashes on ship launch
Browsing this Thread:
1 Anonymous Users
Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2010/4/18 21:56 From Ohio, USA
Group:
Registered Users
Posts:
60
![]() |
I have a couple ships in game that I'm trying to get working. Most of our ships are working fine, but a couple are being stubborn, and I have no idea why.
When you go to buy the ship, it shows in the ship purchase window. After you've bought it, it's sitting right there in the docking bay as it should be. As soon as you go to launch, however, it crashes right away and dumps you to the desktop. My thought is that there's a coding error somewhere, or something wrong with the mounted equipment. I've looked the code over a dozen times and haven't seen anything wrong, and the equipment used is working fine on other ships. FL error checker isn't showing any sort of hardpoint issues, either. I'm completely at a loss as to what's going on here. I'll include my code for one of the ships so maybe one of you can see what it is that I'm missing. shiparch.ini Code: [Ship]goods.ini Code: [Good]Finally, FLSpew gives me this right at the crash: Code: E:\FL\Scratch\Source\Client\space\space.cpp(382) : *** WARNING: Unknown camera type? (ChaseCamera)
Posted on: 2011/5/2 0:35
|
|||
![]() Freelancer: Broken Bonds Forums • ModDB |
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2009/8/16 2:58 From Qld, Aus.
Group:
Registered Users FLServer Admins Trusted Speciality Developers Senior Members
Posts:
1400
![]() |
Sorry, no thoughts on the ship (especially if the spew is not giving you anything), but the camera warning is ignorable (it can be fixed by opening up DATA\cameras.ini and renaming ChaseCamera to ThirdPersonCamera).
Posted on: 2011/5/2 1:46
|
|||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2008/6/2 10:17 Group:
Registered Users $$$ Supporters $$$ Senior Members
Posts:
1740
![]() |
Crash on launch can be caused by a bad .mat file or a bad .sur file, and rarely by a .cmp file too.
If you rename the .mat file so it is not found, the ship will be untextured but will still launch, so you can diagnose a bad .mat file easily. If you replace the .sur file with a vanilla one and rename it to the same name as the ship .cmp, (doesn't matter about wrong shape/size) then this will prove or rule out the .sur file. These are fast diagnoses that you can try before you change any coding. If you get no progress with these 2 steps, replace the entire ship .cmp, .mat and .sur with copies of the ones from a working ship and just rename them to the name of the ship you are testing. (Save the suspect ship files in another folder! lol ) Let us know.
Posted on: 2011/5/2 2:03
|
|||
"C" for "Caterpillar"... "Cool"... "Cheesey"!
|
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2010/4/18 21:56 From Ohio, USA
Group:
Registered Users
Posts:
60
![]() |
Removing the mat didn't help, nor did removing or replacing the sur. When I pointed the shiparch at another working ship, the thing launched without incident.
So, we've learned that it's not the mat, sur, or my code. That leaves the cmp. Just what I was afraid of, since I have no clue where to look for the problem.
Posted on: 2011/5/2 2:56
|
|||
![]() Freelancer: Broken Bonds Forums • ModDB |
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
Joined:
2008/8/18 3:11 Group:
Registered Users
Posts:
38
![]() |
Hey Capt.Morgan
try to replace your [Good] nickname = bb_tmi_lf_hull category = shiphull ship = bb_tmi_lf price = 800000 ids_name = 12013 <--- change this to 237008 item_icon = Equipment\models\commodities\nn_icons\devil.3db and rename your devil with bb_tmi_lf for the cmp, sur and mat file And it should work also get ride of hp_type = hp_fighter_shield_special_9, HpID01 hp_type = hp_fighter_shield_special_10, HpID02 could be a conflict there also
Posted on: 2011/5/2 3:00
|
|||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2010/4/18 21:56 From Ohio, USA
Group:
Registered Users
Posts:
60
![]() |
The last two entries are ID slots, and would have nothing to do with the crash. All our ships have them, but only the two ships crash the game.
As for the rest, I'll give it a try tomorrow. However, I really don't think the problem is due to the file name, as the shiparch points to the right one. I can see the ship on the base, after all, so it knows where my ship is.
Posted on: 2011/5/2 3:29
|
|||
![]() Freelancer: Broken Bonds Forums • ModDB |
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2008/6/2 10:17 Group:
Registered Users $$$ Supporters $$$ Senior Members
Posts:
1740
![]() |
Capt. Morgan:
Zip up and attach your ship's .cmp and .mat and .sur file here please so someone can take a look to see if we can identify the problem. Also please post your loadouts.ini entry for this ship, it may be just a hardpoint name that does not exist in the .cmp. Just a bit of a cleanup: camera_offset = 6, 28.000000 should be camera_offset = 6, 28 and make all of these into integers too (not x.000000) linear_drag = 1.000000 mass = 125.000000 steering_torque = 20000.000000, 20000.000000, 58000.000000 angular_drag = 15000.000000, 15000.000000, 35000.000000 rotation_inertia = 2800.000000, 2800.000000, 1000.000000 nudge_force = 30000.000000 strafe_force = 20000.000000 Quote:
Yes, do this, to match the shiparch.ini ids_name entry. (But it's not causing the problem). Quote:
Why? No. It points correctly to the ship name in shiparch.ini Quote:
No - these Hardpoints are not for shields, they are used for something else, maybe ID tokens or generators or other add-on equipment. Capt.Morgan: LODranges = 0, 9999, 9999, 9999, 9999 This is not correct, custom ships usually have only one mesh and distance texture, so this is saying the following: "from distance 0 to 9999 use 1st mesh and 1st mesh texture (LOD0 and MIPMap0), from 9999 to 9999 use 2nd mesh and 2nd texture (LOD1 and MIPMap1), from 9999 to 9999 use 3rd mesh and 3rd texture (LOD2 and MIPMap2), from 9999 to 9999 use 4th mesh and 4th texture (LOD3 and MIPMap3), and from 9999 don't display the model"! Meshes 2 to 4 don't exist (ask the modeller if he made the extra LOD meshes and put them in the .cmp? I doubt it.) The following is correct for single-mesh models: LODranges = 0, 9999 This means... "from distance 0 display 1st mesh and 1st texture, and from 9999 don't display the model". When anyone does make additional LOD meshes then I would expect the following: LODranges = 0, 999, 1999, 9999 which means: from distance 0 display 1st Mesh & 1st texture, from distance 999 display 2nd Mesh & 2nd texture, from distance 1999 display 3rd Mesh & 3rd texture, from distance 9999 don't display the model As a guide, so bigger ships still show at further distances: make all your fighter models LODranges = 0, 1999 make all your gunship models LODranges = 0, 2999 make all your medium battleship models LODranges = 0, 9999 make all your huge ship models LODranges = 0, 19999 If there are low-res meshes and textures (check with your modeller) then decide at which distance to switch the textures and meshes as above, and at what distance to stop displaying the ship model, and set the LODranges to those values.
Posted on: 2011/5/2 3:31
Edited by StarTrader on 2011/5/2 3:44:35
Edited by StarTrader on 2011/5/2 3:46:47 |
|||
"C" for "Caterpillar"... "Cool"... "Cheesey"!
|
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2010/4/18 21:56 From Ohio, USA
Group:
Registered Users
Posts:
60
![]() |
Here's the ship's files, attached to this post. It's a modified version of Kuze's Serpent from his ship pack, and I'm thinking something went wrong when I modified and re-exported it.
Posted on: 2011/5/2 3:45
|
|||
![]() Freelancer: Broken Bonds Forums • ModDB |
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2008/6/2 10:17 Group:
Registered Users $$$ Supporters $$$ Senior Members
Posts:
1740
![]() |
Don't worry about loadouts.ini, it's not an npc ship problem, the loadout is already in goods.ini
OK - I opened the model OK in hardcmp and in Milkshape, I can't see anything obvious but I will try a flight tomorrow unless someone can do it for you before me. I am not sure the following is valid: nanobot_limit = 0 Make it temporarily: nanobot_limit = 10 shield_battery_limit = 10 And a bit more integer cleanup, remove the x.000000's from these too: fuse = intermed_damage_smallship01, 0.000000, 625 fuse = intermed_damage_smallship02, 0.000000, 312 fuse = intermed_damage_smallship03, 0.000000, 156 It's just cosmetic.
Posted on: 2011/5/2 4:06
|
|||
"C" for "Caterpillar"... "Cool"... "Cheesey"!
|
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Not too shy to talk
![]()
Joined:
2010/4/18 21:56 From Ohio, USA
Group:
Registered Users
Posts:
60
![]() |
The nanobot limit of 0 is indeed valid. Broken Bonds is doing away with hull regens and making shield batteries regen your entire shield. But, you only get one or two. But, the point is, that setting is the same on all our ships, so it shouldn't be the source of the crash either.
Posted on: 2011/5/2 10:25
|
|||
![]() Freelancer: Broken Bonds Forums • ModDB |
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2008/5/4 21:00 Group:
Registered Users Senior Members
Posts:
553
![]() |
Erm, have you tried launching with a different ship to rule out system crashes? I don't mean just launch once and say "yup, working" - launch about a dozen times.
After that, if you're not sure whether it is your ship - copy and paste that shiparch.ini entry to the bottom of the file, and then use a stock FL ships cmp/mat reference. Obviously comment out the non existent hardpoints HpDI01 or whatever those are, and the counter measure 02. You could also comment out these on your own entry too...no idea what your cmp file has. Dunno if bad references cause crashes *shrugs*
Posted on: 2011/5/2 15:01
|
|||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2009/6/17 9:13 From Hungary
Group:
Registered Users
Posts:
420
![]() |
@Morgan:
from the shiparch.ini: shield_link = l_fighter_shield01, HpMount, HpEngine01, HpShield01 ---> try to remove HpEngine01
Posted on: 2011/5/2 20:25
|
|||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2008/6/2 10:17 Group:
Registered Users $$$ Supporters $$$ Senior Members
Posts:
1740
![]() |
No that's OK, several mods use other hardpoints including HpEnginexx like this for mounting addon equipment.
Posted on: 2011/5/3 0:23
|
|||
"C" for "Caterpillar"... "Cool"... "Cheesey"!
|
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2008/6/2 10:17 Group:
Registered Users $$$ Supporters $$$ Senior Members
Posts:
1740
![]() |
Capt. Morgan:
Your ship model is fine. I replaced my starting ship with it (.cmp, .mat, .sur) and all is well. So your problem is elsewhere. Post up your loadouts.ini entry for the devil too.
Posted on: 2011/5/3 1:17
|
|||
"C" for "Caterpillar"... "Cool"... "Cheesey"!
|
||||
|
||||
Re: Game crashes on ship launch |
||||
|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2008/12/26 16:55 From Xarania
Group:
Registered Users Senior Members
Posts:
793
![]() |
Long shot.. but check your shield
check everything its sold with actually.. swap stuff out like power and engine's. I've had this before but not for a long time last ship to do this to me was the FA37.. i believe that was due to the shield link, it was about 2 years ago so my memory of exactly why has faded.. EDIT: Woah... make Code: addon = LargeWhiteSpecial, HpHeadlight01, 1into Code: addon = LargeWhiteSpecial, HpHeadlight, 1or check the CMP to make sure.. most headlights don't have the "01"
Posted on: 2011/5/3 4:43
|
|||
![]() http://freexlr.forumotion.net - FL-XLR MOD http://www.smfweb.com/forums/MERCHQ - [MERC] |
||||
|
||||










Donations
Forum





devil.zip

