Search found 14 matches

by patfre
Thu Nov 26, 2020 2:35 pm
Forum: Modding help
Topic: Spawn ore when landfill is placed
Replies: 14
Views: 3570

Re: Spawn ore when landfill is placed



i said i needed a way to spawn ores on the landfill that has been placed and i said this is the code i had so far and i needed help with not only the error but also the spawns ores on placed landfill


https://lua-api.factorio.com/latest/events.html#on_player_built_tile
https://lua-api.factorio ...
by patfre
Thu Nov 26, 2020 1:56 pm
Forum: Modding help
Topic: Spawn ore when landfill is placed
Replies: 14
Views: 3570

Re: Spawn ore when landfill is placed

i said i needed a way to spawn ores on the landfill that has been placed and i said this is the code i had so far and i needed help with not only the error but also the spawns ores on placed landfill
by patfre
Thu Nov 26, 2020 1:42 pm
Forum: Modding help
Topic: Spawn ore when landfill is placed
Replies: 14
Views: 3570

Re: Spawn ore when landfill is placed

Maybe you should try stating what you need help with? This is "modding help" not "make this mod for me please".
i know this is modding help i am asking for help here not can someone make this mod for me.
by patfre
Thu Nov 26, 2020 1:37 pm
Forum: Modding help
Topic: Spawn ore when landfill is placed
Replies: 14
Views: 3570

Re: Spawn ore when landfill is placed

And......... no one seam to care :/
by patfre
Thu Nov 26, 2020 12:39 pm
Forum: Modding help
Topic: Spawn ore when landfill is placed
Replies: 14
Views: 3570

Re: Spawn ore when landfill is placed

eradicator wrote: Thu Nov 26, 2020 12:20 pm Works fine for me. Please post the exact error message.
it is a bit strange earlier it made error now it doesn't weird.
I do still need help though
by patfre
Thu Nov 26, 2020 8:37 am
Forum: Modding help
Topic: Spawn ore when landfill is placed
Replies: 14
Views: 3570

Spawn ore when landfill is placed

So i am making a mod and i need it so there's a chance that when landfill is placed an ore tile will spawn with a custom amount.
So far i only have an event to detect when the player has placed a tile but i am a bit stuck because it doesn't seem that the tiles property of the event's input is ...
by patfre
Tue Nov 17, 2020 8:53 pm
Forum: Modding help
Topic: Change image of tiles
Replies: 4
Views: 1739

Re: Change image of tiles

So i just looked the above posts but non of them work.
Also i forgot to mention that i want to change water into the void so that water looks like the void but still functions as water.
by patfre
Tue Nov 17, 2020 5:31 pm
Forum: Modding help
Topic: Change image of tiles
Replies: 4
Views: 1739

Change image of tiles

So i know how to change the image of items.

Code: Select all

item.icons = {
    {
        icon=image,
        tint={r=1,g=0,b=0,a=1}
    }
}
What i want to know is how do you do the same to a tile?
I don't know if it is possible so that is why i am asking
by patfre
Mon Nov 16, 2020 6:08 pm
Forum: Modding help
Topic: Disable the crash ship and force settings
Replies: 6
Views: 2481

Re: Disable the crash ship and force settings


You can probably just do something like...

data.raw['autoplace-control'] = {}

Basically just delete all the autoplace controls. That should remove them from the map generator settings, but it will also... y'know, not autoplace any of them. So you'd have to manage that yourself. Probably not ...
by patfre
Mon Nov 16, 2020 5:08 pm
Forum: Modding help
Topic: Disable the crash ship and force settings
Replies: 6
Views: 2481

Re: Disable the crash ship and force settings


The latter - I'm not 100% clear about what you're asking for. You want the game to ignore all of those settings and just override them? Or do you want the player to see that they are now unavailable somehow?

What i mean is that i want to settings like all ores to be off and bitters off and ...
by patfre
Mon Nov 16, 2020 5:03 pm
Forum: Modding help
Topic: Disable the crash ship and force settings
Replies: 6
Views: 2481

Disable the crash ship and force settings

So i have some code and because of the crash ship it breaks because the default inventory happens later so i have the default items and i don't want the ship.
So can someone help?

Also when starting a new game there's all those settings like how much iron, coal, copper, uranium and oil to spawn and ...
by patfre
Mon Nov 16, 2020 3:32 pm
Forum: Modding help
Topic: Need help with world generation
Replies: 5
Views: 2029

Re: Need help with world generation


Not something I've experimented with, but based on this rather in-depth guide I think this should work:


local noise = require("noise")
data:extend{
{
type = "noise-expression",
name = "point",
intended_property = "elevation",
expression = noise.define_noise_function(function(x, y, tile ...
by patfre
Sun Nov 15, 2020 4:33 pm
Forum: Modding help
Topic: Need help with world generation
Replies: 5
Views: 2029

Re: Need help with world generation

Guess no one so far knows how :|
by patfre
Sun Nov 15, 2020 2:08 pm
Forum: Modding help
Topic: Need help with world generation
Replies: 5
Views: 2029

Need help with world generation

So what i need help with is to make it so the hole world is water with 1 tile in the middle that is grass where the player spawns and also has 1 tree.
I do know how to make a custom world gen but not a world like what i want. How would i make that?

Go to advanced search