Timer Switches

Started by merthsoft, September 26, 2016, 01:26:43 PM

Previous topic - Next topic

merthsoft

Hello, I've started working on a mod for timer switches, and wanted to see if one already existed. I've searched but the closest I've found is one that adds pretty advanced switches, including one that has a timer, but it's not as fine-grained as my idea. My idea is for it to work like the Restrictions tab, where you can set on or off for each hour. Does something like that exist? Would other people be interested?

Dingo

I was looking for a mod like this ever since Day/Night Switches gained popularity. Sometimes you want fine control over those things, and an interface similar to the Restrict tab would be ideal.

I don't think one exists right now, it would be very much welcome.

merthsoft

Cool--I'll keep working on it then and keep you updated!

gillsminnow

I'd be interested in a simple timer switch.

harpo99999

have you seen the haplo's power switch mod? it has  timer, pawn on room, pawn nearby functionality, and has even partly entered into the base game (just not the extra modes eg timer pawn in room & pawn nearby)

merthsoft

I have! And I quite like it, but the interface for the timers is a little clunky. My hope is that we'll be able to combine them and mine can just be absorbed into his.

merthsoft

Progress is progressing! http://i.imgur.com/lQ4bX9v.gifv

Sorry for the weird green stuff--not sure what's going on there and I didn't feel like re-recording. Still needs lots of work, but jsut wanted to show something off.

Dingo

Just a small suggestion: "timer" switch implies that the switch counts down X amount of ticks/hours and shuts itself off (which is what a timer is, it starts from 100% and goes to 0%). You could say these are time-sensitive switches or something like that.

I actually didn't know about Haplo's mod before, shucks. If you can implement this in a way that works alongside (or even merges into) his mod that would be great.

merthsoft

It'll definitely work with his, and hopefully just work together. Good idea on the naming--I'll probably implement both things, too.

merthsoft



Some progress. You can assign the times and everything. It's not fully functional yet, but it's coming along!

merthsoft

Alright! I've got a first release for you guys if you want to test it out!
Download Link


Let me know what you think!

Dingo

Looks really nice. I looked at it in-game, very slick. My only question is why the font on the On/Off designators looks so weird.

merthsoft

Oh, yeah, it does that when you call the translate method on it--I'm not sure why. I'll change that so it's not making it weird.

avilmask

Your mod works good, except one thing - switches reset when loading a game from save.
Ability to disable sun lamps at "resting" hours so good!

BlackSmokeDMax

Quote from: avilmask on October 04, 2016, 02:36:40 PM
Your mod works good, except one thing - switches reset when loading a game from save.
Ability to disable sun lamps at "resting" hours so good!

Are there concrete resting hours, or does that change per latitude? If they don't vary, it'd be nice if there was a pre-set button for those hours.