[1.1.30] start-server-load-scenario uses write-data instead of read-data

Bugs that are actually features.
Post Reply
CaveGrinder
Inserter
Inserter
Posts: 35
Joined: Fri Aug 24, 2018 7:42 pm
Contact:

[1.1.30] start-server-load-scenario uses write-data instead of read-data

Post by CaveGrinder »

Hi,

so while doing some tinkering i found that the start-server-load-scenario uses write-data from the config.ini instead of read-data to locate the scenario.
this is a bit strange - i expected it to take the scenario from the read-data, convert it to a map and then operate on the write-data folder.
see the command line log below

Code: Select all

D:\Projects\FactorioWorld\py_tests>D:\Steam\SteamApps\common\Factorio\bin\x64\factorio.exe --start-server-load-scenario
freeplay --bind 127.0.0.1:4798 --config D:\Projects\FactorioWorld\py_tests\config_server\config.ini
   0.000 2021-04-06 15:52:10; Factorio 1.1.30 (build 58304, win64, steam)
   0.001 Operating system: Windows 8.1
   0.001 Program arguments: "D:\Steam\SteamApps\common\Factorio\bin\x64\factorio.exe" "--start-server-load-scenario" "fr
eeplay" "--bind" "127.0.0.1:4798" "--config" "D:\Projects\FactorioWorld\py_tests\config_server\config.ini"
   0.001 Read data path: D:/Steam/SteamApps/common/Factorio/data
   0.001 Write data path: D:/Projects/FactorioWorld/py_tests/write-data-server [146214/1907599MB]
   0.002 Binaries path: D:/Steam/SteamApps/common/Factorio/bin
   0.009 System info: [CPU:         Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 8 cores, RAM: 5833/16326 MB, page: 8539/483
26 MB, virtual: 116/134217727 MB, extended virtual: 0 MB]
   0.010 Running in headless mode
   0.015 Loading mod core 0.0.0 (data.lua)
   0.073 Loading mod base 1.1.30 (data.lua)
   0.377 Loading mod base 1.1.30 (data-updates.lua)
   0.535 Checksum for core: 4047253295
   0.536 Checksum of base: 1445730304
   0.718 Prototype list checksum: 3034860339
   0.758 Info PlayerData.cpp:73: Local player-data.json unavailable
   0.758 Info PlayerData.cpp:78: Cloud player-data.json unavailable
   0.759 Info GlobalContext.cpp:1300: Resetting config.
   0.760 Factorio initialised
   0.760 Error CommandLineUtils.cpp:79: Scenario D:/Projects/FactorioWorld/py_tests/write-data-server/scenarios/freeplay
 not found
   0.763 Info ServerMultiplayerManager.cpp:140: Quitting multiplayer connection.
   0.763 Info ServerMultiplayerManager.cpp:783: updateTick(4294967295) changing state from(Ready) to(Closed)
   0.805 Goodbye
   
Assuming currently it was always like that - just tried it for the first time today.

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [1.1.30] start-server-load-scenario uses write-data instead of read-data

Post by posila »

Thanks for the report, however this is working correctly.
Scenarios folder is used by the in-game editor therefore needs to have write access.
read-data path is only for data distributed with the game.


Post Reply

Return to “Not a bug”