Forum

Exclusive -gamedir

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Exclusive -gamedir

Postby Baker » Wed Dec 29, 2010 5:50 pm

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.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby Chip » Wed Dec 29, 2010 7:40 pm

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.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Postby Spike » Wed Dec 29, 2010 8:55 pm

what's wrong with -basedir?
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby mh » Wed Dec 29, 2010 9:25 pm

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));
As in, tell the engine to run anything specified with -game as a pure TC rather than building on the ID1 base. Possibly something to do with his XMen PSP build problems?
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
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby Baker » Wed Dec 29, 2010 9:51 pm

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.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby Spike » Wed Dec 29, 2010 10:10 pm

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.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Baker » Thu Dec 30, 2010 2:03 am

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? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby frag.machine » Thu Dec 30, 2010 10:32 pm

<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!!!" :P ).
</stupididea>
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby mh » Thu Dec 30, 2010 11:25 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!!!" :P ).
</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
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest