some questions for the modder here

Place to get help with not working mods / modding interface.
nosports
Filter Inserter
Filter Inserter
Posts: 274
Joined: Fri Jan 19, 2018 5:44 pm
Contact:

some questions for the modder here

Post by nosports »

Hello,

as i try to do some modding i have a few questions (asking them before trying in vain, because it don't is possible)

* can a inserter generated, with a hard wired filter ?
* can belts be made using/giving electricity ?
* is it possible to have a secund rail-system (i have seen a categroy rail in the main-data, but did not find anything relating to trains?)

So if anyone knows something on this topics .....

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: some questions for the modder here

Post by eradicator »

@inserter filter:
No, but could be done with heavy scripting.
@belts:
No. Use forum search. Some people spam invisible electric poles, but that's known to be bad for performance.
@rails:
No. Use forum search. Moddability removed in 0.15 or 0.16.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

nosports
Filter Inserter
Filter Inserter
Posts: 274
Joined: Fri Jan 19, 2018 5:44 pm
Contact:

Re: some questions for the modder here

Post by nosports »

thanks for the fast answer..
Unfortunately an outcome which i feared ;)

as i want to generate elecric-power maybe :

Is it possible to make a steam-engine or a steam-turbine to output (like in these both cases water)

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: some questions for the modder here

Post by eradicator »

Nope. There was a recent thread about just that too.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

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

Re: some questions for the modder here

Post by bobingabout »

the ability to change the energy_source of locomotives was removed in a recent previous version, maybe 0.15 (fairly sure it was the same update that introduced nuclear), it was buggy before that anyway, and didn't actually work.

Looking at it from a source code perspective, the main issue is that the locomotive has to move, and if the entity moves, it might not be in a pole's area anymore, so it needs to re scan. This scanning is "CPU Expensive", so is only done when it needs to be, usually when you place the entity, or when you place/remove a pole near it.

Alternate sugestions have been that the rail itself could carry the power, but again, from the source perspective, that would introduce too much "overhead" because you then have to carry more information in the rail itself, and the devs believe that would be too much infromation.

The final alternative we're left with is faking it with scripts. it is possible to make some kind of locomotive that can't actually accept fuel items, but then a fake item can give it energy (not actually used as an item, just set the "currently burning"), and increase that in your locomotive as some "Electric energy interface" removes it from your electric grid. Basically, wireless power, via scripting. though you could be creative and have it linked to the rails somehow.


Either way, Scripting in this way is slow and can reduce performance in the game unless you do it right, but, the whole "Entity monitoring scripts" is one of the things bob's mods doesn't do, which is why I haven't done it myself.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: some questions for the modder here

Post by eradicator »

bobingabout wrote:
Thu Nov 22, 2018 9:47 am
the ability to change the energy_source of locomotives was removed in a recent previous version, maybe 0.15 (fairly sure it was the same update that introduced nuclear), it was buggy before that anyway, and didn't actually work.
Did you accidentially post in the wrong topic? OP here asked about rail-category, not energy_source. Though while you're here...does that mean trains are incompatible with the new "void/null" energy? :/
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Bilka
Factorio Staff
Factorio Staff
Posts: 3308
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: some questions for the modder here

Post by Bilka »

eradicator wrote:
Thu Nov 22, 2018 11:43 am
does that mean trains are incompatible with the new "void/null" energy? :/
No. They accept burner/void, same as cars and some other things I'm too lazy to look up right now.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: some questions for the modder here

Post by eradicator »

Bilka wrote:
Thu Nov 22, 2018 11:46 am
eradicator wrote:
Thu Nov 22, 2018 11:43 am
does that mean trains are incompatible with the new "void/null" energy? :/
No. They accept burner/void, same as cars and some other things I'm too lazy to look up right now.
Good to know. As long as everything is voidable i'm fine with it :D
Back to topic...
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

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

Re: some questions for the modder here

Post by bobingabout »

eradicator wrote:
Thu Nov 22, 2018 11:43 am
bobingabout wrote:
Thu Nov 22, 2018 9:47 am
the ability to change the energy_source of locomotives was removed in a recent previous version, maybe 0.15 (fairly sure it was the same update that introduced nuclear), it was buggy before that anyway, and didn't actually work.
Did you accidentially post in the wrong topic? OP here asked about rail-category, not energy_source. Though while you're here...does that mean trains are incompatible with the new "void/null" energy? :/
nosports wrote:
Wed Nov 21, 2018 1:19 pm
thanks for the fast answer..
Unfortunately an outcome which i feared ;)

as i want to generate elecric-power maybe :

Is it possible to make a steam-engine or a steam-turbine to output (like in these both cases water)
Not wrong topic.

Also, I wasn't thinking about void, I was looking at it from a 0.16 perspective where void doesn't exist yet.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Post Reply

Return to “Modding help”