the Rainbow Networks
+++eXy FFA
Map: q3dm13
Players: 2 / 18
The golden pot › RAINBOW NETWORKS › Defrag tricks & tutorials › READ: RN|CPM RUNS server has reached the map limit
READ: RN|CPM RUNS server has reached the map limit
New to Defrag? Pro? Super Pro? Super Defrag Movie Pro? come here... :D
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexDefrag tricks & tutorials
View previous topic :: View next topic  
Author Message
jackthompson
Admin
Admin


Joined: Aug 15, 2007
Posts: 1302
Location: Here

PostPosted: Thu Nov 27, 2008 8:14 am    Post subject: READ: RN|CPM RUNS server has reached the map limit Reply with quote

A server can only handle up to ~1024 maps. We reached that limit already.

Packing all maps into a single PK3 or having only the bsp files on the server will break autodownload.

So, in future, after every upload, the oldest of the maps that have been voted less then two times will get deleted.

The deleted maps can be uploaded again and even the high scores of these maps wont be lost. When the map is back they'll show up in rainbow.furver.se/inde...inbow_Maps as usual.

It will be like first in, first out and only the popular maps will stay.

Until we have this working some maps that show in the list might not be available on the server.

Sorry for that.
Back to top
View user's profile
SnooSnoo
Übergod
Übergod


Joined: Aug 18, 2007
Posts: 1453
Location: Croatia

PostPosted: Thu Nov 27, 2008 8:54 am    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

The most resonable way to resolve this, good work. :)

_________________
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Thu Nov 27, 2008 2:47 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

jackthompson wrote:
A server can only handle up to ~1024 maps. We reached that limit already.

Uh ?? No way to make that limit a bit higher ( eg. 2048 ) with some code modification ?

I'll get a look into it.
Back to top
View user's profile
[sXe]
Forum Addict
Forum Addict


Joined: Sep 27, 2007
Posts: 354
Location: Germany

PostPosted: Thu Nov 27, 2008 4:00 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

Yep Falkland uploaded a patch for that issue which works fine 4 me!

_________________

Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Thu Nov 27, 2008 5:01 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

YEEEEEEEEEEEES

What a great idiot I AM ...

The server is linux based so it could be enough to increase handable file descriptors prepending ulimit -n 2048 or 4096 at the command line :/
Back to top
View user's profile
jackthompson
Admin
Admin


Joined: Aug 15, 2007
Posts: 1302
Location: Here

PostPosted: Thu Nov 27, 2008 7:27 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

nah... the problem is that the server sends a string containing the white-space separated crc32 of all pk3 to the client... that string can only be max. 8192 bytes long... so (8 bytes for the crc + white space) * ~1024 and the limit is reached... increasing the size on the server side would break communication with the client... sending only the crc32 of the current pk3 would be a solution.. but wouldn't work when there are pk3 with dependencies... so that FIFO-delete thing is probably the best way..
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Thu Nov 27, 2008 7:43 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

jackthompson wrote:
nah... the problem is that the server sends a string containing the white-space separated crc32 of all pk3 to the client... that string can only be max. 8192 bytes long... so (8 bytes for the crc + white space) * ~1024 and the limit is reached... increasing the size on the server side would break communication with the client... sending only the crc32 of the current pk3 would be a solution.. but wouldn't work when there are pk3 with dependencies... so that FIFO-delete thing is probably the best way..

So it's a pure server control mechanism failure ... or not ?

And if the modification could be global (for both client and server ) , will this behaviour still be the same ?
Back to top
View user's profile
[sXe]
Forum Addict
Forum Addict


Joined: Sep 27, 2007
Posts: 354
Location: Germany

PostPosted: Thu Nov 27, 2008 7:47 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

I don't bother I hav already collected more than 1 GB defrag maps :hihi:

_________________

Back to top
View user's profile
jackthompson
Admin
Admin


Joined: Aug 15, 2007
Posts: 1302
Location: Here

PostPosted: Tue Dec 02, 2008 11:41 am    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

for now all maps voted less than twice have been moved here

62.212.66.94/maps/defr...ps_offline

the amount of pk3 has been reduced by ~100 to 950... so it might take some time before we run into problems again

IF there are high scores for offline maps.. they're not lost and will show automatically when the map is evtl. uploaded again
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Tue Dec 02, 2008 4:18 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

Jack ... I've got a look into the code , but I didn't find that piece .

Could you plz post it or tell me where do I have to look at ?
Back to top
View user's profile
jackthompson
Admin
Admin


Joined: Aug 15, 2007
Posts: 1302
Location: Here

PostPosted: Tue Dec 02, 2008 4:44 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

Falkland wrote:
Jack ... I've got a look into the code , but I didn't find that piece .

Could you plz post it or tell me where do I have to look at ?

sure... BIG_INFO_STRING is defined in code/qcommon/q_shared.h

you search for it in code/qcommon/files.c to find the functions that put together the string that gets transferred from server to the client containing upto ~1024x8 characters that represent the crc32 of the pk3 in ASCII...

increasing BIG_INFO_STRING is no problem... but it would require a re-compiled client too or you'll have a buffer overrun... i guess as i haven't looked further..
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Tue Dec 02, 2008 5:33 pm    Post subject: Re: READ: RN|CPM RUNS server has reached the map limit Reply with quote

jackthompson wrote:

sure... BIG_INFO_STRING is defined in code/qcommon/q_shared.h

increasing BIG_INFO_STRING is no problem... but it would require a re-compiled client too or you'll have a buffer overrun... i guess as i haven't looked further..

ok . tnx I got it :)

But I think it's not a good idea increasing BIG_INFO_STRING 'cause it's referenced in other function that really don't need it bigger.

Maybe define a proper PURE_INFO_STRING constant to use only in that function , but I've realized only now that it will be a problem for q3 clients that cannot be recompiled ... so ur solution is actually the best .
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum Index -> Defrag tricks & tutorials All times are GMT + 1 Hour
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Welcome Anonymous


Membership:
Latest: kontol
New Today: 0
New Yesterday: 0
Overall: 355

People Online:
Members: 0
Visitors: 35
Total: 35
Who Is Where:
 Visitors:
01: The golden pot
02: The golden pot
03: The golden pot
04: The golden pot
05: The golden pot
06: Home
07: The golden pot
08: The golden pot
09: The golden pot
10: The golden pot
11: The golden pot
12: The golden pot
13: The golden pot
14: The golden pot
15: The golden pot
16: The golden pot
17: Maps
18: The golden pot
19: Home
20: The golden pot
21: The golden pot
22: The golden pot
23: The golden pot
24: The golden pot
25: The golden pot
26: The golden pot
27: The golden pot
28: The golden pot
29: The golden pot
30: The golden pot
31: The golden pot
32: The golden pot
33: The golden pot
34: The golden pot
35: Home

Staff Online:

No staff members are online!

The Rainbow Networks website is hosted by JockeTF and Soder on furver.se.

The Rainbow Networks
Interactive software released under GNU GPL, Code Credits, Privacy Policy
Azul theme and related images designed by Jamin