News | Forum | People | FAQ | Links | Search | Register | Log in
Quakespasm Engine
This engine needs its own thread.

Feedback: I like the OS X version, but I have to start it from the terminal for it to work and can't just double-click it like a traditional OS X app. I'm sure you guys already know this, either way great engine.

http://quakespasm.sourceforge.net/
First | Previous | Next | Last
Quake Just Doesn't Have A Music System 
Even if every engine implemented emulation of the cd audio the same way, it wouldn't be a music system that can be counted on robustly in gameplay/gamecode at all. Trying to use in-world sound entities has even worse limitations.

It'd be nice to be able to just include a .dll in with a quake mod that adds its own locally contained SVCs and builtins. The issue of netcode being rendered permanently incompatible would go away, because id1 would still work like id1 and you have to run Quake with the same mod as other people joining your game or playing back your demo anyway. Then every tin-pot quake modder can gleefully create their own utterly incompatible music systems and particle systems and whatever else without everything immediately reverting to the usual argument about how it doesn't comply with the standards that nobody's upholding. 
Save Game Workaround 
It's possible to use a "nosave" variable to detect when a saved game has been loaded, and thus restore things after a save is loaded. No reason why you couldn't code your CD system into that. Of course, playing CDs always start the track over, but I doubt anyone was expecting the CD method to provide anything but a loop. 
 
Its fine, I have a QC solution already with background tracks and additional ambient stuff triggered on events. The downside is when the console is dropped, QC stops. I was wondering about the idea of looped background ambient tracks and found the console commands were different. Nothing to worry about, doing the QC route. 
Nosave Variable? 
 
Blogpost Coming Tomorrow! 
nt 
Pre-post Checking 
@Lunaran, it is a compiler option that can be useful for checking if a map has just loaded. Check the client.qc in the code I sent you a while ago. There is a good example in the playerprethink, playerpostthink functions. 
 
That's terrific.

https://www.google.com/search?q=qcc+nosave

How does stuff like this get added to literally all new qcc compilers without being documented or written down anywhere? 
QuakeSpasm On Mac 
So, I recently gave in and bought a Macbook Pro, and like any sane person would do, I have installed Quake on it. However, when I try and run Quakespasm, I just get an error with a load of garbage I don't understand.

Here's the crash log for anyone willing to check it out: http://pastebin.com/En6Tw6Fx


Mini rant:
Seriously, this whole Mac thing feels like it was a big mistake. I feel like less software works than either Windows or Linux Mint, and the default behaviour of some parts of the UI is just baffling. Maybe I'll understand the Mac way soon enough, or maybe I'll just figure out how to get Windows 7 installed first. The hardware is nice at least :)

Keyboard layout is driving me crazy too. Non-US layouts seem to have caps lock in an insane position (the Japanese one does at least). Keyboard also seems way laggier and has shorter/no input buffer compared to Windows, or perhaps that's just my imagination. 
You Are Probably Just Holding It Wrong 
grab a latte moccachino soy dry and sit on your fixie before trying again.

maybe SDL needs to be installed? 
 
It looks like you do have SDL (as part of the QuakeSpasm app) but the crash is happening during an SDL call.

I'm not super-optimistic about this helping, but one thing you could try is downloading the latest SDL 1.2.x for OS X from https://www.libsdl.org/download-1.2.php ... looks like the current version is 1.2.15, and the one you have in the QuakeSpasm app is 1.2.14. Then open up the QuakeSpasm app and replace the SDL files (at /Applications/Quake/QuakeSpasm.app/Contents/Frameworks/SDL.framework/Versions/A/SDL ).

However it seems like there may be more going on there that would require QuakeSpasm changes to adapt to. This thread on the OS X version of Mark of the Ninja seems to be dealing with the same sort of crash, and has some developer comments: http://forums.kleientertainment.com/topic/29135-crashes-on-start-11-macbook-air/

Also ioquake3: ioquake3: http://www.ioquake.org/forums/viewtopic.php?f=12&t=1928

Also this (and so forth and so on): https://www.frictionalgames.com/forum/thread-24729.html

Googling about OS X Mavericks crashes in interpolate_table (or when calling SDL_GetGammaRamp / SDL_SetGammaRamp) should turn up more stuff, maybe there are specifics in there about what the exact issue is but I haven't seen that yet & have to leave for work now. :-) 
Johnny 
Thanks for the info.

