Page 1 of 2

Re: [0.12] Transformator

Posted: Wed Aug 05, 2015 2:15 am
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.

Re: [MOD 0.12.x] Transformator

Posted: Tue Sep 01, 2015 12:23 am
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

Re: [MOD 0.12.x] Transformator

Posted: Wed Oct 07, 2015 3:25 pm
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

Re: [MOD 0.12.x] Transformator

Posted: Wed Oct 07, 2015 9:22 pm
by Adil
replace

Code: Select all

game.player
on line 70
with

Code: Select all

entity

Re: [MOD 0.12.x] Transformator

Posted: Wed Oct 21, 2015 10:36 pm
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.

Re: [MOD 0.12.x] Transformator

Posted: Thu Oct 22, 2015 6:07 pm
by jorgenRe
Just did a quick fix to make this mod multiplayer compatible, and compatible with 0.12.11+ :)!

Re: [MOD 0.12.x] Transformator

Posted: Tue Oct 27, 2015 3:57 am
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)"

Re: [MOD 0.12.x] Transformator

Posted: Tue Oct 27, 2015 3:12 pm
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.

Re: [MOD 0.12.x] Transformator

Posted: Tue Oct 27, 2015 6:02 pm
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 :/

Re: [MOD 0.12.x] Transformator

Posted: Sat Oct 31, 2015 12:12 pm
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.

Re: [MOD 0.12.x] Transformator

Posted: Sun Nov 01, 2015 10:24 am
by Evilness
An update to 12.11+ would be apreciated.

Re: [MOD 0.12.x] Transformator

Posted: Sun Nov 01, 2015 12:38 pm
by hofi02

Re: [MOD 0.12.x] Transformator

Posted: Sun Nov 01, 2015 4:45 pm
by Vile
Yep, I'm using it in 0.12.15. It's working great.

Re: [MOD 0.12.x] Transformator

Posted: Sun Nov 01, 2015 8:52 pm
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)

Re: [MOD 0.12.x] Transformator

Posted: Tue Dec 15, 2015 7:59 am
by Daymon_aw
When I try to start the game an error:

Re: [MOD 0.12.x] Transformator

Posted: Tue Dec 15, 2015 7:37 pm
by kinnom
you are using a version of the mod for 0.12.10- in factorio 0.12.11+

Re: [MOD 0.12.x] Transformator

Posted: Wed Dec 16, 2015 12:16 am
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)

Re: [MOD 0.12.x] Transformator

Posted: Fri Dec 18, 2015 8:08 pm
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.

Re: [MOD 0.12.x] Transformator

Posted: Wed May 11, 2016 6:02 pm
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

Re: [MOD 0.12.x] Transformator

Posted: Mon Sep 19, 2016 12:22 am
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.