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

Crashing room that won''t stop crashing

The general place to discuss MOD''ing Freelancer!

Post Thu Sep 08, 2005 7:46 pm

Crashing room that won''t stop crashing

I enter the bar on Planet Málaga. The bar music starts playing for a few seconds, then CTD. I enter the equipment room. CTD. I enter the commodity room. CTD. I enter the ship dealer room. CTD. I enter the cityscape. Works peachy. Will Tofu Fight? And this didn't happen recently. It happened in January, right out of the blue. I'm changing around Florida, go back to check on Málaga, and I crash. I didn't even change anything, and it worked fine before. Here is the Málaga mbase.ini entry:

[MBase
nickname = Hi03_01_Base
local_faction = fc_c_grp
diff = 5
msg_id_prefix = gcs_refer_base_Hi03_01_Base

[MVendor
num_offers = 5, 7

[BaseFaction
faction = fc_c_grp
weight = 50
offers_missions = true
mission_type = DestroyMission, 28.478237, 53.365005, 50
npc = hi0301_corsairs_001_m
npc = hi0301_corsairs_002_m
npc = hi0301_corsairs_003_f
npc = hi0301_corsairs_004_f

[BaseFaction
faction = fc_ou_grp
weight = 45
offers_missions = true
mission_type = DestroyMission, 28.478237, 53.365005, 50
npc = hi0301_outcasts_001_m
npc = hi0301_outcasts_002_m
npc = hi0301_outcasts_003_f

[BaseFaction
faction = gd_z_grp
weight = 5
npc = hi0301_zoners_001_m

[GF_NPC
nickname = hi0301_fix_bartender
body = pl_male1_journeyman_body
head = br_bartender_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524307
affiliation = fc_c_grp
voice = rvp106
bribe = fc_c_grp, 10000, 16101
bribe = fc_ou_grp, 10000, 16100

[GF_NPC
nickname = hi0301_fix_ship
body = pl_male1_journeyman_body
head = pi_pirate1_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524308
affiliation = fc_c_grp
voice = rvp106

[GF_NPC
nickname = hi0301_fix_trader
body = pl_male1_journeyman_body
head = sh_male3_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524309
affiliation = fc_c_grp
voice = rvp101

[GF_NPC
nickname = hi0301_fix_weaponsdealer
body = pl_male1_journeyman_body
head = pl_male2_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524310
affiliation = fc_c_grp
voice = rvp101

[GF_NPC
nickname = hi0301_corsairs_001_m
body = pl_male1_journeyman_body
head = pi_pirate2_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524314
affiliation = fc_c_grp
voice = rvp140
misn = DestroyMission, 28.478237, 53.365005
room = bar

[GF_NPC
nickname = hi0301_corsairs_002_m
body = pl_male1_journeyman_body
head = ge_male1_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524315
affiliation = fc_c_grp
voice = rvp106
misn = DestroyMission, 28.478237, 53.365005
room = bar
accessory = prop_neuralnet_F_right

[GF_NPC
nickname = hi0301_corsairs_003_f
body = pl_female1_journeyman_body
head = sh_female2_head_gen
lefthand = benchmark_female_hand_left
righthand = benchmark_female_hand_right
individual_name = 524316
affiliation = fc_c_grp
voice = rvp546
misn = DestroyMission, 28.478237, 53.365005
room = bar

[GF_NPC
nickname = hi0301_corsairs_004_f
body = pl_female1_journeyman_body
head = rh_newscaster_head_gen
lefthand = benchmark_female_hand_left
righthand = benchmark_female_hand_right
individual_name = 524317
affiliation = fc_c_grp
voice = rvp501
misn = DestroyMission, 28.478237, 53.365005
room = bar

[GF_NPC
nickname = hi0301_outcasts_001_m
body = pi_pirate3_body
head = pi_pirate3_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524318
affiliation = fc_ou_grp
voice = rvp106
misn = DestroyMission, 28.478237, 53.365005
room = bar
accessory = prop_mask_outcast

[GF_NPC
nickname = hi0101_outcasts_002_m
body = pi_pirate3_body
head = pi_pirate2_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524319
affiliation = fc_ou_grp
voice = rvp106
misn = DestroyMission, 28.478237, 53.365005
room = bar
accessory = prop_mask_outcast

[GF_NPC
nickname = hi301_outcasts_003_f
body = sh_female1_body
head = sh_female2_head_gen
lefthand = benchmark_female_hand_left
righthand = benchmark_female_hand_right
individual_name = 524321
affiliation = fc_ou_grp
voice = rvp546
misn = DestroyMission, 28.478237, 53.365005
room = bar
accessory = prop_mask_outcast_fem

[GF_NPC
nickname = hi0301_zoners_001_m
body = pl_male1_peasant_body
head = ge_male2_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 524320
affiliation = gd_z_grp
voice = rvp106
room = bar

[MRoom
nickname = bar
character_density = 6
fixture = hi0301_fix_bartender, Zs/NPC/Bartender/01/A/Stand, scripts\vendors\li_bartender_fidget.thn, bartender

[MRoom
nickname = trader
character_density = 2
fixture = hi0301_fix_trader, Zs/NPC/Trader/01/A/Stand, scripts\vendors\li_commtrader_fidget.thn, trader

[MRoom
nickname = ShipDealer
character_density = 2
fixture = hi0301_fix_ship, Zs/NPC/Shipdealer/01/A/Stand, scripts\vendors\li_shipdealer_fidget.thn, ShipDealer

[MRoom
nickname = Equipment
character_density = 2
fixture = hi0301_fix_weaponsdealer, Zs/NPC/Equipment/01/A/Stand, scripts\vendors\li_equipdealer_fidget.thn, Equipment

And the plot thickins! I then changed, via Hi03_01_Base.ini, the entries to that of New Madrid (Malta), and it works... for a time. Then we're back to crashing. So I change it to Barcelona (Crete). Works... for a time. Then our favorite Mr. Crash pays a visit. Will Tofu Fight is going on?

MK

Post Fri Sep 09, 2005 12:36 am

If you remove your Mbases.ini entries for the bases that crash - does it still crash? Remove all the market entries (ships, equipment) for these as well - does it crash?

Do bog standard normal bases crash?

Post Fri Sep 09, 2005 12:16 pm

...No, it DOESN'T crash without the mbase.ini entry. Logically, then, the problem is there. <applies a large blunt insturment to forehead repeatadly> Why didn't I think of doing that? Ah well, let's get cracking away on this entry!

MK

"edit" I've fixed it, partially. I set the character density for all rooms to 1. Why does this work? I use the exact same scripts as New Madrid, and its mbase.ini entry works fine with numbers greater than 1.

Edited by - mknote on 9/9/2005 1:31:25 PM

Post Fri Sep 09, 2005 1:41 pm

Start from the ground up - just use the bog standard:

[MBase
nickname = Hi03_01_Base
local_faction = fc_c_grp
diff = 5
msg_id_prefix = gcs_refer_base_Hi03_01_Base

[MVendor
num_offers = 5, 7

[BaseFaction
faction = fc_c_grp
weight = 50
offers_missions = true
mission_type = DestroyMission, 28.478237, 53.365005, 50

Check it works fine. Then add the bartender, then the ship dealer, then the equipment dealer, then the commodities dealer. Check each time - next add one NPC at a time (don't forget the ref in the base faction part though !).

Post Fri Sep 09, 2005 1:58 pm

Note my edit, Chips. The problem isn't the people, it's the character density:

[MRoom
nickname = bar
character_density = 6 <-------------------- I changed this to 1, and it works...
fixture = hi0301_fix_bartender, Zs/NPC/Bartender/01/A/Stand, scripts\vendors\li_bartender_fidget.thn, bartender

But now I have no bar patrons, just the bartender.

MK

Post Fri Sep 09, 2005 3:32 pm

mknote try commenting out { ; } the outcast npc's in your base and see if it works then. The reason I'm suggesting this is having two blood enemy factions in the same base could be causing your problem.

Rebalance 3.5 Dev. Team
rebalance.blue-ion.net

Post Fri Sep 09, 2005 3:46 pm

The Outcasts and Corsairs are allies now...

MK

Post Fri Sep 09, 2005 5:21 pm

I doubt having enemies in the bar would cause a crash...but would you at least try commenting them out like he said?

Post Sat Sep 10, 2005 1:25 am

The density doesn't mean a thing, its the npcs that appear that are causing the crash - that is why at density 1 you have no crash. Using this logic, you know its the NPC's and not density (you were looking at the density as the blame, not whom populates). My first thought was bad costume or voice reference... but from this I have just seen the error - nickname of your outcast is still hi01_01 - when in the ref for the faction at the top there you have Hi03_01

*edit* This will also explain why it didn't crash every time - because you could have a max of 5 NPC's in the bar, but you have a choice of 8/9 to go from. This was the first indicator, but I missed it. Fraid I never really thought hard about it, just kept going down the "rule out" path. Maybe in future I should bother reading what people post up, but it takes sooooo long to try and check everything


Edited by - Chips on 9/10/2005 2:28:14 AM

Post Sat Sep 10, 2005 5:59 am

Nope, I changed the Outcast (why didn't I notice that), changed density to 5, and CTD. And your theory doesn't explain why "density = 2" crashes in the other rooms, like the Ship Dealer room, when it works on Malta.

MK

Post Sat Sep 10, 2005 2:36 pm

Reading your initial message I get the impression that the CTD's occur when you switch rooms. If that is the case than the error is not likely to be in the mbases.
Did you check the room files? Are the entries in there pointing to the correct rooms? If one of the exits points to a wrong room, a CTD is eminent.

BuckDanny

Post Sat Sep 10, 2005 3:28 pm

Good point BD, I kinda haven't read his first entry since... well - since I first read it. Didn't even notice the crash between trying to enter any rooms at all.
If it was a problem in going to the bar with people - it should crash instantly - not play music first.

Fraid I dunno on this one... only issue I have with going to rooms that caused crashes was when the rooms don't actually exist in the files. Or in rooms set to sell if something is incorrectly set (ie gun that doesn't exist, ship that doesn't exist etc).

I forget whether you said you've run FLScan - but its worth a try.

Post Sat Sep 10, 2005 8:03 pm

No, I didn't run it, but now I have... nothing suggesting a CTD. I partially agree with the above theory; but why is it when density = 1, and no other time, does it work?

MK

Post Sat Sep 10, 2005 10:43 pm

If Density > 1 is causing crashes, then you're having an issue with the THN script, which has to contain all references to Characters standing in that Scene. If you're absolutely sure that's what's causing stuff to go wrong... check out the different THNs that feature multiple characters in the scene, and then make sure your new one matches up. So far as I have been able to determine, FL doesn't care about THNs which are exactly the same as each other aside from their filename, so you can literally just copy-paste and rename a working THN.

Check out the XML Toolkit Mod, 1.2, for examples of working THN scripts that have the lowest possible number of things going on in them. Adding a new character slot to them should be pretty simple. Making a new Bar work... is not quite that easy. Aldebaran's been working on that trick for Free Worlds 1.66, and I'm quite eager to see how he's pulling off the custom camera stuff, etc.

Post Sun Sep 11, 2005 2:39 am

Could you just try adding a different faction to see if the rooms are ok? Say, copy the entry for ew01_01, just rename the basic nicknames and test it with the original names and factions. Then copy the whole thing to the top of the mbase file and see what happens.

Return to Freelancer General Editing Forum