Factorio

Factorio

檢視統計資料:
InsanityXL 2016 年 4 月 3 日 下午 2:26
Dedicated Server autosave help
Hey guys and gals,

I run a Dedicated Server for factorio for myself and some friends.

I have been struggling to get the autosave interval to be longer than 2 minutes. i have changed the line (autosave_interval=10) in the Config file (Called during startup of the server), this results in a 2 minute autosave.
I have also tried the --autosave-interval=10 and --autosave-interval 10 statements in the startup properties of the .bat file (contents below without the command)

Factorio.exe --start-server Mods.zip --no-auto-pause -c C:\Users\%username%\AppData\Roaming\Factorio\config\config-server.ini

Contents of Server config:

[path]
read-data=__PATH__system-read-data__
write-data=__PATH__system-write-data__/Server
[general]
locale=
[controls]
editor-show-hard-difficulty=F11
editor-show-normal-difficulty=F10
editor-show-easy-difficulty=F9
editor-show-all-difficulties=F8
editor-edit-entity-details=T
editor-remove-entity=X
editor-tool-secondary-action=mouse-button-2
editor-tool-primary-action=mouse-button-1
cancel-craft-all=SHIFT + mouse-button-1
cancel-craft-5=mouse-button-2
cancel-craft=mouse-button-1
craft-all=SHIFT + mouse-button-1
craft-5=mouse-button-2
craft=mouse-button-1
toggle-console=KEY60
smaller-terrain-building-area=PAD -
larger-terrain-building-area=PAD +
pause-game=SHIFT + SPACE
disconnect-train=V
connect-train=G
confirm-message=TAB
toggle-map=M
production-statistics=P
toggle-menu=ESCAPE
zoom-out=mouse-wheel-down
zoom-in=mouse-wheel-up
toggle-driving=ENTER
shoot-selected=C
shoot-enemy=SPACE
pick-items=F
rotate=R
drop-cursor=Z
clean-cursor=Q
quickbar-10=SHIFT + 5
quickbar-9=SHIFT + 4
quickbar-8=SHIFT + 3
quickbar-7=SHIFT + 2
quickbar-6=SHIFT + 1
clear-filter=CONTROL + mouse-button-3
fast-entity-split=CONTROL + mouse-button-2
inventory-split=CONTROL + mouse-button-2
stack-split=SHIFT + mouse-button-2
cursor-split=mouse-button-2
change-active-quickbar=X
quickbar-5=5
quickbar-4=4
quickbar-3=3
quickbar-2=2
quickbar-1=1
set-filter=mouse-button-3
fast-entity-transfer=CONTROL + mouse-button-1
inventory-transfer=CONTROL + mouse-button-1
stack-transfer=SHIFT + mouse-button-1
pick-item=mouse-button-1
next-weapon=Q
show-info=ALT
open-gui=mouse-button-1
select-for-cancel-deconstruct=SHIFT + mouse-button-1
select-for-blueprint=mouse-button-1
paste-entity-settings=SHIFT + mouse-button-1
copy-entity-settings=SHIFT + mouse-button-2
remove-pole-cables=SHIFT + mouse-button-1
build-ghost=SHIFT + mouse-button-1
build=mouse-button-1
mine=mouse-button-2
close-gui=E
open-technology-gui=T
open-character-gui=E
move-down=S
move-left=A
move-right=D
move-up=W
[debug]
show_fps=basic
show_detailed_info=basic
show_time_used_percent=basic
show_multiplayer_waiting_icon=basic
show_multiplayer_waiting_statistics=basic
show_tile_grid=full
show_collision_rectangles=detailed
show_selection_rectangles=detailed
show_paths=full
show_next_waypoint_bb=full
show_target=full
show_unit_group_info=full
show_unit_stuck_info=full
show_last_path_detail=full
show_path_cache=full
show_path_cache_paths=full
show_rail_paths=full
show_rolling_stock_count=full
show_rail_connections=detailed
show_rail_segments=detailed
show_rail_joints=detailed
show_train_stop_point=detailed
show_train_braking_distance=full
show_train_signals=full
show_network_connected_entities=detailed
show_circuit_network_numbers=detailed
show_energy_sources_networks=detailed
show_active_state=detailed
show_pollution_values=full
show_active_entities_on_chunk_counts=full
show_active_chunks=full
show_enemy_expansion_candidate_chunks=full
show_tile_variations=full
show_raw_tile_transitions=never
show_tile_correction_previews=never
show_fluid_box_fluid_info=basic
show_environment_sound_info=basic
show_logistic_robot_targets=full
[graphics]
multisampling-level=0
lights-render-quality=0.200000003
fullscreen=true
system-ui-scale=true
custom-ui-scale=1
preferred-screen-index=255
show-smoke=true
show-clouds=true
show-inserter-shadows=true
show-minimap=true
show-pollution-on-minimap=true
show-grid-when-paused=true
show-inserter-arrows-when-detailed-info-is-on=false
show-mining-drill-arrows-when-detailed-info-is-on=true
light-entity-info-background=false
force-opengl=false
graphics-quality=normal
v-sync=true
screenshots_queue_size=10
screenshots_threads_count=1
max-texture-size=0
video-memory-usage=high
disable-fma3=auto
[sound]
master_volume=0.600000024
ambient_volume=0.400000006
game_effects_volume=0.699999988
gui_effects_volume=0.699999988
walking_volume=0.300000012
environment_volume=0.449999988
alert_volume=0.550000012
audible_distance=40
environment_audible_distance=15
maximum_environment_sounds=15
active_gui_volume_modifier=1.29999995
active_gui_environment_volume_modifier=0.600000024
ambient_music_pause_mean_seconds=45
ambient_music_pause_variance_seconds=30
ambient_music_mode=interleave-main-tracks-with-interludes
[other]
tooltip_delay=0.0395000018
max_threads=4
show_tips_and_tricks=true
autosort_inventory=true
research_finished_stops_game=true
use_item_groups=true
use_item_subgroups=true
output_console_delay=1200
autosave_interval=10
autosave_slots=3
enable_latency_hiding=false
enable_new_mods=true
port=34197
verbose-logging=false

