Console command/webmin problems
Console command/webmin problems
Trying to setup a lowrubber server, I've had problems with certain commands working.
First of all, problems with changing the arena size. Using REAL_ARENA_SIZE_FACTOR, doesn't work full stop, at the start of every round it changes back to 1 (which is a little too big for what I want it for), and I've also had problems with CYCLE_WALLS_STAY_UP_DELAY and WALLS_STAY_UP_DELAY. I've set them both to 1, yet they still stay up for 8 seconds.
Any thoughts?
First of all, problems with changing the arena size. Using REAL_ARENA_SIZE_FACTOR, doesn't work full stop, at the start of every round it changes back to 1 (which is a little too big for what I want it for), and I've also had problems with CYCLE_WALLS_STAY_UP_DELAY and WALLS_STAY_UP_DELAY. I've set them both to 1, yet they still stay up for 8 seconds.
Any thoughts?
- wrtlprnft
- Reverse Outside Corner Grinder
- Posts: 1679
- Joined: Wed Jan 04, 2006 4:42 am
- Location: 0x08048000
- Contact:
guy, read what the help texts say…there's WALLS_STAY_UP_DELAY and SP_WALLS_STAY_UP_DELAY, you probably changed the wrong one (the SP one is for games with one human or less). Note that the same applies to SIZE_FACTOR and SP_SIZE_FACTOR as well.
Code: Select all
15:58 <wrtlprnft> armaconfig real_arena_si
15:58 <armabot> REAL_ARENA_SIZE_FACTOR: The currently active arena size. Leave it alone! Change size_factor
instead. (default: 0.353553)
There's no place like ::1
so, basically, if you want an arena that's 3/4 the size of the default arena, take the log (base sqrt(2) ) of the factor you want (3/4 in this case) and set SIZE_FACTOR to that.
Except, it has to be an integer.
Except, it has to be an integer.

Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden
- Jonathan
- A Brave Victim
- Posts: 3391
- Joined: Thu Feb 03, 2005 12:50 am
- Location: Not really lurking anymore
Showing off O(log |n|) exponentiation with binary integral exponents?wrtlprnft wrote:Or wait for z-man to tell us if there's any reason SIZE_FACTOR needs to be an int.

Code: Select all
REAL exponent(int i)
{
int abs = i;
if ( abs < 0 )
abs = -abs;
REAL ret = 1;
REAL fac = sqrtf(2);
while (abs > 0)
{
if ( 1 == (abs & 1) )
ret *= fac;
fac *= fac;
abs >>= 1;
}
if (i < 0)
ret = 1/ret;
return ret;
}
ˌɑrməˈɡɛˌtrɑn
Same reason blam(), splat(), and zap() can't be used, I imagine.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden
Only reason is the menu system. There is a simple way to have an int menu item ranging from -10 to +10, but no simple way for a float. I wouldn't mind if that changed, but then again, making the setting a nonlogarighmic one in the first place and generating the menu entries automatically, so you'd see 1, 1.4, 2, 2,8 and so on in the menu. Network compatibility is no problem as it's the REAL_ setting that really is transmitted.wrtlprnft wrote:Or wait for z-man to tell us if there's any reason SIZE_FACTOR needs to be an int.
And in ye olde days, pow was really slow. It's pretty much equivalent to exp( y * ln(x) ) in speed.