Showing posts with label relic. Show all posts
Showing posts with label relic. Show all posts

Thursday, July 19, 2007

Screen toggle for Dawn of War game series

The following is code to allow the player to toggle the screen controls off and on to get a nice clear screenshot without the game user interface. In this case press "Control z" to toggle the controls off and on.

** These instructions are for the DoW games not installed from the STEAM service. STEAM uses a different file and folder structure than the DoW games you install from boxed retail. Post a query on the STEAM user forums about where to put autoexec.lua for any DoW game from STEAM. Also, see this screen toggle code on the STEAM forum. **

For boxed retail versions of DoW games ...

Place the text code in a file autoexec.lua in the Dawn of War program folder (or in Dark Cursade program folder). Each time you run the game the autoexec.lua file will be read.

Dawn of War screentoggle; file name and location -
E:\Program Files\THQ\Dawn of War\autoexec.lua

screenmode = 0
function toggle_screenmode()
if screenmode == 0 then
taskbar_hide()
message_hide()
screenmode = 1
else
taskbar_show()
message_show()
screenmode = 0
end
end
bind("Control+z", "toggle_screenmode()")


Use a game startup icon without -dev command line option.

The screen toggle will only work when you are playing on a map (or a replay of a map). It does not work at any main menu screen.

(BELOW - click image for full size) Here is the location of autoexec.lua (Dark Crusade); put in same folder with game .exe for DoW 1 or DoW-Winter Assault ...



(BELOW - click image for full size) Here is the notepad image of the text contents for autoexec.lua ...