Project Zomboid

Project Zomboid

Power Window Controls
38 kommentarer
猫子 15. okt. kl. 5:56 
Wow? ! It is an immense honor that you are willing to adopt my ideas. I believe that many subscribers will find it much more convenient as a result. Thank you for your love and dedication.:steamthumbsup:
Wolf  [ophavsmand] 13. okt. kl. 14:12 
@猫子

So I did try my hand at it and did end up running into that "practical problem" I was expecting. It ended up taking some experimenting and playing around with hacky workarounds for a few evenings, but I did eventually find a nice, clean implementation closely copying how the vanilla game handles these actions, which I am quite happy to put into the public version.

The new update with the "Open All"/"Close All" buttons is now out. Do note that the new buttons will only appear if there's more than one window for them to affect. I.e. "Close All Windows" will only show up if you have at least 2 windows open at the time.
猫子 11. okt. kl. 0:00 
Oh! Really? ! That's great! Thank you very, very much.
Wolf  [ophavsmand] 10. okt. kl. 23:50 
@猫子

I was thinking of it before. With the way this script hooks into a vanilla function, I think it should be possible in theory, but it might cause issues in practice. I'll experiment with it later and see what I can do.
猫子 10. okt. kl. 0:53 
Can the function of opening/closing all the car windows with one click be realized?
Wolf  [ophavsmand] 22. aug. kl. 16:42 
Oh and for anyone looking to use this mod once again: I've changed the display name seen in the mod manager to match that seen here on the Steam page. So in alphabetical order it's now at "P" for "Power", not "W" for "Wolf's" like before.
Wolf  [ophavsmand] 22. aug. kl. 16:34 
@404exe @UndeadLokemaniac

Sorry folks, kept getting dragged off by other things and forgetting about this. I've now dipped my toes into Build 42 for the first time and, after an embarassing amount of trial and error, repackaged the mod to satisfy b42's structure requirements. I've also had to clean up a bunch of my old half-broken developments from my working copy. Unfortunately I wasn't able to find the methodology to finish the Big One~, but I did still finalize and throw in a few minor updates.
404exe 7. aug. kl. 9:17 
@Wolf any progress? I miss your mod in b42!
UndeadLokemaniac 29. juni kl. 12:58 
I love this mod and I hope it gets updated for b42 at some point. I used it all the time with b41 and when I play on it, I still use it.
iDestin 26. jan. kl. 18:07 
@Wolf thank you, believe your mod isn’t an issue believe someone was just abusing a speed cheat
Wolf  [ophavsmand] 25. jan. kl. 22:22 
@iDestin
I see. I haven't touched B42 myself yet, but it does sound like they changed something fundamental, based on that error.

I'll try to check it out some time; sounds like I might even end up having to make a separate version for 42.
iDestin 25. jan. kl. 13:22 
This mod needs to be fixed if moving forward for B42
iDestin 25. jan. kl. 13:22 
function: showRadialMenu -- file: WolfWindowControl.lua line # 102 | MOD: Wolf's Window Controls
function: onKeyStartPressed -- file: ISUIHandler.lua line # 52 | Vanilla
java.lang.RuntimeException: attempted index: isOpenable of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.input.GameKeyboard.update(GameKeyboard.java:106)
at zombie.GameWindow.logic(GameWindow.java:249)
gleeby deeby 22. nov. 2024 kl. 9:18 
Four-door cars are suddenly a lot less frustrating to vent on a hot day. Thanks so much for this mod!
Wolf  [ophavsmand] 7. nov. 2024 kl. 4:23 
@Antonwerffds This should be compatible with any mod cars as long as they have windows internally defined as the six options above. So most.

