credomane / FactorioMods_FactorioMaps

Jeroon's Factorio Maps mod
http://www.factorioforums.com/14582
47 stars 7 forks source link

Support zero-interaction mode #11

Open fireduck64 opened 7 years ago

fireduck64 commented 7 years ago

I want to make a service where people just upload maps and my service uses this mod to generate the map and hosts it for them. I know this will get to be large fast, but I want to do anyways.

I understand that I can't do this on a headless instance but I'd like to run it on a full factorio install (with graphics obviously). I just need it to not require any user action. Could the mod be made to allow itself to run immediately on load, export a map with some preset settings and then exit factorio?

That would be super awesome and allow me to make the service.

My existing maps are here: https://storage.googleapis.com/factorio-1209k-maps/index.html

I did those with a simple tool to create the index and exporting each map by hand.

credomane commented 7 years ago

0.15 adds a new command feature. I can add a /factoriomaps blah blah blah that could let you control it that way. Would that work well enough? Otherwise I'm not too sure how to go about it without ruining the normal userbase.

fireduck64 commented 7 years ago

That sounds perfect.

credomane commented 7 years ago

I'll work on that this week. Currently out of town for the weekend.

First rough idea is:
/factoriomaps generate to generate a map.
/factoriomaps setting [key [value]] calling setting without parameters will spit out all the valid keys and calling a key without a value will print the current value.

Thoughts?

fireduck64 commented 7 years ago

I love the ability to discover the settings.

So would the full command line be: factorio --load-save whatever.zip --factoriomaps generate --factoriomaps name Bingo and so on specifying more key settings? That is fine with me.

jab416171 commented 6 years ago

Where did you end up with this? I would love to automatically, periodically create a factorio map of my multiplayer server.

Does the mod support using an existing directory and only updating the images instead of generating new ones for unchanged areas? That would greatly speed up subsequent invocations.

matrixhacker commented 6 years ago

Has this idea received further attention? If so I'd like to make use of it.

cluelessperson commented 6 years ago

PLEASE! :P

it would be great to just script this just with the map.zip file.