Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home3/tedson/public_html/metalshard/header.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 26
Pocket PC Forum page 1 topic 279 at MetalShard
MetalShard, inc.
Pocket PC and Windows Games and Software

Pocket War (Game) Forum




This is a message in the Pocket War (Game) forum. If you would like to reply to this subject then fill in your reply in the box at the bottom of the page and click the Reply button. To get back to the main page for this forum click the Topics button.

Subject - Modifying stock units
Pages: [1], 2 Next Page Last PageLast Page Messages 1 - 8 of 9
Posted By: Anonymous (2003-08-21 15:06:20)

How do I modify stock units like the tank?

Let's say I edit the armor of the tank to 30,
Now I have a new units.js file, but I don't know what to do to have the game recognize it and overwrite the default unit descriptions.

If I edit the units.js script directly in script.pak only, I get errors.
If I copy the units.js section and place it as a separate file in MODS, it is ignored. Similarily if I put that file in the scripts directory.

So now I have a new units.js file, but I don't know what to do to have the game recognize it and overwrite the default unit descriptions.
Posted By: Tully (2003-08-21 15:32:47)

The script.pak file cant be modified directly (that was to stop cheating in multiplayer.) You can override the base units the same way you add newone.

What you have to do is build a new script that looks like the ones created for mods. In that script override the createUnits methods like the mods do. In your override call the old createunits method. Then check the unit that comes back and if it is a tank modify it.

You can also do all kinds of things like only modify the tanks for one player and not the other, or change the images for one player, etc.

If that went to fast let me know and I can try and post some code here.
Posted By: Anonymous (2003-09-05 09:09:59)

Great game. Sent off my order yesterday for full game. I too would like to modify a unit. Any chance of an example ?
Posted By: Tully (2003-09-05 14:12:48)

Yes, download Adam Chen's mod and take a look at the files in it. It modifies the standard units.
Posted By: Matt G. (2003-09-10 21:36:48)

what this site really needs is a section that makes it really easy for people to put their mods up. I know I'm going to make some and I would like to share them with other pocketwar players
Posted By: Matt G. (2003-09-10 21:58:39)

For the moment zip them up and post a message to the forums with a description of the mod, and attach the mod to the post.

I'll see about adding a section to the download page or adding in a whole new mod page.

I still need to work on the multiplayer game pages as well...

If only I had three more hours in each day.
Posted By: Matt G. (2003-09-11 15:19:23)

I must have been sleep posting last night. I replied to myself. ;)

Your screen name changed again Tully.
Posted By: Tully (2003-09-11 16:04:34)

When I sign new people up, I masquerade as them for a second. Sometimes I forget to log out and log back in as me.
Pages: [1], 2 Next Page Last PageLast Page Messages 1 - 8 of 9




Reply


Attach File (zip and pwg files only)


you must be logged in to post
 
Copyright 2003-2010 MetalShard, inc. Games for Windows and Pocket PCs pocket war forums, automation software freegames