Renegade Map Rules Handler System [message #218008] |
Fri, 08 September 2006 06:24 |
vloktboky
Messages: 290 Registered: February 2003 Location: Kentucky, USA
Karma: 0
|
Recruit |
|
|
This is a sneak peek at a new system I wrote this past night for C&C Renegade. I call it the Map Rules Handler System and it basically allows a server owner to completely redefine the game rules on a per-map basis by doing nothing but editing an XML file.
These XML files share the same name as the map name and are loaded automatically by the system when their corresponding map is being loaded by the server. Currently, a server owner has the ability to change the following with a Map Rules XML (MRXML) file:
* Completely redefine the Purchase Menu from cost to preset for the following: beacon, enlisted soldiers (free characters), soldiers, and vehicles.
* Ability to manually enable/disable any slot in the Purchase Menu.
* Ability to change the string ID and texture used to represent any slot in the Purchase Menu once this feature is available.
* Enable/Disable the following per team on map start: base power, team radar, ability to purchase characters, and ability to purchase vehicles.
* Easily redefine the following initial properties of any object in the game: max health, max armor, shield type, skin type, damage points, and death points.
* Easily enable/disable the use of any object in the game.
Here's an example of what a typical MRXML file may look like: http://www.black-cell.net/~vloktboky/Template_Map_Rules.xml
Naturally almost all of the functionality is being controlled through the numerous BHS function definitions written into the latest distribution of the Scripts DLL library. I have not released this code yet for the purpose of ease of implementation for the community's use. Upon receiving a reply from other sources, I'll decide whether to withhold the release of the code and allow other parties to implement the code through their distributions or release it AS IS.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Renegade Map Rules Handler System [message #218451 is a reply to message #218008] |
Sun, 10 September 2006 05:46 |
|
If you add in a call to Update_PT_Data in the right places, all the data gets sent over the network to any client with the right bhs.dll.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
[Updated on: Sun, 10 September 2006 05:46] Report message to a moderator
|
|
|
Re: Renegade Map Rules Handler System [message #218473 is a reply to message #218451] |
Sun, 10 September 2006 08:47 |
|
LR01
Messages: 842 Registered: April 2006 Location: The Netherlands
Karma: 0
|
Colonel |
|
|
jonwil wrote on Sun, 10 September 2006 14:46 | If you add in a call to Update_PT_Data in the right places, all the data gets sent over the network to any client with the right bhs.dll.
|
10 of the 40 players?
Moding can be real Fun...
|
|
|
|
|
Re: Renegade Map Rules Handler System [message #218600 is a reply to message #218008] |
Sun, 10 September 2006 18:39 |
Matix
Messages: 128 Registered: July 2006
Karma: 0
|
Recruit |
|
|
This will totaly reshape renegade, if this is 100% functional, I can see all the *good* servers being modded some more everyday. But, I must ask, since it is server-side, and what crimson said about the files distributing accross the net changing client files, or whatever, will it cause lag?
|
|
|
|
|
|