home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Increasing the Bot Limit Beyond 32?

by Boatsniper on 12/30/2012 23:53, 19 messages, last message: 01/03/2013 01:21, 1319 views, last view: 04/21/2024 07:02

Through my years of playing this game, I have always wondered why the bot limit is hard set at a max of 32. My computer can obviously handle many more, so I was thinking if there is a way to increase it through a console command or editing a file. After looking through the source files, I have found nothing. Can someone help me with this? Thanks in advance.

   Board Index   

#1: ..

by ultrasemen on 12/30/2012 23:59

You can set it with -gN key, ex. -g64. Although I didn't try it myself, but that's what documentation says.

reply to this message

#2: Re: ..

by Boatsniper on 12/31/2012 00:17, refers to #1

I read through the documentation with the -gN command being the closest to what I need. The documentation also states it as a "Command Line Option". How/Where would I input the command? The regular console doesn't recognize it.

reply to this message

#3: Re: ..

by ultrasemen on 12/31/2012 00:30, refers to #2

Emm, windows/linux/mac? On Windows it's something like modifying shortcut path like "C:/sauerbraten.exe" to "C:/sauerbraten.exe" -g64. On Linux you can do the same depending on your DE, or alternatively run it from terminal with something like "./sauerbraten -g64".

reply to this message

#4: Re: ..

by Boatsniper on 12/31/2012 01:46, refers to #3

I'm on a Windows 7 computer. I tried modifying the shortcut path to no avail. It gave me an invalid path error.

reply to this message

#5: Re: ..

by ultrasemen on 12/31/2012 01:49, refers to #4

I'm not sure. Try both placing it after closing quotes and before.
("sauerbraten.exe -g64" and "sauerbraten.exe" -g64)

reply to this message

#6: Re: ..

by Boatsniper on 12/31/2012 02:05, refers to #5

Still nothing.

The game launches from a Batch file, if that means anything (C:\Program Files (x86)\Sauerbraten\sauerbraten.bat)

reply to this message

#7: Re: ..

by ultrasemen on 12/31/2012 02:16, refers to #6

Oh. Yeah, sorry, I forgot about it. Then open .bat file with notepad and add -g64 right after -r. (... sauerbraten.exe -r -g64 ...). Or try to use /serverbotlimit 64 in console, maybe it will help.

reply to this message

#8: Re: ..

by Boatsniper on 12/31/2012 02:34, refers to #7

Still nothing. It forced a 1600x900 resolution, but the bot count still wasn't set higher. I tried entering in both /botlimit and /serverbotlimit and it seems hard-set at 32.

reply to this message

#9: Re: ..

by suicizer01 on 12/31/2012 03:44, refers to #8

Why would you even want to have it higher as 32? That amount is barely being reached in multipkayer, so pretty unrealistic.

reply to this message

#10: Re: ..

by Boatsniper on 12/31/2012 03:56, refers to #9

Because it's a video game, and video games were made to be played how the player wants. If I want 128 bots brawling it out in a hyper cramped arena, then I'll make it happen. My computer can obviously handle it, so why not?

reply to this message

#11: ..

by kripken2 on 12/31/2012 04:45

Looking in the source, it doesn't seem that -g sets something that is used. It modifies the serverbotlimit variable, but that is just written to (and just there). In svn -g doesn't exist so maybe it is deprecated?

Anyhow, you can recompile the game after changing MAXBOTS in src/fpsgame/ai.h, and have as many bots as you want ;)

reply to this message

#12: Re: ..

by Zamwa on 12/31/2012 04:59, refers to #10

That many could cause an evolutionary change with bots of self awareness...
NOES LOL DON'T DO IT!

reply to this message

#13: Re: ..

by Boatsniper on 12/31/2012 07:16, refers to #11

Alright. I found and edited the value, but (this may sound dumb) how do I recompile the file? Just saving and playing it does nothing.

reply to this message

#14: Re: ..

by Papriko on 12/31/2012 14:04, refers to #13

I guess the easiest way would be to aquire CodeBlocks or MS Visual C++. Then you open the project file in the sauerbraten/src/vcpp directory and click the play button. You'll have to wait a minute or so in which you get lotsa console outputs and warnings (which you can ignore).

Afterwards you can start the game normally again.

reply to this message

#15: Re: ..

by Q009 on 12/31/2012 14:34, refers to #14

"lotsa console [...] warnings"
That's not a good sign if you get a lot of those :P

reply to this message

#16: Re: ..

by Papriko on 12/31/2012 15:24, refers to #15

When I compile Sauer, I always get errors like "Warning! the function blabla might get called without the variable xy being defined!"

In the end nothing happens and the game just runs as it's supposed to.
And yes, that even happens with an unmodified source to me.

reply to this message

#17: ..

by Boatsniper on 01/01/2013 02:57

It works now. Yay.

No need to reply to this thread anymore.

reply to this message

#18: ..

by Quin on 01/01/2013 03:20

Holy crap, that has to be the smoothest problem solving I've seen here for a while. Botsniper, you should totally get involved in open source some day if this kind of thing ends up interesting you.

reply to this message

#19: Re: ..

by Boatsniper on 01/03/2013 01:21, refers to #18

I'm all for open source and moddability, so that might be a good thing to look into in the future.

Now that I have unhindered access to the source files, I'm going to start messing around with everything and see what I can create.

Thanks for the help.

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53869009 visitors requested 71644197 pages
page created in 0.014 seconds using 10 queries
hosted by Boost Digital