Exclusive -gamedir
Moderator: InsideQC Admins
9 posts
• Page 1 of 1
Exclusive -gamedir
Is there any sort of standard in, say, DarkPlaces or FTEQW to exclusively use the specified gamedir for game data.
For example, if I have a total conversion mod, I absolutely don't want it trying to load up files from id1.
Now, my simple solution to this is the "-exclusive" command line parameter or maybe a cvar like host_gamedir_exclusive.
I feel like this to be an existing DarkPlaces or FTEQW feature already, so if I am right how does DarkPlaces or FTEQW do this.
For example, if I have a total conversion mod, I absolutely don't want it trying to load up files from id1.
Now, my simple solution to this is the "-exclusive" command line parameter or maybe a cvar like host_gamedir_exclusive.
I feel like this to be an existing DarkPlaces or FTEQW feature already, so if I am right how does DarkPlaces or FTEQW do this.
The night is young. How else can I annoy the world before sunsrise?
Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-

Baker - Posts: 3666
- Joined: Tue Mar 14, 2006 5:15 am
I just modified some lines inside DP's engine source, and "id1" is hardcoded in there. I changed it to "gamedata" to match my mod. There was no feature (or I did not notice it) to exclusively use (or ignore "id1") a TC directory.
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays
Fear not the dark, but what the dark hides.
getButterfly - WordPress Support Services
Roo Holidays
Fear not the dark, but what the dark hides.
-

Chip - Posts: 575
- Joined: Wed Jan 21, 2009 9:12 am
- Location: Dublin, Ireland
Well -basedir doesn't really work that way, if I've understood Baker's question right. What I think he's asking for is if there is already a standard way of not having this line executed:
- Code: Select all
// start up with GAMENAME by default (id1)
COM_AddGameDirectory (va ("%s/"GAMENAME, com_basedir));
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
We knew the words, we knew the score, we knew what we were fighting for
-

mh - Posts: 2292
- Joined: Sat Jan 12, 2008 1:38 am
Doesn't the basedir command line parameter just tell an executable where to find the Quake folder. That could be used to do this I guess, but I don't want an extra "Quake" folder for a gamedir. In particular, I have PSP projects in mind (and also to quickly check for mod purity --- like total conversions that actual have pak0.pak or other such expectations).
But yeah, MH got understood it correctly. Just a signal to not load up the default id1 gamedir as part of the search path.
If you are working on a total conversion, you don't want id1 to be in the search path. If you are working with a near total conversion, likewise you'd rather get error messages about missing models and sounds than it to load up Quake ones that might be coded in the QuakeC --- one example is that X-Men Ravages of Apocalypse isn't actually a total conversion but just super-close.
And you don't really want to have another extra "Quake" folder, you might want to easily test an engine build as both working with the usual Quake yada and also not.
Anyways, I thought maybe this had already been done in of the more advanced engines and wanted to stick with whatever that method was. But since it isn't, I guess I'll think of some something sensible and go with that.
But yeah, MH got understood it correctly. Just a signal to not load up the default id1 gamedir as part of the search path.
If you are working on a total conversion, you don't want id1 to be in the search path. If you are working with a near total conversion, likewise you'd rather get error messages about missing models and sounds than it to load up Quake ones that might be coded in the QuakeC --- one example is that X-Men Ravages of Apocalypse isn't actually a total conversion but just super-close.
And you don't really want to have another extra "Quake" folder, you might want to easily test an engine build as both working with the usual Quake yada and also not.
Anyways, I thought maybe this had already been done in of the more advanced engines and wanted to stick with whatever that method was. But since it isn't, I guess I'll think of some something sensible and go with that.
The night is young. How else can I annoy the world before sunsrise?
Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-

Baker - Posts: 3666
- Joined: Tue Mar 14, 2006 5:15 am
with fte at least, you can use -basegame instead of -gamedir, if set it'll ignore any game-specific base games (read: id1+qw+fte/baseq2+fteq2 etc directories), and just use each -basegame instead.
Don't know about other engines.
Don't know about other engines.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
Spike wrote:with fte at least, you can use -basegame instead of -gamedir, if set it'll ignore any game-specific base games (read: id1+qw+fte/baseq2+fteq2 etc directories), and just use each -basegame instead.
Don't know about other engines.
Thanks! Consistency matters to me.
Don't know about other engines.
Really, setting recent history aside, I don't think it is very likely that anyone except yourself and LordHavoc and those in his orbit would have been spending any time thinking about this. So if DarkPlaces doesn't have -basegame, there isn't gonna be an implementation elsewhere.
The night is young. How else can I annoy the world before sunsrise?
Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-

Baker - Posts: 3666
- Joined: Tue Mar 14, 2006 5:15 am
<stupididea>
If the problem is how to force the engine to ignore the default id1 gamedir for total convertions, you could just add a "-tc" command line option to tell the engine your intention (I can see mh yelling to me: "NO MOAR COMMAND LINES!!!1ONE!!!"
).
</stupididea>
If the problem is how to force the engine to ignore the default id1 gamedir for total convertions, you could just add a "-tc" command line option to tell the engine your intention (I can see mh yelling to me: "NO MOAR COMMAND LINES!!!1ONE!!!"
</stupididea>
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
frag.machine wrote:<stupididea>
If the problem is how to force the engine to ignore the default id1 gamedir for total convertions, you could just add a "-tc" command line option to tell the engine your intention (I can see mh yelling to me: "NO MOAR COMMAND LINES!!!1ONE!!!").
</stupididea>
NO MOAR COMMAND LINES!!!1ONE!!!
Not a bad idea actually...
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
We knew the words, we knew the score, we knew what we were fighting for
-

mh - Posts: 2292
- Joined: Sat Jan 12, 2008 1:38 am
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest