[MOD 0.12.x] Transformator

Topics and discussion about specific mods
netmc
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sun May 24, 2015 3:18 am
Contact:

Re: [0.12] Transformator

Post by netmc »

I have encountered a "bug" of sorts trying to use this to isolate the power for my reactor pumps. I tried placing it and linking to a substation, but I couldn't get it to work. However, if I used a regular pole to connect to the left side, it worked just fine. What I discovered is that if the right side of the transformator is inside the effective radius of the substation or power pole from the feeding side, the transformator doesn't work. It won't transfer energy to the network attached to the right side even if the wires all connect properly. I assume this has something to do with using the accumulator models. My guess is that the accumulator models are just looping the power back to iself and never actually sending it to the isolated side.
grifter1
Inserter
Inserter
Posts: 37
Joined: Sat Aug 08, 2015 5:53 am
Contact:

Re: [MOD 0.12.x] Transformator

Post by grifter1 »

Hi

Just want to say thank you this mod has changed the way i play this game in a very good way
i think more then all the other mods i have tried this mod needs to be in the base game
please keep it up to date as i don't think i will play without it
JohnnyBandit
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri May 29, 2015 7:35 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by JohnnyBandit »

Hey, any chance this is gonna get updated with multiplayer compatibility? I crash when I place down the transformator when there is a second player with "Map doesn't contain 1 player" it's crashing at control.lua @ line 70
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by Adil »

replace

Code: Select all

game.player
on line 70
with

Code: Select all

entity
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
hofi02
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Oct 14, 2015 3:47 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by hofi02 »

I found a bug,
One of my outposts got overwhelmed from aliens because it run out of supplies. After the Transformater was destroyed I got this message:

Code: Select all

Error while running the event handler:
__Transformator__/control.lua:140: LuaEntity
API call when LuaEntity was invalid
So I was testing it a little bit.
Here is how you can reproduce it easy yourself:
place down a transformator, shoot the input and/or output connector (little ghost box an both sides), not the transformater itself!
After you destroyed these shoot the transformator itself and you get that error.
jorgenRe
Filter Inserter
Filter Inserter
Posts: 535
Joined: Wed Apr 09, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by jorgenRe »

Just did a quick fix to make this mod multiplayer compatible, and compatible with 0.12.11+ :)!
Attachments
Transformator_0.0.5.zip
(103.71 KiB) Downloaded 356 times
Logo
Noticed the told change in FFF #111 so il continue to use my signature ^_^
Thanks for listening to our suggestions, devs :D!
I would jump of joy if we could specify which tiles spawned in a surfaces
bbgun06
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Fri Mar 27, 2015 4:09 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by bbgun06 »

JorgenRe, I tried your version in a multiplayer game and it crashed the game. The error message was: "Error while running the event handler: _ _Transformator_ _/control.lua:74: attempt to index global 'builder' (a nil value)"
hofi02
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Oct 14, 2015 3:47 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by hofi02 »

Try this version. I also did a dirty workaround for the crashing issue i have when the poles are destroyed before the transformator itself. The health is set to -1 of these. I don't know how to fix it properly
Should also work in multiplayer.
Attachments
Transformator_0.0.41.zip
(104.15 KiB) Downloaded 756 times
jorgenRe
Filter Inserter
Filter Inserter
Posts: 535
Joined: Wed Apr 09, 2014 3:32 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by jorgenRe »

bbgun06 wrote:JorgenRe, I tried your version in a multiplayer game and it crashed the game. The error message was: "Error while running the event handler: _ _Transformator_ _/control.lua:74: attempt to index global 'builder' (a nil value)"
How odd i used a multiplayer game when i fixed the mod :/
Logo
Noticed the told change in FFF #111 so il continue to use my signature ^_^
Thanks for listening to our suggestions, devs :D!
I would jump of joy if we could specify which tiles spawned in a surfaces
Vile
Inserter
Inserter
Posts: 20
Joined: Thu Jul 23, 2015 3:42 am
Contact:

Re: [MOD 0.12.x] Transformator

Post by Vile »

Perfect! This just became the first mod I'll use. I'm a bit of a purist, so I don't use mods typically. Well done, and thank you!

Note: it's good for people to know that the transformer will only transfer up to 10MW of power, so if they need more than that, they'll need to hook up multiple transformers to handle the throughput.
Evilness
Inserter
Inserter
Posts: 45
Joined: Wed Apr 15, 2015 3:53 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by Evilness »

An update to 12.11+ would be apreciated.
hofi02
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Oct 14, 2015 3:47 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by hofi02 »

Vile
Inserter
Inserter
Posts: 20
Joined: Thu Jul 23, 2015 3:42 am
Contact:

Re: [MOD 0.12.x] Transformator

Post by Vile »

Yep, I'm using it in 0.12.15. It's working great.
User avatar
Kadaban
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sun Feb 24, 2013 9:30 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by Kadaban »

Getting an error when trying to load this into an existing savegame (factorio 0.12.16 // bobsmods // 5dim).
Right after trying to load the savegame this error pops up preventing me to actually play:

Code: Select all

Notice
__Transformator__/control.lua:18 attempt to index global 'game' (a nil value)
Daymon_aw
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Dec 15, 2015 7:55 am
Contact:

Re: [MOD 0.12.x] Transformator

Post by Daymon_aw »

When I try to start the game an error:
Attachments
2015-12-15 10-48-43 Factorio 0.12.20.png
2015-12-15 10-48-43 Factorio 0.12.20.png (1.14 MiB) Viewed 8444 times
kinnom
Filter Inserter
Filter Inserter
Posts: 706
Joined: Fri Dec 26, 2014 4:20 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by kinnom »

you are using a version of the mod for 0.12.10- in factorio 0.12.11+
no yes yes no yes no yes yes
Zerias
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Jun 15, 2015 12:10 am
Contact:

Re: [MOD 0.12.x] Transformator

Post by Zerias »

Managed a brute force fix, no idea if it's stable: In control.lua, replace all 'game.on_' with 'script.on_'. There's probably more that should be changed to fix it, but the only iffy spots are commented out.

Thanks so much for finding a way to implement this kind of 'electricity pump'. The only addition I might recommend is perhaps a brightly colored arrow on the machine pointing to the direction of flow [instead of having one pole be larger] to stop people accidentally placing it backwards and wondering why it doesn't work. (Speaking from experience here)
Klypto
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Dec 15, 2015 4:55 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by Klypto »

This isn't working as expected for me. I can't seem to be able to charge accumulators on the other side and the energy rate is always at 98% despite the steam engines running at 40% putting all equipment in the yellow. I built 5 of them but this subsection only consumes 24 MW at the moment.
slitherrr
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed May 11, 2016 5:55 pm
Contact:

Re: [MOD 0.12.x] Transformator

Post by slitherrr »

It should be noted that "transformator" is the German word for this, and that the English localization should be "Transformer". See https://en.wikipedia.org/wiki/Transformer and https://de.wikipedia.org/wiki/Transformator
pofigismo
Burner Inserter
Burner Inserter
Posts: 19
Joined: Mon Mar 21, 2016 7:16 am
Contact:

Re: [MOD 0.12.x] Transformator

Post by pofigismo »

Any chance this will get an update for 0.14? So far this has been the only mod I've found that would allow me to have a power plant seem as a 'black box' for the network. It also seems to be the only mod that allows me to force accumulators to charge other accumulators, which is an incredibly useful feature with the new power switch.
Post Reply

Return to “Mods”