automatically use ctrlpanel.txt

automatically use ctrlpanel.txt

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
cleanrock
Former Engine Dev
Posts: 115
Joined: 21 Feb 2009, 07:42

automatically use ctrlpanel.txt

Post by cleanrock »

How can i make spring use my ctrlpanel.txt from startup ?
Right now i have to type /ctrlpanel at start of each game.
Andrej
Posts: 176
Joined: 13 Aug 2006, 18:55

Re: automatically use ctrlpanel.txt

Post by Andrej »

from LuaUI/main.lua:

Code: Select all

Spring.SendCommands({"ctrlpanel " .. LUAUI_DIRNAME .. "ctrlpanel.txt"})
my guess is place ctrlpanel.txt into the LuaUI folder replacing the default one or uncomment this line whichever works
cleanrock
Former Engine Dev
Posts: 115
Joined: 21 Feb 2009, 07:42

Re: automatically use ctrlpanel.txt

Post by cleanrock »

Thanks,
Moving ctrlpanel.txt from .spring to spring/LuaUI did the trick.
Post Reply

Return to “Help & Bugs”