Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new feature: map generator #276

Draft
wants to merge 16 commits into
base: develop
Choose a base branch
from
Draft

new feature: map generator #276

wants to merge 16 commits into from

Conversation

jannaahs
Copy link
Member

The map generator replaces the possibility to create a save file with all possible settings you know from factorio.

grafik

Unfortunately there are some known issues related to the map template selection (default, island, death world, ... ).
I wasn't sure how to map certain values so the template selection doesn't match the ingame templates. Therefore I have added some todo comments.

Open todo:

@C0bai
Copy link

C0bai commented Jun 30, 2021

Hey, i'm currently using the software to manage a server we're using.
We have an issue though where we need the server to load the map as if it were loading on your own PC for the first time (showing the cutscene etc) but using a specific map seed generation.
We're speedrunners and need to reload the same seed over and over for each run, unfortunately we're unable to use the save game feature as it requires a save made offline and uploaded and this doesn't count as it's not a 'fresh' run on the map.
I see the map generator was added as a way to use the json file for map generation but i cannot for the life of me figure out how to use the --map gen json server commands anywhere - any ideas?

@knoxfighter
Copy link
Member

knoxfighter commented Jul 1, 2021

Testing with Vanilla factorio:

  • Error messages are shwon behind the settings window. image
  • Using . at all or a 0 at the first does not work (no symbol added)
  • Why not using an input slider (like ingame)? <input tpye="range"/>
  • Number smaller 1 are clipped to 1 as soon as writing is attempted
  • Changing some values lead into the error "Unable to parse the request body: json: cannot unmarshal string into Go struct field EnemyEvolution.enemy_evolution.destroy_factor of type float32". Destroy-factor = 0.005.
  • http: superfluous response.WriteHeader call from github.com/OpenFactorioServerManager/factorio-server-manager/api.GenerateMapPreview (handlers.go:525)

