Author Topic: Updated AprQ2 for Mac and Linux users  (Read 54272 times)

Offline Cheaters-r-Scum

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #60 on: March 04, 2011, 06:14:08 AM »
- Added cl_draw_playername, cl_draw_playername_x, cl_draw_playername_y from Q2PRO (view player names by pointing at them in game)

Personally, I have had cl_draw_playernames for years now in my modifications to the AprQ2 sources. :-)
Very nice feature indeed and works flawlessly (in Linux and Windows).


Regards, CRS
  • 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 toecutter

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #61 on: March 11, 2011, 12:29:19 AM »
Hi All,
Just wanted to jump in as another Mac gamer. I didn't play q2 for ages now, but came across AprQ2 when looking for a new engine - strangely there seems to be more Q1 engines in development now.
Having to build the AprQ2 app yourself seems to be a bit of an ask. Is it not possible to distribute a binary?
  • 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: 644
    • View Profile
    • Quetoo.org
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #62 on: March 11, 2011, 05:24:39 AM »
Anything's possible  ;)  I'd just have to spend a few hours figuring out how to produce a statically linked binary.  The main reason it requires folks to compile it on their own right now is that it is dynamically linked against libsdl, libpng, libcurl, .. On Windows, I could just distribute those .dll files alongside the binary and Windows would figure it out.  It doesn't work that way on Mac, unfortunately.

In the next week or two, I'll try to carve out a little time to fix the mouse bug and produce a static bin.

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #63 on: March 11, 2011, 05:59:15 AM »
The main reason it requires folks to compile it on their own right now is that it is dynamically linked against libsdl, libpng, libcurl, .. On Windows, I could just distribute those .dll files alongside the binary and Windows would figure it out.  It doesn't work that way on Mac, unfortunately.

BTW, there's a way to modify the library path embedded in the binary to make the load path relative to your app.  We do this with libsdl on OS X because we can't statically link to it.  (LGPL vs. closed-source app)

It's been years since I've dealt with this, I'll try to recall the procedure...


 :exqueezeme:

  • 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
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #64 on: March 11, 2011, 01:34:37 PM »
BTW, there's a way to modify the library path embedded in the binary to make the load path relative to your app.  We do this with libsdl on OS X because we can't statically link to it.  (LGPL vs. closed-source app)

It's been years since I've dealt with this, I'll try to recall the procedure...

Here's a HOWTO + discussion:

http://www.cocoadev.com/index.pl?MoreOnEmbeddingFrameworks

Wow, several people there had more trouble with it than I recall having.

But we don't rename the framework like they did, so for us it was pretty much just:

Quote
# select Settings/Simple View/ Installation Settings
# Change the "Path:" to "@executable_path/../Frameworks"
# Build the framework


 :shifteyes:
  • 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
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline Jay Dolan

  • Swanky Member
  • *****
  • Posts: 644
    • View Profile
    • Quetoo.org
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #65 on: March 12, 2011, 05:22:20 AM »
Thanks quadz.  I'll give the static build a shot, and if I hit any roadblocks I'll try this.

Offline toecutter

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #66 on: March 12, 2011, 05:39:25 AM »
That would be very cool, Jay. I'll key an eye out for updates.
  • 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 erik

  • Full Member
  • ***
  • Posts: 187
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #67 on: March 12, 2011, 07:58:36 PM »
I'm just waiting for the mouse bug fix :)

I haven't played q2 since I installed aprq2....worked 60 hours this week.  No free time.
  • 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 [BTF] Reflex

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5324
  • !
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #68 on: March 13, 2011, 08:28:37 AM »
I actually had a dream about this last night.  I had a mac for some reason,  and the mouse bug was really messing me up.  I could turn like 45 degrees left or right. 

Felt so real.
  • 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
Sometimes I think it’s a sin when I feel like I’m winnin’ when I’m losin’ again

Offline QuakeDuke

  • Swanky Member
  • *****
  • Posts: 672
  • Spring 2010
    • View Profile
    • Where to find me.
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #69 on: March 13, 2011, 02:38:12 PM »
I actually had a dream about this last night.  I had a mac for some reason,  and the mouse bug was really messing me up.  I could turn like 45 degrees left or right. 

Felt so real.

It was all a dream Reflex. Remember, there is no 45 degree angles only 1 90 degree divided by 2. wait! there are no 2's only 0's and 1's.... HELP!!! BENDER!!!!!

 
  • 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
-- There's a reason I live on a hill.....

Offline VaeVictis

  • i was -1 because you fucking suck
  • Brobdingnagian Member
  • *
  • Posts: 4498
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #70 on: March 14, 2011, 10:22:31 AM »
I had the most horrible dream... Ones and zeros everywhere! And i thought i saw a two...
  • 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 erik

  • Full Member
  • ***
  • Posts: 187
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #71 on: March 14, 2011, 02:46:00 PM »
Update....I deleted the aprconfig.cfg generated by the game and then started the game up.  Full mouse movement.  Quit the game, and then edited gl_modulate, gl_mode, and vid_gamma in the aprconfig.cfg that was automatically generated.  Started the game up, and joined dm/mutant servers, full mouse movement.

Joined tourney4, mouse movement restricted. 

Is there anything special that I need to do to not get the mouse movement to be restricted on tourney4?  Is there something about that mod that is different than dm/mutant that would require a vid_restart or whatever causes the mouse bug in the first place?

  • 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

b0yce

  • Guest
Re: Updated AprQ2 for Mac and Linux users
« Reply #72 on: March 14, 2011, 02:57:10 PM »
i was at a mates place last night and he uses lucid linux the new one, it looks pretty good and simple, he gave me the cd i was thinking of givng it a go. he showed me how to do most things on it, seems simple enough, but i am still not sure about loading q2 on linux, like how hard is it? will i still be able to use my paks and configs? am i only able to use aprq2 instead of r1q2?
  • 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: 644
    • View Profile
    • Quetoo.org
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #73 on: March 14, 2011, 03:45:33 PM »
Update....I deleted the aprconfig.cfg generated by the game and then started the game up.  Full mouse movement.  Quit the game, and then edited gl_modulate, gl_mode, and vid_gamma in the aprconfig.cfg that was automatically generated.  Started the game up, and joined dm/mutant servers, full mouse movement.

Joined tourney4, mouse movement restricted. 

Is there anything special that I need to do to not get the mouse movement to be restricted on tourney4?  Is there something about that mod that is different than dm/mutant that would require a vid_restart or whatever causes the mouse bug in the first place?

There's a bug somewhere in the SDL -> OpenGL context management code where the mouse gets screwed up after its already been initialized once.  Haven't tracked it down yet.  Honestly, I haven't even looked for it yet -- been pretty heads-down on work work and Quake2World stuff.

I did take a stab at building a statically linked executable and it went fine up until gcc tried to link it against Apple's C runtime -- then it blew up saying that it couldn't find libcrt.so.0, which is odd.. I dunno.

I'll try to look into the mouse thing soon.  It doesn't happen on Linux, which is odd.  But Quake2World does not exhibit this behaviour on OS X so I know that I have some good code I can borrow (my own  ;D) if need be.

Offline erik

  • Full Member
  • ***
  • Posts: 187
    • View Profile
  • Rated:
Re: Updated AprQ2 for Mac and Linux users
« Reply #74 on: March 14, 2011, 05:37:16 PM »
set game "opentdm" in aprconfig.cfg allows me to play on any of the tourney servers.

I guess for now I can just do that when I know I will be playing on an opentdm server.
  • 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:

 

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.
 

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM
 

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 25, 2024, 03:01:06 PM

Login with username, password and session length