Author Topic: R1Q2 Mac Os X and Linux  (Read 6297 times)

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1243
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #15 on: March 18, 2015, 07:53:21 PM »
Minor quibble, there are lots of places in this code where Com_Printf is called without a level argument and LLVM complains with a warning. Example in snd_dl.c, where it should probably be called with LOG_CLIENT for level:

Code: [Select]
qboolean SNDDMA_Init(int fullInit)
{
SDL_AudioSpec desired, obtained;
int desired_bits, freq;

if (SDL_WasInit(SDL_INIT_EVERYTHING) == 0) {
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
Com_Printf ("Couldn't init SDL audio: %s\n", LOG_CLIENT, SDL_GetError ());
return 0;
}
} else if (SDL_WasInit(SDL_INIT_AUDIO) == 0) {
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0) {
Com_Printf ("Couldn't init SDL audio: %s\n", LOG_CLIENT, SDL_GetError ());
return 0;
}
}
....

This project is originally based on b6990 and I have not compared it to b8012 which is the last version r1ch released.
« Last Edit: March 18, 2015, 08:42:34 PM by QwazyWabbit »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline julian

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #16 on: March 28, 2015, 01:41:00 PM »
Ok, here it is. Thanks!

Last login: Sun Mar 29 00:31:38 on console
Edmunds-Air:~ Edmund$ /Users/Edmund/Desktop/untitled\ folder/Quake\ II\ Starter/r1gl.app/Contents/MacOS/r1gl ; exit;
Added packfile ./baseq2/pak0.pak (1106 files)
Added packfile ./baseq2/pak1.pak (279 files)
Added packfile ./baseq2/pak2.pak (2 files)
Added packfile ./baseq2/pak7.pak (28 files)
Added packfile ./baseq2/pak8.pak (234 files)
Added packfile ./baseq2/pak9.pak (736 files)
====== Quake2 Initialized ======
R1Q2/SDL build 6990, compiled Jan 28 2007.
http://www.r1ch.net/stuff/r1q2/
OSX i386 (/Users/Edmund/Desktop/untitled folder/Quake II Starter/r1gl.app/Contents/MacOS/r1gl)

Console initialized.
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory
Failed to initialize video!
Error: Failed to initialize video!
logout

[Process completed]
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Jay Dolan

  • Swanky Member
  • *****
  • Posts: 640
    • View Profile
    • Quetoo.org
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #17 on: March 29, 2015, 07:56:16 PM »
The error is pretty obvious, no?

Code: [Select]
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory

So the working directory is `/Users/Edmund/Desktop/untitled folder/Quake II Starter`, but R1Q2 lives underneath that, in `./r1gl.app/Contents/MacOS` (probably).

Slayer you may wish to add a little logic to help the game figure out its paths when running from within a .app bundle. There's code that does this in Quetoo here:

https://github.com/jdolan/quetoo/blob/master/src/sys.c#L64
https://github.com/jdolan/quetoo/blob/master/src/filesystem.c#L574

A simpler approach would be to use an environment variable (R1Q2_HOME or something) from within the game, and then modify the app bundle to launch via a shell script, which sets the variable by looking at $0.

Offline Slayer

  • Newbie
  • *
  • Posts: 10
    • View Profile
  • Rated:
Re: R1Q2 Mac Os X and Linux
« Reply #18 on: September 06, 2015, 02:14:39 PM »
Code: [Select]
vid_ref = ref_r1gl.so
------- PWD: /Users/Edmund/Desktop/untitled folder/Quake II Starter -------
------- Loading ref_r1gl.so from ./ref_r1gl.so -------
LoadLibrary("ref_r1gl.so") failed: No such file or directory

Julian, make sure ref_r1gl.so it is in the folder that contains r1q2.app. It should automatically search there. If it still can not find it, try using the ref_gl.so i am attaching to this post. Back when i was messing with this more i remember having trouble getting r1q2 to find r1gl.so. The normal gl file that i am sending should work if you put it in your main quake folder (the one that contains r1q2.app and baseq2). The only two files i have inside the .app bundle are the actual program in /MacOS and SDL.framework in /Frameworks (besides icon files and the like) So i don't know if it looks for the gl files within the bundle itself or not.

I'm going to start tinkering with this again soon. It is still my favorite mac client by far, in some cases i even like it more than the windows version. Like i said before, none of this is my own work. I'm learning as i go along.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

|iR|Focalor

October 17, 2019, 12:48:27 PM
Servers are doing it again.

0rbisson

October 12, 2019, 04:21:10 AM
Miss this game. Will come back for 1 last run some day

dataspel

October 10, 2019, 04:03:16 PM
back up thanks sir!
 

Admin

October 10, 2019, 03:53:32 PM
Strange, seems UDP packets are being blocked somewhere in the datacenter.

Oh, of course as I type this it starts working again. (Was about to submit a trouble ticket. Let's see if it holds up.)

dataspel

October 10, 2019, 03:51:10 PM
Servers down?
 

|iR|Focalor

October 10, 2019, 03:37:00 PM
Multiple people were experiencing it earlier. (fatknitty, etc) Several people timed out and DC'd in spurts. It's apparently doing it again.
 

|iR|Focalor

October 10, 2019, 03:32:24 PM
Definitely not.
 

Admin

October 10, 2019, 02:32:01 PM
Servers seem OK here?
 

|iR|Focalor

October 10, 2019, 02:07:52 PM
Yer servers are broke.

rikwad

October 06, 2019, 07:44:06 AM
Neat textures Unholy..thanks for the work! I have Elysium's deathmatch skins here if anyone wants:


https://drive.google.com/file/d/1soI5iUSdbjULSevQTTWcbtSxhjh8R6__/view?usp=sharing

The ones you put up are his team skins, I think. Thanks again!



Show 50 latest
Welcome, Guest. Please login or register.
October 19, 2019, 10:29:34 AM

Login with username, password and session length