Page 1 of 1

exec problem

Posted: Thu Jan 29, 2009 8:27 am
by Chip
I created a myconfig.cfg file to be executed when I start DarkPlaces. The only problem is that when I add "loadsky mysky" Quake wouldn't start.

I moved only this instruction in a separate file and I'm execing it when I start Quake. But that's wrong. I want to start the game and already have the skybox loaded. The images are all there, when I exec it from the console it works perfectly.

Not from default.cfg though. Is this a DP problem? Or am I missing something?

Posted: Thu Jan 29, 2009 9:47 am
by Spirit
Depends what you are up to, but you can specify skyboxes in the worldspawn of maps ("sky" "skyname", eg "sky" "myawesomesky_").

Posted: Thu Jan 29, 2009 2:13 pm
by Spike
loadsky is a command, not a variable
if you start up dp without playing any demos ('alias startdemos echo NODEMOSMWAAHAHA' maybe, or edit quake.rc), does it still crash?
not sure if DP's renderer is actually started when your config is execed, thus any command that depends upon the gl context being initialised will fail.
in that regard, try adding vid_restart just before your loadsky command.
Although I suspect that your old skybox is forgotten about on each and every map change anyway

Thanks

Posted: Fri Jan 30, 2009 8:08 am
by Chip
I will take Spirit's advice and try it tonight. It's better like this. I can have diferrent skyboxes with every map.