[Twinsen][1.1.5] game.parse_map_exchange_string errors on Serverstart

Bugs that are actually features.
Post Reply
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 333
Joined: Tue Jul 08, 2014 10:06 am
Contact:

[Twinsen][1.1.5] game.parse_map_exchange_string errors on Serverstart

Post by LuziferSenpai »

Hey,

when I do this command:

Code: Select all

/c game.write_file("test.txt", game.table_to_json(game.parse_map_exchange_string(">>>eNpjZGBkYGWAAHsGhgP2HCzJ+Yk5q1etsmNgcHBgYGiw50rOL yhILdLNL0pFFuZMLipNSdXNz0RVnJqXmlupm5RYnAriwjBHZlF+H roJrMUl+XmoIiVFqanFyBq5S4sS8zJLc9H1MjBqFh5iaGiRA+P/9 QwK//+DMJD1AOgVEGZgbICoBIrBAGtyTmZaGgODgiMQO4EVMTJWi 6xzf1g1xZ4RokbPAcr4ABU5kAQT8YQx/BxwSqnAGCZI5hiDwWckB sTSEqAVUFUcDggGRLIFJMnI2Pt264Lvxw7YMf5Z+fGSb1KCPaOhq 8i7D0br7IDS7CAvMMGJWTNBYCfMKwwwMx/YQ6Vu2jOePQMCb+wZQ fHOKAIiHCyAxAFvZgZGAT4ga0EPkFCQYYA5zQ5mjIgDYxoYfIP55 DGMcdke3R/AgLABGS4HIk6ACLCFcJcxQpgO/Q6MDvIwWUmEEqB+I wZkN6QgfHgSZu1hJPvRHIIZEcj+QBNRccASDVwgC1PgxAtmuGuA4 XmBHcZzmO/AyAxigFR9AYpBeCAZmFEQWsABHNzMDAjwwZ7hDx+vE gBrvKY+<<<")))
It errors a server, when trying to start with the map gen settings.

Code: Select all

   0.544 Factorio initialised
   0.566 Goodbye
   0.000 Error Util.cpp:83: Key "pollution" not found in property tree at ROOT
Greetz,

Luzifer
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Twinsen
Factorio Staff
Factorio Staff
Posts: 1330
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen][1.1.5] game.parse_map_exchange_string errors on Serverstart

Post by Twinsen »

What command did you use to start the server exactly?

I don't think there's any indication that map exchange string can be used directly as map gen settings. Map exchange string is it's own thing.

If I understand correctly, it should be possible to extract map_gen_settings and map_settings from the exchange string and then use those as separate input JSONs to map-gen-settings and map-settings respectively.

User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 333
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: [Twinsen][1.1.5] game.parse_map_exchange_string errors on Serverstart

Post by LuziferSenpai »

Shouldnt there be then a command to both togehter? And just have a file to start it? Because thats more easier for people, then use both and somehow get them magically together.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Twinsen
Factorio Staff
Factorio Staff
Posts: 1330
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen][1.1.5] game.parse_map_exchange_string errors on Serverstart

Post by Twinsen »

I can't see much benefit in joining the files, it's just "how it works".

It might be reasonable to add a command line argument that accepts a map exchange string directly, but that's a feature request.

Post Reply

Return to “Not a bug”