[RNGD]Tyrant Posted September 22, 2004 Share Posted September 22, 2004 It is possible to alter the server setup beyond the basics allowed in the Dedicated Server. Here is how: 1. Open the file "Battlefront Server .ini" in the root folder of the dedicated server (should open in notepad) 2. Find the line which starts with "APP_COMMAND_LINE_BASIC=/" 3. Add additional commands to the end of this line using the sintax " /commandhere" Examples that have been tested increase max fps to 30 (wont go higher) " /tps 30" turn on server event logging " /log" turn on logging of final scores " /logfinalscore" it is important that each command is seperated by one space as more Commands are found and tested they will be added to this thread. Link to comment Share on other sites More sharing options...
[RNGD]Tyrant Posted September 23, 2004 Author Share Posted September 23, 2004 Full list of potential commands only those listed above have been tested -name /name -connect +connect /connect /install /fixedfunction /win /nocheckcd /log /resolution /gameslice /difficulty /noteamdamage /noaim /password /tps /nomovies /randomize /heroes EUR JAP NA /netregion /bots /sideselect /netplayers /throttle /crashed /noai /soundwarning /quakecam /skill /team /fixedrate /nosound /nowait /norender /lan /gamename /playerlimit /playercount /autonet /nodrag /loss /latency /bandwidth /nonames /firstperson /notvalues /playback /record /loadspam /lang /demomode /framerate /ainotext /ai /NTGUI /profile Link to comment Share on other sites More sharing options...
nbagui Posted September 23, 2004 Share Posted September 23, 2004 no firend fire ??? Link to comment Share on other sites More sharing options...
[RNGD]Tyrant Posted September 23, 2004 Author Share Posted September 23, 2004 Friendly FIre on/off is one of the basic settings, you can use the dedicated server for that ...these are for things that the dedicated server does not cover. Link to comment Share on other sites More sharing options...
Valkyrie Posted September 23, 2004 Share Posted September 23, 2004 What excactly is logging? Link to comment Share on other sites More sharing options...
LoRdNaTaS Posted September 23, 2004 Share Posted September 23, 2004 I tried to add /log to the APP_COMMAND_LINE_BASIC= and it just over wrote itself... Is there some trick that I am missing??????? and I added the command at the front of the list and as the last command. Link to comment Share on other sites More sharing options...
NukeAmerica Posted September 23, 2004 Share Posted September 23, 2004 Example of the server log - http://www.forcegamers.com/bf/log0.log ini file used - http://www.forcegamers.com/bf/battlefront%20server.ini Here are a few more switches to play with from the client. /logfinalscore /audiomaxchannels /audiosamplerate /audionoenhance /audiomixbuffer +password -password /password +ppass -ppass /ppass +email -email /email +name Link to comment Share on other sites More sharing options...
Kramerika Posted September 23, 2004 Share Posted September 23, 2004 Has anyone tried to create a shortcut to battlefront.exe and add these parameters to the command line to start the server that way instead of through the GUI. That would be highly useful. In the end, a GUI greatly limits the methods that you can use to run the server (eg. through Firedaemon as a service). Link to comment Share on other sites More sharing options...
(NJOC)MasterJedi[L] Posted September 23, 2004 Share Posted September 23, 2004 well i tried -console to see if it's anything like halo.but it wouldn't even start the game after that so i removed it Link to comment Share on other sites More sharing options...
Alegis Posted September 23, 2004 Share Posted September 23, 2004 Originally posted by Kramerika Has anyone tried to create a shortcut to battlefront.exe and add these parameters to the command line Should work. I tried the ded server (even though i dont have swbf yet, tomorrow!), and this should answer your question Link to comment Share on other sites More sharing options...
Kramerika Posted September 23, 2004 Share Posted September 23, 2004 Yes, that shows for me, but it is cutting off much of the command line options. I also want to know what each one does as well as which can be used for the dedicated server. Link to comment Share on other sites More sharing options...
NukeAmerica Posted September 23, 2004 Share Posted September 23, 2004 The full list of the commands being spit into the ded server are in the ini file. Link to comment Share on other sites More sharing options...
Leadsides Posted September 23, 2004 Share Posted September 23, 2004 There was no file titled "Server Settings.ini", however there was "battlefront server.ini" with the appropriate command line, so.... I added the "/tps 30" command (no quotes of course) and set my home system to 30 to match, but the framerate is still locked at 20~21 fps. What am I missing? Thank you, sfg-Leadsides Link to comment Share on other sites More sharing options...
Kramerika Posted September 24, 2004 Share Posted September 24, 2004 For anyone interested, it seems that you do not need to run the GUI to launch the server. You can launch it from a command line via a shortcut to battlefront.exe. Create a shortcut to battlefront.exe and edit the properties. Here is my example command line. D:\Games\SWBF\battlefront.exe /win /norender /autonet dedicated /resolution 320 240 /nosound /gamename [OSF]MayTheForceBeWithYou! /playerlimit 32 /playercount 0 /bots 4 /noteamdamage /difficulty 2 /throttle 3072 /spawn 5 hot1i 400 400 nab2c 400 400 tat1i 400 400 end1a 400 400 kam1c 400 400 bes2a 400 400 yav2i 300 300 geo1r 400 400 hot1i 400 400 kas1c 300 300 bes1a 400 400 rhn2c 300 300 tat2i 300 300 nab1c 300 300 kas2c 300 300 yav1i 300 300 rhn1r 300 300 Here is what the commands do. Carrots (<>) surround values to be changed. /win - not sure but necessary /norender - not sure but necessary (assuming it turns off rendering video) /nosound - not sure but necessary (assuming it turns off sound) /autonet dedicated - dedicated server /resolution <horiz> <vert> - controls the resolution of the server window /gamename <name> - sets server name /playerlimit <limit> - sets server maximum number of clients /playercount <count> - sets count of clients necessary for round to start /noteamdamage - sets FF off, leave out to turn on /difficulty <level> sets bot skill (1=easy, 2=medium, 3=hard) /throttle <bandwidth> - sets hosting bandwidth (3072=3Mbps+, 2MBs=2048, 1MB=1024, 512k=512, 256k=256, 128k=128) /tps <fps> - sets server framerate /lan - LAN server, leave out for internet /nonames - no player names, leave out to turn on /heroes - heroes, leave out to turn off /password <password> - puts password on the server /randomize - randomize map rotation, leave out to turn off /spawn <seconds> - the spawn protection time in seconds (0-10) The only thing missing from the GUI with the command line options is the autorestart, but since I use Firedaemon to run it as a Windows service, I don't need that anyhow. I thought /crashed might be it, but it didn't seem to work for me. There is also a second tab for a second server with the 1.1 patch it appears, but I do not know how this translates to the command line. The maplist comes last after all of the options. Leave two spaces between the last option and the first map. The limit is 24 though why there is a limit is beyond me. Here are the map names for the command line. Unfortunately, there is a limit (character length) on how many commands you can fit into the command line of a shortcut. With Firedaemon, I do not have this issue. The numbers following each map name in the command line are the tickets for the two factions. bes1a - bespin: platforms (GCW) bes2a - bespin: cloud city (GCW) bes1r - bespin: platforms (CW) bes2r - bespin: cloud city (CW) end1a - endor: bunker (GCW) hot1i - hoth: echo base (GCW) kas1i - kashyyyk: islands (GCW) kas2i - kashyyyk: docks (GCW) geo1r - geonosis: spires (CW) kam1c - kamino: tipoca city (CW) kas1c - kashyyyk: islands (CW) kas2c - kashyyyk: docks (CW) nab1i - naboo: plains (GCW) nab2a - naboo: theed (GCW) nab1c - naboo: plains (CW) nab2c - naboo: theed (CW) rhn1i - rhen var: harbor (GCW) rhn2a - rhen var: citadel (GCW) rhn1r - rhen var: harbor (CW) rhn2c - rhen var: citadel (CW) tatli - tatooine: dune sea (GCW) tat2i - tatooine: mos eisley (GCW) tat1r - tatooine: dune sea (CW) tat2r - tatooine: mos eisley (CW) yav1i - yavin 4: temple (GCW) yav2i - yavin 4: arena (GCW) yav1c - yavin 4: temple (CW) yav2r - yavin 4: arena (CW) tat3a - tatooine: jabba's palace (GCW) tat3c - tatooine: jabba's palace (CW) Link to comment Share on other sites More sharing options...
Firemann816 Posted September 24, 2004 Share Posted September 24, 2004 Thank you for the list Cant wait for the linux binaries Link to comment Share on other sites More sharing options...
2Gunz Posted September 24, 2004 Share Posted September 24, 2004 Any Bind Ip commands? Link to comment Share on other sites More sharing options...
Kramerika Posted September 24, 2004 Share Posted September 24, 2004 Not that I know of. I just wanted to confirm that the above does work. I'm now running my real-world server using only the command line through Firedaemon as a Windows 2000 Server service. Link to comment Share on other sites More sharing options...
Jetstream Posted September 25, 2004 Share Posted September 25, 2004 You could also run the GUI from FireDaemon instead so that the user can edit their .ini file (or you can comment it and break into two sections for editable and not editable.) That way you can set some of those other parameters that are not known. That's how we decided to go ahead. Link to comment Share on other sites More sharing options...
Tapper Posted September 25, 2004 Share Posted September 25, 2004 How much CPU usage does the server take when empty on your guys server? On my server it sits at 8% usage when empty. Link to comment Share on other sites More sharing options...
(NJOC)MasterJedi[L] Posted September 25, 2004 Share Posted September 25, 2004 ok being a noob at some of this . i have run many servers but never had to deal with bandwith or cpu usage. how (in windows) do i find out what a specific program(swbf) uses for cpu . and bandwith? one or both answered would be great! Thank you , Strike Link to comment Share on other sites More sharing options...
Firemann816 Posted September 25, 2004 Share Posted September 25, 2004 Strike - Try the Windows Task Manager and Process Viewer Ctrl-alt-del and on XP Pro so I guess 2003 server will be similar there is a "Processes" Tab and also a network tab I think network tab is aggregate and not broken down. You can also netstat -an to get a VAGUE feel Since its mostly UDP it should be pretty lieghtweight Link to comment Share on other sites More sharing options...
Jetstream Posted September 26, 2004 Share Posted September 26, 2004 For W2K servers: Programs -> Administrative Tools -> Performance then add a counter for Processor->%Processor Time->Total or add a counter for Network Interface->Current Bandwidth etc. Link to comment Share on other sites More sharing options...
(NJOC)MasterJedi[L] Posted September 26, 2004 Share Posted September 26, 2004 ah so when it toggles between 8-10 under cpu thats how much it uses?? thank you guys .i alwat wanted to know . Link to comment Share on other sites More sharing options...
Firemann816 Posted September 26, 2004 Share Posted September 26, 2004 its not quite as accurate and controllable as 'top' on Linux but its Windows so just help me beg Pandemic for server binaries for Linux and some decent admin controls - it would be nice to auto-kick a team killer after his second team kill. (One for accidental friendly fire - 2nd kill youre either sloppy or evil) GL with the server, Im going to build one on Win2K just to get familiar with it while hoping for a linux binary soon. I'd NEVER place a windows box on the net 24x7 since I cant babysit it all the time like these professional game server admins. (Ive got a day job and family and this thing would be 0wn3d in no time) Cheers all Link to comment Share on other sites More sharing options...
bliSSter Posted September 29, 2004 Share Posted September 29, 2004 well - after much nashing of teeth, i've gotten a server setup as a windows service via "srvany.exe"...i've gotten used to using that instead of firedaemon to shave a bit of overhead and to remote to my primary server via the remote management direct to the win services.... have run into a couple of snags tho:: 1.) can't run more than 14 total maps - i'm guessing due to a character limitation in the "AppParameters" string in the registry entry... 2.) still can't establish a direct connection via IP...can see the server via "/lan" game....i can kill that option, but then the server auto-shows via internet games, and my players still can't connect direct... 3.) adding a password caused a failure when my players tried to connect, so i simply set the "/player" option to 3 players and left it at that... not sure if this makes any sense, as it looks like a lot of peeps here are *nix server admins (don't blame ya - ), but if anyone has any thoughts, please advise... course - most (if not all) of these items would be non-issues if i could pass a ".ini" parameter to snag all this nfo at the go ala UT2k*...is that even an option?... - bliSS PS - i buy all my games retail, but i run alcohol 120% so i don't have to swap my discs all the time...anyone know what copy-protection scheme was used on BF?... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.