| View previous topic :: View next topic |
| Author |
Message |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Mar 07, 2008 4:27 am Post subject: |
|
|
| mOnSoOn wrote: | Lol?
I thought your address updating method is different, this method is really bad... You really need to think about which errors can cause through this scanning ( not compiling errors.. ).
anyway.. Why don't you make a function that update addresses? Why do you have to write it again and again?
Anyway, the address updating method will fail next version or more 2 versions. |
Why will it fail? I don't like try/except, but if I point to an empty memory, will it return null or an error?
I can also scan the main module size, instead of specific memory.
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Fri Mar 07, 2008 9:11 am Post subject: |
|
|
| BlackD wrote: | Did I do this right?
| Code: |
WORD OnOff[2] = { 0x00, 0x28, 0x23 }; //<-------
while ( !bWantQuit )
{
if (GetAsyncKeyState(VK_F8))
{
InstantRegainON = !InstantRegainON;
*(BYTE*)HPAddress = OnOff[InstantRegainON];
*(BYTE*)MPAddress = OnOff[InstantRegainON];
Sleep(300);
}
|
|
No, your WORD array's size is defined "2" which means you cannot have the third. Also InstantRegainON Bool can only return 0 and 1 so you cant get the third one even if you wanted to (because the OnOff[InstantRegainON]) you'll have to use a different method of turning it on.
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Mar 07, 2008 9:18 am Post subject: |
|
|
| lurc wrote: | | BlackD wrote: | Did I do this right?
| Code: |
WORD OnOff[2] = { 0x00, 0x28, 0x23 }; //<-------
while ( !bWantQuit )
{
if (GetAsyncKeyState(VK_F8))
{
InstantRegainON = !InstantRegainON;
*(BYTE*)HPAddress = OnOff[InstantRegainON];
*(BYTE*)MPAddress = OnOff[InstantRegainON];
Sleep(300);
}
|
|
No, your WORD array's size is defined "2" which means you cannot have the third. Also InstantRegainON Bool can only return 0 and 1 so you cant get the third one even if you wanted to (because the OnOff[InstantRegainON]) you'll have to use a different method of turning it on. |
Its wrong, but use xor, (see flyte's source) its better.
Edit: Flyte, why did you used unsigned char instead of byte? its exacly the same...
Last edited by Symbol on Fri Mar 07, 2008 9:47 am; edited 1 time in total |
|
| Back to top |
|
 |
DebugMe Newbie cheater
Reputation: 0
Joined: 29 May 2007 Posts: 20
|
Posted: Fri Mar 07, 2008 9:36 am Post subject: |
|
|
| Question to Flyte: why did you use __declspec(noinline)/__declspec(noreturn), couldn't you just used "void"?
|
|
| Back to top |
|
 |
GMZorita Grandmaster Cheater Supreme
Reputation: 0
Joined: 21 Mar 2007 Posts: 1361
|
Posted: Fri Mar 07, 2008 1:34 pm Post subject: |
|
|
| DebugMe wrote: | | Question to Flyte: why did you use __declspec(noinline)/__declspec(noreturn), couldn't you just used "void"? |
Cuz it doesnt have to be called it will always be "enabled"
_________________
Gone |
|
| Back to top |
|
 |
BlackD Newbie cheater
Reputation: 0
Joined: 22 Apr 2007 Posts: 12
|
Posted: Fri Mar 07, 2008 4:00 pm Post subject: |
|
|
| I tried to compile Flyte's source just to see what would happen and it compiles and all, but when i press the button in game it just goes to that blackhole error. Shouldn't it at least work for a little then dc?
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Mar 07, 2008 11:24 pm Post subject: |
|
|
| Symbol wrote: | | Edit: Flyte, why did you used unsigned char instead of byte? its exacly the same... |
BYTE is a #define that requires a header, get rid of the header... OH SHI- ERRORS.
| DebugMe wrote: | | Question to Flyte: why did you use __declspec(noinline)/__declspec(noreturn), couldn't you just used "void"? |
__declspec(noinline): Causes the calling function to be smaller, and the function itself a tad bit faster (but bigger).
__declspec(noreturn): Tells the compiler the function will never ever return, so the standard epilogue isn't generated.
|
|
| Back to top |
|
 |
|