Tutorials Navigation

Tutorials :: New :: Popular :: Top Rated

Tutorials: 18,357 Categories: 12

Total Tutorial Views: 42,559,170

[Factorio] How to create an LCD display Part 2

Tutorial Name: [Factorio] How to create an LCD display Part 2  

Category: Game Walkthroughs & Guides

Submitted By: -Deano

Date Added:

Comments: 2

Views: 1,393

Related Forum: Gaming Discussion

Share:

How to create an LCD display
Part 2 - Items more than 10

To convert out number from X amount to fit on our LCD screen we will need to create more LCDs.
This is useful for large number display such as my Oil Barrel display near my stations.
[ Register or Signin to view external links. ]

To convert a number you will need to first set the incoming signal to the default signal. For my oil, the input signal is "I". I conver the oil barrels being stored into I.
[ Register or Signin to view external links. ]

This gives me my total count of I = 104,930.
You will now need to separate each part of the number to a single digit.

This is done by dividing by the power of 10 that it requires and then multiplying by the same amount.
104,930 / 100,000 = 1. (NUMBER 1)
Multiply the output by 100,000 again to get 100,000.
We then need to subtract the 100,000 from the initial number of 104,930.
This leaves us with 04,930.
We need to repeat this to get each number.
Here is the explanation as a programming alternative to understand it better.

input = 104,390.
input (104,390) / 100,000 = number1 (1).
number1 (1) * 100,000 = amount to subtract (100,000)
input (104,390) - amount to subtract (100,000) = remaining number (04,390)

Repeating this process to get each number we need and the remaining number results in us having:
A = 1.
B = 0.
C = 4.
D = 3.
E = 9.
F = 0.
[ Register or Signin to view external links. ]
We then use these numbers like the first part of the tutorial to display our result.
In the original tutorial we used A as our input signal. This will be okay for our first number but simply needs to be swapped out for B, C, D, E or F depending on which number we have.

Overall, the combinator display should look like so
[ Register or Signin to view external links. ]

Ratings

Current rating: 2.00 by 2 users
Please take one second and rate this tutorial...

Not a Chance
1
2
3
4
5
6
7
8
9
10
Absolutely

Comments

"[Factorio] How to create an LCD display Part 2" :: Login/Create an Account :: 2 comments

If you would like to post a comment please signin to your account or register for an account.

HaloPosted:

Very detailed and does the job. Excellent

ZydrinPosted:

Very cool tutorial dude! This is amazing.