Bases - How to create virtual room?
-
In Freelancer, in-base scenes use “VirtualRoom” method to display the equipment dealer and commodity trader in the same deck model.
How exactly is it done? With special hardpoints? I couldn’t find the reference inside the INIs (or maby I looked in the wrong place). Can someone please help me? -
Check this file path
\Freelancer\DATA\UNIVERSE\SYSTEMS\BR01\BASES
then open Br01_02_base
[BaseInfo]
nickname = Br01_02_Base
start_room = Deck[Room]
nickname = Bar
file = Universe\Systems\Br01\Bases\Rooms\Br01_02_Bar.ini[Room]
nickname = Deck
file = Universe\Systems\Br01\Bases\Rooms\Br01_02_Deck.inithen check the Deck room
[Room_Info]
set_script = Scripts\Bases\br_07_Deck_hardpoint_01.thn
scene = all, ambient, Scripts\Bases\br_07_Deck_ambi_int_01.thn
animation = Sc_loop[Room_Sound]
ambient = ambience_deck_space_larger[PlayerShipPlacement]
name = X/Shipcentre/01[Camera]
name = Camera_0[Hotspot]
name = IDS_HOTSPOT_DECK
behavior = ExitDoor
room_switch = Deck[Hotspot]
name = IDS_HOTSPOT_BAR
behavior = ExitDoor
room_switch = Bar[Hotspot]
name = IDS_HOTSPOT_COMMODITYTRADER_ROOM
behavior = VirtualRoom
room_switch = Trader[Hotspot]
name = IDS_HOTSPOT_EQUIPMENTDEALER_ROOM
behavior = VirtualRoom
room_switch = Equipment[Hotspot]
name = IDS_NN_REPAIR_YOUR_SHIP
behavior = Repair
virtual_room = Deck[Hotspot]
name = IDS_DEALER_FRONT_DESK
behavior = FrontDesk
state_read = 1
state_send = 2
virtual_room = Trader[Hotspot]
name = IDS_HOTSPOT_COMMODITYTRADER
behavior = StartDealer
state_read = 2
state_send = 1
virtual_room = Trader[Hotspot]
name = IDS_DEALER_FRONT_DESK
behavior = FrontDesk
state_read = 1
state_send = 2
virtual_room = Equipment[Hotspot]
name = IDS_HOTSPOT_EQUIPMENTDEALER
behavior = StartEquipDealer
state_read = 2
state_send = 1
virtual_room = Equipment[Hotspot]
name = IDS_EQUIPMENT_ROOM_RIGHT
behavior = MoveRight
state_read = 2
state_send = 1
virtual_room = Equipment[Hotspot]
name = IDS_NN_REPAIR_YOUR_SHIP
behavior = Repair
virtual_room = EquipmentI generally use an existing base template and edit the base name, the bar/comm/equipment dealers can be added/edited in mbase.ini.
CK256
-
You got me wrong my friend. I dodn’t ask how to set the reference, I asked how to make those rooms! Are they scripted in the INIs or THNs? How is the position set? Etc….
fixture = LI0605_fix_trader, Zs/NPC/Trader/01/A/Stand, scripts\vendors\li_commtrader_fidget.thn, trader fixture = LI0605_fix_weaponsdealer, Zs/NPC/Equipment/01/A/Stand, scripts\vendors\li_equipdealer_fidget.thn, Equipment ```What are those fixtures?
-
came across this problem myself recently (thanks, SolCommand, for your great planetary bases). the problem i encountered was, how to define, in which VirtualRoom where is the camera or what camera is the monitor being attached to. couldn’t find any event entries about that so obviously either there are multiple cameras or multiple markers called a hardcoded string that indicates witching in case a hotspot is being activated. does anyone know certainly?