Author Topic: What do these commands do?  (Read 7291 times)

MechWarrior001

  • Posts: 58
  • Turrets: +3/-3
What do these commands do?
« on: July 29, 2010, 08:09:33 am »
Will someone explain the following commands to me?

sv_lanForceRate
in_logitechbug
r_stereo
s_alMaxSpeakerDistance
s_alDopplerSpeed
s_alDopplerFactor
s_alSources
s_alGain
s_alPrecache
com_hunkMegs
com_altivec
cl_maxpackets
cl_packetdup
pmove_fixed
sv_minSnaps

Also, are "g_antilag" and "g_unlagged" practical for LAN games? Or should we leave those off?

Aelita

  • Posts: 743
  • Turrets: +147/-34
Re: What do these commands do?
« Reply #1 on: July 29, 2010, 08:26:20 am »
Will someone explain the following commands to me?
Sure, to the best of my ability.
sv_lanForceRate
Assuming this puts a cap on the bandwidth used for LAN games.
in_logitechbug
Appears to be a workaround for a Logitech bug.
r_stereo
IIRC, stereoscoping rendering.
s_alMaxSpeakerDistance
s_alDopplerSpeed
s_alDopplerFactor
s_alSources
s_alGain
s_alPrecache
OpenAL related stuff, for tweaking doppler effect and 3D sound it appears.
com_hunkMegs
I think this is for internal memory management?
com_altivec
PPC processors (older Macs) have an extension called AltiVec, which is similar to MMX or SSE.
cl_maxpackets
cl_packetdup
Related to network transmission rates and enforcement. Since it's UDP based there is probably a retransmission setting for lossy connections.
pmove_fixed
No clue.
sv_minSnaps
Ingame snapshot interval. IIRC default snaps is 20?
Also, are "g_antilag" and "g_unlagged" practical for LAN games? Or should we leave those off?
If you want, you can enable them, but it shouldn't make much of a difference at all.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: What do these commands do?
« Reply #2 on: July 29, 2010, 10:53:00 am »
sv_lanForceRate
Assuming this puts a cap on the bandwidth used for LAN games.
Nope, if [wiki]sv_lanForceRate[/wiki] is enabled then all lan clients have [wiki]rate[/wiki] forced to 99999.

com_hunkMegs
I think this is for internal memory management?
It specifies how much memory the game allocates.  You should never change it.

cl_maxpackets
cl_packetdup
Related to network transmission rates and enforcement. Since it's UDP based there is probably a retransmission setting for lossy connections.
[wiki]cl_maxpackets[/wiki] is how many packets to send.
[wiki]cl_packetdup[/wiki] specifies how many times to duplicate stuff to try and mitigate a small amounts of packet loss.

pmove_fixed
No clue.
No idea either.

sv_minSnaps
Ingame snapshot interval. IIRC default snaps is 20?
sv_minSnaps doesn't seem to exist?  Changing snaps is generally a bad idea.

Also, are "g_antilag" and "g_unlagged" practical for LAN games? Or should we leave those off?
If you want, you can enable them, but it shouldn't make much of a difference at all.
g_antilag also doesn't seem to exist.
Unlagged won't make much difference in lan, but I'd leave it on.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

F50

  • Posts: 740
  • Turrets: +16/-26
Re: What do these commands do?
« Reply #3 on: July 29, 2010, 08:36:19 pm »
pmove_fixed appears to (try to) fix framerate dependent movement behavior (gravity, friction, etc).

...the reason to have higher fps than your refresh rate is the fact that physics are dependant on fps (the magic numbers you want to hit are 41, 76, or 125; 333 is the next one but it can actually leave you in the air for so long to be dangerous, if you have a 75 or 120hz monitor, and your box can handle that fps without ever dropping to 37/60 (respectively) then you will probably benefit from using vsync at those refresh rates)
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


Aelita

  • Posts: 743
  • Turrets: +147/-34
Re: What do these commands do?
« Reply #4 on: July 29, 2010, 08:41:45 pm »
That's good to know. Thanks F50 - I added it to the wiki as a little more than just the empty stub it is now.

KillerWhale

  • Spam Killer
  • *
  • Posts: 469
  • Turrets: +63/-26
Re: What do these commands do?
« Reply #5 on: July 29, 2010, 09:02:56 pm »
Oh! Oh! Something I know!

pmove_fixed removes any correlation of framerate and physics.
It removes the need for "magic FPS rates" and makes everyone behave the same when encountering ledges and normalizes acceleration/jump heights.

The one big problem with pmove_fixed is, it can cause a stutter that severely slows acceleration.

Who said that defrag doesn't teach you anything? :)

The majority of Trem servers leave this setting off, so if anyone is interested, here is a calculator for determining the best jump height. It has an explanation of why framerates do this at the bottom, and it also has two amazing articles on why strafe jumping and circle jumping actually work. Both are highly recommended reads.

com_hunkMegs

It specifies how much memory the game allocates.  You should never change it.
If I recall correctly, some people need to double it or they crash upon entering Karith.
« Last Edit: July 30, 2010, 12:03:52 am by KillerWhale »

F50

  • Posts: 740
  • Turrets: +16/-26
Re: What do these commands do?
« Reply #6 on: July 29, 2010, 09:29:04 pm »
Setting pmove_fixed makes my mara jump higher than when I'm running at 90fps, it actually changes things a fair bit.

Also, from reading the code it appears that you can set pmove_fixed on your client, and it will work regardless of what server you go to.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


KillerWhale

  • Spam Killer
  • *
  • Posts: 469
  • Turrets: +63/-26
Re: What do these commands do?
« Reply #7 on: July 30, 2010, 12:02:43 am »
pmove_fixed is a server setting, not a client setting.

