New Ores

Place to get help with not working mods / modding interface.
Post Reply
User avatar
DiegoPro77
Fast Inserter
Fast Inserter
Posts: 172
Joined: Tue Feb 20, 2018 1:40 pm
Contact:

New Ores

Post by DiegoPro77 »

Can someone tell me how to create a new ore like iron or copper? (ex. it spawns in the starting area but not only there.)
Aka Playmaker. My mods: https://mods.factorio.com/user/77playmaker -|- My Discord Server: https://discord.gg/6NGYQdX
"One day you'll live this word behind, so live a life you will remember."
Expanding your game experience since 2018.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: New Ores

Post by darkfrei »

DiegoPro77 wrote:Can someone tell me how to create a new ore like iron or copper? (ex. it spawns in the starting area but not only there.)
See mod https://mods.factorio.com/mod/IceOre
code

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: New Ores

Post by bobingabout »

Bob Library on the portal does offer an easier way to add ores.
Bob ores will give you a demonstration on how to use it.

However
you need a resource (look at prototype/resources.lua), a noise layer, an autoplace control(can't remember what file they're in, but should be easy enough to find), and also an item for whatever result is on the resource
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
DiegoPro77
Fast Inserter
Fast Inserter
Posts: 172
Joined: Tue Feb 20, 2018 1:40 pm
Contact:

Re: New Ores

Post by DiegoPro77 »

Thanks for your suggestions guys, i will see these mods. :D
Aka Playmaker. My mods: https://mods.factorio.com/user/77playmaker -|- My Discord Server: https://discord.gg/6NGYQdX
"One day you'll live this word behind, so live a life you will remember."
Expanding your game experience since 2018.

User avatar
DiegoPro77
Fast Inserter
Fast Inserter
Posts: 172
Joined: Tue Feb 20, 2018 1:40 pm
Contact:

Re: New Ores

Post by DiegoPro77 »

Thanks again for your precious help, now i've updated my mod and it works perfectly: https://mods.factorio.com/mod/Dp77s-Sulfur-Mod (link).

For the ore patch i've inspired from both the mods and now i can create all the ore patches that i want :D

For the purifying machine i've inspired from your "bobassembly" mod Bobingabout (you're very good with programming lua files and your work is very, very easy to understand compared to some mods!) and this is the first entity i've ever done.
I'm sorry if i haven't ask you if i could've use your mod for inspiring me :o (and sorry for my English :roll: ).
Aka Playmaker. My mods: https://mods.factorio.com/user/77playmaker -|- My Discord Server: https://discord.gg/6NGYQdX
"One day you'll live this word behind, so live a life you will remember."
Expanding your game experience since 2018.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: New Ores

Post by bobingabout »

Inspiration is free, in fact in my licence it states that I encourage it, as long as no assets are used directly from my mod. (no copy pasting large chunks of code such as functions I've written, or art assets without asking me first)

I see you used my assembling machine mask overlay. Honestly though, since that was just a crop greyscale and brighten of part of the original assembling machine 3, I have no issues with you using it.

Anyway, I'm glad you got your mod working as intended :D
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
firestar246
Inserter
Inserter
Posts: 29
Joined: Sun Feb 19, 2017 11:25 am
Contact:

Re: New Ores

Post by firestar246 »

darkfrei wrote:
DiegoPro77 wrote:Can someone tell me how to create a new ore like iron or copper? (ex. it spawns in the starting area but not only there.)
See mod https://mods.factorio.com/mod/IceOre
So I made some ores in my mod based of off your Ice Ore mod, but I'm running into a problem. The ores aren't displaying properly in the world. You know how all the sprites (or whatever they're called) for the ore are on one graphic, and the game somehow seems to take just one of them when placing the ore... well my game is taking the wrong chunks off of the graphic, so instead of showing one ore, it's taken parts of two or more. So my ores look all choppy and weird. They work fine and everything, its just the graphics are really weird. Not sure how to fix this... does anyone have an idea of what's going on?
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: New Ores

Post by darkfrei »

firestar246 wrote:so instead of showing one ore, it's taken parts of two or more. So my ores look all choppy and weird. They work fine and everything, its just the graphics are really weird. Not sure how to fix this... does anyone have an idea of what's going on?
Can you take a screenshot what you have and make the picture how it must be?

User avatar
firestar246
Inserter
Inserter
Posts: 29
Joined: Sun Feb 19, 2017 11:25 am
Contact:

Re: New Ores

Post by firestar246 »

darkfrei wrote:
firestar246 wrote:so instead of showing one ore, it's taken parts of two or more. So my ores look all choppy and weird. They work fine and everything, its just the graphics are really weird. Not sure how to fix this... does anyone have an idea of what's going on?
Can you take a screenshot what you have and make the picture how it must be?
I'm trying to upload a screenshot as an attachment, but whenever I click "preview" or "submit" the page just keeps loading and never publishes the post.
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: New Ores

Post by Deadlock989 »

firestar246 wrote:So I made some ores in my mod based of off your Ice Ore mod, but I'm running into a problem. The ores aren't displaying properly in the world. You know how all the sprites (or whatever they're called) for the ore are on one graphic, and the game somehow seems to take just one of them when placing the ore... well my game is taking the wrong chunks off of the graphic, so instead of showing one ore, it's taken parts of two or more. So my ores look all choppy and weird. They work fine and everything, its just the graphics are really weird. Not sure how to fix this... does anyone have an idea of what's going on?
You're probably using the high resolution sprite sheet in normal res or vice versa.

aeropar
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Jun 11, 2018 9:34 pm
Contact:

Re: New Ores

Post by aeropar »

bobingabout wrote:Bob Library on the portal does offer an easier way to add ores.
Bob ores will give you a demonstration on how to use it.

However
you need a resource (look at prototype/resources.lua), a noise layer, an autoplace control(can't remember what file they're in, but should be easy enough to find), and also an item for whatever result is on the resource
https://wiki.factorio.com/Prototype/ResourceEntity This?

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: New Ores

Post by bobingabout »

aeropar wrote:
bobingabout wrote:Bob Library on the portal does offer an easier way to add ores.
Bob ores will give you a demonstration on how to use it.

However
you need a resource (look at prototype/resources.lua), a noise layer, an autoplace control(can't remember what file they're in, but should be easy enough to find), and also an item for whatever result is on the resource
https://wiki.factorio.com/Prototype/ResourceEntity This?
I meant in the game's data files (Which is actually data/base/prototypes/entity/resources.lua), but, that's a good page to look at, yes.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Post Reply

Return to “Modding help”