Page 1 of 1

AprQ2 (linux) suggestions

Posted: Sun Nov 25, 2007 8:24 am
by zly
./Makefile
Add -rdynamic to LDFLAGS
wereHamster wrote: If the aq2 exe loads a library, and the library needs to resolve symbols that are in the exe itself, then you have to use -rdynamic.
Without it, the AprQ2 game{ARCH}.so produces undefined symbol: Com_Error at runtime

./linux/rw_sdl.c
Call SDL_EnableKeyRepeat()
Keyboard autorepeat is disabled by default when using SDL, and it gets rather annoying when scrolling up/down in the console.

./ui/ui_video.c
Change Cvar_Set( "gl_driver", "libGL.so" ); to "libGL.so.1"
./game/q_shared.h
Change # define GL_DRIVERNAME "libGL.so" to "libGL.so.1"

libGL.so is wrong according to the linux opengl ABI, it should be libGL.so.1

Posted: Mon Feb 25, 2008 4:31 am
by zly
Another idea, which is not linux specific:

Since both curl and minizip are implemented in AprQ2, how about interacting with websites hosting maps/skins/whatever.

Something like a cvar to hold the baseurl of a server (like lahtela or Quadever's map archives), and a command to download a map from that server, and extract it to gamedir.

Perhaps even automatically try to do the above, when entering a server where the map is not available local, or through download from the gameserver.

Posted: Mon Feb 25, 2008 5:42 am
by sajh
'tis a good idea, however it would probably be better to query the mapserver first, instead of the game server. As downloading the file as a zip normally is way faster than downloading from the gameserver.

Posted: Mon Feb 25, 2008 6:49 am
by Stric
r1chs server binary has all that. Its called HTTP downloading.
You can make repository, gzip stuff and set url at server and viola.
One bad thing about it is that it looks for *.gz files.

Posted: Mon Feb 25, 2008 7:59 am
by zly
Uncle- wrote:r1chs server binary has all that. Its called HTTP downloading.
You can make repository, gzip stuff and set url at server and viola.
One bad thing about it is that it looks for *.gz files.
Maniac has already implemented that feature in AprQ2, but it requires the servers to be set up accordingly, which they for some reason don't (i have yet to see a server which does).

But the idea was to be able to download maps from an archive, without quiting the game, going to the website, click the link, unzip content to the action folder, re-enter the game, but instead merely type a single command with the name of the map, and voilá, AprQ2 would handle it all.