View previous topic :: View next topic |
Author |
Message |
Dark$oul71
Joined: 05 Dec 2009 Posts: 55
|
Posted: Wed Dec 09, 2009 10:59 am Post subject: Darkplaces -> Issue with supported games & commandlin |
|
|
Hi all,
hopefully this is the right forum for this but I got a question related to
Darkplaces and it's supported game modes. According to the DarkPlaces readme
there is support for Quake 1 and both official Mission Packs.
Reference:
http://icculus.org/twilight/darkplaces/readme.html
Quote: |
Supported games
* Quake : -quake, this is active by default, gamedirs: id1
* Quake: Scourge of Armagon : -hipnotic or hipnotic in executable name or path, gamedirs: hipnotic, id1
* Quake: Dissolution of Eternity : -rogue or rogue in executable name or path, gamedirs: rogue, id1
...
|
So far, so good...for me this translates to standard quake behaviour:
If I want to play standard quake I start DarkPlaces like this:
darkplaces -quake -game id1
If I like to play Scourge of Armagor I type:
darkplaces -hipnotic -game hipnotic
For Dissolution of Eternity:
darkplaces -rogure -game rogue
Darkplaces also does some "autogamemode" setting if it detects rogue, id1 or hipnotic
via -game parameter. All is nice and clean as long as we do not use more than one expansion
together.
I've checked the map name of the "introduction" map in folders id1, rogue and hipnotic.
They are all called "start.bsp"
The fun starts if I use Kleshik because this coop mod relies on models (monsters & weapons) from the expansion packs.
I can easily play Scourge of Armagon with the following commandline:
darkplaces -hipnotic -game id1 -game hipnotic -game rogue -game kleshik
I get the start map from Scource of Armagon when I launch a single player game.
The same applies for Dissolution of Eternity with the following commandline:
darkplaces -rogue -game id1 -game hipnotic -game rogue -game kleshik
The strange behaviour occurs when I want to play "standard quake" together with Kleshik.
I am using the following commandline:
darkplaces -quake -game id1 -game hipnotic -game rogue -game kleshik
May be I am wrong but I would expect that the normal quake start map (the one with the three teleporters and the lava pit you need to jump over for hard game mode) shows up if I launch a single player game but it doesn't....
When I launch a single player game, I start in hipnotics start map. I'm able
to manually launch the first maps of standard Quake episodes but to me
this behaviour in Darkplaces seems odd. I have to crosscheck is this
happens without Kleshik though.
Any thoughts ?
TIA,
D$ |
|
Back to top |
|
 |
Baker

Joined: 14 Mar 2006 Posts: 1538
|
Posted: Wed Dec 09, 2009 12:10 pm Post subject: Re: Darkplaces -> Issue with supported games & comman |
|
|
If DarkPlaces multi-gamedir works similarly to pak files (pak1 supercedes pak0) then gamedir3 will supercede gamedir2 and gamedir1.
Therefore, Klesik needs to be last (for it's progs) and -game id1 needs to be second from last (for the id1 maps).
This provided my assumption is correct and operates on the assumption that Klesik doesn't have a map named "start". |
|
Back to top |
|
 |
Dark$oul71
Joined: 05 Dec 2009 Posts: 55
|
Posted: Wed Dec 09, 2009 12:29 pm Post subject: Re: Darkplaces -> Issue with supported games & comman |
|
|
Hi Baker,
thanks for your reply ! From a logical point of view this makes perfectly sense. I'll try out and report back !
Quote: |
This provided my assumption is correct and operates on the assumption that Klesik doesn't have a map named "start". |
Hm, I think that Kleshik doesn't include any maps since it "simply" adds new features to quake mostly using existing content.
Cheers,
D$ |
|
Back to top |
|
 |
mh

Joined: 12 Jan 2008 Posts: 909
|
Posted: Wed Dec 09, 2009 12:35 pm Post subject: |
|
|
The standard order in which gamedirs are added in Quake is:- ID1
- Rogue
- Hipnotic
- Anything specified with the -game option
These go in order of priority from lowest to highest, so when searching for content the Quake filesystem will first check the -game option, then hipnotic, then rogue, and finally ID1 before giving up. This is irrespective of the order they are specified on the command line. Hence the fact that you're getting the hipnotic start.bsp (assuming DP honours this standard order).
It's possible (and easy) to change this order in the engine code, but doing so runs the risk of breaking an undefined amount of mods that already exist, and that may rely on the order, so it's not recommended.
The solution for you would be to copy the start.bsp from ID1 (using something like PakScape or PakExplorer to extract it if required) to kleshik. _________________ DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines |
|
Back to top |
|
 |
Dark$oul71
Joined: 05 Dec 2009 Posts: 55
|
Posted: Wed Dec 09, 2009 12:45 pm Post subject: |
|
|
OK, granted...then the behaviour I am seeing is caused by the fact that Quake loads the Hipnotic mission pack at last and thus making the start.bsp of Hipnotic's pack the "most significant".
Thanks for clarification !
So in order to play the standard quake episodes I simply need to start the corresponding first map via commandline interface by using something like
"+map e1m2".
I'm ok with this ! I just thought that this might be an issue but in the first place Quake was never meant to run more than two concurrent game directories keeping games with identical map names. |
|
Back to top |
|
 |
mh

Joined: 12 Jan 2008 Posts: 909
|
|
Back to top |
|
 |
Dark$oul71
Joined: 05 Dec 2009 Posts: 55
|
Posted: Wed Dec 09, 2009 8:55 pm Post subject: |
|
|
ok, thanks for all your replies.
I've hacked together a small shell script with a simple menu which lets one choose each of the four quake episodes and the two expansion packs.
Code: |
#!/bin/sh
BASEDIR=`dirname $0`
echo "Kleshik Singleplayer Menu"
echo "========================="
echo "Please choose game:"
echo "1) Quake Episode 1 - The Doomed Dimension"
echo "2) Quake Episode 2 - The Realm Of Black Magic"
echo "3) Quake Episode 3 - The Netherworld"
echo "4) Quake Episode 4 - The Elder World"
echo "5) Quake MP 1 - Scourge of Armagon"
echo "6) Quake MP 2 - Dissolution of Eternity"
read answer
case $answer in
1) CLI=" -quake +map e1m1";;
2) CLI=" -quake +map e2m1";;
3) CLI=" -quake +map e3m1";;
4) CLI=" -quake +map e4m1";;
5) CLI=" -hipnotic +map start";;
6) CLI=" -rogue +map start";;
esac
$BASEDIR/darkplaces-linux-x86_64-glx -game id1 -game hipnotic -game rogue -game kleshik +skill 2 +set coop "1" -nocdaudio $CLI
|
I think I'll package this with two "get kleshik" and "update kleshik" scripts plus the readme and upload it somewhere.
I've PM-ed Dresk about the readme but unfortunately not received any reply until now.
Cheers,
D$ |
|
Back to top |
|
 |
|