[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

Battlefield Modding Tutorials
It is currently Thu May 23, 2024 2:47 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: Fri Dec 15, 2006 10:35 am 
Offline
User avatar

Joined: Wed Nov 24, 2004 12:00 am
Posts: 257
Location: New York City
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

_________________
Image
Image
Do everything to the best of your ability and you will find yourself in the future doing everything better than you thought possible.
Anthony Voltano 7/7/4777
VXF VOLT


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 2:06 pm 
Offline

Joined: Mon Aug 16, 2004 12:00 am
Posts: 2120


Top
 Profile  
 
PostPosted: Fri Dec 15, 2006 2:55 pm 
Offline

Joined: Mon Nov 15, 2004 12:00 am
Posts: 696
Location: Germany, US Depot

_________________

--= Home of the Airwolf =--


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 91 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group