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

Adding ship dealer, display problem

The general place to discuss MOD''ing Freelancer!

Post Mon Oct 23, 2006 2:11 pm

Adding ship dealer, display problem

I've added a ship dealer to Willard Research station in California following some suggestions in the tutorials. Everything works fine except for one detail. After docking you find yourself looking at your ship on the deck. Superimposed on your ship is the ship for sale. I used the info from Battleship Yukon as it was very similar in configuration but can't figure out how to get rid of this glitch. It works fine on the Yukon but not here. I left Li02_04_Base.ini alone as it matched the Battleship Yukon file exactly. (Li02_03_Base.ini)

Here's my code:

<data file="DATA\UNIVERSE\SYSTEMS\LI02\BASES\ROOMS\Li02_04_Deck.ini" method="append">
<source>
[ForSaleShipPlacement <--
name = X/Shipcentre/02 <-- If I remark out these two lines I see the current player ship both at the launch screen and the ship dealer screen. The ship that's for sale does not show. If I leave this entry activated the for sale ship shows superimposed over the current player ship. Not only does it show as superimposed, it shows as reversed in direction. I imagine if I used X/Shipcentre/01 the direction would be correct but the superimposition would still exist.

[Hotspot
name = IDS_HOTSPOT_SHIPDEALER_ROOM
behavior = VirtualRoom
room_switch = ShipDealer

[Hotspot
name = IDS_DEALER_FRONT_DESK
behavior = FrontDesk
state_read = 1
state_send = 2
virtual_room = ShipDealer

[Hotspot
name = IDS_HOTSPOT_SHIPDEALER
behavior = StartShipDealer
state_read = 2
state_send = 1
virtual_room = ShipDealer

[Hotspot
name = IDS_NN_REPAIR_YOUR_SHIP
behavior = Repair
virtual_room = ShipDealer
</source>
</data>

Anyone have any idea how to beat this?

Post Mon Oct 23, 2006 5:20 pm

Have you added a ship dealer to Mbases.ini?

"It doesn’t matter what universe you’re from. That’s got to hurt!"

Post Mon Oct 23, 2006 6:31 pm

OK, here's the mod as it stands now. The for sale ship is still superimposed over the current player ship.

Still looking for ideas.

<data file="DATA\Missions\mbases.ini" method="replace">
<dest>
[MRoom
nickname = Deck
character_density = 2
fixture = li0204_fix_trader, Zs/NPC/Trader/01/A/Stand, scripts\vendors\li_commtrader_fidget.thn, trader
fixture = li0204_fix_weaponsdealer, Zs/NPC/Equipment/01/A/Stand, scripts\vendors\li_equipdealer_fidget.thn, Equipment
</dest>
<source>
[GF_NPC
nickname = li0204_fix_ship
body = li_male_elite_body
head = pi_pirate2_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 244659
affiliation = li_n_grp
voice = rvp111

[MRoom
nickname = Deck
character_density = 2
fixture = li0204_fix_trader, Zs/NPC/Trader/01/A/Stand, scripts\vendors\li_commtrader_fidget.thn, trader
fixture = li0204_fix_weaponsdealer, Zs/NPC/Equipment/01/A/Stand, scripts\vendors\li_equipdealer_fidget.thn,
fixture = li0204_fix_ship, Zs/NPC/Shipdealer/01/A/Stand, scripts\vendors\li_shipdealer_fidget.thn, ShipDealer
Equipment
</source>
</data>

<data file="DATA\UNIVERSE\SYSTEMS\LI02\BASES\ROOMS\Li02_04_Deck.ini" method="append">
<source>
[ForSaleShipPlacement
name = X/Shipcentre/02

[Hotspot
name = IDS_HOTSPOT_SHIPDEALER_ROOM
behavior = VirtualRoom
room_switch = ShipDealer

[Hotspot
name = IDS_DEALER_FRONT_DESK
behavior = FrontDesk
state_read = 1
state_send = 2
virtual_room = ShipDealer

[Hotspot
name = IDS_HOTSPOT_SHIPDEALER
behavior = StartShipDealer
state_read = 2
state_send = 1
virtual_room = ShipDealer

[Hotspot
name = IDS_NN_REPAIR_YOUR_SHIP
behavior = Repair
virtual_room = ShipDealer
</source>
</data>


If you wish to try the mod out yourself, here's a link. http://www.box.net/public/zfs1shc7rg

If anyone can find the problem and let me know I'd greatly appreciate it. I'm going to get some rest. I have a 36 hour shift tomorrow.

Post Mon Oct 23, 2006 11:08 pm

[MRoom
nickname = Deck
character_density = 2 <-----This should be a 3 not a 2-------->
fixture = li0204_fix_trader, Zs/NPC/Trader/01/A/Stand, scripts\vendors\li_commtrader_fidget.thn, trader
fixture = li0204_fix_weaponsdealer, Zs/NPC/Equipment/01/A/Stand, scripts\vendors\li_equipdealer_fidget.thn, <-------Here------->
fixture = li0204_fix_ship, Zs/NPC/Shipdealer/01/A/Stand, scripts\vendors\li_shipdealer_fidget.thn, ShipDealer
Equipment <--------This needs to go ---------------------------^^^

Equipment is not in the right place, for one thing. Also you have 3 Fixtures not 2. So only your 1st 2 will show up and your 3rd will not. You don’t have any CTD's or Freezing? Reason I ask is because Mbases can be a headache.


"It doesn’t matter what universe you’re from. That’s got to hurt!"


Edited by - FlyByU on 10/24/2006 12:13:27 AM

Post Tue Oct 24, 2006 2:25 am

OK, fixed it. Here's the working mod. Thanks to all who helped iron this one out.

<data file="DATA\Missions\mbases.ini" method="replace">
<dest>
[MRoom
nickname = Deck
character_density = 2
fixture = li0204_fix_trader, Zs/NPC/Trader/01/A/Stand, scripts\vendors\li_commtrader_fidget.thn, trader
fixture = li0204_fix_weaponsdealer, Zs/NPC/Equipment/01/A/Stand, scripts\vendors\li_equipdealer_fidget.thn, Equipment
</dest>
<source>
[GF_NPC
nickname = li0204_fix_ship
body = li_male_elite_body
head = pi_pirate2_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 244659
affiliation = li_n_grp
voice = rvp111

[MRoom
nickname = Deck
character_density = 3
fixture = li0204_fix_trader, Zs/NPC/Trader/01/A/Stand, scripts\vendors\li_commtrader_fidget.thn, trader
fixture = li0204_fix_weaponsdealer, Zs/NPC/Equipment/01/A/Stand, scripts\vendors\li_equipdealer_fidget.thn, Equipment
fixture = li0204_fix_ship, Zs/NPC/Shipdealer/01/A/Stand, scripts\vendors\li_shipdealer_fidget.thn, ShipDealer
</source>
</data>

<data file="Data\Universe\Systems\Li02\Bases\Rooms\Li02_04_Deck.ini" method="replace">
<dest>
[Room_Info
set_script = Scripts\Bases\Li_08_Deck_hardpoint_01.thn
scene = all, ambient, Scripts\Bases\Li_08_Deck_ambi_int_01.thn
animation = Sc_loop
</dest>
<source>
[Room_Info
set_script = Scripts\Bases\Li_05_Deck_hardpoint_01.thn
scene = all, ambient, Scripts\Bases\Li_05_Deck_ambi_int_01.thn
</source>
</data>

<data file="DATA\UNIVERSE\SYSTEMS\LI02\BASES\ROOMS\Li02_04_Deck.ini" method="append">
<source>
[ForSaleShipPlacement
name = X/Shipcentre/02

[Hotspot
name = IDS_HOTSPOT_SHIPDEALER_ROOM
behavior = VirtualRoom
room_switch = ShipDealer

[Hotspot
name = IDS_DEALER_FRONT_DESK
behavior = FrontDesk
state_read = 1
state_send = 2
virtual_room = ShipDealer

[Hotspot
name = IDS_HOTSPOT_SHIPDEALER
behavior = StartShipDealer
state_read = 2
state_send = 1
virtual_room = ShipDealer

[Hotspot
name = IDS_NN_REPAIR_YOUR_SHIP
behavior = Repair
virtual_room = ShipDealer
</source>
</data>

Post Tue Oct 24, 2006 6:57 am

Well Done Robocop

24/7 Blaster Universe
Website

Post Tue Oct 24, 2006 7:09 am

Since your using a script you can give your dealer a name like this.

individual_name = 0 ;GENERATESTRRES(" Lt. John Hancock Willard ShipDealer"


Or something like that it just makes the mod that much more interesting.

Post Wed Oct 25, 2006 7:15 pm

LOL, I can use that.

ermm where would I put that? In the same file?

Post Thu Oct 26, 2006 6:18 am

[GF_NPC
nickname = li0204_fix_ship
body = li_male_elite_body
head = pi_pirate2_head
lefthand = benchmark_male_hand_left
righthand = benchmark_male_hand_right
individual_name = 0 ;GENERATESTRRES(" Lt. John Hancock Willard ShipDealer"
HERE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
affiliation = li_n_grp
voice = rvp111


"It doesn’t matter what universe you’re from. That’s got to hurt!"


Edited by - FlyByU on 10/26/2006 7:18:29 AM

Edited by - FlyByU on 10/27/2006 8:25:31 AM

Post Thu Oct 26, 2006 6:06 pm

Do I put that in the Universe\Systems\Li02\Bases\Rooms\Li02_04_Deck.ini file?

Post Thu Oct 26, 2006 7:22 pm

mbases

Post Thu Oct 26, 2006 7:26 pm

You're using an XML right?


You just paste it to the line that reads like this
individual_name = 244659
but change it to
individual_name = 0 ;GENERATESTRRES(" Lt. John Hancock Willard ShipDealer"

As I have in your example above this post.

"It doesn’t matter what universe you’re from. That’s got to hurt!"

Return to Freelancer General Editing Forum