How Do I Set a Non-Supported Tick Rate?

Started by Auggie, August 28, 2016, 08:26:33 PM

Previous topic - Next topic
Can anyone point where I can change the tick rate to something like 60tps or 90tps?

U'd have to use cheat engine, or hexedit the swbf2sm or the easiest option would be that u host with the a .bat file and add the /tps command urself.
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Can you elaborate on how to do the 3rd, easiest option?

Here are the instructions for making a .bat file for SWBF1.  SWBF2 should be very similar

Hosting without using the GUI
-----------------------------

If run the same basic server setting over and over, you can create a DOS batch file to run the server. Below is the contents of the batch file I use to run the CloudCity Only server:


----------
battlefront.exe /win /norender /noteamdamage /autonet dedicated /resolution 320 240 /nosound /noaim /tps 30 /gamename Led-CloudCity-TKoff-antiGlitch /playerlimit 16 /playercount 1 /bots 2 /difficulty 2 /throttle 2048 /spawn 5 bes2r 400 400 bes2a 400 400
----------

Copy that text between the lines into a file called CloudCity.bat

When you are familiar with the dedicated server software, it is easy to edit this kind of batch file.

Note:  Windows Server 2008 has a limitation on the length of a batch file.  I have not determined how to overcome this limitation.  Be aware that long batch files may not execute properly if you use Windows Server 2008.

update 7/1/2016  Longer batch file names can be used in Server 2012 R2 when using PowerShell.


Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

What are the hex edits that need to be made for 60tps? Honestly, that's probably easier.

here is a working batch file you can test for swbf2 server

BattlefrontII.exe -/win /norender /throttle 6144 /nosound /autonet dedicated /adminpw 00001111 /resolution 200 200 /sideselect /heroes 0 /gamename TEST /noaim /noframelock /playerlimit 25 /playercount 1 /bots 32 /noaim /difficulty 4 /pregametime 0 /voicemode 0 /spawn 5 /netregion NA /randomize /noteamdamage /waitlate /tps60 dea1g_con 250 250 kas2g_con 250 250 uta1c_con 250 250 myg1g_con 250 250 tat2g_con 250 250 dag1c_con 250 250 kam1c_con 250 250 tan1c_con 250 250 kam1g_con 250 250 mus1c_con 250 250 dea1g_con 250 250 dea1c_con 250 250 cor1g_con 250 250 tat3c_con 250 250 pol1g_con 250 250 kas2c_con 250 250 pol1c_con 250 250 mus1g_con 250 250 tan1g_con 250 250 geo1c_con 250 250 cor1c_con 250 250 tat3g_con 250 250 dag1g_con 250 250 yav1c_con 250 250 myg1c_con 250 250

make changes as you like

copy the text into a notepad click file save as test.bat inside the folder Star Wars Battlefront II PC Server. click save then double click the bat file you just made and the server window will pop up.

Quote from: Auggie on August 29, 2016, 02:36:40 PM
What are the hex edits that need to be made for 60tps? Honestly, that's probably easier.

uh, that's only easier for you if someone else figures out where to edit it at  ;)
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

August 29, 2016, 03:09:22 PM #7 Last Edit: August 29, 2016, 03:13:56 PM by Auggie
Haha, yes. That's what I meant. If Anyder was able to hex edit 40tps, shouldn't it be the same for 60tps? I could probably compare the two files and see where the change is. I just don't know what to set it to. Because I'm a newb.

I'm probably wrong though. Things are never usually that simple. :/

Batch files are really easy.  You should try oldsnake's.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

August 29, 2016, 04:04:17 PM #9 Last Edit: August 29, 2016, 04:06:08 PM by Auggie
Batch files can't be opened through GR though, which is so stupid.  :td: When I can get people to switch over to SWBFSpy, that won't be a problem, but right now, it is.

Hex editing seems like the best option.

Ah, I see.  GR is not as flexible as regular hosting.  Someone will need to do the hexediting for you if it is possible.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Led on August 29, 2016, 04:08:51 PM
Ah, I see.  GR is not as flexible as regular hosting.  Someone will need to do the hexediting for you if it is possible.
Ill upload it tomorrow
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

There is an easier way than batch stuff or hex editing.

Just create a shortcut of your battlefrontII.exe (the server one) right click it and add these to the Target:
/win /norender /nosound /autonet dedicated /resolution 640 480 /tps 60

mine looks like this: "D:\Star Wars Battlefront II PC Server\BattlefrontII.exe" /win /norender /nosound /autonet dedicated /resolution 640 480 /tps 60

To set up other options, use swbfsm.exe and then click on save button and then close it. And start server using your new shortcut.

Idk if that works on gameranger

September 28, 2016, 02:56:33 PM #13 Last Edit: September 28, 2016, 03:23:21 PM by Jean
You are 74 Michael?

P.S Nice coffee plant, Anyder :P