Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

exec problem

| Inside3d Forums Forum Index -> General Programming

View previous topic :: View next topic
Author | Message
--- | ---
Chip Joined: 21 Jan 2009 Posts: 314 Location: Romania |

Posted: Thu Jan 29, 2009 8:27 am Post subject: exec problem |

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?
_________________
My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake

Back to top |

Spirit Joined: 20 Nov 2004 Posts: 476 |

Posted: Thu Jan 29, 2009 9:47 am Post subject: |

Depends what you are up to, but you can specify skyboxes in the worldspawn of maps ("sky" "skyname", eg "sky" "myawesomesky_"). _________________ Quake Maps

Back to top |

Spike Joined: 05 Nov 2004 Posts: 944 Location: UK |

Posted: Thu Jan 29, 2009 2:13 pm Post subject: |

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
_________________
What's a signature?

Back to top |

Chip Joined: 21 Jan 2009 Posts: 314 Location: Romania |

Posted: Fri Jan 30, 2009 8:08 am Post subject: Thanks |

I will take Spirit's advice and try it tonight. It's better like this. I can have diferrent skyboxes with every map. _________________ My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> General Programming | All times are GMT
Page 1 of 1

Jump to:

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

Powered by phpBB © 2004 phpBB Group