FYI, the code above is incorrect for cliffs:
input: RGB(144, 119, 87)
incorrect: RGB(148, 117, 82)
correct: RGB(140, 117, 82)
Search found 8 matches
- Wed Jun 17, 2020 5:00 pm
- Forum: Modding help
- Topic: map_color discrepancies?
- Replies: 7
- Views: 1238
- Tue Jun 16, 2020 10:10 am
- Forum: Modding help
- Topic: map_color discrepancies?
- Replies: 7
- Views: 1238
Re: map_color discrepancies?
I ripped off the code from another forum, but this implementation seems a little less magical and gives identical results:
Pixel8 red = (5bitRedChannel * 255 + 15) / 31
Pixel8 green = (6bitGreenChannel * 255 + 31) / 63
Pixel8 blue = (5bitBlueChannel * 255 + 15) / 31
https://developer.apple.com ...
Pixel8 red = (5bitRedChannel * 255 + 15) / 31
Pixel8 green = (6bitGreenChannel * 255 + 31) / 63
Pixel8 blue = (5bitBlueChannel * 255 + 15) / 31
https://developer.apple.com ...
- Tue Jun 16, 2020 9:30 am
- Forum: Modding help
- Topic: map_color discrepancies?
- Replies: 7
- Views: 1238
Re: map_color discrepancies?
r 33 g 65 b 74 = deepwater (38, 64, 73)
r 49 g 53 b 8 = grass_1 (55, 53, 11)
r 49 g 81 b 90 = water (51, 83, 95)
r 58 g 40 b 16 = grass_4 (59, 40, 18)
r 66 g 53 b 25 = grass_3 (65, 52, 28)
r 66 g 57 b 8 = grass_2 (66, 57, 15)
r 82 g 53 b 25 = dirt_6 (80, 55, 31) or dirt_7 (80, 54, 28)
r 90 g 61 b ...
r 49 g 53 b 8 = grass_1 (55, 53, 11)
r 49 g 81 b 90 = water (51, 83, 95)
r 58 g 40 b 16 = grass_4 (59, 40, 18)
r 66 g 53 b 25 = grass_3 (65, 52, 28)
r 66 g 57 b 8 = grass_2 (66, 57, 15)
r 82 g 53 b 25 = dirt_6 (80, 55, 31) or dirt_7 (80, 54, 28)
r 90 g 61 b ...
- Tue Jun 16, 2020 9:15 am
- Forum: Modding help
- Topic: map_color discrepancies?
- Replies: 7
- Views: 1238
Re: map_color discrepancies?
Awesome! Thank you, that was it.
Looks like if I do a round trip from rgb888 to rgb565 to rgb888 with this code it recovers the colors I actually see in the game.
RGB = collections.namedtuple("RGB", ["red", "green", "blue"])
def tuple_to_rgb565(val):
return (((val.red & 0b11111000) << 8 ...
Looks like if I do a round trip from rgb888 to rgb565 to rgb888 with this code it recovers the colors I actually see in the game.
RGB = collections.namedtuple("RGB", ["red", "green", "blue"])
def tuple_to_rgb565(val):
return (((val.red & 0b11111000) << 8 ...
- Tue Jun 16, 2020 4:12 am
- Forum: Modding help
- Topic: map_color discrepancies?
- Replies: 7
- Views: 1238
Re: map_color discrepancies?
Just to confirm, the colors I listed are the same ones you see in the screenshots at:
https://www.factorio.com/blog/post/fff-320
https://cdn.factorio.com/assets/img/blog/fff-320-map-corrected.png
There the terrain the player is standing on is:
r 58 g 40 b 16
which I guess is pretty close to ...
https://www.factorio.com/blog/post/fff-320
https://cdn.factorio.com/assets/img/blog/fff-320-map-corrected.png
There the terrain the player is standing on is:
r 58 g 40 b 16
which I guess is pretty close to ...
- Tue Jun 16, 2020 2:09 am
- Forum: Modding help
- Topic: map_color discrepancies?
- Replies: 7
- Views: 1238
map_color discrepancies?
Could anyone help me understand why the values for "map_color" that I see in the data files at places like:
https://github.com/wube/factorio-data/blob/e5b95dad434c12ea74e8461310f900ce9e989e20/base/prototypes/tile/tiles.lua#L1685
are different from the map colors I actually see in the game?
When I ...
https://github.com/wube/factorio-data/blob/e5b95dad434c12ea74e8461310f900ce9e989e20/base/prototypes/tile/tiles.lua#L1685
are different from the map colors I actually see in the game?
When I ...
- Mon Aug 07, 2017 10:07 pm
- Forum: 1 / 0 magic
- Topic: [Oxyd] [0.15.31] Keyboard and mouse "hold" issues on Ubuntu Linux
- Replies: 1
- Views: 1471
Re: [Oxyd] [0.15.31] Keyboard and mouse "hold" issues on Ubuntu Linux
I still don't know what is causing this problem, and I haven't experienced issues in other applications, but I suspect there may be something wrong with my system rather than Factorio. Unless there have been other similar reports, let's close this.
- Tue Aug 01, 2017 10:40 pm
- Forum: 1 / 0 magic
- Topic: [Oxyd] [0.15.31] Keyboard and mouse "hold" issues on Ubuntu Linux
- Replies: 1
- Views: 1471
[Oxyd] [0.15.31] Keyboard and mouse "hold" issues on Ubuntu Linux
Hi,
I play Factorio on Ubuntu Linux (16.04.2 LTS) and use the default version installed from Steam ("none - opt out of all beta programs") (steam api v017, built July 17 2017). Since the update to 0.15 on 7/27/2017, I've been having strange keyboard issues in Factorio (but not in other applications ...
I play Factorio on Ubuntu Linux (16.04.2 LTS) and use the default version installed from Steam ("none - opt out of all beta programs") (steam api v017, built July 17 2017). Since the update to 0.15 on 7/27/2017, I've been having strange keyboard issues in Factorio (but not in other applications ...