As you see in the ObjectSpawnTemplates.con files, the way the scripting is structured where as there are several lines of code and then there are either spaces between the lines or rem *** .( BF1942 DC )
For example, this following set of codes I understand the spacing structure because each 'addTemplate' refers to a corrisponding code set ( as shown below )
ObjectTemplate.Active KnifeAxisComplex
ObjectTemplate.AddTemplate BRDM2SupplyDepot
ObjectTemplate.AddTemplate BRDM2VehicleSupplyDepot
ObjectTemplate.AddTemplate repairpoint
ObjectTemplate.Active BRDM2SupplyDepot
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
ObjectTemplate.Active BRDM2VehicleSupplyDepot
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
ObjectTemplate.Active repairpoint
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
So each template has a
space separating the code line groups.
I used the following code in my server and it crashed.
ObjectTemplate.Active Remington
ObjectTemplate.magSize 64
ObjectTemplate.numOfmag 8
ObjectTemplate.reloadtime 0.1
ObjectTemplate.roundOfFire 2
ObjectTemplate.setGoBackOnRecoil 1
Can you please let me know if there should be spaces between some certain lines in the above code ?
-------------------------------------------------
Does anyone know which script code type is read faster by the BF1942 engine ?
Would it be the style where there are spaces like the following ?
Space Style
ObjectTemplate.Active KnifeAxisComplex
ObjectTemplate.AddTemplate BRDM2SupplyDepot
ObjectTemplate.AddTemplate BRDM2VehicleSupplyDepot
ObjectTemplate.AddTemplate repairpoint
ObjectTemplate.Active BRDM2SupplyDepot
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
ObjectTemplate.Active BRDM2VehicleSupplyDepot
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
ObjectTemplate.Active repairpoint
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
Or
rem *** Style
ObjectTemplate.Active KnifeAxisComplex
ObjectTemplate.AddTemplate BRDM2SupplyDepot
ObjectTemplate.AddTemplate BRDM2VehicleSupplyDepot
ObjectTemplate.AddTemplate repairpoint
rem ***
ObjectTemplate.Active BRDM2SupplyDepot
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
rem ***
ObjectTemplate.Active BRDM2VehicleSupplyDepot
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
rem ***
ObjectTemplate.Active repairpoint
ObjectTemplate.radius 3
ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 1
rem ***
Thank you for your advice and keep up the good work on this helpful & informative website.