Gruntlord6 Posted January 21, 2014 Share Posted January 21, 2014 I finished the first version of the menu, it lets you switch between each house as well as letting you choose the difficulty while you play. Select the "Debug" button from the options menu in game to access the new features.Rar Archive DownloadSelf Extracting Download(NEW) Installer DownloadIf you choose to use the installer, it will automatically create a backup to your game directory and restore the original menu files when the uninstaller is run.Screenshots of the new menu: 5 Quote Link to comment Share on other sites More sharing options...
Nuclear_harvester Posted January 21, 2014 Share Posted January 21, 2014 nice work keeps movng . could we also change tech level in middle of game? is it possible with this tool? Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted January 21, 2014 Share Posted January 21, 2014 nice work keeps movng . could we also change tech level in middle of game? is it possible with this tool?Probably, I just haven't seen the command in a UIL file yet. Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted January 21, 2014 Author Share Posted January 21, 2014 Probably, I just haven't seen the command in a UIL file yet.I found: GetValueU1Init gNetTechLevel and SetValueU1Special gNetTechLevel in Skirmish.uil, but changing them did not have effect during gameplay.I finished the first version of the menu, it lets you switch between each house as well as letting you choose the difficulty while you play. Select the "Debug" button from the options menu in game to access the new features.Rar Archive DownloadSelf Extracting DownloadNice! But changing the difficulty crashed Dune 2000. Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted January 22, 2014 Share Posted January 22, 2014 I found: GetValueU1Init gNetTechLevel and SetValueU1Special gNetTechLevel in Skirmish.uil, but changing them did not have effect during gameplay.Nice! But changing the difficulty crashed Dune 2000.It's iffy. I had it work numerous times but once or twice it crashed the game.The values used in skirmish seem to rely on the slider values. Quote Link to comment Share on other sites More sharing options...
THE AQIB Posted January 22, 2014 Share Posted January 22, 2014 I finished the first version of the menu, it lets you switch between each house as well as letting you choose the difficulty while you play. Select the "Debug" button from the options menu in game to access the new features.Rar Archive DownloadSelf Extracting Downloadwhat does this menu do?? Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted January 22, 2014 Share Posted January 22, 2014 what does this menu do??Added screenshots to my post 1 Quote Link to comment Share on other sites More sharing options...
shai Posted January 22, 2014 Share Posted January 22, 2014 I tried the patch out yesterday and I have a question, if the AI is enabled on the same side as you are on, will you only be able to select one unit at a time, or is that because the sides are being swiched during the game? Quote Link to comment Share on other sites More sharing options...
Feda Posted January 22, 2014 Share Posted January 22, 2014 I tried the patch out yesterday and I have a question, if the AI is enabled on the same side as you are on, will you only be able to select one unit at a time, or is that because the sides are being swiched during the game?If a side has AI, while a human controls that side he can only select one unit. Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted January 22, 2014 Share Posted January 22, 2014 If a side has AI, while a human controls that side he can only select one unit.Yup, doesn't matter how it happens, the AI actively restricts your control (changing unit groups, allowing you only 1 unit at a time etc). It obviously wasn't intended to allow control by the AI and a player at the same time. 1 Quote Link to comment Share on other sites More sharing options...
Iran Posted January 23, 2014 Share Posted January 23, 2014 In Red Alert 1 the tech level value for every player is a data member of the HouseClass they are. The multiplayer menus have a global variable used to set the tech level for multiplayer games. In SINGLEPLAYER the tech level for every house is read in from the level file, defaulting the to the internal mission number. Code for single player. For every house section of the map INI, e.g. [spain] or [badGuy]: AUTO:004DDD36 028 mov [ebp+var_24], eaxAUTO:004DDD39 028 mov ebx, offset aTechlevel ; "TechLevel"AUTO:004DDD3E 028 mov eax, [ebp+lpScenario] ; INIClass for current scenarioAUTO:004DDD41 028 mov ecx, dword ptr ds:ScenarioNumber ; Default value if INI key missingAUTO:004DDD47 028 mov edx, edi ; House name, e.g. Spain or badGuyAUTO:004DDD49 028 mov esi, [ebp+var_24]AUTO:004DDD4C 028 call const INIClass::Get_Int(char *,char *,int)AUTO:004DDD51 028 mov ebx, offset aMaxbuilding ; "MaxBuilding"AUTO:004DDD56 028 mov edx, ediAUTO:004DDD58 028 mov ecx, [esi+2Ch]AUTO:004DDD5B 028 mov [esi+20h], eaxAUTO:004DDD5E 028 mov eax, [ebp+lpScenario] Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted January 23, 2014 Author Share Posted January 23, 2014 In Red Alert 1 the tech level value for every player is a data member of the HouseClass they are. The multiplayer menus have a global variable used to set the tech level for multiplayer games. In SINGLEPLAYER the tech level for every house is read in from the level file, defaulting the to the internal mission number. Code for single player. For every house section of the map INI, e.g. [spain] or [badGuy]: AUTO:004DDD36 028 mov [ebp+var_24], eaxAUTO:004DDD39 028 mov ebx, offset aTechlevel ; "TechLevel"AUTO:004DDD3E 028 mov eax, [ebp+lpScenario] ; INIClass for current scenarioAUTO:004DDD41 028 mov ecx, dword ptr ds:ScenarioNumber ; Default value if INI key missingAUTO:004DDD47 028 mov edx, edi ; House name, e.g. Spain or badGuyAUTO:004DDD49 028 mov esi, [ebp+var_24]AUTO:004DDD4C 028 call const INIClass::Get_Int(char *,char *,int)AUTO:004DDD51 028 mov ebx, offset aMaxbuilding ; "MaxBuilding"AUTO:004DDD56 028 mov edx, ediAUTO:004DDD58 028 mov ecx, [esi+2Ch]AUTO:004DDD5B 028 mov [esi+20h], eaxAUTO:004DDD5E 028 mov eax, [ebp+lpScenario] In Dune 2000 there is no INI file for single player, but there is the mission file (.MIS) that contains the tech levels. I could not find code that looks similar, but I did however, thanks to you, find this by accident: Image debug info: It's VA is 004494A7 (change jz to jnz) and it's file offset (DUNE2000.DAT) is 488A7 (hex) where you change 74 to 75 (with for example XVI32 software). edit: More stuff (I believe CCHyper found this one before): It are the VA 5178C4 for debug info and 5178C8 for funny blocks, lol. (0 = off, 1 = on) 3 Quote Link to comment Share on other sites More sharing options...
shai Posted January 23, 2014 Share Posted January 23, 2014 In Dune 2000 there is no INI file for single player, but there is the mission file (.MIS) that contains the tech levels. I could not find code that looks similar, but I did however, thanks to you, find this by accident: Image debug info:info2.png It's VA is 004494A7 (change jz to jnz) and it's file offset (DUNE2000.DAT) is 488A7 (hex) where you change 74 to 75 (with for example XVI32 software). edit: More stuff (I believe CCHyper found this one before):info3.png It are the VA 5178C4 for debug info and 5178C8 for funny blocks, lol. (0 = off, 1 = on)How did you find these? Quote Link to comment Share on other sites More sharing options...
D2k Sardaukar Posted January 23, 2014 Author Share Posted January 23, 2014 How did you find these?With IDA doing string search on techlevel, accidentally got wrong one but followed the code graph to see it that in the code the game wanted to "print" more stuff. Then I changed a jump from 'if true' to 'if not true' to see what happens. It showed debug info. After that I saw it does this on a if-statement based on static virtual address (5178C4) and then I looked in IDA to see if there are more of these VA closely around this location and so it happened that the next one (4 bytes further = 5178C8) is debug for the funny blocks. I didn't know that these static virtual address in IDA are rather useful, so I'm gonna experiment some more with it. I also found a different VA that gives some more unit info, but it also speeds the game massively up (fps>400). Perhaps this was used to test the AI on longer games. Perhaps I can find the value to slow it down again. Quote Link to comment Share on other sites More sharing options...
Nyerguds Posted January 23, 2014 Share Posted January 23, 2014 Hehe. Debug options like that are always fun to mess with :) 2 Quote Link to comment Share on other sites More sharing options...
Feda Posted January 23, 2014 Share Posted January 23, 2014 The difficulty select windows doesn't appear for me (in-game through gruntlord's patch i mean) Quote Link to comment Share on other sites More sharing options...
shai Posted January 23, 2014 Share Posted January 23, 2014 The difficulty select windows doesn't appear for me (in-game through gruntlord's patch i mean)Nothing was working for me too. Quote Link to comment Share on other sites More sharing options...
Nuclear_harvester Posted January 23, 2014 Share Posted January 23, 2014 well how much things yet to discover? wondering if is there any way to launch not 3 but 6 airstrikes or two death hand missiles 2 Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted January 24, 2014 Share Posted January 24, 2014 The difficulty select windows doesn't appear for me (in-game through gruntlord's patch i mean)What happens when you click the button? Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted January 24, 2014 Share Posted January 24, 2014 Nothing was working for me too.Same question, what happens when you click the button? I added an installer to the downloads if you want to try it that way. Quote Link to comment Share on other sites More sharing options...
Feda Posted January 24, 2014 Share Posted January 24, 2014 Nothing happens + i need to kill dune process cause nothing else is working after that. 1 Quote Link to comment Share on other sites More sharing options...
THE AQIB Posted January 24, 2014 Share Posted January 24, 2014 Nothing happens + i need to kill dune process cause nothing else is working after that.menu added in menus.uib??This error happens when you don't add..Trust me i've crash like this a lot of times till I understood it.. Quote Link to comment Share on other sites More sharing options...
shai Posted January 24, 2014 Share Posted January 24, 2014 Same question, what happens when you click the button? I added an installer to the downloads if you want to try it that way.There was no button at all, I copied all the files though. Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted January 24, 2014 Share Posted January 24, 2014 There was no button at all, I copied all the files though. Nothing happens + i need to kill dune process cause nothing else is working after that. menu added in menus.uib??This error happens when you don't add..Trust me i've crash like this a lot of times till I understood it..Try using the installer I added to the other post. Edit: is this for the debug menu itself? or for the change difficulty button? I found an issue if you were using the vanilla game with the difficulty menu, and I have updated the files posted to fix it. Please try redownloading and running the installer or extract the fix yourself from the archives. 1 Quote Link to comment Share on other sites More sharing options...
shai Posted January 24, 2014 Share Posted January 24, 2014 (edited) Try using the installer I added to the other post. Edit: is this for the debug menu itself? or for the change difficulty button? I found an issue if you were using the vanilla game with the difficulty menu, and I have updated the files posted to fix it. Please try redownloading and running the installer or extract the fix yourself from the archives.OK, that new installer is working now. For me, there was no debug button. Edited January 24, 2014 by Shai-Gel98 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.