FAQ Search Memberlist Usergroups Register Profile Log in to check your private messages Log in Napoleon Total War V1.0.0.0 (GM and more)
Cheat Engine Forum Index -> Auto Assemble scripts View previous topic :: View next topic Author Message Recifense I post too much Reputation: 122 Joined: 17 Mar 2008 Posts: 2555 Location: Recife - Pernambuco - Brazil Posted: Mon Mar 22, 2010 6:18 am Post subject: Napoleon Total War V1.0.0.0 (GM and more) Hi guys, Here is my contribution for "Napoleon: Total War" Version 1.0.0.0. The script contains the following features: - God Mode; (*) - Unlimited Move Points; - Minimum Treasure; (*) Ground combat: One or two units can still die during combat (eg: Units of a Cavalry troop). Sea Combat: Works fine. It is for CE 5.6 It took me a lot of time, but here is the script: Code: { =========================================== Napol eon: Tot al War Game Ver si on : 1. 0. 0. 0 ( Bui l d 1372. 22494) Scr i pt Ver si on: 1. 0 CE Ver si on : 5. 6 GodMode, Gol d, MP 21- Mar - 2010 =========================================== } [ ENABLE] / / ========================================= / / Check i f scr i pt i s compat i bl e t o t hi s game ver si on / / I f f al se t he scr i pt wi l l not be l oaded asser t ( Napol eon. exe+2e72d0, 8b 01 52 8b 90 04 01 00 00 f f d2) asser t ( Napol eon. exe+2e7395, 8b 01 8b 7d 08 8b 90 04 01 00 00 57 f f d2) asser t ( Napol eon. exe+25b618, e8 73 00 00 00) asser t ( Napol eon. exe+25b690, 51 8b 8f 8c 03 00 00) asser t ( Napol eon. exe+270f 39, 01 88 f 4 1d 00 00) asser t ( Napol eon. exe+2756f 2, 8b 4f 40 db 47 40) asser t ( Napol eon. exe+62d038, 8b 87 a4 02 00 00) asser t ( Napol eon. exe+701ee4, 8b 48 6c 39 f 9) asser t ( Napol eon. exe+5b166f , 8b 46 1c 39 c7) asser t ( Napol eon. exe+61b696, 8b 8a a0 04 00 00) / / =========================================
al l oc( MyCode, 1024) / / ========================================= / / Decl ar at i on sect i on l abel ( _GodModeT) l abel ( _BackGMT) l abel ( _Exi t GMT) l abel ( _GodM0) l abel ( _GodM1) l abel ( _GodModeC) l abel ( _BackGMC) l abel ( _Exi t GMC) l abel ( _GodMC0) l abel ( _GodMC1) l abel ( _GodModeS) Cheat Engine :: View topic - Napoleon Total War V1.0.0.0 (GM and more) http://forum.cheatengine.org/viewtopic.php?t=496733 1 of 6 10/21/2014 3:35 PM l abel ( _BackGMS) l abel ( _Exi t GMS) l abel ( _GodMS0) l abel ( _GodModeS1) l abel ( _BackGMS1) l abel ( _Exi t GMS1) l abel ( _MonDamage) l abel ( _BackMD) l abel ( _Exi t MD) l abel ( _MonHul l ) l abel ( _BackMH) l abel ( _Exi t MH) l abel ( _MonGMP) l abel ( _BackGMP) l abel ( _I nf MPT) l abel ( _BackI MPT) l abel ( _Exi t I MPT) l abel ( _I nf MPA) l abel ( _BackI MPA) l abel ( _Exi t I MPA) l abel ( _MonGol d) l abel ( _BackMG) l abel ( _Exi t MG) l abel ( i Enabl eGM) l abel ( i Enabl eI MP) l abel ( i Enabl eMG) l abel ( i Mi nPar t ) l abel ( i Mi nGol d) l abel ( pCur GMP) l abel ( pGol d) r egi st er symbol ( MyCode) r egi st er symbol ( i Enabl eGM) r egi st er symbol ( i Enabl eI MP) r egi st er symbol ( i Enabl eMG) r egi st er symbol ( i Mi nGol d) r egi st er symbol ( pCur GMP) r egi st er symbol ( pGol d) / / ========================================= MyCode: / / ========================================= / / Tr oops ( ECX = pUni t ) _GodModeT: cmp dwor d pt r [ i Enabl eGM] , 0 j e _GodM1 / / J ump i f f eat ur e i s di sabl ed mov eax, [ ecx+000001f 0] / / Get f i r st l evel poi nt er ( pTr oopI nf o) or eax, eax / / Val i d? j z _GodM0 / / J ump i f f al se mov eax, [ eax+000001ec] / / Get second l evel poi nt er ( pOwner I nf o) cmp dwor d pt r [ eax+0000023c] , 0 / / Pl ayer s uni t ? j e _Exi t GMT / / J ump i f t r ue _GodM0: / / Shi p Cr ew <- - - - mov eax, [ ecx+000001f 8] / / Get f i r st l evel poi nt er or eax, eax / / Val i d? j z _GodM1 / / J ump i f f al se cmp byt e pt r [ eax+00001c84] , 0 / / Pl ayer s uni t ? j e _Exi t GMT / / J ump i f t r ue
_GodM1: mov eax, [ ecx] / / Or i gi nal code push edx / / Or i gi nal code mov edx, [ eax+00000104] / / Or i gi nal code cal l edx / / Or i gi nal code
_Exi t GMT: j mp _BackGMT / / Back t o mai n code / / ========================================= / / Cannons _GodModeC: cmp dwor d pt r [ i Enabl eGM] , 0 j e _GodMC1 / / J ump i f f eat ur e i s di sabl ed mov eax, [ ecx+000001f 0] / / Get f i r st l evel poi nt er or eax, eax / / Val i d? j z _GodMC0 / / J ump i f f al se mov eax, [ eax+000001ec] / / Get second l evel poi nt er cmp dwor d pt r [ eax+04] , 1 / / Pl ayer s uni t ? j e _Exi t GMC / / J ump i f t r ue _GodMC0: mov eax, [ ecx+000001f 8] / / Get second l evel poi nt er or eax, eax / / Val i d? j z _GodMC1 / / J ump i f f al se
cmp byt e pt r [ eax+00001c84] , 0 / / Pl ayer s uni t ? j e _Exi t GMC / / J ump i f t r ue _GodMC1: mov eax, [ ecx] / / Or i gi nal code mov edi , [ ebp+08] / / Or i gi nal code mov edx, [ eax+00000104] / / Or i gi nal code push edi / / Or i gi nal code cal l edx / / Or i gi nal code Cheat Engine :: View topic - Napoleon Total War V1.0.0.0 (GM and more) http://forum.cheatengine.org/viewtopic.php?t=496733 2 of 6 10/21/2014 3:35 PM
_Exi t GMC: j mp _BackGMC / / Back t o mai n code / / ========================================= / / Shi p Cr ew _GodModeS: cmp dwor d pt r [ i Enabl eGM] , 0 j e _GodMS0 / / J ump i f f eat ur e i s di sabl ed cmp byt e pt r [ esi +00001c84] , 0 / / Pl ayer s uni t ? j e _Exi t GMS / / J ump i f t r ue _GodMS0: cal l Napol eon. exe+25b690 / / Or i gi nal code
_Exi t GMS: j mp _BackGMS / / Back t o mai n code / / ========================================= / / Shi p Cr ew _GodModeS1: cmp dwor d pt r [ i Enabl eGM] , 0 j e _Exi t GMS1 / / J ump i f f eat ur e i s di sabl ed or eax, eax / / Val i d poi nt er j z _Exi t GMS1 / / J ump i f f al se
cmp byt e pt r [ eax+00001c84] , 0 / / Pl ayer s uni t ? j ne _Exi t GMS1 / / J ump i f f al se r et / / Ret ur n t o mai n code / / - - - - - _Exi t GMS1: push ecx / / Or i gi nal code mov ecx, [ edi +0000038c] / / Or i gi nal code j mp _BackGMS1 / / Back t o mai n code / / ========================================= / / Shi p _MonDamage: cmp dwor d pt r [ i Enabl eGM] , 0 j e _Exi t MD / / J ump i f f eat ur e i s di sabl ed cmp byt e pt r [ eax+00001c84] , 0 / / Pl ayer s uni t ? j ne _Exi t MD / / J ump i f f al se xor ecx, ecx / / Make Damage = 0 _Exi t MD: add [ eax+00001df 4] , ecx / / Or i gi nal code j mp _BackMD / / Back t o mai n code / / ========================================= / / Shi p _MonHul l : cmp dwor d pt r [ i Enabl eGM] , 0 j e _Exi t MH / / J ump i f f eat ur e i s di sabl ed mov ecx, [ edi +24] cmp byt e pt r [ ecx+00001c84] , 0 / / Pl ayer s uni t ? j ne _Exi t MH / / J ump i f f al se
push eax push edx mov edx, [ i Mi nPar t ] / / Get par t mi ni mumval ue mov eax, [ ecx+00001cd4] / / Get number of par t s mul edx mov [ ecx+00001d98] , eax / / Updat e t ot al hul l val ue mov eax, [ i Mi nPar t ] / / Get par t mi ni mumval ue mov [ edi +1c] , eax / / Updat e par t val ue mov [ edi +40] , eax / / Updat e par t val ue pop edx pop eax
_Exi t MH: mov ecx, [ edi +40] / / Or i gi nal code f i l d dwor d pt r [ edi +40] / / Or i gi nal code j mp _BackMH / / Back t o mai n code / / ========================================= / / Cur r ent sel ect ed gr oup or t r oop / / Tr oop or Shi p on Tur n Base scr een / / I t j ust t o avoi d a uni t f r omkeep on movi ng _MonGMP: mov [ pCur GMP] , edi / / Save pt r f or f ur t her use mov eax, [ edi +000002a4] / / Or i gi nal code j mp _BackGMP / / Back t o mai n code / / ========================================= / / Move poi nt ( Tr oop) _I nf MPT: cmp dwor d pt r [ i Enabl eI MP] , 0 j e _Exi t I MPT / / J ump i f f eat ur e i s di sabl ed cmp ebx, [ pCur GMP] / / Cur r ent sel ect gr oup? j ne _Exi t I MPT / / J ump i f f al se Cheat Engine :: View topic - Napoleon Total War V1.0.0.0 (GM and more) http://forum.cheatengine.org/viewtopic.php?t=496733 3 of 6 10/21/2014 3:35 PM
mov edi , [ ebx+18] / / Get Ar my maxi mumMP mov [ ebx+1c] , edi / / Updat e Ar my cur r ent MP mov [ ecx+6c] , edi / / Updat e Tr oop MP
xor edi , edi / / Make Decr easi ng MP = 0 _Exi t I MPT: mov ecx, [ eax+6c] / / Or i gi nal code cmp ecx, edi / / Or i gi nal code j mp _BackI MPT / / Back t o mai n code
/ / ========================================= / / Move poi nt ( Ar my) _I nf MPA: cmp dwor d pt r [ i Enabl eI MP] , 0 j e _Exi t I MPA / / J ump i f f eat ur e i s di sabl ed cmp esi , [ pCur GMP] / / Cur r ent sel ect t r oop? j ne _Exi t I MPA / / J ump i f f al se
mov edi , [ esi +18] / / Get maxi mumMP mov [ esi +1c] , edi / / Updat e Tr oop MP
xor edi , edi / / Make Decr easi ng MP = 0 _Exi t I MPA: mov eax, [ esi +1c] / / Or i gi nal code cmp edi , eax / / Or i gi nal code j mp _BackI MPA / / Back t o mai n code / / ========================================= _MonGol d: pushf d mov [ pGol d] , edx / / Save poi nt er f or debuggi ng cmp dwor d pt r [ i Enabl eMG] , 0 j e _Exi t MG / / J ump i f f eat ur e i s di sabl ed mov ecx, [ i Mi nGol d] / / Get mi ni mumgol d val ue cmp ecx, [ edx+000004a0] / / Gol d <= mi ni mum? j l e _Exi t MG / / J ump i f f al se
mov [ edx+000004a0] , ecx / / Make gol d = mi ni mum _Exi t MG: mov ecx, [ edx+000004a0] / / Or i gi nal code popf d j mp _BackMG / / Back t o mai n code
/ / ========================================= / / Var i abl es i Enabl eGM: dd 1 i Enabl eI MP: dd 1 i Enabl eMG: dd 1 i Mi nPar t : dd #10000 i Mi nGol d: dd #100000 pCur GMP: dd 0 pGol d: dd 0 / / ========================================= / / Hacki ng Poi nt s Napol eon. exe+2e72d0: j mp _GodModeT db 90, 90, 90, 90, 90, 90 _BackGMT:
/ / ========================================= / / Or i gi nal Codes [ DI SABLE] Napol eon. exe+2e72d0: mov eax, [ ecx] push edx mov edx, [ eax+00000104] cal l edx Napol eon. exe+2e7395: mov eax, [ ecx] mov edi , [ ebp+08] mov edx, [ eax+00000104] push edi cal l edx Napol eon. exe+25b618: cal l Napol eon. exe+25b690
Napol eon. exe+25b690: push ecx mov ecx, [ edi +0000038c] Napol eon. exe+270f 39: add [ eax+00001df 4] , ecx Napol eon. exe+2756f 2: mov ecx, [ edi +40] f i l d dwor d pt r [ edi +40] / / - - - - - - - - - - - - - - - - - - - - - - Napol eon. exe+62d038: mov eax, [ edi +000002a4]
Napol eon. exe+701ee4: mov ecx, [ eax+6c] cmp ecx, edi
Napol eon. exe+5b166f : mov eax, [ esi +1c] cmp edi , eax Napol eon. exe+61b696: mov ecx, [ edx+000004a0]
deal l oc( MyCode) unr egi st er symbol ( MyCode) unr egi st er symbol ( i Enabl eGM) unr egi st er symbol ( i Enabl eI MP) unr egi st er symbol ( i Enabl eMG) unr egi st er symbol ( i Mi nGol d) unr egi st er symbol ( pCur GMP) unr egi st er symbol ( pGol d) Cheers! Napoleon_TW_GM_more.CEA Description: Download Filename: Napoleon_TW_GM_more.CEA Filesize: 10.22 KB Downloaded: 3481 Time(s) Back to top
Recifense I post too much Posted: Sun Apr 11, 2010 7:29 pm Post subject: Hi, Due to a problem on the assert part, here is a new version of the script. Code: Cheat Engine :: View topic - Napoleon Total War V1.0.0.0 (GM and more) http://forum.cheatengine.org/viewtopic.php?t=496733 5 of 6 10/21/2014 3:35 PM Reputation: 122 Joined: 17 Mar 2008 Posts: 2555 Location: Recife - Pernambuco - Brazil CE Or i gi nal cmp ecx, edi - > 39 f 9 - > 3b cf cmp edi , eax - > 39 c7 - > 3b f 8 Bot h f or mat s ar e cor r et , so I had t o change t he asser t ver i f i cat i on. 39 / r CMP r / m32, r 32 Compar e r 32 wi t h r / m32 3B / r CMP r 32, r / m32 Compar e r / m32 wi t h r 32 Cheers! Napoleon_TW_GM_more.CEA Description: Script version 1.1 Download Filename: Napoleon_TW_GM_more.CEA Filesize: 10.35 KB Downloaded: 2902 Time(s) Back to top
Display posts from previous: All Posts Oldest First Go
Cheat Engine Forum Index -> Auto Assemble scripts All times are GMT - 6 Hours Page 1 of 1
Jump to: Auto Assemble scripts Go You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum Powered by phpBB 2001, 2005 phpBB Group CE Wiki IRC (#CEF) Cheat Engine :: View topic - Napoleon Total War V1.0.0.0 (GM and more) http://forum.cheatengine.org/viewtopic.php?t=496733 6 of 6 10/21/2014 3:35 PM