Testing with Mods (all Angel's mods):

  • modded ores are missing from settings (general modding stuff is missing)
  • Generating preview always fails:
factorio-server-manager    | 2021/07/01 14:49:59 /opt/factorio/bin/x64/factorio <nil>
factorio-server-manager    | 2021/07/01 14:50:06 Error in creating Factorio save: exit status 1
factorio-server-manager    | 2021/07/01 14:50:06 Error creating map preview exit status 1
  • Generating map also failes (i guess it has the same reason):
Log:
factorio-server-manager    | 2021/07/01 14:56:04    0.000 2021-07-01 14:55:57; Factorio 1.1.35 (build 58756, linux64, headless)
factorio-server-manager    |    0.000 Operating system: Linux
factorio-server-manager    |    0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--map-gen-settings" "/tmp/factorio-settings-file716124092" "--map-settings" "/tmp/factorio-settings-file093679083" "--create" "/opt/factorio/saves/gen2" 
factorio-server-manager    |    0.000 Read data path: /opt/factorio/data
factorio-server-manager    |    0.000 Write data path: /opt/factorio [82668/239340MB]
factorio-server-manager    |    0.000 Binaries path: /opt/factorio/bin
factorio-server-manager    |    0.006 System info: [CPU: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz, 8 cores, RAM: 15929 MB]
factorio-server-manager    |    0.006 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
factorio-server-manager    |    0.006 Running in headless mode
factorio-server-manager    |    0.040 Loading mod settings angelsrefining 0.11.21 (settings.lua)
factorio-server-manager    |    0.041 Loading mod settings angelsinfiniteores 0.9.9 (settings.lua)
factorio-server-manager    |    0.041 Loading mod settings angelspetrochem 0.9.19 (settings.lua)
factorio-server-manager    |    0.041 Loading mod settings angelsaddons-storage 0.0.6 (settings.lua)
factorio-server-manager    |    0.041 Loading mod settings angelsindustries 0.4.13 (settings.lua)
factorio-server-manager    |    0.041 Loading mod settings angelsaddons-cab 0.2.7 (settings.lua)
factorio-server-manager    |    0.041 Loading mod settings angelsaddons-mobility 0.0.8 (settings.lua)
factorio-server-manager    |    0.042 Loading mod settings angelsrefining 0.11.21 (settings-updates.lua)
factorio-server-manager    |    0.042 Loading mod settings angelspetrochem 0.9.19 (settings-updates.lua)
factorio-server-manager    |    0.042 Loading mod settings angelsaddons-storage 0.0.6 (settings-updates.lua)
factorio-server-manager    |    0.042 Loading mod settings angelssmelting 0.6.16 (settings-updates.lua)
factorio-server-manager    |    0.042 Loading mod settings angelsindustries 0.4.13 (settings-updates.lua)
factorio-server-manager    |    0.043 Loading mod settings angelsaddons-mobility 0.0.8 (settings-updates.lua)
factorio-server-manager    |    0.043 Loading mod settings angelsexploration 0.3.10 (settings-updates.lua)
factorio-server-manager    |    0.043 Script @__angelsrefining__/prototypes/angels-settings.lua:13: Could not find setting 'angels-enable-biters'.
factorio-server-manager    |    0.044 Loading mod core 0.0.0 (data.lua)
factorio-server-manager    |    0.102 Loading mod base 1.1.35 (data.lua)
factorio-server-manager    |    0.449 Loading mod angelsrefining 0.11.21 (data.lua)
factorio-server-manager    |    0.644 Loading mod angelsinfiniteores 0.9.9 (data.lua)
factorio-server-manager    |    0.824 Loading mod angelspetrochem 0.9.19 (data.lua)
factorio-server-manager    |    1.030 Loading mod angelsaddons-storage 0.0.6 (data.lua)
factorio-server-manager    |    1.215 Loading mod angelssmelting 0.6.16 (data.lua)
factorio-server-manager    |    1.431 Loading mod angelsbioprocessing 0.7.19 (data.lua)
factorio-server-manager    |    1.646 Loading mod angelsindustries 0.4.13 (data.lua)
factorio-server-manager    |    1.882 Loading mod angelsaddons-cab 0.2.7 (data.lua)
factorio-server-manager    |    2.082 Loading mod angelsaddons-mobility 0.0.8 (data.lua)
factorio-server-manager    |    2.285 Loading mod angelsexploration 0.3.10 (data.lua)
factorio-server-manager    |    2.530 Loading mod base 1.1.35 (data-updates.lua)
factorio-server-manager    |    2.766 Loading mod angelsrefining 0.11.21 (data-updates.lua)
factorio-server-manager    |    2.998 Loading mod angelsinfiniteores 0.9.9 (data-updates.lua)
factorio-server-manager    |    3.200 Loading mod angelspetrochem 0.9.19 (data-updates.lua)
factorio-server-manager    |    3.474 Loading mod angelsaddons-storage 0.0.6 (data-updates.lua)
factorio-server-manager    |    3.701 Loading mod angelssmelting 0.6.16 (data-updates.lua)
factorio-server-manager    |    3.949 Loading mod angelsbioprocessing 0.7.19 (data-updates.lua)
factorio-server-manager    |    3.967 Script @__angelsbioprocessing__/prototypes/overrides/bio-processing-override-bob-artifacts.lua:534: false
factorio-server-manager    |    4.190 Loading mod angelsindustries 0.4.13 (data-updates.lua)
factorio-server-manager    |    4.492 Loading mod angelsaddons-cab 0.2.7 (data-updates.lua)
factorio-server-manager    |    4.707 Loading mod angelsaddons-mobility 0.0.8 (data-updates.lua)
factorio-server-manager    |    4.936 Loading mod angelsexploration 0.3.10 (data-updates.lua)
factorio-server-manager    |    5.155 Loading mod angelsrefining 0.11.21 (data-final-fixes.lua)
factorio-server-manager    |    5.359 Loading mod angelspetrochem 0.9.19 (data-final-fixes.lua)
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'rocket-fuel' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'angelsore8-sludge' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'angelsore9-sludge' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'slag-processing-dissolution' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'stone-crushed-dissolution' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'geode-blue-liquify' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'geode-red-liquify' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'geode-yellow-liquify' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'geode-purple-liquify' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'geode-cyan-liquify' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'geode-lightgreen-liquify' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'crystal-dust-liquify' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'water-mineralized' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'water-viscous-mud' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'angels-water-enrichment-1' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'angels-water-enrichment-2' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.360 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'angels-water-enrichment-3' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'condensates-refining' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-mineral-oil-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'mineral-oil-lubricant' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-synthesis-separation' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-synthesis-reforming' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-synthesis-methanation' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-naphtha-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-synthesis-methanol' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-benzene-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-polyethylene-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-methanol-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-ethylene-oxide' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-toluene-from-naphtha' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-toluene-from-benzene' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-formaldehyde-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-styrene-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-phenol-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-ethylbenzene-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-ethylene-carbonate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'cumene-process' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-bisphenol-a' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'air-separation' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sodium-nitrate-processing' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-nitrogen-monoxide' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-nitrogen-dioxide' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-ammonia' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-ammonium-chloride' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-urea' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-nitric-acid' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'sodium-nitrate-acid-processing' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-melamine' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-monochloramine' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-hydrazine' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-methylamine' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-dimethylamine' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-dimethylhydrazine' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-dinitrogen-tetroxide' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-ammonium-nitrate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-ammonium-perchlorate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'rocket-oxidizer-capsule' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'rocket-fuel-capsule' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-plastic-1' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-plastic-2' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-plastic-3' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-resin-1' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-resin-2' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-resin-3' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-rubber-1' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-fuel-methane' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-fuel-naphtha' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-fuel-fuel-oil' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-fuel-synthesis' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-fuel-hydrazine' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'angels-electrode-used' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-nitroglycerin' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-trinitrotoluene' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sodium-carbonate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sodium-cyanide' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sodium-hydroxide' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-aqueous-sodium-hydroxide-reverse' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sodium-hydroxide-solid-sodium-sulfate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-aqueous-sodium-hydroxide' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sodium-hypochlorite' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sodium-chlorate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sodium-perchlorate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-acid-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-sulfur' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-sulfur-dioxide' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-sulfur-dioxide-calcium-sulfate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-sulfuric-acid' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-hydrofluoric-acid' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-hydrogen-fluoride' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-hydrogen-fluoride' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'filter-lime-used' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-hydrogen-chloride' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-hydrogen-chloride-separation' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-chlor-methane' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-hydrochloric-acid' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-hydrochloric-acid-solid-sodium-sulfate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-ferric-chloride-solution' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-cupric-chloride-solution' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-allylchlorid' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-epichlorhydrin' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-glycerol' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-perchloric-acid' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-phosgene' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-chromate-smelting' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'pellet-cobalt-smelting' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.361 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-chlorauric-acid' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-hexafluorosilicic-acid' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'pellet-platinum-smelting' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'processed-silver-smelting' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'coolant' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'tungsten-ore-smelting' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-tungsten-oxide-smelting' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'algae-brown-burning-wash' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-methanol-from-wood' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-ammonia-from-blue-fiber' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'solid-calcium-carbonate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'bio-resin' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'bio-resin-resin-liquification' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'bio-plastic' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'bio-rubber' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-carbon-dioxide-from-wood' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'carbon-from-charcoal' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-pulping-liquor' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'brown-liquor-recovery' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'sulfite-pulping' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-white-liquor' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'kraft-recovery' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'kraft-causting' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'kraft-cooking-washing' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'paper-bleaching-2' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'paper-bleaching-3' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'alien-goo' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'crystal-powder-slurry' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'paste-cellulose' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'fermentation-corn' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'fermentation-fruit' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'aerobic-fermentation' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'anaerobic-fermentation' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'ethanol-to-ethylene-synthesis' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-acetic-acid-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-acetic-anhydride' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-acetate-mixture' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-cellulose-acetate' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'bio-plastic-1' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-propionic-acid-catalyst' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'bio-plastic-2' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-fish-atmosphere' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'liquid-polluted-fish-atmosphere' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'gas-puffer-atmosphere' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.362 Script @__angelspetrochem__/prototypes/petrochem-global-override.lua:13: Recipe 'angels-atomic-bomb-2' does not have a crafting_machine_tint set!
factorio-server-manager    |    5.581 Loading mod angelssmelting 0.6.16 (data-final-fixes.lua)
factorio-server-manager    |    5.799 Loading mod angelsindustries 0.4.13 (data-final-fixes.lua)
factorio-server-manager    |    6.005 Loading mod angelsaddons-mobility 0.0.8 (data-final-fixes.lua)
factorio-server-manager    |    6.215 Checksum for core: 4236520717
factorio-server-manager    |    6.215 Checksum of base: 147445597
factorio-server-manager    |    6.215 Checksum of angelsrefining: 2359137466
factorio-server-manager    |    6.215 Checksum of angelsinfiniteores: 1371774163
factorio-server-manager    |    6.215 Checksum of angelspetrochem: 2625545041
factorio-server-manager    |    6.215 Checksum of angelsaddons-storage: 2398215907
factorio-server-manager    |    6.215 Checksum of angelssmelting: 2782804709
factorio-server-manager    |    6.215 Checksum of angelsbioprocessing: 1705642457
factorio-server-manager    |    6.215 Checksum of angelsindustries: 2128271079
factorio-server-manager    |    6.215 Checksum of angelsaddons-cab: 3610464991
factorio-server-manager    |    6.215 Checksum of angelsaddons-mobility: 3785861874
factorio-server-manager    |    6.215 Checksum of angelsexploration: 2261294062
factorio-server-manager    |    6.598 Prototype list checksum: 2508544607
factorio-server-manager    |    6.731 Info PlayerData.cpp:71: Local player-data.json available, timestamp 1625151006
factorio-server-manager    |    6.732 Info PlayerData.cpp:78: Cloud player-data.json unavailable
factorio-server-manager    |    6.733 Factorio initialised
factorio-server-manager    |    6.782 Goodbye
factorio-server-manager    |    0.000 Error Util.cpp:83: "stone" is not a valid autoplace control name.
factorio-server-manager    | 
factorio-server-manager    | 2021/07/01 14:56:04 Error creating save {gen2}: exit status 1

@jannaahs
Copy link
Member Author

jannaahs commented Jul 1, 2021

@C0bai please visit our discord server: https://discord.gg/SB647WmSbU

@jannaahs
Copy link
Member Author

jannaahs commented Jul 9, 2021

This looks like there is still plenty of work. I have to figure out how I can add the mod support. This might be complicated and complex.

Regarding the error message, I have created a new issue #287 since it happens on other views as well. I will fix it separately because it should not wait until the map generator is finished.

@jannaahs
Copy link
Member Author

I'm not sure how we want to support modded ores. I have downloaded https://mods.factorio.com/mod/bobores and tried to figure out where I can get the information of the added ores.

Unfortunately, they're added with in a LUA file - one file for each ore. This means we have to generic parse all LUA files.

@knoxfighter do you have any idea how we can handle it?

In the end it's always possible to either not have a map generator or only for non-modded saves.

@knoxfighter
Copy link
Member

knoxfighter commented Jul 23, 2021

@knoxfighter do you have any idea how we can handle it?

Yes, we can add LUA and read out the Mods by ourselves. I have some experience with that, cause of my factorio intellij plugin.

For now i would say, we should ignore mods. Just add a message on top, that with mods, that alter ores, the generation is broken. I will look into that sometime. Most mods will work, only some overhauls like Bobs, Angels or Industrial Revolution will break it.

@EphDoering
Copy link
Contributor

To deal with mods it's probably a lot easier to just have factorio do the heavy lifting:

  1. start a game with default map gen.
  2. use RCON to send something like: /c game.write_file("map-gen-settings.json", game.table_to_json(game.player.surface.map_gen_settings))
  3. Close the game.
  4. Use the generated json file as a template to play with all the fancy modded resources.
    You only need to do steps 1-3 when the mods change.

@jannaahs jannaahs marked this pull request as draft February 12, 2022 20:55
@knoxfighter knoxfighter added this to the 0.12 milestone Jun 18, 2022
@knoxfighter
Copy link
Member

It is possible to get all data information with the startup parameter: --dump-data

# Conflicts:
#	src/api/routes.go
#	ui/App/App.jsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use custom map gen settings when creating save files
4 participants