Loading...
  OR  Zero-K Name:    Password:   

Capabilities of /MapSettingsOverride

3 posts, 142 views
Post comment
Filter:    Player:  
sort
Can Zero-K/LuaUI/Configs/MapSettingsOverride/ be used in other ways then shown, like to remove unneeded depend = {"whatever"} from maps?

Example map settings override for Battle for PlanetXVII

quote:

return {
["fog"]= {
["sunColor"]= {0.71739131, 0.70434785, 0.70434785, 0.84347826},
["fogStart"]= -4.2199998,
["fogColor"]= {1, 1, 1, 0},
["cloudColor"]= {0.63043481, 0.61739129, 0.78695655, 0.89999998},
["skyColor"]= {0.6652174, 0.63913041, 0.64347827, 0.9173913},
["fogEnd"]= -5,
},
["sun"]= {
["groundDiffuseColor"]= {0.65338647, 0.65438247, 0.65438247, 0.85321099},
["groundAmbientColor"]= {0.70176989, 0.7061947, 0.71238941, 1},
["unitAmbientColor"]= {0.59565216, 0.5782609, 0.47391304, 1},
["groundSpecularColor"]= {0.05929204, 0.05663717, 0.03982301, 1},
["specularExponent"]= -1.5699999,
["unitDiffuseColor"]= {0.92660552, 0.93043476, 0.89130437, 1},
["unitSpecularColor"]= {1, 1, 1, 1},
},
["minimap"] = {
["groundAmbientColor"]= {0.8, 0.8, 0.8, 1},
}
}
+0 / -0


7 years ago
The correct method of overriding mapinfo is releasing a map with the new mapinfo.

For a moment i morbidly wondered if that is doable by making the new map depend on the old map and override its mapinfo. But then i decided that this is even more evil than whatever now inhabits the body of the person once known as knorke.
+0 / -0