Pages: [1]
  Print  
Author Topic: OpenArena on Haiku Operating System  (Read 15695 times)
Barrett
Nub


Cakes 0
Posts: 4


« on: June 19, 2009, 10:38:26 AM »

Last night i compiled OpenArena on Haiku, after some headers problems and little hack the code finally compiled on Haiku, but when i try to load the game, it run in a black screen and then i need to kill the program.

I created a page to describe the procedure :
http://www.bluetechnoids.org/wiki/doku.php?id=openarena

What can cause this problem? 3D acceleration?

~/Desktop/openarena-0.8.1> ./openarena.i386 codered +set r_gldriver libGL.so +se
t r_allowSoftwareGL 1
ioq3+oa 1.35 Haiku-i386 Jun 19 2009
----- FS_Startup -----
Current search path:
/boot/home/.openarena/baseoa
./baseoa

----------------------
0 files in pk3 files
execing default.cfg
couldn't exec q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
----- Client Initialization -----
Couldn't read q3history.
----- Initializing Renderer ----
-------------------------------
QKEY found.
----- Client Initialization Complete -----
----- R_Init -----
SDL using driver "bwindow"
Initializing OpenGL display
Estimated display aspect: 1.333
...setting mode 3: 640 480
Kill Thread

I have another question, when compiling gcc says to me an error about this struct contained in renderer/tr_image_pcx.h :
typedef struct {
   char   manufacturer;
   char   version;
   char   encoding;
   char   bits_per_pixel;
   unsigned short   xmin,ymin,xmax,ymax;
   unsigned short   hres,vres;
   unsigned char   palette[48];
   char   reserved;
   char   color_planes;
   unsigned short   bytes_per_line;
   unsigned short   palette_type;
   unsigned short   hscreensize, vscreensize;
   char   filler[54];
   unsigned char   data[];
} pcx_t;

the error was related the last member (data[]) :
CC code/renderer/tr_image_pcx.c
/boot/home/Desktop/openarena-engine-0.8.1-haiku/code/renderer/tr_image_pcx.c:48: field `data' has incomplete type

I setted an arbitrary value to the array, what is the exact value? or how can i solve this problem?

thanks for the help!
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #1 on: June 19, 2009, 10:46:06 AM »

----- FS_Startup -----
Current search path:
/boot/home/.openarena/baseoa
./baseoa

----------------------
0 files in pk3 files
You need the pk3 files.
Logged

There are nothing offending in my posts.
Barrett
Nub


Cakes 0
Posts: 4


« Reply #2 on: June 19, 2009, 10:50:18 AM »

I have the pk3 files, i downloaded the package :
 http://download.tuxfamily.org/openarena/rel/081/oa081.zip

and then i replaced the binaries contained in the package with my Haiku binaries and i extracted all pk3 files in baseoa directory.
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #3 on: June 19, 2009, 10:58:07 AM »

You shouldn't extract the pk3 files.

You can try to add "+set sv_pure 0" on the command line to allow the game to load files not in pk3 files but it might not work for certain files.
Logged

There are nothing offending in my posts.
Barrett
Nub


Cakes 0
Posts: 4


« Reply #4 on: June 19, 2009, 11:06:19 AM »

i removed the files extracted from the pk3 files, and openarena show me this error :

/boot/apps/openarena> ./openarena.i386
ioq3+oa 1.35 Haiku-i386 Jun 19 2009
----- FS_Startup -----
Current search path:
/boot/home/.openarena/baseoa
./baseoa

----------------------
0 files in pk3 files
Couldn't load default.cfg
/boot/apps/openarena>

also with +set sv_pure 0

any ideas?
Logged
schlorri
i lurk the board index every minute!!!!
Lesser Nub


Cakes -51
Posts: 149


WWW
« Reply #5 on: June 19, 2009, 11:08:19 AM »

And the pk3 files are in the baseoa directory?
Edit:Ah...sorry, must lern to read.
Logged

-Join #aftershock in quakenet
-Visit the statspage http://oaunofficial.exulo.de/index.php
-Visit us on sourceforge http://sourceforge.net/projects/as-fps/
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #6 on: June 19, 2009, 11:16:55 AM »

any ideas?
The binary does still not find the files. Or maybe it cannot open them.

Try placing the pk3 files in: /boot/home/.openarena/baseoa/ (the full path that is mentioned in the output)
Logged

There are nothing offending in my posts.
Barrett
Nub


Cakes 0
Posts: 4


« Reply #7 on: June 19, 2009, 12:11:19 PM »

i tried to copy the pk3 files to /boot/home/.openarena/baseoa

but i get the same error, where are configured these dirs in the source? or where are managed?

anyway thanks for the help
Logged
Jondice
THIS ONE POST HERE SHOULD DO IT.


Cakes 0
Posts: 1


« Reply #8 on: July 25, 2009, 11:23:29 PM »

I recently had a similar problem on solaris - it turned out to be a permission problem - files in the game directory weren't readable by the user who was running the openarena executable.
Logged
BlankBruno
Nub


Cakes 3
Posts: 39



WWW
« Reply #9 on: December 24, 2010, 03:40:15 PM »

Just as an FYI, if anyone is interested in trying to get OA running on Haiku, the rumor mill has it that OpenGL 3D is now working on Haiku.  If anyone tries this and has any positive results, please let me know.  I'm an old BeOS die-hard and would love to see Haiku eventually flourish, but it can't do that unless it can handle OpenArena.  Smiley
Logged
Pages: [1]
  Print  
 
Jump to: