Codes lua not work! 0.13.17

This subforum contains all the issues which we already resolved.
Post Reply
Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Codes lua not work! 0.13.17

Post by Airat9000 »

:( not work in codes

0.13.17

Code: Select all

/c game.regenerate_entity("angels-natural-gas")

Code: Select all

/c game.regenerate_entity("crude-oil")
and other codes

not map in place resource automatic ;(
Last edited by Airat9000 on Tue Aug 23, 2016 5:37 pm, edited 1 time in total.

Loewchen
Global Moderator
Global Moderator
Posts: 8321
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Codes lua not work!

Post by Loewchen »

Please update the game first.

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work!

Post by Airat9000 »

Loewchen wrote:Please update the game first.
not understand

Loewchen
Global Moderator
Global Moderator
Posts: 8321
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Codes lua not work!

Post by Loewchen »

Airat9000 wrote:
Loewchen wrote:Please update the game first.
not understand
Update:
13.7 -> 13.17

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work!

Post by Airat9000 »

Loewchen wrote:
Airat9000 wrote:
Loewchen wrote:Please update the game first.
not understand
Update:
13.7 -> 13.17
initially I made a mistake 0.13.17 at me now, but the codes are not working!
and more mods, problem can be them *?

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Airat9000 »

mods
codes not work!
84all
https://www.dropbox.com/s/qly9nrle5adxs ... 5.rar?dl=0

please help in find bug -thanks

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Airat9000 »

:( not help in bug?

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Codes lua not work! 0.13.17

Post by Adil »

The console command `game.regenerate_entity()` seems not to work indeed
I've tried different variants:

Code: Select all

/c game.regenerate_entity("biter-spawner")
/c game.regenerate_entity("tree-07")
/c game.regenerate_entity("spawner")
/c game.regenerate_entity("stone")
and nothing seems to change on map.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Rseding91 »

Fixed for 0.13.18.
If you want to get ahold of me I'm almost always on Discord.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Nexela »

Resding,

Not completely related to the not working part and I have never used regenerate_entity so It could be I don't know what I am talking about

How does regenerate_entity work with surfaces

Let's say I create a surface with game.create_surface(name, mapgen) with all autoplace settings set to none. At the same time I add a mod that adds a new-resource with autoplace controls.
Now assuming the command was working. Would regenerate_entity generate new-resource on both surfaces? If this is the case then it might be better to move regenerate_entity to luasurface or pass in the surface to affect

Thanks!

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Airat9000 »

Nexela wrote:Resding,

Not completely related to the not working part and I have never used regenerate_entity so It could be I don't know what I am talking about

How does regenerate_entity work with surfaces

Let's say I create a surface with game.create_surface(name, mapgen) with all autoplace settings set to none. At the same time I add a mod that adds a new-resource with autoplace controls.
Now assuming the command was working. Would regenerate_entity generate new-resource on both surfaces? If this is the case then it might be better to move regenerate_entity to luasurface or pass in the surface to affect

Thanks!
By the way I also interested in this issue.
so that would be generated was on the Turn, where you are. because when I generated with the mod underground and faktrismo it generated resources everywhere and in different planes.

кстати меня тоже интересует этот вопрос.
так что бы генерация была на той поверности, где находишься. потому что когда я генерировал с модом андеграунд, и фактрисмо то он генерировал ресурсы везде и в разных плоскостях.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Rseding91 »

Right now it generates entities on all surfaces as when the surface as first generated. I'll add in a version of the function on LuaSurface that applies it only to that surface.
If you want to get ahold of me I'm almost always on Discord.

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Airat9000 »

Rseding91 wrote:Right now it generates entities on all surfaces as when the surface as first generated. I'll add in a version of the function on LuaSurface that applies it only to that surface.
very very good! 8-)

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Nexela »

Rseding91 wrote:Right now it generates entities on all surfaces as when the surface as first generated. I'll add in a version of the function on LuaSurface that applies it only to that surface.
Awesome. Thank you

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Airat9000 »

Rseding91 wrote:Right now it generates entities on all surfaces as when the surface as first generated. I'll add in a version of the function on LuaSurface that applies it only to that surface.
;) big request if the resource is created, the bottom has set things they were generated.
was the case when the resource was generated prchmo under the plant or things.
but remember was a patch where everything was stable.

большая просьба если ресурс создается, то внизу уже поставленных вещей они не генерировались.
был случай когда прчмо под заводом или вещами генерировался ресурс.
а помню был патч где было все стабильно.
Attachments
bandicam 2016-08-25 22-03-46-768.jpg
bandicam 2016-08-25 22-03-46-768.jpg (235.2 KiB) Viewed 5667 times
bandicam 2016-08-25 22-03-41-379.jpg
bandicam 2016-08-25 22-03-41-379.jpg (479.22 KiB) Viewed 5667 times
bandicam 2016-08-25 22-03-34-371.jpg
bandicam 2016-08-25 22-03-34-371.jpg (415.36 KiB) Viewed 5667 times

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Airat9000 »

Rseding91 wrote:Right now it generates entities on all surfaces as when the surface as first generated. I'll add in a version of the function on LuaSurface that applies it only to that surface.
0.13.18
generate resource

It generates good fluid
but with the rest of the trouble ..
It generates good fluid
but with the rest of the trouble ..
generated resources are usually nowhere appeared appeared in another layer, and building.
I understood as a problem in the mods?

генерирует хорошо жидкости
но вот с с остальным беда..
сгенерировал ресурс обычный нигде не появился появился в другом слое и здании.
я как понял проблема в модс?

Code: Select all

/c game.regenerate_entity ("angels-natural-gas")
good
screen

not good!

Code: Select all

/c game.regenerate_entity("angels-ore6")
angels-ore(or1-6)
Attachments
2016-08-26_1-06-11.jpg
2016-08-26_1-06-11.jpg (276.45 KiB) Viewed 5651 times
2016-08-26_1-05-49-49.jpg
2016-08-26_1-05-49-49.jpg (238.9 KiB) Viewed 5651 times
2016-08-26_0-52-25.jpg
2016-08-26_0-52-25.jpg (255.23 KiB) Viewed 5656 times
2016-08-26_0-51-36.jpg
2016-08-26_0-51-36.jpg (82.76 KiB) Viewed 5656 times
bandicam 2016-08-26 00-39-45-579.jpg
bandicam 2016-08-26 00-39-45-579.jpg (325.25 KiB) Viewed 5656 times

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes lua not work! 0.13.17

Post by Airat9000 »

Rseding91 wrote:Right now it generates entities on all surfaces as when the surface as first generated. I'll add in a version of the function on LuaSurface that applies it only to that surface.
test in 14.1

Code: Select all

/c game.regenerate_entity("coal")

Code: Select all

/c game.regenerate_entity("angels-ore1")
not work not generate resource

Code: Select all

/c game.regenerate_entity("angels-fissure")

Code: Select all

/c game.regenerate_entity("crude-oil")
good generate!

Post Reply

Return to “Resolved Problems and Bugs”