Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Issues with INI files

The general place to discuss MOD''ing Freelancer!

Post Mon Apr 14, 2003 10:33 am

Issues with INI files

Hey all,

I went through the trouble of making a Lambda Class shuttle in 3DS MAX, then edited it in MilkShape to add the hardports and textures, finely used UTF Edit to setup my MAP file, and finally copied the MAP and CMP files to my "ships/Lambda" directory. Only one problem, I can't seem to get the ship to showup in any location I put it in. Can anyone here tell me what I might have wrong in my INI files? I know it's probably something really stupid. I set the cost to 100 just for testing purposes and should have the ship located at Manhattan, if I have my base listings right.

~~~~~~~~~~~~SHIPARC.INI~~~~~~~~~~~

[Ship
ids_name = 237999
ids_info = 66570
ids_info1 = 66571
ids_info2 = 66608
ids_info3 = 66572
ship_class = 0
nickname = SW_lambda
LODranges = 0, 40, 60, 140, 300, 1000
msg_id_prefix = gcs_refer_shiparch_Liblf
mission_property = can_use_berths
type = FREIGHTER
mass = 100.000000
hold_size = 300
linear_drag = 1.000000
fuse = li_fighter_gas01, 0.000000, -1
fuse = li_fighter_smoke01, 0.000000, -1
fuse = intermed_damage_smallship02, 0.000000, 400
fuse = intermed_damage_smallship03, 0.000000, 200
max_bank_angle = 35
camera_offset = 6, 22
camera_angular_acceleration = 0.050000
camera_horizontal_turn_angle = 23
camera_vertical_turn_up_angle = 5
camera_vertical_turn_down_angle = 30
camera_turn_look_ahead_slerp_amount = 1.000000
nanobot_limit = 12
shield_battery_limit = 12
hit_pts = 1300
DA_archetype = ships\Lambda\Lambda.cmp
material_library = ships\Lambda\Lambda.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
cockpit = cockpits\liberty\l_fighter.ini
pilot_mesh = generic_pilot
explosion_arch = explosion_li_fighter
surface_hit_effects = 0, small_hull_hit_light01, small_hull_hit_light02, small_hull_hit_light03
surface_hit_effects = 150, small_hull_hit_medium01, small_hull_hit_medium02, small_hull_hit_medium03
surface_hit_effects = 300, small_hull_hit_heavy01, small_hull_hit_heavy02, small_hull_hit_heavy03
steering_torque = 24000.000000, 24000.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
strafe_power_usage = 2
bay_door_anim = Sc_open baydoor
bay_doors_open_snd = cargo_doors_open
bay_doors_close_snd = cargo_doors_close
HP_bay_surface = HpBayDoor01
HP_bay_external = HpBayDoor02
num_exhaust_nozzles = 1
HP_tractor_source = HpTractor_Source
shield_link = l_fighter_shield01, HpMount, HpShield01
hp_type = hp_gun_special_3, HpWeapon01, HpWeapon02, HpWeapon03, HpWeapon04
hp_type = hp_gun_special_2, HpWeapon01, HpWeapon02, HpWeapon03, HpWeapon04
hp_type = hp_gun_special_1, HpWeapon01, HpWeapon02, HpWeapon03, HpWeapon04
hp_type = hp_fighter_shield_special_3, HpShield01
hp_type = hp_fighter_shield_special_2, HpShield01
hp_type = hp_fighter_shield_special_1, HpShield01
hp_type = hp_thruster, HpThruster01
hp_type = hp_mine_dropper, HpMine01
hp_type = hp_countermeasure_dropper, HpCM01
hp_type = hp_torpedo_special_2, HpTorpedo01


~~~~~~~~~~~~~~~GOODS.INI~~~~~~~~~~~~~~~~

[Good
nickname = SW_Lambda_hull
category = shiphull
ship = SW_Lambda
price = 100
ids_name = 237999
item_icon = Equipment\models\commodities\nn_icons\or_fighter.3db

[Good
nickname = SW_Lambda_package
category = ship
hull = SW_Lambda_hull
addon = ge_be_engine_01, internal, 1
addon = rh_fighter_power01, internal, 1
addon = ge_s_scanner_01, internal, 1
addon = ge_s_tractor_01, internal, 1
addon = shield01_mark02_hf, HpShield01, 1
addon=LargeWhiteSpecial, HpHeadlight, 1
addon=contrail01, HpContrail01, 1
addon=contrail01, HpContrail02, 1

~~~~~~~~~~MARKET_SHIPS.INI~~~~~~~~~


[BaseGood
base = Li01_01_base
marketgood = gf1_package, 0, -1, 0, 0, 1, 1, 1
marketgood = gf2_package, 4, -1, 1, 1, 0, 1, 1
marketgood = gf4_package, 13, -1, 0, 0, 1, 1, 1
marketgood = gf5_package, 24, -1, 0, 0, 1, 1, 1
marketgood = gf6_package, 30, -1, 0, 0, 1, 1, 1
marketgood = SW_Lambda_package, -1, 1, 1, 0, 1, 1
etc.
etc.
etc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now, I'm pretty new at this mod stuff, infact this is my first ship mod and I plan to attempt to do atleast 3 new ones a week seeing that I have a MASSIVE database of ship meshes in both LWO and 3DS formats. If there isn't anything wrong with this information could there be something wrong with my model maybe? Perhaps the MAT or CMP files need altering? I used nothing but TGA files for textures and followed the Borg Sphere tutorial to the letter, with slight changes do to hard-port placements.

I would like to send out a personal shout to not only the maker of that Tutorial, but the makers of the editing programs. Without you people, people like myself (who has very little programming knowledge but knows 3DS like the back of his hand) would never get to improve on anything. Keep up the AWSOME work!

Thanks in advance for any help you can give, and I will be making the ship available once I complete it. Who knows, some other famous Star Wars and Star Trek ships could be soon to follow if I figure the problem out.

Thanks again.

~Jay~

Fortune favors the strong mind.

Post Mon Apr 14, 2003 10:40 am

Hmm... I don't see anything wrong with your code, but are you sure you've commented out one of the original ships for sale at Manhattan (in market_ships.ini)? Every shipdealer has a maximum of three available spots, which are usually taken (in this case by the Startracker, Patriot and Rhino).

Post Mon Apr 14, 2003 10:51 am

Well, since this is my first time I've not only made a ship but attempted to put one in I didn't know you had to do that. Will try it out right now as I'm still working on the problem as I speak. Thanks for the wicked fast reply, nice to know people are around when you need them. :-) Will let you know how it turns out in the next 10 minutes or so.

Actually, now that I look at the code I posted I don't think Li01_01 is Manhatten because I only added the Lambda and didn't mod any of the others. Any idea where that might be in the game? I know it's in the NY system, but who sells only the 2nd ship?

And while we're on the topic. Does anyone know where you can get a list that explains what "Li01_01" and the rest actually are? Anyone mapped them yet to find out? Thanks.

~Jay~

Fortune favors the strong mind.

Edited by - Jackel on 14-04-2003 12:02:27

Post Mon Apr 14, 2003 11:09 am


Actually, now that I look at the code I posted I don't think Li01_01 is Manhatten because I only added the Lambda and didn't mod any of the others. Any idea where that might be in the game? I know it's in the NY system, but who sells only the 2nd ship?


It is. But because you added the shuttle to Manhattan without removing one of the ships already for sale there (thus claiming a dealer "hardpoint" that's occupied by another ship), it won't show up.


And while we're on the topic. Does anyone know where you can get a list that explains what "Li01_01" and the rest actually are? Anyone mapped them yet to find out? Thanks.


http://www.lancersreactor.com/t/forum/t ... e=&M=False

Edited by - Nephilim on 14-04-2003 12:10:20

Edited by - Nephilim on 14-04-2003 22:55:36

Post Mon Apr 14, 2003 11:13 am

Actually, from what I know it goes like this....

SW_Lambda_package, -1, 1, 1, 0, 1, 1

First letter is if they will sell it to you if your hostile. Positive means NO, negitive means YES.

The next numbers are if they have it available. I know that "1,1,0" means yes while "0,0,1" means no.

So as you can see the only ship available there is my Lambda, and whatever ship number 2 might be. Or is that a wrong description of it? I got it from a source outside Lancers that I'm not really sure about. Any help you can lend editing the code, that gets it to work, would be noted in my credits. Thanks again.

Ooofta, I know your probably tired of questions but I have one more. Do I keep having to kill my server, and my game, every time I need to edit the INI file?

Edited by - Jackel on 14-04-2003 12:21:57

Post Mon Apr 14, 2003 11:24 am


So as you can see the only ship available there is my Lambda, and whatever ship number 2 might be.


Erh, no. You haven't posted the full Li01_01 section of market_ships.ini, but I can tell from your snippet that the Patriot (gf2_package) is still for sale, so the Startracker and Rhino probably still are, too.

Remove all marketgood entries in li01_01 and replace that section by what I've pasted below:

[BaseGood
base = Li01_01_base
marketgood = SW_Lambda_package, -1, 1, 1, 0, 1, 1
marketgood = gf1_package, 0, -1, 0, 0, 1, 1, 1
;marketgood = gf2_package, 4, -1, 1, 1, 0, 1, 1
marketgood = gf4_package, 13, -1, 0, 0, 1, 1, 1
marketgood = gf5_package, 24, -1, 0, 0, 1, 1, 1
marketgood = gf6_package, 30, -1, 0, 0, 1, 1, 1
marketgood = bwf_package, 4, -1, 0, 0, 1, 1, 1
marketgood = bwe_package, 20, -1, 0, 0, 1, 1, 1
marketgood = bwe2_package, 30, -1, 0, 0, 1, 1, 1
marketgood = bwfr_package, 10, -1, 0, 0, 1, 1, 1
marketgood = cof_package, 8, -1, 0, 0, 1, 1, 1
marketgood = coe_package, 28, -1, 0, 0, 1, 1, 1
marketgood = coe2_package, 32, -1, 0, 0, 1, 1, 1
;marketgood = lf_package, 1, -1, 1, 1, 0, 1, 1
marketgood = le_package, 2, -1, 0, 0, 1, 1, 1
;marketgood = lfr_package, 1, -1, 1, 1, 0, 1, 1
marketgood = bf_package, 6, -1, 0, 0, 1, 1, 1
marketgood = be_package, 8, -1, 0, 0, 1, 1, 1
marketgood = bfr_package, 4, -1, 0, 0, 1, 1, 1
marketgood = kf_package, 10, -1, 0, 0, 1, 1, 1
marketgood = ke_package, 13, -1, 0, 0, 1, 1, 1
marketgood = kfr_package, 10, -1, 0, 0, 1, 1, 1
marketgood = rf_package, 20, -1, 0, 0, 1, 1, 1
marketgood = re_package, 22, -1, 0, 0, 1, 1, 1
marketgood = rfr_package, 20, -1, 0, 0, 1, 1, 1
marketgood = pf_package, 2, -1, 0, 0, 1, 1, 1
marketgood = pe_package, 13, -1, 0, 0, 1, 1, 1
marketgood = pfr_package, 4, -1, 0, 0, 1, 1, 1
marketgood = bhf_package, 4, -1, 0, 0, 1, 1, 1
marketgood = bhe_package, 13, -1, 0, 0, 1, 1, 1
marketgood = bhe2_package, 26, -1, 0, 0, 1, 1, 1
marketgood = oe_package, 16, -1, 0, 0, 1, 1, 1

; denotes a line ignored by FL.


Ooofta, I know your probably tired of questions but I have one more. Do I keep having to kill my server, and my game, every time I need to edit the INI file?


Yes.

Edited by - Nephilim on 14-04-2003 12:25:37

Post Mon Apr 14, 2003 11:26 am

Here's the entire section of the MARKET_SHIPS.INI file for Manhattan. Figured there might have been something in there that you wern't able to see otherwise.

[BaseGood
base = Li01_01_base
marketgood = gf1_package, 0, -1, 0, 0, 1, 1, 1
marketgood = gf2_package, 4, -1, 1, 1, 0, 1, 1
marketgood = gf4_package, 13, -1, 0, 0, 1, 1, 1
marketgood = gf5_package, 24, -1, 0, 0, 1, 1, 1
marketgood = gf6_package, 30, -1, 0, 0, 1, 1, 1
marketgood = bwf_package, 4, -1, 0, 0, 1, 1, 1
marketgood = bwe_package, 20, -1, 0, 0, 1, 1, 1
marketgood = bwe2_package, 30, -1, 0, 0, 1, 1, 1
marketgood = bwfr_package, 10, -1, 0, 0, 1, 1, 1
marketgood = cof_package, 8, -1, 0, 0, 1, 1, 1
marketgood = coe_package, 28, -1, 0, 0, 1, 1, 1
marketgood = coe2_package, 32, -1, 0, 0, 1, 1, 1
marketgood = SW_Lambda_package, 0, -1, 1, 1, 0, 1, 1
marketgood = lf_package, 1, -1, 1, 1, 0, 1, 1
marketgood = le_package, 2, -1, 0, 0, 1, 1, 1
marketgood = lfr_package, 1, -1, 1, 1, 0, 1, 1
marketgood = bf_package, 6, -1, 0, 0, 1, 1, 1
marketgood = be_package, 8, -1, 0, 0, 1, 1, 1
marketgood = bfr_package, 4, -1, 0, 0, 1, 1, 1
marketgood = kf_package, 10, -1, 0, 0, 1, 1, 1
marketgood = ke_package, 13, -1, 0, 0, 1, 1, 1
marketgood = kfr_package, 10, -1, 0, 0, 1, 1, 1
marketgood = rf_package, 20, -1, 0, 0, 1, 1, 1
marketgood = re_package, 22, -1, 0, 0, 1, 1, 1
marketgood = rfr_package, 20, -1, 0, 0, 1, 1, 1
marketgood = pf_package, 2, -1, 0, 0, 1, 1, 1
marketgood = pe_package, 13, -1, 0, 0, 1, 1, 1
marketgood = pfr_package, 4, -1, 0, 0, 1, 1, 1
marketgood = bhf_package, 4, -1, 0, 0, 1, 1, 1
marketgood = bhe_package, 13, -1, 0, 0, 1, 1, 1
marketgood = bhe2_package, 26, -1, 0, 0, 1, 1, 1
marketgood = oe_package, 16, -1, 0, 0, 1, 1, 1

~Jay~

Fortune favors the strong mind.

Post Mon Apr 14, 2003 11:29 am

Hey, I'll give that a shot and be back with the word in less than 5...

~Jay~

Fortune favors the strong mind.

Post Mon Apr 14, 2003 11:36 am

Interesting glitch... Now when I go into the shipyard there are no ships there, graphically, and when I bring up the purchase menu it pops up and immediately closes again. Perhaps it has to do with a number missing from the list there.

marketgood = SW_Lambda_package, -1, 1, 1, 0, 1, 1

Shouldn't there be another number in there, like this???

marketgood = SW_Lambda_package, 0, -1, 1, 1, 0, 1, 1

I think I made that mistake earlier on when I was trying to do some problem solving and you just copied the mistake, which was easily missed. I'll try fixing it and see what happens.

Something else that might be a factor, how does scale work? I'm not sure what the actual physical size of the shuttle was when I imported from 3DS, exited, and then saved as the Freelancer format. Could this be an issue?


~Jay~

Fortune favors the strong mind.

Edited by - Jackel on 14-04-2003 12:37:44

Post Mon Apr 14, 2003 11:42 am

Nope, made the change and I'm gettin the same glitch. The ships don't appear in the sales room and the purchase menu won't pop up. Interesting.....

~Jay~

Fortune favors the strong mind.

Post Mon Apr 14, 2003 11:45 am


Interesting glitch... Now when I go into the shipyard there are no ships there, graphically, and when I bring up the purchase menu it pops up and immediately closes again.


There are no ships because they're commented out (easier to test that way).


marketgood = SW_Lambda_package, -1, 1, 1, 0, 1, 1

Shouldn't there be another number in there, like this???

marketgood = SW_Lambda_package, 0, -1, 1, 1, 0, 1, 1


You're absolutely right! Good catch.

Post Mon Apr 14, 2003 11:46 am

Tried that change, adding the 0 there, but the list still won't pop up. If I let you on the server will you be able to see for yourself? Or do you need the moded files too?....

~Jay~

Fortune favors the strong mind.

Post Mon Apr 14, 2003 11:52 am

DUDE! I have a lambda shuttle! Only three minor problems. It's upside down, for some reason. Missing the upper fin, for some reason. And almoast microscopic in size... *LMAO*

:-)

~Jay~

Fortune favors the strong mind.

Post Mon Apr 14, 2003 11:54 am

I'd need all the files you've modified. But I'm at a loss to explain the glitch... everything checks out, as far as I can tell.

BTW: I take it you've created a custom .dll containing the shuttle's ID and infocard data? Because if you haven't, your ids_name and ids_infoX point to a non-existing resource.

Post Mon Apr 14, 2003 11:55 am

Whooza! Screenshot please

Return to Freelancer General Editing Forum