[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS :: View topic - SSM Scripting Structure Question
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

SSM Scripting Structure Question
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=2520
Page 1 of 1

Author:  VOLTANO [ Fri Dec 15, 2006 10:35 am ]
Post subject:  SSM Scripting Structure Question

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. :oops:

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. :D

Author:  Why Two Kay [ Fri Dec 15, 2006 2:06 pm ]
Post subject: 


Author:  Zaitsef [ Fri Dec 15, 2006 2:55 pm ]
Post subject:  Re: SSM Scripting Structure Question


Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/