How to Develop for Pocket Warriors
There are several ways in which you can develop code or data modules for Pocket Warriors:
Source Control (SVN)
This is the most direct way you can contribute to Pocket Warriors. You can check out the files from the subversion (SVN) repository and modify them directly. You can use a free program, such as TortoiseSVN (http://tortoisesvn.net/) to do so.
Please lock the files when you check them out: SC2MAP files don't lend themselves well to being merged, like TXT source files sometimes can. You should check out the file exclusively before making any modifications. Help yourself out, and don't lose changes because you failed to lock the file.
Please use the file for the minimum amount of time possible: There are several people working on this project, so please be cooperative and lock the file only briefly when necessary. This may involve using one of the other methods below, and then locking the file to add your changes to the current map, and then immediately unlocking it. The exception to this real is the lead developer, who may lock the map for extended periods of time. He/she will attempt to let people know when the map will again be made available for check out, and what he/she is changing.
Merge Changes
This method works really well for data elements, and moderately well for triggers. The idea is that you create the changes in another map, and copy/paste the changes into the main map. Data elements lend themselves pretty well to being copy-pasted, but triggers might have other code dependencies that must be referenced. It may work to make the changes to the most recent version of the map, then copy-paste the changes into the map when it is unlocked. This works provided the dependencies are not changed by the person who has the files checked out. Check with the person who is using the files to determine what they are changing.
Raw Code
This method works best for independent functions. Raw galaxy code can be easily added to the map without modifying much.
Comments