AprQ2 (linux) suggestions

The place to discuss your client and server issues, or to post your client and server related problems. Now with added Anticheat flavour.

Moderator: Moderators

Post Reply
zly
is connecting
Posts: 15
Joined: Sun Aug 29, 2004 1:01 pm
Location: dk
Contact:

AprQ2 (linux) suggestions

Post 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
no rest for the wicked..
zly
is connecting
Posts: 15
Joined: Sun Aug 29, 2004 1:01 pm
Location: dk
Contact:

Post 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.
no rest for the wicked..
sajh
is legless
Posts: 560
Joined: Fri Sep 12, 2003 7:26 am
Location: se

Post 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.
whine...<br />
"på kvällarna förvandlas den spenslige solidas till....... STÅL-TIRRE!" - minch<br />
"i hoped i cud get a chance in iN when i saw even solidas cud do it " - Snigge/2fast4j00<br />
"iN minus sajh would be a nice clan and way better, but i would never ever stand playing with such an annoying player, lucky me that i didnt get a try in iN" - Romo
" it seems he is a "rich" mans child with to much attitude, he's like the man version of Paris Hilton... such a jerk" - Romo
Stric
needs some Pepto Bismol
Posts: 730
Joined: Tue Jul 29, 2003 5:41 am
Location: si
Contact:

Post 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.
Image
Image
^stric^
zly
is connecting
Posts: 15
Joined: Sun Aug 29, 2004 1:01 pm
Location: dk
Contact:

Post 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.
no rest for the wicked..
Post Reply