Game Development Community

Increase the history buffer of dedicated server's console ?

by Orion Elenzil · in Torque Game Engine · 08/15/2007 (11:29 am) · 5 replies

Anyone know how a way to increase the command history buffer of a dedicated console ?
it seems to be two or three commands deep,
and i'd love it if it were more like 30.

maybe it's a function of the windows Shell window tho.

tia,
ooo

#1
08/15/2007 (3:57 pm)
Does setting "historySize" on it change the behavior?
#2
08/15/2007 (4:47 pm)
Oops sorry, i meant the historysize of a dedicated Server.
ie, the GUI-less DOS-window-looking thing.
#3
08/15/2007 (5:00 pm)
WinConsole.cpp, MAX_CMDS

It says its 10 tho.. so maybe there is a logic error somewhere.
#4
08/15/2007 (5:09 pm)
Actually what it looks like is, it will keep a history of the last 10 commands. If you use the history to execute a command, it wont count as an additional history item AND it will remember the 'place' in the history of that command.

So if you were to use a history item.. and then hit the up arrow again, it will be at that same history item.. so just use the down arrow from there to crawl back down the history.
#5
08/15/2007 (5:15 pm)
Thanks Robert-

actually what i may be bumping into is that the history seems to be erased if you enter a blank line.
.. which is surprising.

eg

type: foo();
see: unable to find function

type: up arrow
see: foo();

type: down arrow
see: blank line (good)

type:
see: blank line (okay)

type: up-arrow as much as you like
see: blank line (not so good)

type: down-arrow as much as you like
see: blank line (not so good)