So I'm thinking, is there a way to simulate the mechanism of loading maps in Warcraft 3, so that almost all encrypted maps can be decrypted.
Because I have limited exposure to Warcraft cheat maps, many of my ideas cannot be verified. I hope someone with the ability can help verify or answer this question. Is this feasible?
Here is a simple example. The game did not perform many other operations at the main method entrance, but executed a sentence of do_stcript code afterwards. Its function is usually to execute a specified script file or perform certain processing. Even if the map resource file is decompressed, I cannot crack the encryption and it is useless, but the game can still load normally. So the encryption of all maps must meet the encryption requirements of Warcraft3, which decrypts based on the encrypted markers. And if we make this process into a tool, it can solve all encryption problems.
Code: Select all
function main takes nothing returns nothing
call ExecuteFunc("DoNothing")
call StartCampaignAI( Player(PLAYER_NEUTRAL_AGGRESSIVE), "callback" )
call ExecuteFunc("DoNothing")
......
call do_script("war3map.bin", true)
endfunction