Accept hexadecimal input for numbers / Add the ability to type "16k" so it autocompletes to "16000"
Moderator: ickputzdirwech
Allow for Math to be used in Number Fields
A lot of productivity programs like Kicad, GIMP (or even games like Satisfactory) allow you to do math inside of text certain fields.
example from GIMP:
And when you're used to programs that have it, you'll start to notice it being missing. so i thought i'd suggest the idea here!
one example i can think of for Factorio is:
you have 4 assemblers feeding of a requester chest, using SHIFT+LMB to set the requester's item would only request enough for a single assembler. so it would be convenient if you could just click on the item in the requester, and in the number field next to the slider, enter "*4" (multiply by 4), then click the confirm button to have it automatically evaluate that and save it as the new item count.
example from GIMP:
And when you're used to programs that have it, you'll start to notice it being missing. so i thought i'd suggest the idea here!
one example i can think of for Factorio is:
you have 4 assemblers feeding of a requester chest, using SHIFT+LMB to set the requester's item would only request enough for a single assembler. so it would be convenient if you could just click on the item in the requester, and in the number field next to the slider, enter "*4" (multiply by 4), then click the confirm button to have it automatically evaluate that and save it as the new item count.
-
- Fast Inserter
- Posts: 229
- Joined: Tue Sep 16, 2014 5:48 pm
- Contact:
Re: Allow for Math to be used in Number Fields
Extremely smart idea, although not THAT much useful for Factorio...
Re: Hex signal view, hex and mathematical input in constants
that was similar enough for me to join it with this topic…
I think the idea can be quite useful.
I think the idea can be quite useful.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
-
- Filter Inserter
- Posts: 360
- Joined: Thu Jun 01, 2017 12:05 pm
- Contact:
Combinators: Allow more way to input numbers
TL;DR
Give the number box the ability to parse simple math equations and hex numbers.What ?
When using combinators you often need to add some constant:
It would be useful if we could set numbers like "80*8+4", press enter and have the game automatically convert it to 644.
Same thing for hex numbers, would be nice to just write 0xFFFF and have it converted to 65535. Would be very useful for bit operations.
Re: Combinators: Allow more way to input numbers
Related suggestion threads:
viewtopic.php?f=6&t=50305 Allow hexadecimal entry for constant values in combinators
viewtopic.php?f=6&t=14686 Accept hexadecimal input for numbers
viewtopic.php?f=6&t=53999 Suggetion: Binary combinator variables
viewtopic.php?f=6&t=50305 Allow hexadecimal entry for constant values in combinators
viewtopic.php?f=6&t=14686 Accept hexadecimal input for numbers
viewtopic.php?f=6&t=53999 Suggetion: Binary combinator variables
Re: Combinators: Allow more way to input numbers
That would be very cool, especially the bit keyboard.
I use helper excel tables for input otherwise, which is pretty cumbersome.
I use helper excel tables for input otherwise, which is pretty cumbersome.
Pony/Furfag avatar? Opinion discarded.
Re: Combinators: Allow more way to input numbers
+1 on that
Fulgora is the best planet. Vulcanus needs rework. Feel free to prove me wrong.
Re: Combinators: Allow more way to input numbers
Adding onto this, an option to view as hexadecimal would be useful as well. Much easier to pick out your packed values from hexadecimal than decimal.
-
- Filter Inserter
- Posts: 543
- Joined: Mon Feb 05, 2018 10:01 am
- Contact:
Re: Combinators: Allow more way to input numbers
Another +1.
Helmod does this with it's "how much do you want" field.
Helmod does this with it's "how much do you want" field.
-
- Filter Inserter
- Posts: 360
- Joined: Thu Jun 01, 2017 12:05 pm
- Contact:
Re: Combinators: Allow more way to input numbers
With FFF 388 this is confirmed part of the expansion. Anyone knows if Hex is a thing as well?
Re: Accept hexadecimal input for numbers / Add the ability to type "16k" so it autocompletes to "16000"
It only took 2 years, but according to FFF-388 it is going to be implemented!
Train go brrrrr
Re: Accept hexadecimal input for numbers / Add the ability to type "16k" so it autocompletes to "16000"
Not to seem ungrateful, but hexadecimal input seems to be still missing. Which was mentioned in the original suggestion here, and several times in the FFF thread. Because it would make bit masks and similar computation-related constants a lot easier to input.
Re: Accept hexadecimal input for numbers / Add the ability to type "16k" so it autocompletes to "16000"
Good news I just confirmed that both features are now in the game! As of 2.0
Train go brrrrr
Re: Accept hexadecimal input for numbers / Add the ability to type "16k" so it autocompletes to "16000"
[Koub] Thanks for the catch, moved to implemented
Koub - Please consider English is not my native language.
-
- Inserter
- Posts: 42
- Joined: Thu Oct 31, 2024 4:43 am
- Contact:
Add hexadecimal support to number fields
TL;DR
What?
Please add hexadecimal support to number fields. Particularly in logistic groups, combinators, and machine controls.- One option would be a "0x" prefix, eg: 0x7FFFFFFF
- Another option would be an "h" postfix, eg: 7FFFFFFFh
Why?
When working with signals and control logic, it's a lot easier to remember the largest positive number and smallest negative number are 7FFFFFFF and 80000000 (in hexadecimal) than 2147483647 and -2147483648 (in decimal).Hexadecimal is also helpful for typing out bitwise masks. More helpful than decimal, anyway...
Re: Add hexadecimal support to number fields
Also, feature exists?
The expression is computed after de-selecting the Input field. It even works with addition/subtraction:
Related: MathExpression
Good Luck!
The expression is computed after de-selecting the Input field. It even works with addition/subtraction:
Related: MathExpression
Good Luck!
- BrainGamer_
- Fast Inserter
- Posts: 102
- Joined: Sun Nov 14, 2021 9:52 pm
- Contact:
Re: Add hexadecimal support to number fields
The important thing to note is that hex numbers must be in lowercase, so 0xff instead of 0xFF.
Re: Accept hexadecimal input for numbers / Add the ability to type "16k" so it autocompletes to "16000"
[Koub] Merged several threads with the same (already implemented) suggestion.
Koub - Please consider English is not my native language.