Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » game.exe input parameters
game.exe input parameters [message #235406] Fri, 22 December 2006 07:12 Go to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Does anyone know if renegades game.exe has an input parameter for setting the bandwidth of the player, so that if you was to direct connect you don't have to go through the process of "testing bandwidth" everytime?

would be something like "+bandwidth" or similar I would assume.



Re: game.exe input parameters [message #235414 is a reply to message #235406] Fri, 22 December 2006 07:55 Go to previous messageGo to next message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
Guess not...It would be handy, but I don't think it works with some scripting. You need to rebuilt all executables then.
Re: game.exe input parameters [message #235416 is a reply to message #235414] Fri, 22 December 2006 08:07 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3806
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
jonwil wrote, some time in the past

Causes of KBPS lag:
- The server isn't configured to send enough bandwidth out - Edit server.ini to either auto-detect or use a fixed amount high enough. A 24 player server uses about 2300 kbps on average.
- The server can't send enough data. Example, my cable modem at home is only allowed to send out 256 kbps. If I try to host 24 players at home, I won't be able to send out the 2300 that you need and you will warp.
- WOL sucks and your bandwidth capability was auto-detected too low. Solutions: On the screen where it says "Quick Match" / "Advanced Game Listings", "Chat", move your mouse to the left and pick "My Information". Set your connection to something matching what you have instead of auto-detect. Usually this will stop any problems you have and your KBPS will be sufficient.
--- Or, you can manually set your bandwidth budget in-game. Press F8 or ~ and type "sbbo <number>" where <number> is your bandwidth download capability. To find your best number, do this:
* Go to http://www.dslreports.com/stest
* Choose a location and follow the instructions to test your line speed.
* Your results will read something like this (yours will probably be a lot less because I was at work when I ran this):
Your download speed : 5610362 bps, or 5610 kbps.
A 684.8 KB/sec transfer rate.
* The "bps" number is theoretically your maximum download rate. Remove the last digit and round it to a nice even number (I would use 550000 on my results). This is your optimum bandwidth setting. Press F8 or ~, type "sbbo 550000" and press Enter. If your KBPS was too low before, you might see the KBPS increase each second up to the amount the server can send you.
--- Just like a server, if you have a limit on your kbps (like 56k modem), you won't be able to pull down the necessary bandwidth for a lag-free game.

Now that you know this, you can now understand why 56k people don't lag a server. When you connect to the server, you tell it "I can handle 150000 kbps so lay it on me" and the server says "ok dude". It puts together 150000 kb per second and sends it to you. The 56k guy comes on and he says "Go easy on me I can only get 32000 kbps" and the server says "ok dude". So the server puts together 32000 kb per second and sends it to him. The server doesn't have to wait for the 56k guy's updates before you are sent yours. He might warp on your screen as his updates come in late, but he won't make everyone lag, and he won't make you lag. You and the server deal with your lag independently of the other players.

PING: Ping is a pretty easy factor. Rarely is ping lag caused by you OR the server. It's usually some router between you and the server that's busy. Most players won't notice ping lag until it's about 300+. High ping is sometimes caused when your little brother is leeching on Kazaa and taking all your bandwidth, and could be caused by the server being too busy to respond to pings (which usually means the SFPS is extremely low as well). Determining the cause of ping lag is beyond the scope of this post, and usually there's nothing you can do except find another server to play on.



Re: game.exe input parameters [message #235417 is a reply to message #235406] Fri, 22 December 2006 08:13 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
@darksnipa

No it doesn't need to be "rebuilt", and with a client scripts.dll modification it could work. But Game.exe does accept some input parameters like "+connect" or "+netplayername", this is how renegadeIP was made. I would much prefer this method for the purposes of what I am doing.

@Jerad2142

Thanks for that, however I am talking about connecting directly to the server. I wish to tell the game.exe when it is launched to set the bandwidth then.



[Updated on: Sat, 20 January 2024 14:02] by Moderator

Report message to a moderator

Re: game.exe input parameters [message #235421 is a reply to message #235406] Fri, 22 December 2006 09:38 Go to previous message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Reborn, I already told you, such a command does not exist.

When you look into game.exe, you will see that the existing
available renegade parameters are:

+PASSWORD
+PASS
+NetPlayerName
+NETPLAYERNAME
+connect
+CONNECT
NODX
GAMESPYSERVER=
STARTSERVER=
SLAVE
REGMOD=
MULTI
IP

However you can change the Renegade bandwidth settings in the registry, before running Renegade.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Previous Topic: Help yet again plz this time its about teleporter's
Next Topic: Anyone got an inf mod lying around?
Goto Forum:
  


Current Time: Thu Aug 01 16:46:36 MST 2024

Total time taken to generate the page: 0.00828 seconds