STEAM GROUP
Linux Game Server Managers linuxgsm
STEAM GROUP
Linux Game Server Managers linuxgsm
45
IN-GAME
521
ONLINE
Founded
February 9, 2015
Factorio Experimental
Does anyone know how to make the -update cmd use the Headless experimental version of the game?

At the moment im manually putting that file into the lgsm/tmp and renaming so the script thinks its using the latest version..... since i had troubles trying to extract the files and getting it run without error.
< >
Showing 1-10 of 10 comments
Rangor May 29, 2017 @ 8:15am 
I'm not sure, but you may be able to edit the "update_factorio.sh" script.

https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/update_factorio.sh

Theres a function called "fn_update_factorio_availablebuild()". In that command is a check for the current build from the following url "https://www.factorio.com/download-headless/stable".

You might be able to change "stable" to "experimental" so that its checking the experimental branch.
Rangor May 29, 2017 @ 8:33am 
Just want to confirm that changing "stable" to "experimental" in that "fn_update_factorio_availablebuild()" function will cause the update command to use the experimental branch.
nehs Jun 30, 2017 @ 9:37pm 
Probably a bit late, but I just went through this myself and the fix Rangor proposed doesn't seem to apply any longer, as LGSM now has a variable ($branch) placed in the url.

By default, $branch is set to "stable" in ~/lgsm/config-lgsm/fctrserver/_default.cfg, but it can be overridden by editing the fctrserver.cfg file in the same directory.

So until it changes again, you could just open a terminal and enter:

echo branch=\"experimental\" >> ~/lgsm/config-lgsm/fctrserver/fctrserver.cfg

This should put you back on the bleeding edge of headless Factorio after running ./fctrserver update :D
Last edited by nehs; Jul 1, 2017 @ 2:11am
[ ϟ ϟ ] ViKiRs Jul 1, 2017 @ 1:00am 
Yep i also ment to say that i did try the method Rangor mentioned above. It half works for me, it would download the experimental release but it wouldnt remove the older release and so therefore it would extract the older experimental release.

TO make more sence, i would:
1. fctrserver backup
2. manually clean out the folder lgsm/tmp
3. run fctrserver update

If that didnt work, i would goto tmp and manually tar the latest experimental and chmod. And try install again, afterwhich i would need to take from backup the save and fctrserver.cfg
Last edited by [ ϟ ϟ ] ViKiRs; Jul 1, 2017 @ 1:00am
[ ϟ ϟ ] ViKiRs Jul 1, 2017 @ 1:02am 
Thanks shenwu, i'll have to give this another try on the next version release
nehs Jul 1, 2017 @ 2:11am 
That's a lot of work for an update!

I don't really have a way of testing any further, but adding that variable to the config file made the update command swap in the latest experimental release.

Also after some further setup/config I ended up adding
rconpassword="password"
to that config file as well. Just something I noticed needed to be changed after running ./fctrserver details.

Anyway, hope that helps for the next update!
Djavis Jul 8, 2017 @ 11:52am 
What did I did wrong ? I'm a total noob with linux but it's sooooooo good!


Status: OFFLINE

fctrserver@NAStradamus:~$ ./fctrserver update
fetching command_update.sh...OK
[ .... ] Update fctrserver: fetching check_system_dir.sh...OK
fetching logs.sh...OK
[ERROR ] Update fctrserver: Checking for update: factorio.com: Current build version not found
[ INFO ] Update fctrserver: Checking for update: factorio.com: Forcing server restart
fetching command_stop.sh...OK
[ .... ] Stopping fctrserver: fetching check_config.sh...OK
[ INFO ] Stopping fctrserver: Factorio Server is already stopped
fetching command_start.sh...OK
[ .... ] Starting fctrserver: Factorio Server fetching check_executable.sh...OK
[ OK ] Starting fctrserver: Factorio Server
[ OK ] Update fctrserver: Checking for update: factorio.com

No update available:
Current version: 0.14.23
Available version: 0.14.23

[ OK ] Update fctrserver: No update available
fctrserver@NAStradamus:~$ echo branch=\"experimental\" >> ~/lgsm/config-lgsm/fctrserver/fctrserver.cfg
fctrserver@NAStradamus:~$ ./fctrserver update
[ OK ] Update fctrserver: Checking for update: factorio.com

Update available:
Current build: 0.14.23 linux64
Available build: 0.15.28 linux64


Applying update...
[ OK ] Stopping fctrserver: Graceful: CTRL+c: 2: OK
[ OK ] Stopping fctrserver: Factorio Server
######################################################################## 100.0%
downloading factorio_headless_linux64-0.15.28.tar.gz...OK
extracting factorio_headless_linux64-0.15.28.tar.gz...tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
FAIL

fctrserver@NAStradamus:~$
nehs Jul 8, 2017 @ 12:27pm 
Looking at that error, you might be missing some packages. Try (using a sudo user) installing the xz-utils package.
sudo apt-get install xz-utils
Then try the update again.
Last edited by nehs; Jul 8, 2017 @ 12:30pm
Djavis Jul 8, 2017 @ 7:56pm 
oh well that was it ! thanks a lot, i would never find out it was some missing packages
teleksterling Dec 2, 2020 @ 5:10am 
Originally posted by kibitzaur:
Probably a bit late, but I just went through this myself ...

So until it changes again, you could just open a terminal and enter:

echo branch=\"experimental\" >> ~/lgsm/config-lgsm/fctrserver/fctrserver.cfg

This should put you back on the bleeding edge of headless Factorio after running ./fctrserver update :D

This didn't work for me, as the quotes were taken literally and passed into the curl query. This worked for me:

echo branch=experimental >> ~/lgsm/config-lgsm/fctrserver/fctrserver.cfg
< >
Showing 1-10 of 10 comments
Per page: 1530 50