The_Legacy Posted September 14, 2016 Share Posted September 14, 2016 Hi there again! I wanted to ask whether it was possible to modify the unit commands in Dune 2? Specifically, I've noticed that Area Guard has units always return to the point of their spawn, rather than the point of where they last stood. It's essentially a more powerful version of Retreat, since units return to their spawn positions, but will leave it to attack enemies. Instead, I'd like to be able to set a unit's 'default' position instead, by simply clicking the Area Guard command to set a new 'home' location. Thanks! Quote Link to comment Share on other sites More sharing options...
Nyerguds Posted September 19, 2016 Share Posted September 19, 2016 (edited) Well, it's probably technically possible to find where that code is located in the exe, and put some hacks in there... but just finding it might be quite a chore. It's possible Segra documented it in his research, though. You can check out his IDA databases here:http://nyerguds.arsaneus-design.com/dune/segra/ Will require that you have IDA though. Not sure if it's made with the free version. Do note that you can't really hack the game to add extra code; you need space to add that code, and that's generally not available since the exe is already full. In some cases there are tricks you can apply to compact some asm commands to take a few less bytes, but you'll probably have to free up about 5-10 bytes to set the new home location. Not an easy task, and, you do need to know x86 assembler language and its 16 bit bytecode to pull it off. As I said in the editor thread, might be easier to just use OpenDune, and edit it in C code instead of hacking the original exes. Edited September 19, 2016 by Nyerguds Quote Link to comment Share on other sites More sharing options...
The_Legacy Posted September 27, 2016 Author Share Posted September 27, 2016 Alright. I'm planning on making my mission/balancing mods to be compatible with both. I'll probably do the most advanced stuff for OpenDune, but I also wanted some backward compatibility for those loons (like myself) who want to still play on the old EXE. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.