Home » Renegade Discussions » Mod Forum » Server.dat patch
Re: Server.dat patch [message #443685 is a reply to message #443566] |
Tue, 08 February 2011 10:04 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma:
|
General (3 Stars) |
|
|
Backup 6 bytes at 3 addresses: 0x474CF0, 0x4616A0, 0x0472c95
To pause,
Write {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3} at 0x474CF0
Write {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3} at 0x4616A0
Write {0x90, 0x90, 0x90, 0x90, 0x90, 0x90} at 0x0472c95
To resume, just restore the backed up bytes.
If you are using the LuaPlugin, the following code should work:
function Pause_Game()
Stop_Game_Tmp = MemoryRead(0x474CF0, 6)
NoGameover_Tmp = MemoryRead(0x4616A0, 6)
Pause_Tmp = MemoryRead(0x0472c95, 6)
MemoryWrite(0x474CF0, {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3})
MemoryWrite(0x4616A0, {0xB8, 0x00, 0x00, 0x00, 0x00, 0xC3})
MemoryWrite(0x0472c95, {0x90, 0x90, 0x90, 0x90, 0x90, 0x90})
end
function Resume()
if NoGameover_Tmp == nil or Stop_Game_Tmp == nil or Pause_Tmp == nil then
return
end
MemoryWrite(0x474CF0, Stop_Game_Tmp)
MemoryWrite(0x4616A0, NoGameover_Tmp)
MemoryWrite(0x0472c95, Pause_Tmp)
end
|
|
|
|
|
Server.dat patch
By: PsuFan on Sat, 05 February 2011 09:08
|
|
|
Re: Server.dat patch
By: cAmpa on Sat, 05 February 2011 13:48
|
|
|
Re: Server.dat patch
|
|
|
Re: Server.dat patch
By: PsuFan on Sun, 06 February 2011 12:56
|
|
|
Re: Server.dat patch
By: Lone0001 on Sun, 06 February 2011 21:57
|
|
|
Re: Server.dat patch
By: halo2pac on Mon, 07 February 2011 14:28
|
|
|
Re: Server.dat patch
By: jnz on Tue, 08 February 2011 10:04
|
|
|
Re: Server.dat patch
By: PsuFan on Tue, 08 February 2011 19:56
|
|
|
Re: Server.dat patch
|
|
|
Re: Server.dat patch
By: jnz on Thu, 10 February 2011 00:09
|
|
|
Re: Server.dat patch
By: PsuFan on Thu, 10 February 2011 07:20
|
|
|
Re: Server.dat patch
|
|
|
Re: Server.dat patch
By: PsuFan on Thu, 10 February 2011 21:47
|
|
|
Re: Server.dat patch
|
|
|
Re: Server.dat patch
|
|
|
Re: Server.dat patch
By: PsuFan on Fri, 11 February 2011 16:44
|
|
|
Re: Server.dat patch
By: jnz on Sat, 12 February 2011 12:45
|
|
|
Re: Server.dat patch
|
|
|
Re: Server.dat patch
By: PsuFan on Tue, 15 February 2011 18:38
|
Goto Forum:
Current Time: Sun Nov 24 20:33:06 MST 2024
Total time taken to generate the page: 0.00880 seconds
|