Skip to content

Commit

Permalink
Fixed some scriptable objects are not being registered on dedicated s…
Browse files Browse the repository at this point in the history
…erver (closes #517)

Normally, a number of objects (more particularly, scriptable objects)
are being registered in class_registrator.script, but on dedicated
server there's no scripts and engine registers these objects manually.

Actually, this is bad, because if you change something
class_registrator.script, you can forget to change the same in the
engine...

This is what happened to GSC, when they added new objects in scripts,
but forgot to change the engine.
  • Loading branch information
Xottab-DUTY committed Nov 18, 2019
1 parent 29d2153 commit b3f45e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xrServerEntities/object_factory_register.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ void CObjectFactory::register_classes()
ADD(CElectricBall, CSE_ALifeItemArtefact, TEXT2CLSID("SCRPTART"), "artefact_s");
// ADD(CtaGameArtefact ,CSE_ALifeItemArtefact ,TEXT2CLSID("AF_CTA") ,"ctaartefact_s");
ADD(CTorch, CSE_ALifeItemTorch, TEXT2CLSID("TORCH_S"), "device_torch_s");
ADD(CHangingLamp, CSE_ALifeObjectHangingLamp, TEXT2CLSID("SO_HLAMP"), "hlamp_s");
ADD(CStalkerOutfit, CSE_ALifeItemCustomOutfit, TEXT2CLSID("E_STLK"), "equ_stalker_s");
ADD(CScope, CSE_ALifeItem, TEXT2CLSID("WP_SCOPE"), "wpn_scope_s");
ADD(CWeaponAK74, CSE_ALifeItemWeaponMagazinedWGL, TEXT2CLSID("WP_AK74"), "wpn_ak74_s");
Expand All @@ -438,6 +439,7 @@ void CObjectFactory::register_classes()
ADD(CMincer, CSE_ALifeAnomalousZone, TEXT2CLSID("ZS_GALAN"), "zone_galant_s");
ADD(CMincer, CSE_ALifeAnomalousZone, TEXT2CLSID("ZS_MINCE"), "zone_mincer_s");
ADD(CAmebaZone, CSE_ALifeZoneVisual , TEXT2CLSID("ZS_AMEBA"), "zone_ameba_s");
ADD(CRadioactiveZone, CSE_ALifeAnomalousZone, TEXT2CLSID("ZS_RADIO"), "zone_radio_s");
ADD(CNoGravityZone, CSE_ALifeAnomalousZone, TEXT2CLSID("ZS_NGRAV"), "zone_nograv_s");
ADD(CSpaceRestrictor, CSE_ALifeSpaceRestrictor, TEXT2CLSID("SPC_RS_S"), "script_restr");
#endif // NO_XR_GAME
Expand Down

0 comments on commit b3f45e1

Please sign in to comment.