Page 1 of 1

Version 0.12.12

Posted: Tue Oct 20, 2015 1:40 pm
by cube

Re: Version 0.12.12

Posted: Tue Oct 20, 2015 1:42 pm
by Trangar
Like

Re: Version 0.12.12

Posted: Tue Oct 20, 2015 1:53 pm
by Tivec
Trangar wrote:Like
Totally.

Re: Version 0.12.12

Posted: Tue Oct 20, 2015 1:55 pm
by mngrif
Tivec wrote:
Trangar wrote:Like
Totally.
As if.

Re: Version 0.12.12

Posted: Tue Oct 20, 2015 3:15 pm
by Bartimaeus
Maybe I am dumb, but how do I use this:
cube wrote:game.get_localised_entity_name is replaced by LuaEntityPrototype::localised_name read property. The same for technology and item.
to fix my mods?

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

Posted: Tue Oct 20, 2015 3:36 pm
by TBog
Bartimaeus wrote:Maybe I am dumb, but how do I use this:
cube wrote:game.get_localised_entity_name is replaced by LuaEntityPrototype::localised_name read property. The same for technology and item.
to fix my mods?

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.
Try: game.item_prototypes["iron-plate"].localised_name()

Re: Version 0.12.12

Posted: Tue Oct 20, 2015 5:31 pm
by bobingabout
TBog wrote:
Bartimaeus wrote:Maybe I am dumb, but how do I use this:
cube wrote:game.get_localised_entity_name is replaced by LuaEntityPrototype::localised_name read property. The same for technology and item.
to fix my mods?

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.
Try: game.item_prototypes["iron-plate"].localised_name()
except, you know, with an entity not an item.

Re: Version 0.12.12

Posted: Tue Oct 20, 2015 5:51 pm
by Bartimaeus
TBog wrote:Try: game.item_prototypes["iron-plate"].localised_name()
when I do that I get
Error while running the event handler: __autofill__/control.lua:109: attempt to call field 'localised_name' (a table value)

Re: Version 0.12.12

Posted: Tue Oct 20, 2015 6:45 pm
by Zeblote
Bartimaeus wrote:
TBog wrote:Try: game.item_prototypes["iron-plate"].localised_name()
when I do that I get
Error while running the event handler: __autofill__/control.lua:109: attempt to call field 'localised_name' (a table value)
Try without (), it's not a method

Re: Version 0.12.12

Posted: Tue Oct 20, 2015 6:55 pm
by Bartimaeus
Zeblote wrote:Try without (), it's not a method
hah I've just figured it out myself a minute ago that its not a method but a property call :D

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 :D 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

Posted: Wed Oct 21, 2015 6:47 am
by Zemerson
DUN DUN DUN!
Will there be a 12.13 for Halloween :P

Re: Version 0.12.12

Posted: Wed Oct 21, 2015 6:27 pm
by Schorty
You guys remember last year, when we were waiting for the 0.11.0 release, which came 31.10.? That was kinda funny :D

Re: Version 0.12.12

Posted: Thu Oct 22, 2015 9:35 am
by ps666
Night vision is broken.
PC specs:
AMD Radeon 290X
Intel Core i5@4,5 GHz
16 GB RAM
Windows 10

Re: Version 0.12.12

Posted: Thu Oct 22, 2015 3:29 pm
by bobingabout
Oh look, another display issue with Windows 10 and AMD graphics cards.

Re: Version 0.12.12

Posted: Fri Oct 23, 2015 8:26 am
by generalmek
cool

Re: Version 0.12.12

Posted: Tue Oct 27, 2015 2:03 pm
by KrzysD
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

Re: Version 0.12.12

Posted: Tue Oct 27, 2015 2:34 pm
by TBog
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
Maybe something like this?
ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.item_prototypes[stack.name].localised_name

Re: Version 0.12.12

Posted: Tue Oct 27, 2015 4:21 pm
by KrzysD
TBog wrote:
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
Maybe something like this?
ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.item_prototypes[stack.name].localised_name
You wonderful person! That worked! Thank YOU! :D :D :D :D