I tried replacing SDL, but to no avail. I guess I'll have to wait for a fix :( 
I Get This Too, It's Annoying 
Do you have a copy of SDL.framework installed in /Library/Frameworks ? If so, try deleting it or moving it aside, this fixes the crash for me.

Otherwise, I can post a beta build that uses SDL2 and doesn't have this issue! 
Same Crash 
OSX 10.9 
Here's An Sdl2 Mac Build 
Working! 
the sdl2 alpha fixes it. Thanks! 
SDL1 Crash 
Hmmm.. Tried out QS 0.85.9 (12 April 2013) and it works ok on my 10.9.2 box. I dont have 10.9.3

But Oz's latest dev version doesnt work on Lion or OS X 10.9.2 *without system SDL*. It seems to have a malformed dynamic lib path - the @rpath doesnt look familiar to me, and should probably be @executable_path

Dyld Error Message:
Library not loaded: @rpath/SDL.framework/Versions/A/SDL
Referenced from: /Users/USER/*/QuakeSpasm.app/Contents/MacOS/QuakeSpasm
Reason: image not found

Of course, the reported crash above has a different log. I dont have OS X 10.9.3 to test with 
SDL 2 Beta 
Starts ok on Lion and Mavericks. :) FPS on demo1 is similar ro SDL 1.

But god-damn it , i still have the fullscreen gamma bug on both. What a crock &^% 
 
@than, cool, glad it works for you!

@stevenaaus, what's the fullscreen gamma bug you get? The brightness slider wasn't working for me for a while, but I found out it was my screen dimming software (f.lux) - I just have to quit that and then the brightness slider works correctly.

The brightness control in SDL kind of sucks, it affects the whole monitor in windowed mode and clashes with things like f.lux. From what I've read the proper way, if recent OpenGL is available, is to use a FBO + fragment shader, but not sure how much work it would be. 
@ericw 
Mark V uses a rather simple mechanism to handle brightness that only affects the window and is entirely crossplatform.

http://quake-1.com/docs/scr_brightness.txt

Called once per frame right before GL_EndRendering ();

No more hardware gamma and all the hassles/complexities.

MH wrote the code and Reckless saved it and pointed it out to me a little over a year ago. 
 
brightness is additive, contrast is multiplicative, gamma is exponential.

the code you (baker) linked is contrast, not brightness as you claim, nor gamma as the code appears to claim. these things all have quite specific definitions. :s

both contrast and brightness can easily be rendered using the appropriate combiners stuff (potentially requiring multiple passes). actual gamma requires glsl or hardware gamma ramps.

all this stuff will have the effect of slowing down the game.
its worth spending the time to add support for fragment shaders, if only to also fix the uglyness of water and skies... 
Right When 
I'm monkeying with this from QC :D 
 
what's the fullscreen gamma bug you get?

When game runs in fullscreen, after a few seconds, or intermittantly, game goes quite dark. Longstanding and confusing thing.
Since it is seen to our SDL2 build too, maybe it is connected to our launcher ?

I think if i install libSDL.so and Quakespasm like on an ordinary Unix , there is no bug. 
@Spike 
Yeah sure except note the following ...

the code you (baker) linked is contrast, not brightness as you claim

The standard Quake brightness cvar is called "gamma" -- I wasn't about to change a cvar name everyone has used for 15 years ;)

And the function was named SCR_Brightness by MH so I kept the name, besides the slider bar is called "brightness."

Source thread: http://forums.inside3d.com/viewtopic.php?f=3&t=5185

(Looks like Reckless goes by Revelator now. 
@stevenaaus 
Gamma bug.

Is a major reason why I ditched hardware gamma in Mark V. It stupidly affects Windows and OS X.

I wrote tons of code trying to catch the system event that mucks up the brightness in Windows after switching between fullscreen and windowed mode. There isn't one.

Thread has some interesting infos on the topic: http://forums.inside3d.com/viewtopic.php?f=3&t=5185 
SDL-1.2, Rpath And Crash 
The rpath thing is fixed in a later build+package, and there should be no crashes. Here:
http://uhexen2.sourceforge.net/tmp/QuakeSpasm-0.85.10-macosx-TEST2.zip

Not sure about the gamaa issue, though. 
First | Previous | Next | Last
You must be logged in to post in this thread.
Website copyright © 2002-2024 John Fitzgibbons. All posts are copyright their respective authors.