This should at least create no conflicts, so even in the worst case scenario some vehicles (or only some windows in some vehicles) will just not have remote control featured in this mod, but the game will still run with no errors.
Antonwerffds 7. nov. 2024 kl. 4:01 
Does this KI5 cars accept ?
Wolf  [ophavsmand] 13. okt. 2024 kl. 19:49 
@Ryan No, that one is from something else and I honestly don't even remember what. Only the window actions are added with this addon.
Ryan 12. okt. 2024 kl. 18:51 
that (P) sign is it from this mod or from another mod? and what does it do?
Wolf  [ophavsmand] 7. apr. 2024 kl. 10:19 
@Tnaz.v The real trick here isn't about the amount per se , but rather the identifiers (internal names, essentially) of the individual windows. My code only accounts for the specific six identifiers listed above, in the description, so in a vehicle with more than six windows, at least some of those windows will definitely be unaccounted for. Six, or less, or even none will work, all depending on how the vehicle mod's creator decided to name the window parts when coding. It only works with most vehicles because typically mod makers use the vanilla naming convention to not do unnecessary extra work.
Tnaz.v 7. apr. 2024 kl. 3:18 
If the car has more than 6 seats, does it work the same?
mickjohnsondammit 24. mar. 2022 kl. 19:32 
Yeah, kinda common but like an '86 Colt? No, those were manual. 84' cutlass? Manual again. But as options, like a '74 LTD Brougham? Oh yeah, just like Grandma's car. "Widespread... kinda? Either way its not a bad deal as a mod goes. fwiw, I could have a beer between my legs, one hand on the wheel and get most windows open with my free hand. The only thing was that I usually had to balance and I'd put the gas pedal waaay down when I jacked with the rear passenger window. The big boats, forget it, like the '73 Impala: nfw unless you were like 6'6" (but you could get 8 juvenile delinquents in those suckers.
FatherSarge 22. mar. 2022 kl. 7:38 
Wolf  [ophavsmand] 21. mar. 2022 kl. 22:14 
Addendum: I've realized there are even more patches changing Filibuster's RV out there these days, so do tell if you were using any when you ran into the issues.
Wolf  [ophavsmand] 21. mar. 2022 kl. 22:01 
@FatherSarge
Yeah, it's been a while (and a huge game update) since I released this, so I guess things changing are in order.
However, my mod really does just the bare minimum of putting a command on the UI - what's likely happening here is that existing issues with the base game and/or the addons in question that one would otherwise not see are laid bare.
I'll have a look some time and if I find some workable solutions, I'll either update this or perhaps release separate compat patches. Can't promise to do it quickly though as spare time is in short supply these days.

As far as Filibuster's RV goes, were you using it in its original configuration or did you use Arsenal[26]'s patch? The latter completely changes the seat layout of the vehicle, so that's important.
FatherSarge 21. mar. 2022 kl. 12:25 
This mod could use a compatibility pass with Filibuster's Mod, throws errors when you open windows, some of the RV seats can't be fired from, etc

Could you take a look at KI5s Commando mod for compatibility too? https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2478247379

Can only fire out of seats 1 and 2, but all windows can be opened (throws errors though)
Mutante de uma Figa 20. feb. 2022 kl. 5:34 
This is good for multiplayer. The other players can shoot the zombies from the other seats and I can manage the windows to protect them.
Gashimahiron 9. jan. 2022 kl. 11:46 
Great, now i just need to find me a script that locks all the doors when the driver side door is manually locked!

Maybe someone made a mod that lets you turn on and off the car alarm with the car key from a distance, just to add that much more 90's daily crap.
Aradia Megido 5. jan. 2022 kl. 1:20 
*rolls down window and tosses some shitty internet points to the corpses*
Aradia Megido 5. jan. 2022 kl. 1:19 
i like this mod for the realism actually zomboid rp is very important
Wolf  [ophavsmand] 21. nov. 2021 kl. 6:52 
@pick pick pick pick pick pick

As far as I know, this doesn't really provide any gameplay-related benefit, aside from maybe saving one the trouble of climbing to a different seat to close a window that's been left open. As the description states, this was made mainly to alleviate an accessibility issue with certain modded vehicles and, I suppose, maybe add a completely pointless bit of realism.

I'm quite positive this should work with any saves and any modded vehicles, unless those feature a type of window that's unique to them.
pickpickpickpickpickpickpickpick 21. nov. 2021 kl. 4:55 
What benefit does opening windows behind you add? And does this work on existing saves?
Wolf  [ophavsmand] 11. juni 2021 kl. 22:38 
@_TheBunnymaster_
Well, that's nice to know. Thanks!
_TheBunnymaster_ 11. juni 2021 kl. 15:03 
Don't worry about lore for this awesome little gem. Power windows came in most of the 'loaded' or 'XLT' packages of vehicles in most form factors except for bare-bones pickup trucks, and even those had separate packages for the larger cab sizes that included power windows and locks.
Wolf  [ophavsmand] 9. juni 2021 kl. 1:33 
Made a thread for string translations. Feel free to see the lines and submit your translations there if you're interested.
Vaeringjar 8. juni 2021 kl. 22:14 
that thumbnail is so adorable lol
Wolf  [ophavsmand] 8. juni 2021 kl. 17:11 
When I'm back from work I might make a pinned thread with it in a more accessible fashion.
Wolf  [ophavsmand] 8. juni 2021 kl. 17:10 
@Bazooka
You can find it at Steam\steamapps\workshop\content\108600\2511087277\mods\Power Window Controls\media\lua\shared\Translate
It's just a dozen lines, "Open/Close FL/FR/ML/MR/RL/RR Window", the acronyms standing for "Front Left" and so on.
Daxiwang 8. juni 2021 kl. 9:31 
Can you provide translation content?:spiffo: