Electric Tiles


Adds conductive floor tiles that transmit power to adjacent tiles (including diagonals) and any structure on top of them, just place a power source or electric pole on top and enjoy the extra space!

Content
a month ago
2.0
1.90K
Power

b [SOLVED] Fix recipe category for base game.

2 months ago

Just recently found your mod and it sounds great, but when I try to load it (or with other mods), I get the error: "Error in assignID: recipe-category with name 'metallurgy-or-assembling' does not exist"

2 months ago

Oh! damn it! Sorry, I exactly know why that happens.

I'll add space-age as optinal dependency and fix the recipe category, just give me few minutes!

2 months ago

Ah!!! That makes sense and you're good!

No rush or anything!

2 months ago

DONE!

please tell me if you encounter another problem related to space age or something similar.

the 1.1.4 version fixes the recipe problem.

2 months ago

Updated and now it says same error, but with 'assembling' does not exist.

2 months ago
(updated 2 months ago)

Mmm... Yeah, I did not have time to test, sorry, I just got caught in a trip.

I'try to solve it later on, when I can put my hands on another computer.

Looking at the recipe categories in factorio data.raw, the most correct one should be "crafting", however I'll need to test this time.

2 months ago

You're good - Go enjoy your trip!

I could try to attempt to fix the error myself and report back to you if I figure it out, if you want. I have no clue where I need to look/edit, but I know some general coding.

2 months ago

Sure, go ahead!

The recipe category is selected in the file named "electric-proxy.lua" inside prototypes/entity

Its directly in the first line, and the correct category should be "crafting"

2 months ago

I got it!

I changed out "assembly" to "crafting as you said and the mod loaded up perfectly and works too.

File I edited: prototypes/recipe/electric-tile.lua


local recipe_category = "crafting"

if mods["space-age"] then
--
recipe_category = "metallurgy-or-assembling"
--
end

...


2 months ago

Hah! Nice one! B)

2 months ago

May I ask? Who or which machines can craft the tile? You and crafting machines? Or just the machines? I plan to set it to only machines later on.

2 months ago

Both you and mk 1 - 3 assembly machines can make it (wish I can send screen shots). I take it you just wanted MK2 and above to make it?

2 months ago
(updated 2 months ago)

Yep. It wouldt make much sense if the player could just struc a solid block of concrete, incrustate metal rods by force, an then just place it like nothing happened xd

2 months ago

Hahaha, yeah. Would be impressive though.

I did a little digging around and found out you can make it where its just assembly machines that can make the item, but not sure how to say only mk2 and up...

I changed ' recipe_category = "crafting" ' to ' recipe_category = "advanced-crafting" ' and that removed the ability for the player to hand craft it

2 months ago

Alr alr ... So thats the one.

I'll use that one for the next version.

Thx Nova!

2 months ago

Anytime! Thanks for allowing me to dapple in this, never seen the behind the scenes of a mod before.

2 months ago
(updated 2 months ago)

And this is only a "medium" level mod! There are other ones so extremely complex that people need extensive documentations to understand them!

The license of this mod is MIT, which means that people can do what ever they want with it, if u want to get deeper in the code feel free to disect it.

Plus, i'm getting close to reaching a pc, so the update that fixes the mod for the base game users is kinda close.

2 months ago

This is a medium level mod?! Kind of half expected different levels, but now that makes me wonder what some of the more advanced ones are consider like K2 or Bob's mods xD

As for diving in deeper, I might... definitely got my rusty coder gears turning once more as I am thinking of how you could expand upon this for other tiles and such or do a different approach to creating a more grid like system then what I read you posted in another discussion with someone else. Cleaver in using a hidden pole and wires to connect to the structures that be on your custom tile!

2 months ago

HAHAHAHHAHA, I MADE IT!

I had to make my way into the SLOW and almost broken PC that i got, and at the end had to use my phone to update, but DUDE I MADE IT!

Ahhh... Now, could you please tell me if it works? I'll cry if not...

2 months ago
(updated 2 months ago)

Well, I am happy to report all your efforts to make it to that broken pc was worth it - it works!!!

With this little adventure done, what you plan on doing next with the mod? :p

2 months ago
(updated 2 months ago)

May I ask? Who or which machines can craft the tile? You and crafting machines? Or just the machines? I plan to set it to only machines later on.

normally you cannot craft Tiles since it requires Water, and player cannot carry water, just filled water barrels.

2 months ago

Yeah thats true, but the recipe is more likely to "modify" a tile, so now it can conduct electricity.

2 months ago

With this little adventure done, what you plan on doing next with the mod? :p

EXPAND IT >:D

And probably reconstruct it again (that would be the second time) mostly because I identified many little optimisations and ideas that i want to add, maybe even an "adaptator" that lets you add any tile that u want as an electrical version.

2 months ago

Ey! Nice

I honestly tried doing that myself, "attempting" at making a script(s) to create a electrical versions of all existing tiles and even attempted for modded ones too. That sort of blew up in my face and the game got stuck on loading in a loop... No clue how to fix that xP

2 months ago

Xdd

The tile name is hardcoded in the mod, but the next release will have this feature. (Mostly by a remote script, so other mods can add their own tiles for adapting).

2 months ago

Oh cool :p

Kind of a side comment, but I got to thank ya. I was inspired to create my own mod cause of yours and I am happy to say its sparked a bit of creativity back in me. Thanks!

2 months ago

I'm glad you got inspired my friend!

And just saying... I'm making it veeeeeery slowly (because of the almost broken PC), but i'm already working in version 1.2.0!

And all the features that everyone recommended will be added, except for certain ones like solar tiles.

2 months ago

Niiiiiiiiiiiice~

I am currently working on my mod atm, expanding upon it by adding mk1-3 versions of walls with better balanced to them

2 months ago

nice too!

maybe you could finally make walls that prevent stompers and striffers from demolishing bases ;-;

xd

2 months ago

Haha, yeah. Don't blame you one bit on those enemies and just walking over walls to just stomp through your base on gleba

New response