The campaign menu is rearranged by the game while running. This should be true for at least 1770 (Allied image) and 1772 (Soviet image). Are all of them in the original place or does it work for some? _________________ QUICK_EDIT
Most likely you are not running the modified exe file. The game will not re-create a control it can't find and it doen't know id 1773. _________________ QUICK_EDIT
I reproduced this. The soviet image is gone for me.
I see no other issue that could cause the problem you describe. Do you have multiple installation folders? _________________ QUICK_EDIT
How did you edit the dialog? Changed it in ResHacker directly (ResHacker warns about compilation errors)? Or extracted and readded it? Can you check that there only is one resource 148, having 1033 as the language id? _________________ QUICK_EDIT
The modified one goes in the RA2 Directory original goes somewhere else. So according to AlexB the code is fine and the all that and you keep running into problems. QUICK_EDIT
No, i captured something entirely different to make a point. Of course it is. As I said, the game moves stuff around and the images and its sublines are definitely among them.
If you want to see my exe, click here (English TFD, removed). Last edited by AlexB on Tue Jun 29, 2010 2:55 pm; edited 1 time in total QUICK_EDIT
sorry, now i understand what i did wrong!
i pressed compile script, but i didn't press save.
im now checking again what you said.
edit: the soviet image part is working for me, but the position part is not. QUICK_EDIT
Ok, then the original problem is solved. Moving stuff via dialog resources is indeed rather limited if the game reverts the changes while running. _________________ QUICK_EDIT
It reads the dialog resource, creates the dialog and then moves controls around, hides or shows them, sets texts, fills list boxes. So before the dialog is shown the game fiddles around with its contents. Whatever you change, the game has the last word. _________________ QUICK_EDIT
Currently there is no project that can do that. Later Ares versions will add support for editing some controls and customizing the campaign selection screen but not on a scale like that. And NPatch, well, yes... _________________ QUICK_EDIT
Joined: 01 Feb 2007 Location: Las Vegas, Nevada, USA
Posted: Fri Jul 02, 2010 9:46 pm Post subject:
just install npatch and modify the new exe it comes with. I do not know what all npatch comes with, but a new exe is one of them. If you wait til after its installed, you can then edit the new gamemd.exe just like you used to. Though I personally use Microsofts Visual basic. QUICK_EDIT
but npatch comes with modifed dialog 148, and the changes with the positions reverted from it too.
and how can i modify the exe with visual basic? QUICK_EDIT
You can't. VB is not able to do anything like that. This is only solvable by hacking the executable (NPatch doesn't do it and it seems it never won't, Ares is not that far).
Is all you want to move the controls to get a different appearance of the dialog or are both the campaign icons related to each other / blend with the background, or is there more to it? _________________ QUICK_EDIT
That would be by exe hacking and it isn't as simple as setting a tag in some ini file. Essentially, the game does not know about the new controls and will ignore them. Recoding the game is quite a hard task.
NPatch supports another campaign button, but no customisation like moving controls around. Ares 0.2 will feature some more customisations, but there's no way to move the campaign images. I'd wait for Ares 0.2 and use one of it's predefined layouts. _________________ QUICK_EDIT
Wait, isn't this the guy with the pirate version that doesn't accept the 1.001 patch and so can't use Ares? _________________ Albrecht never dies, he just goes to the nearest bar to regroup. QUICK_EDIT
That would be by exe hacking and it isn't as simple as setting a tag in some ini file. Essentially, the game does not know about the new controls and will ignore them. Recoding the game is quite a hard task.
NPatch supports another campaign button, but no customisation like moving controls around. Ares 0.2 will feature some more customisations, but there's no way to move the campaign images. I'd wait for Ares 0.2 and use one of it's predefined layouts.
so how the game know their original positions?
Ghost of Christmas Past wrote:
Wait, isn't this the guy with the pirate version that doesn't accept the 1.001 patch and so can't use Ares?
i already solved the problem with the version. QUICK_EDIT
The game does not use the original positions. They are hardcoded to some values in the exe. You can see for yourself: In the resource editor, the buttons are 174 pixels wide. In the game the buttons are much wider. You can even move the mouse cursor next to them and they will light up. _________________ QUICK_EDIT
The game does not use the original positions. They are hardcoded to some values in the exe. You can see for yourself: In the resource editor, the buttons are 174 pixels wide. In the game the buttons are much wider. You can even move the mouse cursor next to them and they will light up.
Thats true i have tried this same thing many time and I used PEExplorer that is more advance tool than ResHacker but result was same.
I think its a headache to modify the dialogs of game. Plus you will not get the desired result. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum