Integer overflow in emitter strength

Started by Lord_Farin, July 09, 2011, 11:19:49 AM

Previous topic - Next topic

Lord_Farin

In the impossible code maps forum, I spotted the map 'omnomnomnomnomn' which has 14 emitters, with a total strength exceeding the Java constant Integer.MAX_VALUE. This yields a negative average emitter strength. Just thought I should notify you.
Behold, Nexus! Looketh skywards, for thy obliteration thence nighs, my foul enemy!

Echo51

Hmm? the game is coded in flash, so i don't get how it would overflow the java constant.

also, i don't see any overflow happening in that specific map?
Join the chat! :D
- The only echo present here...

mthw2vc

This is a known issue that occurs when the total intensity of all emitters on a code map exceeds 2 147 483 647. There are other scenarios in which you can overflow the data structure as well.

Lord_Farin

Quote from: Echo51 on July 09, 2011, 12:10:24 PM
Hmm? the game is coded in flash, so i don't get how it would overflow the java constant.
I am sorry for the mixup. Probably Flash has the same maximal integer value.
Behold, Nexus! Looketh skywards, for thy obliteration thence nighs, my foul enemy!

knucracker

This has been fixed in the current beta build and won't be a problem in the next game drop.
It is indeed an overflow of a signed integer type (and 'int' in AS3).

cclloyd9785

Are there any of these maps that are actually possible?  As in no surface emitter like the one he just posted?

I wanna kill a lot o creeper :P

UpperKEES

Almost all maps are possible. Just have a look at the Code Map board.
My CW1 maps: downloads - overview
My CW2 maps: downloads - overview