Most mods broken by IsPowerAvailable obsoletion

Jim O. shared this bug 2 years ago
Solved

Hi,


I am a systems programmer. You could have easily provided the old functions still but called the new ones underneath, effectively keeping mods working while also getting rid of the old way.


Instead, with no obvious warnings to me, my world I've been playing with friends for over 50 hours now is entirely unplayable and there's not a damn thing I can do about it except modify other people's mods and reupload them to the Steam store. I've already done it with dummy08's nanobots, now I'll probably have to do MWI collection (9) because the AI can shoot us with these weapons, but we can't ever get a round in it.


Keen can fix this with a 10 minute patch, but of course that won't happen.


-Jim

Replies (2)

photo
1

Hello, Jim!

Sorry to hear you're experiencing this issue. After a talk internally, we are not aware of any changes with IsPowerAvailable. Is this related to the .sbc file? Would you please elaborate on your issue and would love to see some examples to better understand the issue you are facing :) I hope this is okay!

Kind Regards

Laura, QA Department

photo
1

Hi Laura,


Thanks for getting back to me. Between Warfare 1 and Heavy Industry updates, something has changed internally regarding a commonly used API in many mods to detect if power is available.


<code>//good = resourceSink.IsPowerAvailable(ElectricityId, required_amt); is obsolete
// vv I had to add this manually to fix it
good = resourceSink.SuppliedRatioByType(ElectricityId) == 1;</code>

I manually edited other people's mods to fix this at first, but to play online with others, I had to make these changes public. Your community very quickly DMCA'd my efforts despite me not claiming ANY of the rights to the mod, giving full rights to the original author, listing the author's name, and stating exactly what was changed by me for the sole purpose of using it again. Lovely experience, that was. I realize the Steam Workshop says no reupload, but there's plenty of reuploads on there that have been there a lot longer - I only had action taken against me because I left on a bad note and somebody from the Discord chat actively searched me out on Steam to DMCA.


You can see this problem in Dummy08's Nanobot Build and Repair System, and Mexpex's MWI - Weapon Collection 2 (9), and DarkStar's DefenseShields (but this last one has probably been updated already as it no longer works in Warfare). Mexpex's guns never get power so they never make ammunition. Dummy08's nanobots never get power so they don't work.


Thanks,

Jim

photo
1

Hello, Jim!

Thank you very much for the explanation and example :) I have reported this internally.

Kind Regards

Laura, QA Department

photo
Leave a Comment
 
Attach a file