Populous modifications

From Popms Wiki
Jump to: navigation, search

This page summarizes changes made to the populous binaries in the patches developed by the community.

Contents

[edit] Patch 1.04

[edit] Tower plan crash

----------- d3dpoptb.exe -----------            
004BA962  8B0485 90038900   MOV EAX,DWORD PTR DS:[EAX*4+890390]         
004BA969  8568 0C           TEST DWORD PTR DS:[EAX+C],EBP ;EAX = 0x009301A1, when crashing EAX = 0x8001          
004BA96C  75 07             JNZ SHORT D3DPopTB.004BA975            
// fix          
004BA962  8B0485 90038900   MOV EAX,DWORD PTR DS:[EAX*4+890390]         
004BA969  90                NOP             
004BA96A  90                NOP             
004BA96B  90                NOP             
004BA96C  75 07             JNZ SHORT D3DPopTB.004BA975            
 
----------- poptb.exe -----------               
004921E2  8B0485 28898700   MOV EAX,DWORD PTR DS:[EAX*4+878928]         
004921E9  8568 0C           TEST DWORD PTR DS:[EAX+C],EBP                
004921EC  75 08             JNZ SHORT popTB.004921F6               
// fix          
004921E2  8B0485 2889870    MOV EAX,DWORD PTR DS:[EAX*4+878928]            
004921E9  90                NOP            
004921EA  90                NOP            
004921EB  90                NOP            
004921EC  75 08             JNZ SHORT popTB.004921F6              
 
----------- side effects -----------            
; function was called for each follower who was building a plan, after patching it's never called               
; without it braves are idle immediately after removing plan, with it there is one second gap before braves are idle            
004BA993  E8 A82C0300      CALL D3DPopTB.004ED640               
00492214  E8 F7D70100      CALL popTB.004AFA10

This patch fixes crash of the game when user tries to remove the plan of the building just before followers make a first level of the construction.


TODO add more patches

[edit] Patch 1.03

[edit] No CD

----------- d3dpoptb.exe -----------            
004A59E0   64:A1 00000000       MOV EAX,DWORD PTR FS:[0]                
004A59E6   55                   PUSH EBP                
004A59E7   8BEC                 MOV EBP,ESP           
// fix          
004A59E0  33C0                  XOR EAX,EAX           
004A59E2  C3                    RETN            
 
----------- poptb.exe -----------               
004BB9F0   64:A1 00000000       MOV EAX,DWORD PTR FS:[0]                
004BB9F6   55                   PUSH EBP                
004BB9F7   8BEC                 MOV EBP,ESP           
// fix          
004BB9F0  33C0                  XOR EAX,EAX           
004BB9F2  C3                    RETN            
 
----------- side effects -----------            
; game launches faster

This patch makes the game runs without CD.


TODO add more patches

Personal tools
Namespaces

Variants
Actions
Navigation
Tools