It will work for local servers (of course), but it will have no effect in online servers.
It's kind of like how you can turn on g_unlagged for your client, but it doesn't change gameplay online.

MechWarrior001

  • Posts: 58
  • Turrets: +3/-3
Re: What do these commands do?
« Reply #8 on: July 30, 2010, 12:22:27 am »
Also, what do these commands do?

cg_smoothClients
cg_drawTeamOverlay
cg_simpleItems
r_swapInterval
r_finish
r_subdivisions
g_shove
g_dretchPunt
g_logFileSync
sv_dequeuePeriod
com_blood
com_zoneMegs

Thanks in advanced.

DraZiLoX

  • Posts: 844
  • Turrets: +24/-24
Re: What do these commands do?
« Reply #9 on: July 30, 2010, 12:36:29 am »
cg_drawTeamOverlay
You see what class, hp and location your teammates are.

g_shove
You cant shove builder thats placing buildable. Server side.

g_dretchPunt
You can TK dretch. Server side too.

com_blood
When you shoot buildables/players. You ammo makes blood mark. You can disable that.
« Last Edit: July 30, 2010, 12:39:05 am by DraZiLoX »

KillerWhale

  • Spam Killer
  • *
  • Posts: 469
  • Turrets: +63/-26
Re: What do these commands do?
« Reply #10 on: July 30, 2010, 12:55:10 am »
cg_smoothClients
This command prevents jittery connections from causing other players to look as if they are jittering. It sends extra packets though, and can be turned off if you're trying to super-optimize your connection.

cg_simpleItems
While depreciated in Tremulous, in Quake 3, this command turns the 3D weapon and ammo pickups into simple 2D icons. Used mostly on slower computers.

com_zoneMegs
This is basically com_hunkMegs, but it handles sound only.

Thanks in advanced.
I am expecting an Advanced Marauder then.

Someone should Wiki all this stuff.

Eh, I'll do it when I get home.

MechWarrior001

  • Posts: 58
  • Turrets: +3/-3
Machine crashing while running both DediServer and Client.
« Reply #11 on: July 30, 2010, 02:57:19 am »
/share KillerWhale (how many evos Adv. Marauder takes. what is it, like, 4?)

Also, this may seem a bit strange, but we run a dedicated linux server and then simply switch users to allow other people to play on the same machine without them being able to effect the server in anyway. However, once the server has started and we switch users from the Tremded account to the player account and start the game, we can't seem to exit out of it or change graphical settings w/ causing the system to crash. Right now we have the Tremded set to run on CPU 1 while the client runs on CPU 0. Got any ideas why it does this?

Crava_Loft

  • Guest
Re: What do these commands do?
« Reply #12 on: July 30, 2010, 07:48:10 am »
[deleted]
« Last Edit: August 11, 2010, 12:48:47 pm by Crava_Loft »

MechWarrior001

  • Posts: 58
  • Turrets: +3/-3
Re: What do these commands do?
« Reply #13 on: July 30, 2010, 10:08:56 am »
Sorry, I meant the machine crashes when the client exits, not the dediserver.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: What do these commands do?
« Reply #14 on: July 30, 2010, 12:08:38 pm »
How are you switching user?
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

MechWarrior001

  • Posts: 58
  • Turrets: +3/-3
Re: What do these commands do?
« Reply #15 on: July 30, 2010, 08:26:11 pm »
Going to the Linux Mint equivalent of the Windows Start Menu, clicking the log off button and then clicking on the switch user option.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: What do these commands do?
« Reply #16 on: July 30, 2010, 09:15:49 pm »
I'm going to guess that that leaves X running, or it all uses the same X and it leaves some other crap running, and there already being graphically stuff running blocks the second user being able to do stuff.

I'd suggest trying starting the server under screen, and then log off fully.  (run "screen" in a terminal, do stuff, kill the terminal, to get it back later do screen -r)
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Aelita

  • Posts: 743
  • Turrets: +147/-34
Re: What do these commands do?
« Reply #17 on: July 30, 2010, 09:17:20 pm »
God dammit David. I was about to reply about screen.

MechWarrior001

  • Posts: 58
  • Turrets: +3/-3
Re: What do these commands do?
« Reply #18 on: July 30, 2010, 10:54:54 pm »
So what exactly does screen do? Is it like the Linux equivalent of a Windows Service, where it runs as the user "SYSTEM" instead of "David" or "Mr. T"?

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: What do these commands do?
« Reply #19 on: July 30, 2010, 11:01:38 pm »
No, it's a "terminal multiplexer".  It lets you run programs without them being tied to a particular terminal.  It lets you run lots of programs from one terminal, move them to other terminals, have one program on lots of terminals, or in this case have it on no terminal and get it back again later.

It what all the dedicated servers use, so you can still see the server running without having to leave an SSH session permanently running.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

MechWarrior001

  • Posts: 58
  • Turrets: +3/-3
What screen parameters to use?
« Reply #20 on: August 03, 2010, 12:19:23 am »
Alright, so what command line parameters should I use to run the tremded through screen?

Also, why do I get errors concerning tty terminals when ttycon is set to 1?

F50

  • Posts: 740
  • Turrets: +16/-26
Re: What do these commands do?
« Reply #21 on: August 03, 2010, 01:22:28 am »
http://tremulous.net/forum/index.php?topic=8707.0

Wonderful tutorial that explains tremulous servers in linux, including using tremded with screen. You should read all of it, but I will give this to you:

Quote
screen -d -m -S tremded /usr/local/games/tremulous/tremded.x86 +set dedicated 2 +exec server.cfg +map atcs
If you want to run a local server (its a good way to test stuff), use +set dedicated 1 instead.

Don't know about ttycon though.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law