Post tutorial RSS Destructible base in MP

Total destruction: system, solararch Unstable at server side, object respawn after server restart

Posted by on - Basic Server Side Coding

Change code of your system ini file, for example st04.ini:

; Our total destructible base :)

[Object]
nickname = ST04_02
pos = -6560, 0, -2900
ids_name = 501054
ids_info = 501055
dock_with = ST04_02_Base
base = ST04_02_Base
rotate = 0, 90, 0
reputation = gd_z_grp

; unique archetype, or players may crash
; server from other systems
archetype = gas_miner_old

behavior = NOTHING
voice = atc_leg_m01
space_costume = br_brighton_head, pl_male1_peasant_body
difficulty_level = 19

; loadout must be from unique
; archetype gas_miner_old or server will crash
loadout = gas_miner_old_co_01

pilot = pilot_solar_hardest

; This section must be after your Base section
; or player will spawn always at the planet

[Object] 
nickname = ST04_planet_1
ids_name = 501001
ids_info = 525186
spin = 0, 0.001000, 0
rotate = 0, 0, 0
pos = 11462, 0, 18763
archetype = planet_desored_1500
atmosphere_range = 1800
burn_color = 255, 222, 160
archetype = depot ; dockable arhectype

; we will respawn from this planet
; after the base total destruction
base = ST04_02_Base
dock_with = ST04_02_Base ; tells to the server the base is still dockable ;)

; You may destroy all bases in system, so simply add  oter bases in the list
; base = ST04_nX_base
; dock_with = ST04_nX_base
; base = ST04_nY_base
; dock_with = ST04_nY_base
; base = ST04_nZ_base
; dock_with = ST04_nZ_base
;.....
; base = ST04_nN_base
; dock_with = ST04_nN_base

Archetype must have cmp with dockable hardpoint.
Fuse must have death fuse and destroy root.
Respawn only after server restart.

Better to use unique archetype, for example gas_miner_old.

In solararch.ini it looks like:

nickname = gas_miner_old
...
docking_sphere = jump, HpDockMountC, 205.500000 ; for all types of ships
docking_sphere = jump, HpDockMountD, 205.500000 ; -//-
docking_sphere = jump, HpDockMountE, 205.500000 ; -//-
docking_sphere = jump, HpDockMountF, 205.500000 ; -//-
docking_sphere = jump, HpDockMountG, 205.000000 ; -//-
hit_pts = 3500000 ; it must be good for caps :)
fuse = fuse_docking_ring, 0.000000, 1 ; death fuse with destroy root
explosion_arch = explosion_docking_ring ; simple explosion

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.