[MOD 0.14.2] Wireless Charging

Topics and discussion about specific mods
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2171
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by Ranakastrasz »

Pretty sure that also causes Desyncs, since it uses on_Load.
That said, how would I go about doing that?

Any idea why it uses the on_load in the first place?
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2171
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by Ranakastrasz »

Huh. It worked. Sort of. I made it run on the first tick, and it worked. No idea why. Thanks.


Only issue is that the power meter doesn't show up and the flashing triangle does, which isn't huge deal. it works at least.


And thats only on my existing game, a new game, even if I start it without the mod installed then add it after saving, still works fine. No idea why.
Attachments
wireless-charging_0.3.4.zip
(176.9 KiB) Downloaded 159 times
wireless-charging-lib_0.2.6.zip
(9.13 KiB) Downloaded 155 times
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
orzelek
Smart Inserter
Smart Inserter
Posts: 3922
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by orzelek »

It should work since I cheat like that in RSO to make it easier. And to not think to much about event life cycle.
And it's ok since on_load can be used to init event handlers. One drawback I think was that on_load happened also during save or something like that - not sure if I recall correctly. Just make sure that your init is protected from re-entry.
HammerPiano
Fast Inserter
Fast Inserter
Posts: 232
Joined: Thu Dec 31, 2015 7:36 am
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by HammerPiano »

Any plans to upgrade this mod to 0.15?
Cyrlynx
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri Oct 02, 2015 9:39 pm
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by Cyrlynx »

Hello,

I'm not the author, but he seems away for long.
I like this mod and I managed to update it to 0.15.x.

Works good enough for me...
------
Backup your world, and try if you want.
------

Known issues :
  • The charge indicators works but the signal emitted refers to the whole factory accumulator.
  • The rails inductions plates are not shown, we can only see the charge indicator.
If someone knows how to fix these, feel free to proceed.
Attachments
wireless-charging-lib_0.2.7.zip
(9.39 KiB) Downloaded 162 times
wireless-charging_0.3.5.zip
(178.71 KiB) Downloaded 167 times
HammerPiano
Fast Inserter
Fast Inserter
Posts: 232
Joined: Thu Dec 31, 2015 7:36 am
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by HammerPiano »

Cyrlynx wrote:Hello,

I'm not the author, but he seems away for long.
I like this mod and I managed to update it to 0.15.x.

Works good enough for me...
------
Backup your world, and try if you want.
------

Known issues :
  • The charge indicators works but the signal emitted refers to the whole factory accumulator.
  • The rails inductions plates are not shown, we can only see the charge indicator.
If someone knows how to fix these, feel free to proceed.
Thank you!!! <3
About the issues, i will live with them :)
Speuline
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Oct 07, 2018 11:12 am
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by Speuline »

Hello,
I really like the idea of this mod.
Anyone can make it compatible for 0.16 if there is not too much work?
I found it better than induction mod.
Thanks in advance!
User avatar
PiteR
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 10, 2016 3:23 pm
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by PiteR »

Speuline wrote: Sun Oct 07, 2018 11:15 am Hello,
I really like the idea of this mod.
Anyone can make it compatible for 0.16 if there is not too much work?
I found it better than induction mod.
Thanks in advance!
I believe there is no way (of that I tried)mto port this mod to 0.16, other that re-making it from the ground up. I might look into this when I'll have time. I'll be mostly using the way the code is already written, but re-write it using 0.16 way.
Btw, I already ported mknejp's electric vehicles mod to 0.16 so you can take a look at it. It's a mods.factorio.com
slindenau
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Fri Mar 25, 2016 1:46 pm
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by slindenau »

PiteR wrote: Thu Dec 27, 2018 7:58 pm
Speuline wrote: Sun Oct 07, 2018 11:15 am Hello,
I really like the idea of this mod.
Anyone can make it compatible for 0.16 if there is not too much work?
I found it better than induction mod.
Thanks in advance!
I believe there is no way (of that I tried)mto port this mod to 0.16, other that re-making it from the ground up. I might look into this when I'll have time. I'll be mostly using the way the code is already written, but re-write it using 0.16 way.
Btw, I already ported mknejp's electric vehicles mod to 0.16 so you can take a look at it. It's a mods.factorio.com
We have been working on our own 0.17 port from a reddit post.
You have been invited to our (for now private) github repo if you want to help us finalize it :).
My mod: "Auto Deploy Destroyers" (follower robots) viewtopic.php?f=97&t=24545
slindenau
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Fri Mar 25, 2016 1:46 pm
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by slindenau »

We currently have a fully functional version of this mod ready for 0.17.
See https://mods.factorio.com/mod/wireless-charging_v17

It includes:
- 0.17 compatible
- multiplayer compatible
- rail graphics working
- indicator progress bars working
- no red flashing "no power" symbols
- tested with Electric Vehicles Reborn

We've encountered no errors so far, but as always with new mods i would advice you to backup your save file!
There are still some minor issues, mainly with graphics, but that will be fixed at some point in the future.

If you want to contribute, the github repository is now open to the public :)
See https://github.com/GTX2GvO/wireless_charging
My mod: "Auto Deploy Destroyers" (follower robots) viewtopic.php?f=97&t=24545
User avatar
PiteR
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 10, 2016 3:23 pm
Contact:

Re: [MOD 0.14.2] Wireless Charging

Post by PiteR »

slindenau wrote: Mon Mar 25, 2019 5:18 pm We currently have a fully functional version of this mod ready for 0.17.
See https://mods.factorio.com/mod/wireless-charging_v17

It includes:
- 0.17 compatible
- multiplayer compatible
- rail graphics working
- indicator progress bars working
- no red flashing "no power" symbols
- tested with Electric Vehicles Reborn

We've encountered no errors so far, but as always with new mods i would advice you to backup your save file!
There are still some minor issues, mainly with graphics, but that will be fixed at some point in the future.

If you want to contribute, the github repository is now open to the public :)
See https://github.com/GTX2GvO/wireless_charging
Great work, I saw and joined the GitHub repo, but I'm not that good at Lua scripting and I don't really have much free time now.
Either way, congratulations C:
Post Reply

Return to “Mods”