Again these all leave me with a 2 minute auto save cycle..
I have tried entering some console commands into the LUA console ingame to set the interval but that is just ignored and runs on the normal 2 minute schedule.

Is there anything obvious that you can see that i have missed that could be changed to force the server to autosave every 10 mins.

Any suggestions would be appreciated.
最後修改者:InsanityXL; 2016 年 4 月 3 日 下午 2:27
< >
目前顯示第 1-4 則留言,共 4
Teh Freek 2016 年 4 月 3 日 下午 5:54 
Are all the clients configured to save in longer intervals as well? The clients also autosave the map locally.
Targa 2016 年 4 月 3 日 下午 7:16 
What he said. I'm guessing yours and your friends games are still set for autosaving every 2 minutes. The server's autosave doesn't override what your and your friends game settings are. All players in multiplayer should disable the autosave feature before connecting. AFAIK, this should work in your case:

Factorio.exe --start-server Mods.zip --no-auto-pause --autosave-interval 10 -c C:\Users\%username%\AppData\Roaming\Factorio\config\config-server.ini
InsanityXL 2016 年 4 月 4 日 上午 12:45 
Thank you for the feedback, i'll give that a try when i am back home.
Mugis 2018 年 5 月 31 日 下午 2:47 
I have the exact same problem. No idea why the autosave keeps on 2 minutes.

I tested my pack locally on Linux, and the autosave was less frequent. Just as set in the configs.
But I have a clean dedicated server, which runs the service as specified user, and out of nowhere it autosaves at 2mins.
It's factorio version 0.13.20.
Haven't tried only the runtime parameter.
Going to test it some more...


EDIT:
It works for me when I added the param. Seems to be the only influencing variable of all the configs.

data/server-settings.json
{ .... "max_players": "10", "autosave_interval": 0, "autosave_slots": 2, .... "only_admins_can_pause_the_game": false, "autosave_only_on_server": true, "visibility": "hidden", "verify_user_identity": "false" }


config/config.ini
[path] read-data=__PATH__executable__/../../data write-data=__PATH__executable__/../.. [other] ... autosave_interval=30 autosave_slots=3 enable_latency_hiding=false port=34197 server_game_heartbeat_in_seconds=30 lan_game_heartbeat_in_seconds=2 proxy= [....]


/etc/systemd/system/factorio.service
(This one works)
[Unit] Description=Factorio Server service After=network.target [Service] User=factorio ExecStart=/opt/factorio/bin/x64/factorio --start-server-load-latest --port 34197 --server-settings /opt/factorio/data/server-settings.json --autosave-interval 20 RestartSec=10 Restart=always [Install] WantedBy=multi-user.target

PS. Or maybe is it really the difference between an underscore and dash? o.o
最後修改者:Mugis; 2018 年 6 月 3 日 下午 3:50
< >
目前顯示第 1-4 則留言,共 4
每頁顯示: 1530 50

張貼日期: 2016 年 4 月 3 日 下午 2:26
回覆: 4