|Nom du fichier : Heroes of Might And Magic 5 - Cheat Codes - Auteur : CSI - [PC]|
|Here is how You hack the camera:
Open up the HMM5profilesautoexec.cfg in a text editor such as notepad.
Look up these lines:
//For transparanet interface
mission_camera_limits 50 10 70 ᇋ ᆲ 0 0
mission_camera_softlimits 50 11 69 ᇉ ᆴ 0 0
and replace them with these new lines:
//For transparent interface
//mission_camera_limits fov minDistance maxDistance minPitch maxPitch minYaw maxYaw
mission_camera_limits 50 10 120 ᇩ Ǉ 0 0
mission_camera_softlimits 50 11 119 ᇧ ǉ 0 0
NOTE! It will not work if You load a saved game because these settings seems to be saved in to the saved games, so start a new map and it will work.
This will allow You to pitch the camera from 5ᇩ degrees and allow You to zoom out more (120). Adjust it to Your needs if necessary.
People who think that ATB icons are moving too slow (I think they realy are!), can use next thing:
Add to your profiles/autoexec.cfg the following lines:
setvar ATBAction_AddRemove_Time = 0.2
setvar ATBAction_FadeOut_Time = 0.2
setvar ATBAction_Move_Time = 0.2
setvar ATBBar_ScrollSpeed = 0.2
Enabling console and basic cheats:
Found a way to enable console in release version.
To do so for all game profiles go to gamedirprofilesautoexec.cfg
Put this as last line
setvar dev_console_password = schwinge-des-todes
So it will look like this
setvar dev_console_password = schwinge-des-todes
Or you can enable console for only select profile by appending same line at end of user.cfg in
C:\Documents and Settings\YourWinAcc\My Documents\My Games\Heroes of Might and Magic V\Profiles\YourProfile
Then you can use some cheats ingame. Press tilde key("`") to bring down console. If it doesn't work for you because you don't have the key on your keyboard, can't find it because of foreign layout, whatever, you can always edit input.cfg in your user profile dir
bind show_console '`'
Edit this to something suitable for you then.
Basic thing console does is tell you what ai has been doing last turn.
Now, to cheats themselves.
Most complex 1 is add_skill
add_skill takes skill-id or name as parameter, you can find list of all 150 skills/perks/abilities names and their ids in data\data.pak\scripts\advmap-startup.lua
HoMM 5 pak files are pkzip archives and as such you can access that lua scipt file using winrar/winzip etc(btw unpacking all packs will speed things up since game will access uncompressed data instead of looking in archives. You can even delete packs after that, but better move them somewhere else and keep them since we don\'t know if upcoming patches will modify archives or use overrides system).
So, for example:
Will give perk pathfinding
You can add skills over limit it seems. E.g. more than 6 skills etc. Though you won't see them in ui, but will get benefits.
add_army town nTownID, bUpgrade
Will fill all hero army slots with 10 creatures of town id specified. Second param is 0 or 1 which controls whether creatures are from upgraded dwellings or not.
HEAVEN = 0
PRESERVE = 1
ACADEMY = 2
DUNGEON = 3
NECRO = 4
INFERNO = 5
add_army 5, 0
Will fill all hero army slots with 10 basic inferno creatures
add_army 4, 1 will fill hero army slots with 10 upgraded Necro creatures
Gives all spells to currently selected hero. Bypasses all skills reqs, for usage also.
set_hero_luck_morale nLuck nMorale
Sets luck and morale base values for current hero. For ex set_hero_luck_morale 5 3
Outputs resource quantities of specified player into console. So you can spy on ai. E.g. show_player_money 2
Shows detailed movement point stats for currently selected hero - exact quantity, stats for currently plotted path(how many points it'll take).
Adds quantity xp to currently selected hero. E.g. add_exp 5000
Sets all your resources to 0
Sets current gold to quantity and zeroes out other resources.
Sets all resources except gold to quantity and sets gold to quantity*1000. So add_money 100 gives 100 of everything and 100000 gold.
Some more advanced cheating using LUA scripts:
Found a way to execute LUA script engine commands from console. You need to put "@" before them. Now all power of LUA scripting engine + core console commands lie at your fingertips.
Revealing fog-of-war, adding any numbers of any creatures, getting specific spells. Replenish movement points. Want that funny artifact? Set any hero stats to any values. Used a trainer and screwed your game? No problem, with a couple commands you can fix your character. Encountered a critical bug and mission just won't end? Better ask what you can't do now than what you can. Unpack your paks and start looking at lua script examples.
@GiveArtefact( 'Isabell', ARTIFACT_RING_OF_HASTE );
Btw use this command
bind showfps 'F1'
Or better yet perma-bind this in your input.cfg
Besides other usefull info it shows you camera coordinates which you can use to functions which require this as argument.
@AddHeroCreatures( "Agrael", CREATURE_HELL_HOUND, 1000 );
ChangeHeroStat( 'Isabell', STAT_MOVE_POINTS, 30000 );
Bypass campaign-set town building limits?
SetTownBuildingLimitLevel('Town3', 13, 1);
Of course this is just examples most of which need to be passed different arguments. E.g. you need to know internal script hero names, town ids. Consult data/scripts first for some function syntaxis and many constants. Then start looking at actual mapscripts examples.
Use search to look in data folder in files of type *.lua
Script commands are CASE SENSITIVE, you must use @Win(); and not win(); or wIn();.