This map use Lua trickery to redo the heightmap (as well as terraintype, metalmap if available, airmesh, etc..), and to draw textured quads by itself, so that the map layout and appearance is controlled by code, and is thus configurable and randomisable.
Force All to random : Ticked by default, this make it ignore every other map option and use random or automatic values instead.
Skin : Auto guess from the presence of some units what mod is it, and attempt to pick an appropriate skin, with still a random factor for better variety.
Color : Fixed is normal color, Team Color make the whole texture grayscale, and then add team color depending on who owns the towers. Where ownership is determined by who finished a building over 5x5 footprint on the tower.
Boundary : You can use /cheat /devlua to see the boundary ingame (except circle and rectangle).
Center : This just offset the lattice.
Density : Full towers looks too crowded, the T75 B50 remove one tower out of four, making the map more pleasant looking.
Geo : How many towers top have geovents.
Metal : How much metal the sum of all towers is worth (the 25% on the bridges is bonus). If you put 0, then it use automagical formula 30+6*(TeamCount without Gaia).
Tower Radius : How big are the tower tops. 0 for a random value between 192 and 768
Bridge Length : How long are the bridges between tower tops. 0 for a random value between 4 and 384
Bridge Width : How large are the bridges. Best is to use the same value as Tower Radius. 0 for a random value between 64 and TowerRadius, skewed toward TowerRadius.
Bridge Slope : The angle of the bridges Positive for concave, negative for convex. 0 for a random value between -45° and 60°
Orientation : Turn the lattice, north-south-east-west wise. 0 for a random value between 0 and 360.
Distance are in pixels Angles are in degrees
If you like a certain random layout, you can read back what values were picked from infolog.txt
Not Randomisable:
Exploration : Does the map needs to be explored: 0 if no, positive if has to be scouted, negative if it has to be constructed, also if not zero absolute value is duration in second of popping effect.
Destruction : Can bridge and tower be destructed, 0 if no, positive for multiple of median unit hitpoint, negative for absolute hitpoint.
Construction : Can bridge and tower be reconstructed, 0 if no, positive for multiple of median unit buildtimecost, negative for absolute buildpower. To reconstruct bridges and towers, build something, anything, nearby.
Method : Fast : Detect units destruction and completion. Precise: Detect explosions and build steps.
Indication : Tick to have destruction and construction percentage indicators over tower and bridges.
Fixed Start Position place teams on the map extremities
Random Start Position place the teams evenly around the map
-> So use fixed start pos if you play 1 vs 1 on rhombic or 3 FFA on triangular!
Custom Skin
The map skin can be ovveridden. Place an image named HexFarm.png into your Spring folder, and the map will load it. Here is an exemple texture:
The texture can be placed in any folder scanned by Spring. It can be named HexFarm.png to load it every time, HexFarm6.png to not load it for other versions of this map, or hexfarm6_technical.png, hexfarm6_pastoral.jpg, hexfarm6_geological.jpg, hexfarm6_capital.png, hexfarm6_medieval.png, hexfarm6_industrial.png, hexfarm6_digital.png if you want to be more specific and only override one of the skin.
The texture can be any size, but respect the 4x1 ratio if you don't want pixels to be stretched. Also, I believe old graphic card prefer textures to be power of two.
Alpha channel is used to make everything under 50% transparent, use it to make the bridges see-through.
The two pixels at 1,1 and 1,2 from top-right are used to color the sky and the groundfog. However, it would be best if you used black, because fade to black can be done without extra fog layers, and because my lua skybox thingy fails for unclear reason if the camera isn't up and away.
Known Bugs - Units maybe be rendered all black if you use "reflective unit" video setting. To fix, disable reflective units video setting. - The flattening on ramps and near edge never completes: Don't build there! - Spring bouncing and pushing can make you lose units to the void. - On some graphic card, the fog eats all the fps. Luckily, only the geological and pastoral skins use fog, and only with color=fixed mapoption. So pick other skins, or use teamcolored, if it happens to you.
Changelog
HexFarm6: - Added percentage of construction and destruction : ugly but better than nothing - Units inside air transport don't explode anymore
HexFarm5: - Load much faster! - Include a new skin by KaiserJ - Increased size from 12x12 to 24x24 - New map option to restrict dimension - Bridges and towers are now destroyable and rebuildable!
HexFarm4: - Amount of metal is now configurable, and much higher by default.
HexFarm3: - Added PicassoCT city-at-night and monument valley skins - Avoid the case with three unconnected towers by adding a big one in the middle in this case - Push back units that only slightly fell - Fixed bug where the two pixels for skybox only worked for a given texture size
HexFarm2: - Now with three skins: Medieval, Industrial, Digital - Not all towers have geo anymore - Set metal map (if possible) and terrain type map - Workaround for relayhost start pos type implemented - Destroy units that are outside the playable area - Draw fog and a pseudo skybox for external skins - Use the texture transparency - Avoid time-outs with ClearWatchDogTimer instead of setting overlay
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
units (at least xta commander) seem to have problems making buildings on the ramps. On the hexfields they can build normal but on the ramp the nanoframe only gets 1% build. Usually you can just rightclick the nanoframe again to skip terraform but here that will just make it build for another 2% or so, then stop again. (though perhaps that is 84.0 idk)
Apart from that the map is win ofcourse, the idea to provide different textures is very good.
Hmm, is there anyway to disable terraforming completly except for my Lua? Because if buildings or explosions change the heightmap, then it won't match the graphic anymore.
I made the ground extra-tough but not indeformable. If I make it indeformable then my Lua can't change heightmap anymore.
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
Not sure if some mods or maps have an option to disable mapdamage. I thought maybe on UnitCreated() flatten the ground under the building but Idk if that would work. Or make buildings not require terraform with a unitpostdef.
Joined: 24 Jan 2006, 21:12 Location: There is no god - and reality is his prophetess
I demand destructable buildings... if you hammer to hard on the way ahead.. it might collaps under to much weight (50 gators lost).. and if you do so, you have to build the bridges yourself by donating conunits to the gap:D
Joined: 24 Jan 2006, 21:12 Location: There is no god - and reality is his prophetess
Dunno why im so obsessed with this.
Guess its that the obsticles to take part in the competition are rather low and the results look rather cool. Also i miss beeing good at something. Beeing below the 10.000 hours at something always sucked. And i hate that rope by now. I really hate some bits and bytes.
Here is the monument valley themed hexfarm. Its not as good as city, because, well, city is closer to hexagonal structures. And even my city was ideal. Best would be a ghost in the shell like skyscraper style. Something hanging between the digital world and the futuristic reality.
Joined: 24 Jan 2006, 21:12 Location: There is no god - and reality is his prophetess
noo.. noo.. i get it. this is a conspiracy.
SY-Chatlog searched and found:
Quote:
Someone: I got enough of his rants. SomeoneOr: And see how he is stuck kneedeep in featurecreep, getting nowhere. SomoneElse: Sure, but how do we get rid of him? SomeoneXor: We could get him back into the mapping section, and trap him there. He could do nice skyboxes, and insane stuff, and everything would work, and nobody would ever have to worry about his project stuck in the pipeline through sibiria. SomeZero: Good plan. SomeAll: Lets put that into action.
Is shall no longer lift a finger for this. Tempting me back into my old ways, you are.
Joined: 24 Jan 2006, 21:12 Location: There is no god - and reality is his prophetess
Isnt it a good and honored tradition to sacrifice the infantry to bridge the gap between diffrent cultures ? Hmmm... im getting bad ideas allready. We havent had hexagons made of skulls yet. Hell .... nah, i really have troubles getting carried away by good ideas.
Same stuff with a friend today. He suggested adding skelettons to the zombies in jw, so if they would touch the E-fence, and get fried, i could show there skeletons through...idea was good. But turned out to be bad if you have to do it for every freaking unit in jw.
Step 2: Have a file named hexfarm.png in your Spring folder.
The texture should be of dimension n^(n+2) by n^2. Ok, that's lil bit too technical. The texture should be four time as wide as tall. Better? Well, in fact the texture can of any dimension, but if it's not fourth as wide as tall, then the pixels will be stretched. And if the dimensions are not power of 2, then some older graphic cards may have problems displaying it.
There is no hard filesize limit. However, I noticed that the texture makes up for most of the map size, so the smaller the better. I now regret making the "digital" skin 4096x1024 considering the "industrial" and "medieval" skins are merely 1024x256 yet look nice ingame.
There is no bumpmap or self-illumination. Worse, I don't apply shading on the geometry, it's displayed as fully lit, always, from every direction. However if it is important for you, then I can apply sun lighting on it, making it shaded in the back, shiny in the front. But reading the self-illumination or other light data from the texture itself is out of my league.
You can use the alpha layer to have see-through, particulary useful for the bridges. Anything with alpha under 50% is completly transparent, anything with alpha over 50% is completly opaque.
To aid you, here is a ready to use texture: hexfarm.png. Just save into any folder scanned by Spring, and notice how it overrides the skins included into the map archive.
Also compare the exemple texture with how it looks ingame to get a better grasp of how it's mapped.
When it reads the texture "hexfarm.png" from outside (as opposed to the internal textures), and when not teamcolored, then it uses the top-most pixels for the skyboxes (as pointed in the exemple texture).
Because drawing the hexagon was the hard part, here's one: HexaRaw05.png Resize to appropriate size, and sorry for the lack of sharpness in the edges, but if you can draw a crisp hexagon perfectly fitting and centered in the square, then please do and give me.
I suggest you untick the map option "Force all to random", and increase the tower radius and bridge length, or else you'll waste too much time waiting for Spring to load LuaRules.
Joined: 24 Jan 2006, 21:12 Location: There is no god - and reality is his prophetess
mods please move this to mapping, this isnt zwzsgs child anymoar!
Also, if we make further skins, we could bloat this baby into the 100 mb area. Nobody would download this map
Goto hand it to the Big Z: Well done. Thats the spirit of open source right there, catched in this ... paint on that png, and it appears ingame. No scareOffs, not "write into this luafile" .. no look it ups in the wiki. This is the crack that makes the custoMizers come back.
Users browsing this forum: Google Feedfetcher and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum