Ok, I want to make a trainer where it has specific functions that I need. I probably will only make it for myself. The functions I want to include are "debug_camera_load", "debug_camera_save", and "cheat_teleport_to_camera".
Now the problem is that when I type these commands in I don't put a "1" or "0" at end to make the command true or false. So how would I find the addresses of these commands if I can't look for a true/false number. Is there an invisible true/false function?
Also another problem I'm running into is the addresses of functions in Halo keep changing. So if it won't remain constant, how can I rely on it? Is there something I can do to make the address constant?
Thanks for your help...
Halo PC Trainer Help
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
1st.The camera thing changes multiple values not only 0 to 1.You have to take the painfull way then(value has changed etc)
2nd.If they values aren't stored in the game engine they are stored on the map so they depend on the map.I'm not sure on this but I think Pointers will work.Pointers show where the adress is located.
http://www.artmoney.ru/manual/english/dma.htm
2nd.If they values aren't stored in the game engine they are stored on the map so they depend on the map.I'm not sure on this but I think Pointers will work.Pointers show where the adress is located.
http://www.artmoney.ru/manual/english/dma.htm
...left for good
-
- Posts: 139
- Joined: Sun Jul 30, 2006 10:01 pm
Re: Halo PC Trainer Help
1.) You would just be better off coding those features on your own rather than trying to find them in the game itself. I'm assuming the debug cam load and save features will save and load all current shifts and rotations. Just add a buffer big enough to store them, then go between moving them from the buffer or camera array. For halo 2 the debug save/load features would look something like below...gamerkd15 wrote:Ok, I want to make a trainer where it has specific functions that I need. I probably will only make it for myself. The functions I want to include are "debug_camera_load", "debug_camera_save", and "cheat_teleport_to_camera".
Now the problem is that when I type these commands in I don't put a "1" or "0" at end to make the command true or false. So how would I find the addresses of these commands if I can't look for a true/false number. Is there an invisible true/false function?
Also another problem I'm running into is the addresses of functions in Halo keep changing. So if it won't remain constant, how can I rely on it? Is there something I can do to make the address constant?
Thanks for your help...
Code: Select all
camstate db 18h dup(0) ;buffer
;-----saves camera state-----
mov esi, 04E9CF0h ;camera array starting address
lea edi, [camstate] ;savestate buffer
mov ecx, 6 ;number of items to save in our array
rep movsd ;save each item (esi->edi)
;-----loads camera state-----
lea esi, [camstate] ;savestate buffer
mov edi, 04E9CF0h ;camera array starting address
mov ecx, 6 ;number of items to load into our array
rep movsd ;load each item (esi->edi)
Code: Select all
lea eax, [esi+E1Ch] ;grabs our static pointer
mov [eax+5Ch], 012345678h ;writes to our value (pointer+index)