Page 1 of 1

Codes lua not work! 0.13.17

Posted: Tue Aug 23, 2016 5:02 pm
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 ;(

Re: Codes lua not work!

Posted: Tue Aug 23, 2016 5:19 pm
by Loewchen
Please update the game first.

Re: Codes lua not work!

Posted: Tue Aug 23, 2016 5:36 pm
by Airat9000
Loewchen wrote:Please update the game first.
not understand

Re: Codes lua not work!

Posted: Tue Aug 23, 2016 5:42 pm
by Loewchen
Airat9000 wrote:
Loewchen wrote:Please update the game first.
not understand
Update:
13.7 -> 13.17

Re: Codes lua not work!

Posted: Tue Aug 23, 2016 5:46 pm
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 *?

Re: Codes lua not work! 0.13.17

Posted: Tue Aug 23, 2016 8:08 pm
by Airat9000
mods
codes not work!
84all
https://www.dropbox.com/s/qly9nrle5adxs ... 5.rar?dl=0

please help in find bug -thanks

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 1:51 am
by Airat9000
:( not help in bug?

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 3:55 am
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.

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 5:09 am
by Rseding91
Fixed for 0.13.18.

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 5:34 am
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!

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 3:13 pm
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.

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

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 3:58 pm
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.

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 4:33 pm
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-)

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 5:26 pm
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

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 7:06 pm
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.

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

Re: Codes lua not work! 0.13.17

Posted: Thu Aug 25, 2016 9:54 pm
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)

Re: Codes lua not work! 0.13.17

Posted: Sun Aug 28, 2016 12:44 am
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!