[MOD 0.12.x] Factorio Maps
Re: [MOD 0.12.x] Factorio Maps
Updated to 0.5.5.
Changelog:
Narc changed the javascript output, so now when you zoom in/out/move in your browser, the location in the browsers url bar updates, so you now can link to a specific position on the map. Very handy for pointing people to a point on your map. Thanks Narc!
Changelog:
Narc changed the javascript output, so now when you zoom in/out/move in your browser, the location in the browsers url bar updates, so you now can link to a specific position on the map. Very handy for pointing people to a point on your map. Thanks Narc!
Re: [MOD 0.12.x] Factorio Maps
Hey, I just got a multiplayer patch from YPetremann over on github. The diff looks like this: https://github.com/narc0tiq/FactorioMap ... b6689f?w=1
I went ahead and included a version bump and packed it up as a tentative v0.5.6 -- grab it from https://github.com/narc0tiq/FactorioMap ... _0.5.6.zip.
Everyone, be aware that I am not Jeroon and therefore this is not an official update.
Also please note that if you're using a headless server you cannot use FactorioMaps, as it will happily crash the headless peer when it tries to take screenshots. Notably, the confusing warning we saw earlier shows up again:
But this is not actually directly related to the crash that happens immediately thereafter:
That said, if you're doing multiplayer the classic way (with all peers playing), this will let any player trigger the map generation instead of requiring player 1 to do it. Do remember that all players will perform the same operations, and also that since the map generating process is usually quite long, it will likely result in everyone disconnecting from everyone else.
I went ahead and included a version bump and packed it up as a tentative v0.5.6 -- grab it from https://github.com/narc0tiq/FactorioMap ... _0.5.6.zip.
Everyone, be aware that I am not Jeroon and therefore this is not an official update.
Also please note that if you're using a headless server you cannot use FactorioMaps, as it will happily crash the headless peer when it tries to take screenshots. Notably, the confusing warning we saw earlier shows up again:
Code: Select all
107.508 Warning LuaGameScript.cpp:1078: luaremove_path error: Scripts can only use file space inside of /home/narc/srv/factorio/script-output (requested path was /home/narc/srv/factorio/script-output/FactorioMaps/bob-world-3)
Code: Select all
#0 0x7fbc88f2cd40 in ?? at ??:0
#1 0x5e1f8a in getWidth at /tmp/factorio-yavVX5/src/Graphics/Display.cpp:197
#2 0x4455ff in luaTakeScreenshot at /tmp/factorio-yavVX5/src/Script/LuaGameScript.cpp:990
#3 0xa8169e in callWrapper at /tmp/factorio-yavVX5/src/Script/LuaBinder.hpp:307
[...remainder ellided...]
Re: [MOD 0.12.x] Factorio Maps
Thanks for the changes YPetremann, I've updated the first post.
Note that I haven't tested it myself in a Multi Player game, it crashed my game when I tried to use it with 2 local clients, so use at own risk, backup your backups bladibla.
As stated in the first post, you can always open your MP game in Single Player and use Factorio Maps that way.
Note that I haven't tested it myself in a Multi Player game, it crashed my game when I tried to use it with 2 local clients, so use at own risk, backup your backups bladibla.
As stated in the first post, you can always open your MP game in Single Player and use Factorio Maps that way.
Re: [MOD 0.12.x] Factorio Maps
Great work on creating this useful helper.
The ability to create and share map and coordinates has been a fantastic help in multiplayer games.
A slight issue with the browser history made me look for a fix.
Every move or zoom that changed the URL added a new history entry.
(edit: Removed download - get the new version.)
The ability to create and share map and coordinates has been a fantastic help in multiplayer games.
A slight issue with the browser history made me look for a fix.
Every move or zoom that changed the URL added a new history entry.
fix
I have made a pull request to Narc's github(edit: Removed download - get the new version.)
Last edited by HeilTec on Thu Sep 17, 2015 1:01 pm, edited 3 times in total.
Re: [MOD 0.12.x] Factorio Maps
And I've built it up into a v0.5.7: https://github.com/narc0tiq/FactorioMap ... _0.5.7.zipHeilTec wrote:A slight issue with the browser history made me look for a fix.
[...]
I have made a pull request to Narc's github
Thank you very much for the fix!
Re: [MOD 0.12.x] Factorio Maps
I hope for a bright future for this.Narc wrote:...
Thank you very much for the fix!
I wonder if more parts of the API can be used?
Re: [MOD 0.12.x] Factorio Maps
Thanks for the changes, I've updated the first post
Re: [MOD 0.12.x] Factorio Maps
Hurrah for cooperative development!
Re: [MOD 0.12.x] Factorio Maps
Hey!
Man I love this mod!
But how do you upload it to a website? And any suggestions on which sites?
Thanks in advance.
Man I love this mod!
But how do you upload it to a website? And any suggestions on which sites?
Thanks in advance.
Re: [MOD 0.12.x] Factorio Maps
Updated to 0.5.8 due to changes in Factorio 0.12.11: game.on_init has become script.on_init and game.makefile is now game.write_file.
Because of this changes the new version won't work for versions older than 0.12.11, I've attached the previous version (0.5.8) to this post.
WARNING: The file attached to this post is the old version, new version is in the first post!
Because of this changes the new version won't work for versions older than 0.12.11, I've attached the previous version (0.5.8) to this post.
WARNING: The file attached to this post is the old version, new version is in the first post!
- Attachments
-
- FactorioMaps_0.5.7.zip
- (9.58 KiB) Downloaded 664 times
Re: [MOD 0.12.x] Factorio Maps
Using Factorio Maps 0.5.8 and Factorio 12.11, I can use it during normal play however loading a game gives the following error:
Unknown key:"Error while running the on_load: __FactorioMaps__/Files/control.lue:363: attempt to index global 'game' (a nil value)"
Unknown key:"Error while running the on_load: __FactorioMaps__/Files/control.lue:363: attempt to index global 'game' (a nil value)"
Re: [MOD 0.12.x] Factorio Maps
Nice, you can create some cool maps with this mod.
-
- Inserter
- Posts: 49
- Joined: Sun Dec 28, 2014 1:03 pm
- Contact:
Re: [MOD 0.12.x] Factorio Maps
Hey guys,
is there a way to have a livemap like dynmap in minecraft? this would be so damn cool.
is there a way to have a livemap like dynmap in minecraft? this would be so damn cool.
Re: [MOD 0.12.x] Factorio Maps
Can't get this mod to work.
Only tried using it on 1 MP map. But tried different factorio install with and without any other mods. Tried loading it in SP and MP. And tested all of the settings in the mod.
Except the one time it crashed, it would say that max zoom was broken no matter what settings I used.
It would however still make a folder in the script output with a index file. But no pictures.
Only tried using it on 1 MP map. But tried different factorio install with and without any other mods. Tried loading it in SP and MP. And tested all of the settings in the mod.
Except the one time it crashed, it would say that max zoom was broken no matter what settings I used.
It would however still make a folder in the script output with a index file. But no pictures.
Re: [MOD 0.12.x] Factorio Maps
Sorry for the late reply, but did your game crash to desktop? If so, you should probably make a bug report, because that's never suppose to happen, no matter how bad I code
I've never heard anyone else having the problem you discribed, and unfortunately I can't think of a reason it is happening.. what were the exact error messages you were getting?
I've never heard anyone else having the problem you discribed, and unfortunately I can't think of a reason it is happening.. what were the exact error messages you were getting?
- Thomasnotused
- Filter Inserter
- Posts: 262
- Joined: Thu Jan 29, 2015 9:58 pm
- Contact:
Re: [MOD 0.12.x] Factorio Maps
Also getting this error, any fix?navillus wrote:Using Factorio Maps 0.5.8 and Factorio 12.11, I can use it during normal play however loading a game gives the following error:
Unknown key:"Error while running the on_load: __FactorioMaps__/Files/control.lue:363: attempt to index global 'game' (a nil value)"
I have no idea what I'm doing.
Re: [MOD 0.12.x] Factorio Maps
does this new version help? I disabled on_load, since on_tick is checking if the UI already exists.SuicidalKid wrote: Also getting this error, any fix?
- Attachments
-
- FactorioMaps_0.5.9.zip
- (9.67 KiB) Downloaded 329 times
- Thomasnotused
- Filter Inserter
- Posts: 262
- Joined: Thu Jan 29, 2015 9:58 pm
- Contact:
Re: [MOD 0.12.x] Factorio Maps
Yup! Error doesn't show up anymore.jeroon wrote: does this new version help? I disabled on_load, since on_tick is checking if the UI already exists.
I have no idea what I'm doing.
Re: [MOD 0.12.x] Factorio Maps
I continue to get a "Max zoom break" as error. and no images in the images folder in script output.
Doesn't matter what settings I use.
Doesn't matter what settings I use.
Re: [MOD 0.12.x] Factorio Maps
niceSuicidalKid wrote:Yup! Error doesn't show up anymore.jeroon wrote: does this new version help? I disabled on_load, since on_tick is checking if the UI already exists.
can you upload your save, so I can take a look at it? From what I see it only should give that error when the zooming get's too big, is your map enormous?Woehler wrote:I continue to get a "Max zoom break" as error. and no images in the images folder in script output.
Doesn't matter what settings I use.