Page 1 of 1

setting .bat up for latency cap and autosave

Posted: Fri Oct 28, 2016 4:35 am
by NipplesNCream
Hi!
so my friend and i are trying to play on a headless server that im running off my laptop and everything is running moderately well but he gets a lot of lag now and then and when it comes to fighting biters he doesnt stand a chance. now ive read that you can put a latency cap so you can create "artificial lag" so any guests dont get massive shuddering while trying to keep up. now i have my current .bat script set as "start /wait factorio.exe --start-server owned.zip" and the server starts up fine but when i try and add new commands like "autosave_intervals 10" or "latency_ms 100" the server no longer runs. so i looked up another way to get those commands to work and it had something to do with putting "./factorio --start-server-load-latest --server-settings ./data/server-settings.json" into the script. so i put it in and when it runs i get an error saying it doesnt know where the .json file is. now im not the best on discribing why im having issues but i dont really know what else to do other than turn to the forums for help but if someone could link a .bat script that works well and lets me do what i want to do than that would be much appreciated.