Stormworks: Build and Rescue

Stormworks: Build and Rescue

Seven Segment Gear Indicator
Hey guys, I have a somewhat rudimentary automatic gearbox, and was wondering if it is at all possible to use a seven segment indicator to indicate the current gear - R, N, 1, 2, 3, 4, 5. Would it be possible, and would anyone by any chance have an example of a working one, or how to make it?

Thank you!
< >
Showing 1-5 of 5 comments
Dareka Oct 10, 2020 @ 5:11pm 
Afaik, it will only show 0-9,, stick at 9 when receiving a number above 9, and "-" if receiving a negative number. Is that close enough?
A Hobo Named Walt Oct 10, 2020 @ 5:30pm 
Yes absolutely!
Ra-Ra-Rasputin Oct 10, 2020 @ 11:01pm 
You can use a 7 segment in its on/off mode to show other than numbers as well, otherwise as a binary you could calculate the converted binary values, if you prefer.

The way a 7 segment works is that the segments are in order:
Top
Top right
Bottom right
Bottom
Bottom left
Top left
Middle

They're in this RIGHT TO LEFT order : 0000000
So to show 7 for instance, we need to activate Top, top right and bottom right.
0000111
What about 1? Same as 7, but no top.
0000110

So what would be the closest to R?
I'd say all but bottom, so...
1110111
Or a lowercase R since that looks kind of like an A... middle and bottom left
1010000

How does this help?
Well, this is where things get complicated, as you need to count things in binary, tools for this exist, but you can also count it in your head if you're decent with powers of 2.

https://www.rapidtables.com/convert/number/binary-to-decimal.html

In order, the values i mentioned are:
0000111 = 7 (just so happens)
0000110 = 6
1110111 = 119
1010000 = 80
Last edited by Ra-Ra-Rasputin; Oct 10, 2020 @ 11:02pm
GrumpyOldMan Oct 11, 2020 @ 12:23am 
Here's a simple seven segment display I adjusted to the thread authors need, added a throttle lever to change gears as an example. This will display r, n, 1-5 controlled by a numerical input from -1 to 5.

https://steamcommunity.com/sharedfiles/filedetails/?id=2254482440
Last edited by GrumpyOldMan; Oct 11, 2020 @ 12:23am
A Hobo Named Walt Oct 12, 2020 @ 8:07am 
Thank you for all of your assistance! That was exactly what I was looking for, much appreciated!
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Oct 10, 2020 @ 12:04pm
Posts: 5