self modifying code?

Aug 16, 2009 at 1:38 AM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
why the heck doesn't this work?
basically, I want the game to change its code when I call a tsc event but it always crashes. Is this just impossible, or is there some work around?

if nobody helps me nobody gets a prize.

(I gave no code, cuz i didn't think it was necessary. if you want something to toy around with, go to 419cb1 and put mov [419cb0],55 if you can get that not to crash, kudos.)
 
Aug 16, 2009 at 2:10 AM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
wewt, nevermind.
well, in case anybody wants to know, you put in a pointer to an editable address, and change the edity. works like a charm.

next question, anybody know of some free space that I could use without screwing up the game? I'm currently using the health, which is less then optimal.
 
Aug 16, 2009 at 2:43 PM
Senior Member
"This is the greatest handgun ever made! You have to ask yourself, do I feel lucky?"
Join Date: May 4, 2006
Location: Florida
Posts: 115
Age: 44
If you're using either CE or SW you have all the space where the map data used to be free to place code.
 
Aug 19, 2009 at 1:51 AM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
cool, thank you.
 
Back
Top