- Bugfixes
- Fixed another solar panel counting error. (https://forums.factorio.com/forum/vie ... hp?t=17138)
- Fixed that locale values in zip packages weren't loaded. (https://forums.factorio.com/forum/posting.php?t=17098)
- Fixed pushing of compound localised strings into lua. (https://forums.factorio.com/forum/vie ... hp?t=17134)
- Tweaked train path finding values for trains waiting on signals (https://forums.factorio.com/forum/vie ... hp?t=17069).
- Scripting
- game.get_localised_entity_name is replaced by LuaEntityPrototype::localised_name read property. The same for technology and item.
Version 0.12.12
Version 0.12.12
Re: Version 0.12.12
Like
Re: Version 0.12.12
Totally.Trangar wrote:Like
Re: Version 0.12.12
As if.Tivec wrote:Totally.Trangar wrote:Like
-
- Inserter
- Posts: 42
- Joined: Sun Aug 16, 2015 10:23 am
- Contact:
Re: Version 0.12.12
Maybe I am dumb, but how do I use this:
I tried replacing game.get_localised_item_name with LuaEntityPrototype::localised_name and instead I am just getting a different error:
to fix my mods?cube wrote:game.get_localised_entity_name is replaced by LuaEntityPrototype::localised_name read property. The same for technology and item.
I tried replacing game.get_localised_item_name with LuaEntityPrototype::localised_name and instead I am just getting a different error:
Error while running the event handler: __autofill__/control.lua:108: LuaGameScript doesn't contain key get_localised_item_name.
Re: Version 0.12.12
Try: game.item_prototypes["iron-plate"].localised_name()Bartimaeus wrote:Maybe I am dumb, but how do I use this:to fix my mods?cube wrote:game.get_localised_entity_name is replaced by LuaEntityPrototype::localised_name read property. The same for technology and item.
I tried replacing game.get_localised_item_name with LuaEntityPrototype::localised_name and instead I am just getting a different error:
Error while running the event handler: __autofill__/control.lua:108: LuaGameScript doesn't contain key get_localised_item_name.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Version 0.12.12
except, you know, with an entity not an item.TBog wrote:Try: game.item_prototypes["iron-plate"].localised_name()Bartimaeus wrote:Maybe I am dumb, but how do I use this:to fix my mods?cube wrote:game.get_localised_entity_name is replaced by LuaEntityPrototype::localised_name read property. The same for technology and item.
I tried replacing game.get_localised_item_name with LuaEntityPrototype::localised_name and instead I am just getting a different error:
Error while running the event handler: __autofill__/control.lua:108: LuaGameScript doesn't contain key get_localised_item_name.
-
- Inserter
- Posts: 42
- Joined: Sun Aug 16, 2015 10:23 am
- Contact:
Re: Version 0.12.12
when I do that I getTBog wrote:Try: game.item_prototypes["iron-plate"].localised_name()
Error while running the event handler: __autofill__/control.lua:109: attempt to call field 'localised_name' (a table value)
Re: Version 0.12.12
Try without (), it's not a methodBartimaeus wrote:when I do that I getTBog wrote:Try: game.item_prototypes["iron-plate"].localised_name()
Error while running the event handler: __autofill__/control.lua:109: attempt to call field 'localised_name' (a table value)
-
- Inserter
- Posts: 42
- Joined: Sun Aug 16, 2015 10:23 am
- Contact:
Re: Version 0.12.12
hah I've just figured it out myself a minute ago that its not a method but a property callZeblote wrote:Try without (), it's not a method
autofill is still broken for me because when you have no fuel to put in its trying to access localised property of a "liquid-fuel-canister" ... that does not exist but that is no longer a problem of the change in this release, rather a problem of the logic of the mod itself
thanks for help
Re: Version 0.12.12
DUN DUN DUN!
Will there be a 12.13 for Halloween
Will there be a 12.13 for Halloween
Re: Version 0.12.12
You guys remember last year, when we were waiting for the 0.11.0 release, which came 31.10.? That was kinda funny
Tired of not being able to reduce the pollution? Try the Air-Filter-Mod
With this, you are able to use the pollution levels in your circuit network: Pollution detector
With this, you are able to use the pollution levels in your circuit network: Pollution detector
Re: Version 0.12.12
Night vision is broken.
PC specs:
AMD Radeon 290X
Intel Core i5@4,5 GHz
16 GB RAM
Windows 10
PC specs:
AMD Radeon 290X
Intel Core i5@4,5 GHz
16 GB RAM
Windows 10
- Attachments
-
- Factorio1.jpg (320.27 KiB) Viewed 20383 times
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Version 0.12.12
Oh look, another display issue with Windows 10 and AMD graphics cards.
-
- Long Handed Inserter
- Posts: 73
- Joined: Sun Sep 29, 2013 1:13 pm
- Contact:
Re: Version 0.12.12
how can i fix this line in upgrade planner?
ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.get_localised_item_name(stack.name)
ive tried a bunch of ways to write it and i guess i dont know enough about lua to get it
ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.get_localised_item_name(stack.name)
ive tried a bunch of ways to write it and i guess i dont know enough about lua to get it
Re: Version 0.12.12
Maybe something like this?KrzysD wrote:how can i fix this line in upgrade planner?
ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.get_localised_item_name(stack.name)
ive tried a bunch of ways to write it and i guess i dont know enough about lua to get it
ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.item_prototypes[stack.name].localised_name
Re: Version 0.12.12
You wonderful person! That worked! Thank YOU!TBog wrote:Maybe something like this?KrzysD wrote:how can i fix this line in upgrade planner?
ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.get_localised_item_name(stack.name)
ive tried a bunch of ways to write it and i guess i dont know enough about lua to get it
ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.item_prototypes[stack.name].localised_name