Knuckle Cracker

Creeper World 3 => Custom Map Discussion => Colonial Space Map Discussion => Topic started by: AutoPost on March 08, 2019, 10:43:40 PM

Title: Custom Map #7167: Boosted Breeder. By: Qople
Post by: AutoPost on March 08, 2019, 10:43:40 PM
This topic is for discussion of map #7167: Boosted Breeder
(http://knucklecracker.com/creeperworld3/queryMaps.php?query=thumbnailid&id=7167)

Author: Qople
Size: 180x180

Desc:
IMPORTANT NOTE: on larger maps like this one, breeder can cause heavy lag. But don't worry! If your game is slowing down, press CTRL+L to open lag settings for the breeder (this has no effect on the total amount of anti creeper it breeds onto the map, only the way the script distributes it).
Title: Re: Custom Map #7167: Boosted Breeder. By: Qople
Post by: GuiZe on March 12, 2019, 09:03:03 AM
Sorry to ask this, but what does the breeder do exactly ? I gave it packets and AC, but I don't really understand what its purpose is.
Also, it seems that when we save game and come back later, the game cannot be unpaused and has to be reset. Anyone else experiencing this?
Title: Re: Custom Map #7167: Boosted Breeder. By: Qople
Post by: cornucanis on March 12, 2019, 02:52:07 PM
Quote from: GuiZe on March 12, 2019, 09:03:03 AM
Sorry to ask this, but what does the breeder do exactly ? I gave it packets and AC, but I don't really understand what its purpose is.
Also, it seems that when we save game and come back later, the game cannot be unpaused and has to be reset. Anyone else experiencing this?

It looks like it adds AC to the map, but only on cells which already have AC (specifically between 1 and 5 AC.) So you have to spray some AC with your sprayers to get it started.

For Qople, if you check the forums:

I took a look at your scripts and there are a few issues you may wish to address. First, as GuiZe mentioned, you have a bug which causes the map to become broken when saved and loaded. This is caused by using the Delay command within a loop. Specifically, you do this within your Flash script. See this post (http://knucklecracker.com/forums/index.php?topic=16703.msg120913#msg120913) for more information.

Also, the parameter for your while loop is structured incorrectly. You use "<-y MapHeight gte" to check the current Y coordinate. This will never resolve to true since you default Y to 1 less than the MapHeight and decrement it from there. Given that you decrement the Y coordinate I would suggest using ""<-y 0 gte" to check that your Y coordinate is still within range.

Next, you don't have enough "and"s included to ensure that all of your conditions are checked. As-is, you only confirm that the unit has AC ammo and that there is enough AC ammo to satisfy the requirement. I'm not 100% sure what the logic of the ammo requirement is, but I'll just trust that you have that part under control. In any case, only the check for the AC ammo is processed. You need 3 more "and"s to check the normal ammo, check that normal ammo is present, and then finally check that the coordinates are within range.

Finally, I'm not sure why you're putting the ammo counts on the stack twice when checking the condition for your while loop. You only use the ammo count once for the comparison, and you've already confirmed that the unit actually has ammo before ever calling the function. Adding the ammo counts twice seems redundant, so you can probably remove both of the extra ammo checks in that condition meaning you'll only have to add a single "and" rather than three.

Let me know if any of that was confusing, or if you have any follow-up questions! I see that you're in the discord, but I'm not sure how active you are there. If you tag me in the discord I should be able to get back to you as soon as possible. Or, of course, you can just leave me a reply here!