Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2014-10-02 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 02, 2014, 06:49:30 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://ownageclan.com/jenkins/job/War3Source-Default1/
WIKI page: http://ownageclan.com/wiki/index.php/Main_Page
War3Source GIT repo: https://github.com/War3Source/War3Source
War3Source servers: http://www.game-monitor.com/search.php?vars=a_war3_version=
War3Source Function Reference: http://ownageclan.com/war3source/functionreference/?search=player
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: MAX RACES REACHED, CANNOT REGISTER  (Read 472 times)
Remy Lebeau
Sr. Member
****
Posts: 444



View Profile WWW
« on: September 25, 2014, 11:22:49 PM »

And then this happened:

[w3s/War3Source_Engine_RaceClass.smx] MAX RACES REACHED, CANNOT REGISTER ...

I take it that in order to fix this I need to change the #define in constants and recompile everything?
Logged

Revan
Sr. Member
****
Posts: 450



View Profile
« Reply #1 on: September 26, 2014, 12:25:51 AM »

Recompiling the core plugins should be enough but I'm not 100% sure.

Just for reference, you got 199 races? Not bad  Grin
Logged

#war3source on gamesurge
Remy Lebeau
Sr. Member
****
Posts: 444



View Profile WWW
« Reply #2 on: September 26, 2014, 04:32:10 PM »

Recompiling the core plugins should be enough but I'm not 100% sure.

Just for reference, you got 199 races? Not bad  Grin

We've got more than that, hence the problem ;-)

I've recompiled with the #define at 400, all seems to be working so far.
Logged

-El Diablo
Hero Member
*****
Posts: 550


View Profile
« Reply #3 on: September 27, 2014, 10:03:26 AM »

We could possibly make that number dynamic if we converted War3Source from being a Multiple file plugin into a single file plugin.   And in that, is a ton of work :/

Logged
Revan
Sr. Member
****
Posts: 450



View Profile
« Reply #4 on: September 27, 2014, 12:20:45 PM »

We could possibly make that number dynamic if we converted War3Source from being a Multiple file plugin into a single file plugin.   And in that, is a ton of work :/

How would you do that? This has absolutely nothing to do with War3Source being separated into multiple plugins. If you want to add dynamic support you would've to replace the static arrays with dynamic arrays(see github issue #29)
Logged

#war3source on gamesurge
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2388


chmod -R 777 *


View Profile WWW
« Reply #5 on: September 27, 2014, 04:34:36 PM »

dynamic arrays are stupid until sourcemod lifts arbitrary memory leak detection limit

they are also hard to deal with, they leak everywhere
Logged

Revan
Sr. Member
****
Posts: 450



View Profile
« Reply #6 on: September 28, 2014, 04:34:59 AM »

dynamic arrays are stupid until sourcemod lifts arbitrary memory leak detection limit

the detection limit only affects handle count as far as I know. There should be no problem if we only add cells(not handles) to the ADT array.

Doing the transition requires much work. Most code relies on MAXRACES so a lot stuff would've to be rewritten.
Logged

#war3source on gamesurge
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2388


chmod -R 777 *


View Profile WWW
« Reply #7 on: September 28, 2014, 09:23:19 AM »

i don't think so

try creating one signal adt array and push_back in a while loop

technically thats one handle, see when it errors out


had this discussion with anthony many times, we agreed memory is cheap and static structs are easy to use.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!