Knuckle Cracker

Knuckle Cracker => Support => Topic started by: kreeg6238 on April 11, 2013, 06:09:57 PM

Title: CW2 Bug: Max Anti-Creeper Turns into Normal Creeper
Post by: kreeg6238 on April 11, 2013, 06:09:57 PM
In any game where you are using anti-creeper makers and you are pooling the anti-creeper, once the anti-creeper hits maximum density (around 2100M) it will suddenly turn into standard creeper.

Note: This has only happened during custom maps where ore and anti-creeper emitters are very abundant.

Game Version: 0497

Title: Re: CW2 Bug: Max Anti-Creeper Turns into Normal Creeper
Post by: Grauniad on April 11, 2013, 06:20:20 PM
You may call this a design feature rather than a bug. The opposite is also true. Ultra-dense creeper turns into Anti-Creeper. The precise number is 2147M of either Creeper or anti-Creeper to invert.
Title: Re: CW2 Bug: Max Anti-Creeper Turns into Normal Creeper
Post by: asmussen on April 11, 2013, 08:22:45 PM
You COULD call it a design feature, but only if it is actually intended for dense anti-creeper to suddenly convert to regular creeper. It's obviously a consequence of using a single signed 32 bit variable to hold the amount of creeper in any given location, and when the value overflows the bounds of the variable it results in a sign change. With code to handle the overflows, it could be made to cap out at the maximum value instead of continuing to increase (Or decrease) the value. Whether or not the existing behavior is a bug or a feature would depend on whether it is deliberate, or just an unintended consequence of the way the game state is represented in memory.
Title: Re: CW2 Bug: Max Anti-Creeper Turns into Normal Creeper
Post by: knucracker on April 11, 2013, 09:27:04 PM
It's intentional that I don't prevent the over/under flow.  I used to refer to it as Creeper 'fusion'.
Title: Re: CW2 Bug: Max Anti-Creeper Turns into Normal Creeper
Post by: ShadowDragon7015 on April 11, 2013, 11:04:20 PM
It makes things interesting, and as a map maker i think it allows for more possibilities.