Garry's Mod

Garry's Mod

Metrostroi (Subway Simulator)
Davo 14 Jan, 2015 @ 2:42pm
Lots of Lag
I downloaded the recommended dll that would help with lag, and it did increase my framerate, however whenever there are 2+ train cars on the map it begins to lag.
< >
Showing 1-15 of 27 comments
theskimc 5 Feb, 2015 @ 11:34am 
I am experiencing this very problem. Very irritating as it's a great simulator but this does let it down ;(
glebqip(MEOW)  [developer] 6 Feb, 2015 @ 4:24am 
You need 3 things:
Windows version of source dedicaced server
Installed metrostroi on this server
Installed turbostroi

In SP you get tonns of lags, because game calculates the graphics and scripts
Davo 6 Feb, 2015 @ 11:02am 
Originally posted by glebqip(RUS):
You need 3 things:
Windows version of source dedicaced server
Installed metrostroi on this server
Installed turbostroi

In SP you get tonns of lags, because game calculates the graphics and scripts
Yeah it's in SP so that's understandable.
Would it be beneficial to host the server on my own computer then connect to it locally so the two things are handled as seperate processes? I'm more the sure I have the processing power to handle it.
glebqip(MEOW)  [developer] 9 Feb, 2015 @ 4:23am 
Yes
theskimc 13 Feb, 2015 @ 3:42am 
Originally posted by glebqip(RUS):
Yes
So what exactly do I need to do to fix the lag?
theskimc 13 Feb, 2015 @ 12:28pm 
Well thanks but I don't really know how I go about installing those three things.
Davo 13 Feb, 2015 @ 2:20pm 
Originally posted by 3GG TheSkiMC:
Well thanks but I don't really know how I go about installing those three things.
I'll work on a guide
Davo 19 Feb, 2015 @ 11:59am 
Week later: Haven't started the guide but I CAN confirm that the game runs much better when everything is calculated server-side and the client just renders the items.
theskimc 20 Feb, 2015 @ 10:21am 
Originally posted by Adobe Photoshop CC:
Week later: Haven't started the guide but I CAN confirm that the game runs much better when everything is calculated server-side and the client just renders the items.
Cool. Let me know when you're done ;)
theskimc 15 Apr, 2015 @ 6:52am 
Originally posted by ObamaCare:
Week later: Haven't started the guide but I CAN confirm that the game runs much better when everything is calculated server-side and the client just renders the items.
Any progress?
PixelFelon 3 Jul, 2015 @ 5:49pm 
Since no one else has written a proper guide for accelerated servers, here's mine:

The first thing you need is the Garry's Mod dedicated server.
Follow this guide[wiki.garrysmod.com].
Once you have the server downloaded to your computer, you need to give it the Metrostroi addons. There are two ways of doing this: finding the addons online, downloading them, and putting them in with the server (the manual way), or creating a collection of addons on Steam and pointing the server to that (the easy way). I will cover the easy way.
Just create a collection on the Steam Workshop of the Metrostroi addons and whatever else you play with, get the collection's ID by looking at the URL of its webpage, and follow this guide[wiki.garrysmod.com] to set it up.

Having done all that, you need to install turbostroi. This is what allows metrostroi to make use of multiple threads and thereby run much, much faster. I was unable to find any trustworthy download of it, so I had to compile it from source. You can download my copy here[1drv.ms]. From the dedicated server's base folder, go into the "garrysmod" folder, and then into the "lua" folder. Create a new folder named "bin". For me the final path was "C:\metrostroi_srv\garrysmod\lua\bin". Put the turbostroi DLL ("gmsv_turbostroi_win32.dll") file in this folder.

The final step is to make a batch file to actually launch the server. In the base directory of the server (the folder with "srcds.exe" in it), create a file called "launch.bat". Open up the file in any text editor. You can read more about the command line options here, or you can just use the options I used:
srcds.exe +maxplayers 8 -console -authkey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +host_workshop_collection 473925927 +map gm_metrostroi_b50 +hostname "Metrostroi" +r_hunkalloclightmaps 0
You need to put your Steam API key (from the addons guide) in place of the X's.
Run launch.bat, and the server should launch and run fine. It will show up in the GMod server browser under "Local Network".

Clarification just in case: you do need to actually connect to the server which you have started and found under "Local Network" inside of GMod; just looking at it isn't enough. This should be obvious, but who knows.

Hope this helps anyone trying to use Turbostroi!
Last edited by PixelFelon; 2 Aug, 2016 @ 1:10am
CrashCast E 31 Jul, 2016 @ 9:28am 
Well, it has not helped me. Can you put down instructions about which file goes where? It is VERY confusing.
PixelFelon 2 Aug, 2016 @ 1:01am 
Originally posted by CrashCast E:
Well, it has not helped me. Can you put down instructions about which file goes where? It is VERY confusing.

You need first a dedicated Garry's Mod server, which has also the Metrostroi addons. Find your base game directory (of the server). It's wherever you installed the dedicated server. It should have hl2.exe, some other stuff and folders. I'll call it "BASE".

Get gmsv_turbostroi_win32.dll. Put it in the folder BASE\garrysmod\lua\bin. Now, you have Turbostroi, and the game should be much faster.

If this doesn't help, please be specific as to what you are confused about. Certainly, it's not a simple or straightforward process, but I think I've broken it down well enough.
CrashCast E 2 Aug, 2016 @ 8:12am 
I am confused about this "Dedicated server." What is it? Is it just part of Gmod?
< >
Showing 1-15 of 27 comments
Per page: 1530 50