advanced question
-migrated-
advanced question Posted on: 11/20/2011 1:47pm
Quote Post
Hi  (broken image removed)
I have this code

Code: [Select]
//5e c2 01
_as3_findproperty var
//24 00
_as3_pushbyte 0
//68 c2 01
_as3_initproperty var

how can I push a number of two bytes to the variable without corrupting the file?
Re: advanced question Posted on: 11/20/2011 2:14pm
Quote Post
Never let a computer tell me shit.
you will need to find an extra byte somewhere.



I use this AoB tool to make all the AoBs I post. Try the online version if you dont feel like downloading it.
"Obviously, windows are central to Windows. They are so important that they named the operating system after them. But what is a window?"

Re: advanced question Posted on: 11/20/2011 2:44pm
Quote Post
Well, as the name says pushbyte only lets you push one byte. If you wanna push more than one byte you're gonna need to use pushint or pushshort.
And you'll also need to find an extra byte somewhere so it doesn't fuck up the flow of things
Re: advanced question Posted on: 11/20/2011 4:15pm
Quote Post
thank u,
I have other question please.

if I have this:
Code: [Select]
//2d 06
_as3_pushint 5153276

how can I reach that value and change it?
Re: advanced question Posted on: 11/20/2011 6:24pm
Quote Post
That number is 3 bytes long, 0x4EA1FC, so you're gonna need to find 2 extra bytes there
Re: advanced question Posted on: 11/20/2011 7:09pm
Quote Post
where can I find extra bytes here,

Code: [Select]
//5e c2 01
_as3_findproperty var
//24 00
_as3_pushbyte 0
//68 c2 01
_as3_initproperty var
//62 07
_as3_getlocal <7>
//12 18 03 00
_as3_iffalse offset: 792
//62 07
_as3_getlocal <7>
//12 f5 03 00
_as3_iffalse offset: 1013
//10 4e ff ff
_as3_jump offset: -178
//09
_as3_label
//62 04
_as3_getlocal <4>
//62 07
_as3_getlocal <7>
//2a
_as3_dup
//11 03 00 00
_as3_iftrue offset: 3
//29
_as3_pop  
Re: advanced question Posted on: 11/20/2011 7:29pm
Quote Post
Never let a computer tell me shit.
maybe somewhere outside the loop



I use this AoB tool to make all the AoBs I post. Try the online version if you dont feel like downloading it.
"Obviously, windows are central to Windows. They are so important that they named the operating system after them. But what is a window?"

Re: advanced question Posted on: 11/20/2011 8:35pm
Quote Post
I guess it depends on what you wanna do..
If you don't need those ifs you can use them to get extra bytes
Re: advanced question Posted on: 11/21/2011 3:42pm
Quote Post
I have this instruction in the same file
Code: [Select]
//2d 06
_as3_pushint 5153276

and want to replace it with the code, so I won't  need extra bytes

24 00 -> 2d 06
Code: [Select]
//5e c2 01
_as3_findproperty var
//2d 06
_as3_pushint 5153276
//68 c2 01
_as3_initproperty var

but I don't know how to change the value indexed by 06
Re: advanced question Posted on: 11/21/2011 5:03pm
Quote Post
Wait, I'm confused now. What exactly are you trying to do?
Re: advanced question Posted on: 11/21/2011 5:34pm
Quote Post
AFAIK there is no way to change the value of an integer in the constant pool while the game is running. You can, however, change the value in SWF Reader and then use this method.