Nexuiz on OpenSolaris

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

Nexuiz on OpenSolaris

Postby C.Brutail » Mon Apr 21, 2008 6:01 pm

Yesterday, a solaris user, "sartek" thanks to our beloved develoers (developers developers developers) found a way how to compile and play Nexuiz on Solaris:

http://blog.sartek.net/2008/04/nexuiz-o ... laris.html

So, we need to get nexuiz from here: http://alientrap.org/nexuiz

unzip it:
# unzip nexuiz-24.zip

change the working directory:
# cd Nexuiz/sources/

unzip the engine's source:
# unzip enginesource20080229.zip

# cd darkplaces

now, we need to change some files:
1. open `makefile` with your favorite text editor
add `SHELL=/usr/bin/bash` at the beginning, and if you have installed OSS (opensound system) add `DP_SOUND_API=OSS` I added it after `ifndef DP_MAKE_TARGET`
save & close

2. run this command:
# perl -pi -e 's/\bmodel_t\b/lh_dp_model_t/g' *.c *.h
it will replace the `model_t` function with `lh_dp_model_t`, we need this because `model_t` it's an internal solaris function

3. open `vid_glx.c` comment out line 292:
// vid_usingdgamouse = !!vid_dgamouse.integer;
save & close

4. open `snd_bsd.c`
a) comment out line 95
// break;
b) comment out line 197 and add `SndSys_Shutdown ();`
// SNDDMA_Shutdown ();
SndSys_Shutdown ();

5. now we can compile it:
# gmake cl-nexuiz
it should compile OK.

6. move the data files from Nexuiz to our folder:
# mv ../../data .

7. we can now play!
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby Psychcf » Mon Apr 21, 2008 6:24 pm

dave would be proud
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby :) » Tue Apr 22, 2008 12:37 am

Here's something that might help Vista users.
Right click nexuiz-sdl.exe (or nexuiz.exe if you use that) and in the Properties window check the box labeled Disable desktop composition. This helps a lot in my experience.
Image

[TSA] Psychcf wrote:dave would be proud

As if I'm dead.
I won't let those robots defeat me!
:)
Keyboard killer
 
Posts: 590
Joined: Tue Feb 28, 2006 9:09 pm

Postby C.Brutail » Tue Apr 22, 2008 12:42 am

How does vista come here anyway? :shock:
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby Psychcf » Tue Apr 22, 2008 1:23 am

C.Brutail wrote:How does vista come here anyway? :shock:

That's pretty obvious, you don't see it?
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Re: Nexuiz on OpenSolaris

Postby divVerent » Tue Apr 22, 2008 5:59 am

All of these changes have been applied to svn and will be in the next version, except for the makefile change (which I disagree with).

Can you tell me which part requires /usr/bin/bash and does not work with /bin/sh? I'd rather fix that one to work with /bin/sh too.

The other change you do to the makefile is not necessary either - you can change make variables on the command line, as in:

gmake DP_SOUND_API=OSS SHELL=/usr/bin/bash cl-nexuiz
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby divVerent » Tue Apr 22, 2008 6:00 am

Dave wrote:Here's something that might help Vista users.
Right click nexuiz-sdl.exe (or nexuiz.exe if you use that) and in the Properties window check the box labeled Disable desktop composition. This helps a lot in my experience.


What does it help with? fps, or crashes? Does it even do anything in fullscreen mode?
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby :) » Tue Apr 22, 2008 7:30 am

divVerent wrote:What does it help with? fps, or crashes? Does it even do anything in fullscreen mode?

Yes to all three. With it enabled the game is stuttery, and the driver (not the game) will crash. This behavior has been identical in windowed and fullscreen mode for me. (In full screen desktop composition will not automatically be disabled)
:)
Keyboard killer
 
Posts: 590
Joined: Tue Feb 28, 2006 9:09 pm

Re: Nexuiz on OpenSolaris

Postby sartek » Tue Apr 22, 2008 4:31 pm

bash-3.2$ make cl-nexuiz
make bin-release \
DP_MAKE_TARGET=sunos DP_SOUND_API=OSS \
EXE="nexuiz-glx" LDFLAGS_COMMON="-lm -ldl -lsocket -lnsl -R/usr/X11R6/lib -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86vm `if [ -n "" ]; then echo " /libmodplug.a -lstdc++"; fi`"
/bin/sh: syntax error at line 1: `end of file' unexpected
make: *** [cl-nexuiz] Error 2
bash-3.2$



divVerent wrote:All of these changes have been applied to svn and will be in the next version, except for the makefile change (which I disagree with).

Can you tell me which part requires /usr/bin/bash and does not work with /bin/sh? I'd rather fix that one to work with /bin/sh too.

The other change you do to the makefile is not necessary either - you can change make variables on the command line, as in:

gmake DP_SOUND_API=OSS SHELL=/usr/bin/bash cl-nexuiz
sartek
Newbie
 
Posts: 6
Joined: Tue Apr 22, 2008 4:28 pm

Re: Nexuiz on OpenSolaris

Postby divVerent » Tue Apr 22, 2008 9:57 pm

Damn, this does not help much.

Can you try the following commands on the OpenSolaris /bin/sh shell (run /bin/sh from the ocmmand prompt to make sure it is used):

echo "1"
echo ">> `echo 2` <<"
echo ">> `echo "3 4"` <<"
echo ">> `echo \"3 4\"` <<"
echo ">> $(echo "3 4") <<"
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Next

Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron