View Single Post
Old 08-13-2004, 12:49 PM   #14 (permalink)
DCoder
Senior Member
 
Join Date: Jul 2003
Location: Lithuania, Central Europe
Posts: 1,057
Send a message via MSN to DCoder
Default

If you people do use this to get the third campaign working, I think you owe Blade a lot, like a couple of mission maps If I could do any mapping worth sh*t, I'd make some missions for him myself.

Use ResHacker or similar program to open gamemd.exe. The code at the end is also for ResHacker.

Quote:
Originally Posted by Blade
The third campaign button required a lot of time and effort to make it work as well as it does now (correct string is displayed, selection screen has correct icons, sound that plays when hovered over is appropriate and importantly, the campaign actually plays and progresses with save games working). If you can manage to alter the .exe file correctly and get the selection working yourself, fair enough, but I won't be releasing the exe patch and GFX that support it until I am ready to progress to the public Beta with at least a few missions ready to rock and roll.

----

This is the control set I use for 'The Project', I've taken the liberty of moving the third control to a sensible place, but the other two don't move even though they are coded to by these controls. Look at the loadscreen image I posted on the project website under screen shots. I made all the button GFX invisible (despite me having a third animated button for yuri since it doesn't work) and the buttons are now static images merged with the background. This is the only workaround I have that makes the load screen look and work correctly. You need to make extensive edits to battlemd.ini, missionmd.ini and mapselmd.ini (there is a tutorial in the tutorials forum on how they all work) and the third campaign selection button calls for [TUT1] in battlemd.ini. To make a patch, I used a patch maker (seems to be a sensible enough logic). You should also note that control 1109 (the list box) is a control that should list ever campaign defined in battlemd.ini as it does in TS, but it actually never apepars on the menu screen at all. Likely it relies on some code in the internal WW debug build that was removed for the final release.

148 DIALOGEX 0, 0, 533, 369
STYLE WS_CHILD
CAPTION ""
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS Sans Serif", FW_DONTCARE, FALSE, 0
{
CONTROL "", 1109, LISTBOX, LBS_NOTIFY | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_CHILD | WS_VISIBLE, 421, 151, 107, 98
CONTROL "GUI:Load", 1038, BUTTON, BS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 425, 122, 108, 23
CONTROL "Slider3", 1295, "msctls_trackbar32", TBS_HORZ | TBS_BOTH | TBS_NOTICKS | WS_CHILD | WS_VISIBLE, 137, 140, 140, 14
CONTROL "GUIifficulty", 1822, STATIC, SS_LEFT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 137, 167, 75, 12
CONTROL "GUI:Harder", 1648, STATIC, SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 203, 167, 75, 12
CONTROL "GUI:Back", 1670, BUTTON, BS_OWNERDRAW | WS_CHILD | WS_VISIBLE, 425, 253, 108, 23
CONTROL "GUI:CampaignMenu", 1684, STATIC, SS_CENTER | WS_CHILD | WS_VISIBLE | WS_GROUP, 425, 1, 108, 10
CONTROL "", 1770, STATIC, SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, 125, 34, 174, 87 , 0x00000020
CONTROL "", 1771, STATIC, SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, 224, 219, 173, 86 , 0x00000020
CONTROL "", 1772, STATIC, SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, 25, 219, 173, 85 , 0x00000020
CONTROL "GUI:Blank", 1685, STATIC, SS_LEFT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 8, 354, 303, 12
CONTROL "", 1820, STATIC, SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, 449, 29, 61, 33 , 0x00000020
}
DCoder is offline   Reply With Quote