Arcen Games

General Category => AI War Classic => AI War Classic - Mods & Modding => : RoflCopter4 August 30, 2017, 06:27:24 PM

: Worst mod ever? You decide!
: RoflCopter4 August 30, 2017, 06:27:24 PM
For no particularly good reason I decided to try to edit some of the unit stats today, and before trying to do so I did a very cursory glance at this forum to check whether it was even possible. I noticed the thread about the assault transports and that he found the stats in a C# dll and figured that I'd give it a go. If I'd had any brains at all I'd have read the forum for a few more seconds and would have found the other thread in which Magitek explains exactly how one ought to go about modifying units. Since I did not, I had to find out how myself.

I first spent an inordinate amount of time trying to work with the decompiled source code from a few different decompilers. The code they produce is generally remarkably clear and easy to understand, and theoretically easy to change, the problem is that it is just not possible to re-compile the decompiled code afterwards. You get literally hundreds of different errors and it's a huge broken mess. However, this did at least allow me to get a decent understanding of how everything works and how the data is stored and used. I doubt I would have gotten anywhere without this step.

Finally it became obvious that the only way to do anything would be to work with the dll in IDA, and thus edit the hex data by hand. After a lot of sleuthing around I finally found the section I was looking for and figured out how it worked and related to the source code. The fact that I was working with the binary in this way made it basically impossible to add data, that would ruin everything, but it was possible to change existing data. Upon discovering this, I suddenly realized that I actually had no plans whatsoever for what I wanted to change or why. I mostly wanted to know whether I could do it, and how. The only thing I could think to do was to deliberately make the worst modification I possibly could, just for funsies. Now for the sales pitch:

Are you tired of extremely well balanced and tested unit stats? Sick of engaging, fast paced and difficult gameplay? Do you just want to be able to win, just once, with ease, without technically resorting to cheats? Then I've got the mod for you! I took the Exodian Blade ship and improved it somewhat, namely:


I think that's all the changes I made. It is embarrassing to admit that this process took me more than 5 hours. It took a while to really understand what was happening in the code in general and then to locate that code in the assembly code. It doesn't help that I really don't know much about what I'm doing. I'm sure there is a better way to change things in IDA than to edit the hex dump, but I only knew how to do that, so that added more time too.

Let me make this totally clear. This mod is useless. This unit is utterly ridiculous. It waltzes into a system and SLAUGHTERS EVERYTHING within the span of a couple of seconds. It can kill a wormhole guard post on epic mode in less than a second, since I did not bother to disallow it from concentrating all 5 beams on 1 target. It can singlehandedly wipe out overwhelming armies. It can destroy a dire lair and kill the spawned dire guardians before they even actually appear on screen. You can send it into an AI homeworld unescorted and there will be nothing but rubble before you even blink. It is highly amusing (to me) for about 10-15 minutes, after which it just gets boring since it obviously takes all the challenge and fun out of the game. I like to leave installed just for those situations when I know I've screwed up and have no chance of winning. When this happens I usually just decide to cheat and spawn in a bunch of monster units to blow a #@$% up and get a little catharsis before starting over. It's perfect for that. Just don't forget to never actually use the Exodian Blade scenario with the intent of playing it properly with this installed.

You can install it in a couple of ways, if you actually want to. You could use JSGME, the generic mod manager, an absolutely fantastic tool that I use for dozens of different games all the time. It automatically backs up any files it replaces with a mod, and keeps track of mod conflicts and such. When you disable mods it automatically restores the original files. It is deliberately dumb though, it only really copies files from the mod directory to the root directory where JSGME.exe is located, so you need to make sure that you set up the mod properly. In this case it would be [GAME ROOT]\MODS\UselessMod\AIWar_Data\Managed\Assembly-CSharp.dll. I've included this already set up in the download. Since I went to the trouble of setting this up, I do recommend using it, but if you really don't want to then since this """mod""" only includes one single file, it is fairly easy to just back up your Assembly-CSharp.dll somewhere (just rename it to Assembly-CSharp.dll.BAK or something) and copy the modded one in its place. When you're sick of the mod just restore the original. Both methods basically do the same thing in the end.

The final fact of the matter here is that I really couldn't think of anything to properly mod because this game is already so well balanced that there really isn't much that needs modding. This exercise was fun for me and fiddling with grossly overpowered units can be amusing for a brief period, but there's really nowhere to go from here.

Here is the download link.

https://www.mediafire.com/file/sx08ab90lyfc9p8/WorstMod.7z

You'll also need 7-zip if for some reason you don't already have it installed.

http://www.7-zip.org/download.html
: Re: Worst mod ever? You decide!
: BadgerBadger August 30, 2017, 09:30:26 PM
If you enjoy modding something like AIWC then you are going to love the modding features that AIW2 comes with!