
Originally Posted by
Sublimity
You can change the 64 to FF, which means 255
Flash works with signed bytes, numbers and integers, the only value that is unsigned is a uint. Signed byte means that the number can either be negative or positive.
Two's complement with the Most Significant Bit (MSB) being -128. Just like shown below:
Code:
MSB
-128 64 32 16 8 4 2 1
0 1 1 1 1 1 1 1 = 7f = 127
1 1 1 1 1 1 1 1 = ff = -1
1 0 0 0 0 0 0 0 = 80 = -128
The only way around this is if there are values that are indexed as integers. Then they can be found in the constant pool and are easy to use with "2D XX" instead of "24 XX". But i could not find any other value in this game other then short which uses more than two bytes. This makes 127 the highest value you can push onto the stack.
Anyway, it is not even necessary to change the initial value. You should change the function that makes the value decrease so that it does not decrease. This needs a little more knowledge of AS2 or AS3 depending on the game but is definitely worth it.
I played around a little bit and here is what i changed (GAME_ENGINE_1
:
Code:
ORIGINAL:
public function updateMan()
{
var _loc_4:* = undefined;
var _loc_5:Boolean = false;
if (this.fuelPot > 0)
{
this.fuelPot = this.fuelPot - 2;
this.fuel = this.fuel + 2;
}
else
{
this.fuelPot = 0;
}
this.r.outText.text = "" + this.fuelPot;
if (this.fuel > 100)
{
this.fuelPot = 0;
this.fuel = 100;
}
CHANGED:
public function updateMan()
{
var _loc_4:* = undefined;
var _loc_5:Boolean = false;
if (this.fuelPot > 0)
{
this.fuelPot = this.fuelPot - 0;
this.fuel = this.fuel + 127;
}
else
{
this.fuelPot = 100;
}
this.r.outText.text = "" + this.fuelPot;
if (this.fuel > 100)
{
this.fuelPot = 100;
this.fuel = 100;
}
I don't even know if all the changes were needed, you can play around with this so that your fuel decrease slower. That would make the game still funny as it is boring if you can fly without the need to fuel up. Then the spikes will still get you (got me at 19,671) so changing the spikes speed is another choice which i did not look up but slowing it down could also work.
Well, this game is pretty boring hacked, overdoing it with the hacks like unlimited fuel totally takes the fun out of it.
Bla, bla, bla, yes i stop now