I got the chance to try unwasm and re-wasm on the following:
decompiling both Mercs and 31stCC mech BWDs. Mercs and 31stCC decompiled and Mercs recompiled back normaly, however, 31stCC mechs would not go back into BWD form.
decompiling both Mercs and 31stCC scenario file BWDs. Mercs and (few) 31stCC decompiled correctly, but only the Mercs BWDs could be reasembled.
This tool has certainly proven to be very valuble, even if there are some bugs.
This has given me the oppertunity to look into uncompiled mech files and scenario files, so I can better view how these work (which will mean more effective mech BWD hex modding).
Two questions now, what do I type in to decompile the "brain" of the AI? Or the AIT?
And what do I type in if I just want to decompile just one BWD and not all of them?
Will export only the BET1SCN1.BWD from Mercs to the current directory. You can also give a directory as the source to dump a BWD from the local file system instead of the project file.
Col.Kell wrote:
Nice work, quota!
Thankyou
At some point I will probably wrap this up in a nice GUI instead of the messy CLI... maybe
quota4stupid wrote:
I am getting an error message that says "'ait' is not a known command", any reason?
I uploaded a new version a few days after the original post that included the AIT code in it - I thought I uploaded it before you managed to get it, but I guess I didn't, sorry. Try downloading it again, you should get the current version. Again, sorry about that.
I am typing this command in, after I hit "enter", it prints off an empty AIT file. Whats the reason? (I am trying other AITs too, like FDESTROY or FDEFEND)
Col.Kell wrote:I am typing this command in, after I hit "enter", it prints off an empty AIT file. Whats the reason? (I am trying other AITs too, like FDESTROY or FDEFEND)
Well, as it turns out, I'm an idiot Just double checked the code and found that even when an file output is specified, the AIT exporter just ignored it and wrote to stdout anyway I've corrected the error and uploaded an updated copy to the original link.
quota4stupid wrote:
Well, as it turns out, I'm an idiot
don't feel bad, I know what its like... when I made KAM 1.0, many of the enemies wouldn't attack because I told them (in the mission tables) to attack a star that didn't exist.
Anyway, I'll give this new version a go!
Hey quota, is the SCN1 mission table format in 31stCC different from Mercs? Because I have made a .wld mission (quite well thanks to unwasm ) and compiled it into BWD form. I hex edited and inserted my new mission tables into an existing 31stCC mission, making sure that all the BWD and INCL tags were fixed. But I'm getting some message saying from the sim after I hit Launch, that there is an error loading the SCN1 file. Any idea?
I also think I should mention that in your most recent version of jmw2.jar, the "unwasm" command appears to be broken.