-
Notifications
You must be signed in to change notification settings - Fork 7
Description
There is quite some useful and practical map-data that I want to use for the website.
In this Issue I will explain each + give the 'slug' needed for Webflow to put it in the correct variable
Additional map-datapoints from mapinfo.lua:
Map Version
In mapinfo = {
version = "version-number/name"
(it's not float iirc, but a string)
Useful to determine the latest version. Once this is converted/saved - all mapinfo.lua data should have no need to be re-synced/extracted.
This because every new map/release/update (with the same map-name) should have a unique version number.
It's also nice to have that in a separate variable, so you other systems can easily use this.
Current map-parser seems to update all maps every day - even if there is no version change.
For custom added data in Rowy this is good, but that's mostly non-mapinfo.lua data.
data-slug Webflow = "version" (string / plaintext)
Void Water
In mapinfo = {
voidWater = true/false,
Useful to determine if Water needs to be rendered or not (space maps)
data-slug Webflow = "void-water"
Average Wind
In atmosphere = {
minWind = [value],
maxWind = [value]
Nice to have, some have requested it, as there is a specific formula to calculate the map average wind.
I don't know this formula, but it should be applied, and then be saved.
data-slug Webflow = "wind-avg" (number » decimal like 10.3)
waterSurfacecolor
In water = {
surfaceColor = {R, G, B},
RGB array. I'm okay with storing this as is (as an RGB array). Please not some RGB colors here are very small, like 0.0004 - I've gotten my test-setup to work with HEX, so I converted the RGB to HEX (as a string) and served that to the Webflow API. That worked. Perhaps RGB also works. Here are all possible formats for Webflow:
- HEX (6 digits) "#ff0000"
- HEX (3 digits) "#f00"
- HEX (RGBA) "#ff0000ff"
- RGB "rgb(255, 0, 0)"
- RGBA "rgba(255, 0, 0, 1)"
data-slug Webflow = "water-lava-color-tint" (as HEX/RGB string)
waterBase
In water = {
baseColor = {R, G, B},
data-slug Webflow = "water-basecolor" (as HEX/RGB string)
waterMin
In water = {
minColor = {R, G, B},
data-slug Webflow = "water-min" (as HEX/RGB string)
water Absorption
In water = {
absorb = {R, G, B},
data-slug Webflow = "water-absorb"
I don't use this yet, but I store it as an full RGB string-text.
So this can remain like the original value "R, G, B"
Not found in mapinfo.lua, but on github.
Lava Levels
You can find all maps with custom lava-level settings in this file: https://api.github.com/repos/beyond-all-reason/Beyond-All-Reason/contents/common/configs/LavaMaps
Every separate file (found also here: https://github.com/beyond-all-reason/Beyond-All-Reason/tree/master/common/configs/LavaMaps) has the name of the map in it's filename. It should directly match the name of the map - possibly minus an added version number.
In each file there can be a variable level.
If it's not in there, then the lava starting level will be 0 = same as water.
The sync to Webflow should check all these maps. Probably while updating a map, also check if there is a lava-config available, and if so, then also check the level and use that to fill the lava-level variable on Webflow. If no level found, then fill lava-level variable with 0.
data-slug Webflow = "lavalevel" (number - may be negative)