This topic is for discussion of map #11571: The Randomizer
(https://knucklecracker.com/creeperworld3/queryMaps.php?query=thumbnailid&id=11571)
Author: kaiden
Size: 224x168
Desc:
Embrace infinity. This mission is different every time you play it, and even adds/randomizes extra stuff that's not present in the DMD. The scripts are designed to work with any map as well, so use in conjunction with the DMD terrain generation for truly random missions. Instructions on how to add the randomizer script to any map can be found in the forums thread of this map (Click the Forum button for this map to access it).
Want to add the randomizer scripts to any map? Then follow these instructions:
1. Go to C: > Users > PC > Documents > creeperworld3 > colonialspace > maps > 11500
2. Copy the file named 11571.cw3
3. Go back to the creeperworld3 folder, and open the WorldEditor folder
4. Create a new folder there, and preferably name it The Randomizer, and paste the 11571.cw3 file you have copied there. Rename this file you just pasted to save.cw3.
5. Once you have done the above steps, open Creeper World 3 if it isn't already and go to the Projects sector and the new map you just made should show up there. This should make the script folders accessible.
6. Go back to the The Randomizer folder. You should see a new folder in there named "scripts" which contains both scripts needed for the randomizer to work. If it doesn't show up, refresh the file exploration app you're using and it should show. You now have access to the scripts and shouldn't need to repeat steps 1-6 unless you lose these files.
7. Copy and paste both scripts (They should be named Randomizer and Setup). You can shift click both files to select and copy multiple files at once.
8. Go back to the World Editor folder, open the folder of the map you wish to add these scripts to, then open the scripts folder contained within. Paste both script files (Randomizer and Setup) into that folder.
9. Open the map in the Projects sector of Creeper World 3, and place a CRPLcore unit on the map. Add both scripts to that CRPLcore, and you should be done! Preferably also disable the following attributes of the CRPLcore: Take Map Space, Create Power Zone, Supports Digitalis, and Nullifier Damages. Preferably leave Counts for Victory enabled to prevent the map from auto winning as soon as it starts, and the CRPLcore will handle itself once it's done anyways. Adding an image to the CRPLcore isn't necessary for it to function.
Please do not upload maps made with the randomizer scripts to colonial space, as I do not wish to saturate the mapmaking space with randomly generated maps, and want to give user-created maps a chance to shine. Taking out the script and adding them to other maps is intended to be for personal enjoyment only when you want to mess around with randomized missions.
The randomizer cannot generate terrain as doing so via CRPL API is extremely harsh on performance. If you want random terrain, use the DMD to provide some. To add DMD generated maps to your projects, click on the "Edit DMD Map" tab (you can also adjust parameters of the DMD map here), then click on the "Create Project from Map" button and give it a name. After that, repeat steps 7-9 to add the scripts to the map.
You can adjust nearly every parameter of the randomizer in the variables of the CRPLcore. If you're confused on what each variable is, you can open the Randomizer file with a text editing app (such as Notepad) and read the comments next to each variable. Tweaking values from here might also be easier, just remember to compile the script each time you change values via this method!