ta的启动命令行

命令行与TA

本文介绍一些非常有用的 命令行-作用是切换TA主程序的行为
你可以通过 开始->运行/修改快捷方式的属性/进入DOS虚拟机(即黑糊糊的命令行处理器)来使用 TA的命令行。
一个标准的命令行看起来像是 X:\covedog\totala\totala\totala -##
一个简短的经常用给客户端(非主机)的命令行是 X:\covedog\totala\totala -## -# -#
实际例子. c:\covedog\totala\totala -dw -N1:[222.222.222.222] -HMy_Game
标准的命令行参数

-w 使用固有的windows多媒体接口来播放 声音,替换掉TA默认所用的DirectSound
-s 禁止对DirectSound的调用。当你没有声卡时应该禁用它,TA在你尝试播放音乐的时候非法也应该禁止它
-d 把TA运行在 窗口化的 "调试"模式中。 需求占用更大量的CPU资源,战场界面会按TA分辨率和桌面分辨率比例来设置窗口大小,而非 自调节成全屏幕的窗口
-c 禁止开始时的 前言 视频
-c 文件名字.ini 文件 中应该包含一个特殊的 group,按现在的情况看除了 totala 外不支持其他的group了。但包含其他的group也不会引起错误。
其实际格式为:
[totala]
watching= 2; 是否允许观战者 on/off
mapmode= 1; maped, unmapped,地形是否探索过。
location= 2; 起始坐标 随即/固定
cheats= 1; 允许/禁止 作弊
los= 1; 视野, 真实视野,perm视野,圆柱体视野
deathopt= 1; 40死亡模式
metal= 1000; 初始 金属量
energy= 1000; 初始 能量 数量
maxunits= 500; 个体玩家所被允许的最大总单位数量。
lockOption= 0; 1则主机不能在 作战室更改战场属性了,0则可以再更改
playerlimit= 2; 允许加入的玩家数量
connect= 1; 所使用的连接方式, 按联网界面第一个页里面的顺序,通常第一个为 TCP/IP,第二个为 IPX
address= [255.255.255.255];如果连接方式需要IP,则此处指定目标的IP
pfs= 0; 封包发送频率,尽量不要修改此项,0是使用默认的频率,即3.
player= [username]; 本机玩家的名字
password= [password]; 如果加入房间需要密码则此处为密码
session= [GNAME]; dplay 的名字
provider= CBL; 可以是任何东西,对发出的封包的中类似于 浏览器版本的属性有影响
mission= [地图名字]; 直接设置TA所使用的地图
timelimit= 0; 无大作用
registerredonly= 0;通常认为应该为0(registered),以防止一个 TAK玩家加入进来
creator= 1; 为一时本机为主机,为0时加入其他人的主机
tournment= 1;此值为1的情况下,被认为正在进行比赛,而禁止 主机行使 踢人权限,但因为lag而掉线依然会退出游戏。
如上便是文件中可以设置的各属性了,每个属性都不是必须包含。其中和作战室相关的参数,是按 1/2/3/4/…来选择属性的,其他的则按照0/1/2/…
-p # pfs,封包发送频率,#可为1-5之间的数字,不要设置它,用标准的即可

客户端独有的标准参数格式

-N1:%i -HRoom_name Server Command Line;
%i - IP地址
房间名字可以随便起,但IP地址中一个多余字符(空格等)也不允许。
Server为目标服务器名字?
带着特定的命令行 Command Line加入到 %i中;
-r 把TA注册给 directplay lobby, 即tafixreg的作用。

TA at the command line

There are a few helpful command line switched that effect how TA operates.
You can either cut and paste the path into Start|Run, modify your TA shortcut or enter the path in DOS mode (The actual command line ).
General command line extension X:\cavedog\totala\totala -##
General with client command line extension X:\cavedog\totala\totala -## -# -#
eg. c:\cavedog\totala\totala -dw -N1:[222.222.222.22] -HMy_Game

General Switches

-w Use the standard Windows multimedia interface for playing sounds instead of DirectSound.

-s Disable the use of DirectSound if you do not have a sound card or the game crashes while trying to play sounds

-d Places TA in windowed “debug” mode. Requires more CPU resources. Battle screen is set to size of resolution setting (no auto-stretching)

-c Disables startup movie

-c filename.ini The filname should first consist of a group, seems to only work with the group named totala, however its supposed to work with other groups as well.
[totala]
watching=2 ;Watching mode on/off
mapmode=1 ;Map mode, maped, unmapped.
location=2 ;Location random, fixed
cheats=1 ;Cheats allow, disallow.
los=1 ;LOS, true, perm, circle, ect
deathopt=1 ;Commander dies setting
metal=1000 ;Starting metal
energy=1000 ;starting energy
maxunits=500 ;Maxium units allowed in game
lockOptions=0 ;If value 1, host can’t change options battlroom options
playerlimit=2 ;Number of players to allow
connect=1 ;connect mode, 1=tcp, ect.
address=[IPADDY] ;Ip address
pfs=0 ;pack frame speed, don’t mess with this, 0 is default which is belived to be 3
player=[PNAME] ;Name of the Player
;password=[GPASS] ;Game password
session=[GNAME] ;Dplay name.
provider=GBL rovider can be anything
mission=[MAP] ;Name of map to play on
timelimit=0 ;Not used
registeredonly=0 ;Supposidly lets only ‘registered’, people join could be a TA:K thing
creator=[HOST] ;Creator should be 1 for host, or 0 for joininer
tournment=[T] ;If value is 1, host can’t in game reject a player on purpose but if they lag out rejection can still occur.

-p # Pack frame speed. Number between 1 and 5 and shouldn’t be played with but allows you to set the packet pfs. Possible default value is 3.

Client based switches

-N1:%i -HMy_Game Server Command Line:
%i = IP address
You can substitute your own game name rather than My_Game (e.g. “-HPoo’s_Game”), but you can’t use spaces or the following characters: ! - %.

-N1:%i Join Command Line:
%i = IP address

-r Register TA with directplay lobby