This War of Mine (Hack)

This War of Mine

This War of Mine (Hack) [Sirmabus]

Text file description:

"This Hack of Mine"  v: 1.0 - Nov 26, 2014
By Sirmabus
===================================================================================================
A cheat/hack/mod for the PC version of the survival sim game:
"This War of Mine"
http://www.11bitstudios.com/games/16/this-war-of-mine
http://www.metacritic.com/game/pc/this-war-of-mine
http://www.gog.com/game/this_war_of_mine
Loved the game. Awesome dark stetting with fitting eerie music, exploring, crafting, etc.
After many hours of playing, and dying, then dying again..due to the overall difficulty and
randomness of it all, I felt I'd probably uninstall before I would ever win/end it
(was there an end?).
Went web searching for some sort of helper/cheat. Found something kind of hack'ish on the
forum.cheatengine.org, and there was the usual commercial trainers too (do I want to pay $60 a
year for this?).
I decided to take my own look..then after two days of no sleep, then a day or two to recover..I
came up with this.
I'd like to think of it as more of a power mod rather then an some over powering "god mode"
cheat/trainer. Those are not needed, really, overkill..
Features:
1) Enables the "DebugAddAllItemsToShelter" dev cheat so that you will start each game with a lot
of equipment and materials; enough food to complete the game as is, enough materials to make at
least most of the base items, weapons, armor, etc.
If nothing else, this is the most helpful. Kind of makes the game "easy mode" if you let it be.
2) Reduced the time it takes to lock pick, scavenge, clear rubble, etc., by 60%.
Unfortunately,  I haven't found those the crafting "duration" values yet, so those remain the same.
The reduction time configurable in the Lua file using just a text editor.
3) Doubles the day/night game per hour time to give more to craft in the shelter and more time to
explore out in the world.  Normally a game hour is about 21 seconds, this makes it's about 42.
Again also adjustable.
4) There are two hot-keys that turn on some dev/debug graphics features: 'F2' and 'F3'
More for fun but could help you see around buildings on where you can move too etc.
Some times the 'F2' one won't go in effect until you change the scene.
Install:
Just copy the "This Hack of Mine.lua" and "LightFX.dll" files over to your game folder.
When you run the game the DLL will do it's magic to load in the Lua file for us.
The DLL's patching/hooking uses signature scans so it should hopefully work with any version and
updates.
Maybe a problem if you actually have and use the "Alien FX" light setup (just laptops?).
If you want that stuff to work still no problem; instead of dropping the DLL in your game folder,
put it some place else and just use an external DLL injector/loader of your choice.
Note: The DLL has to be loaded with the game, if you do it AFTER the game is loaded it's too late.
STEAM version:
The DLL does do code modifications. Don't know if there are any ramifications if say the game is
"protected".  You can at least disconnect your internet while you play to be safer.
I play the gog.com DRM free version so it's not even an issue.
Crashes:
While playing I've had the game crash at least twice at seemingly random points.
Be advised it might have nothing to do with my stuff, the game might have some bugs still.
Uninstall:
Yep, just delete the two files, if you want to just temporary exit the game and rename
"LightFX.dll" to "_LightFX.dll" or something else, to keep it from loading.
You CAN save your game!:
The game saves at at onky certain times, mainly appears to be when you return back from a mission.
So here is what you do:
1) Go to "%USERPROFILE%AppDataRoaming11bitstudiosThis War Of MineiPhoneDefUser"
2) Make a few new folders here; I made two a "backup1" and a "backup2".
3) Now every time just before you go off to a mission save the six files in the root
"iPhoneDefUser" ("achievements.alt", "savedgames", etc.) alternating to one of your backup save
folders as you go.
Now say you go off on the mission and poor Pavel takes one bullet to many.
No problem!, just exit  the game (ALT-F4 is quick), go back to your last save folder
(check the file dates) and copy over the latest save back to the root.
Restart the game and viola Pavel is back from the dead.
More tech stuff for those that RTFM:
My hack DLL "LightFX.dll" does just two things:
A) It appends "This Hack of Mine.lua" to the game's lua environment.
B) Redirects the disabled Lua print console binds so I could see the output.
It just so happens the game looks for this DLL when it starts thus will load it up for us.
Editing the scrtipt et al:
To troubleshoot problems, to help you modify "This Hack of Mine.lua", or to do your own exploring,
etc., you will want to get some kind of debug output viewer like Debugview you can find here:
http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
There is some sort of typical developer console in the game that is mostly compile-switched out on
it's release build.
For the Lua environment there are three main ones.: "Print", "PrintWarning", and "PrintError".
I patch/hook these redirect to "OutputDebugString()".
You will see lots of spam when a level loads and some internal, maybe helpful messages, some
in phonetic Polish.
[Google madry. Witaj, moj nowy ulubiony polski deweloper!]
I used "gConsole:PrintWarning()" (via the stub "pw()") since that was the least spammed one.
To edit the Lua file you can just use an ordinary text editor (even "notepad"), but of course
something with colored syntax highlighting is nicer like the free "SublimeText" or what ever suits
you.
Unlike a lot of the other 11bitstudios games this one is actually a lot less driven/dependent on
it's Lua scripts. For what ever reason(s) they decided to do more of it in C++ (using "tolua++"
binds) this time around.
The game's Lua files are mainly in "common.dat" and "scenes.dat". Yes, they could be real helpful
for you to mod the game (along with your reversing of the game exe in IDA Pro) but I won't include
extracted scripts for copyright reasons.
There is at least a partially working DB file extractor here:
http://forum.xentax.com/viewtopic.php?f=10&t=11378
or maybe Luigi's http://aluigi.altervista.org/quickbms.htm will work.
Have fun!
Pozdrawiam, baw si dobrze!
[Standard Software Disclaimer]
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. IF THAT IS NOT ENOUGH FOR YOU, KINDLY GO FUCK
YOUR SELF, I DON'T GIVE A SHIT.

File information

Trainers are memory resident programs that alter the behaviour of a game.

Your anti-virus software and web browser may detect them as malware (viruses, worms, trojans, bots etc.).

This is almost always a false alarm.

File name: THIS.WAR.OF.MINE.HACK.SIRMABUS.ZIP

File size: 898.79 KB

Mime type: application/zip; charset=binary compressed-encoding=application/zip; charset=binary

Trainer FAQ