Posted: Wed Sep 26, 2018 10:24 am Post subject:
Info on bridge overlay types
In OverlayTypes list, high bridges are the big concrete bridge in the air TS/RA2 (index 24, 25), railbridge in TS (index 59, 60) and high wood bridge RA2 (index 237, 238). These bridge pieces are in the air and cover 3 cells. Game stores only the middle cell location of these high bridge pieces in the OverlayPack and OverlayDataPack sections of the map. Game then extrapolates this location and makes the high bridge as 3 cell wide. These Pack sections in the map don't have any height information so there is only one overlay per cell, so one is not supposed to have one bridge over another at same cell locations.
Developers have just renamed TrainBridgeSet to WoodBridgeSet in gamemd.exe and replaced TS rail bridge overlay index (59, 60 - hex 3B, 3C) with wood bridge high overlay index (237, 238 - hex ED, EE). It can be found at gamemd.exe - 0x8A0BE ED, 0x8A0C6 EE, 0x18733C ED, 0x187344 EE, 0x1FC613 ED, 0x1FC61B EE, 0x1FD4E6 ED and 0x1FD4ED EE. Basically, TS train bridge is the high wood bridge in RA2. TrainBridgeSet in terrain INI files shouldn't work, as it is now referred to as WoodBridgeSet. And OverlayTypes index slots of 59 and 60 have been vacated, so those could be used for other purposes.
Game stores the low bridge data differently when compared to the high bridges in the maps. There are 3 frames per bridge piece which are for the 3 cells it covers and is stored as such in the maps. Those 3 frames (0, 1, and 2) should be next to each other and aligned with the next bridge piece in the maps to work properly. The FA2 image is attached to show the proper placement. Otherwise, the bridge breaking and repair functionality doesn't work properly.
Sooo...
Does this mean we can now add in rail bridges from the TX properly without having to sacrifice the wood bridge?
You said the original spots for the rail bridge are empty in RA2...
"OverlayTypes index slots of 59 and 60 have been vacated, so those could be used for other purposes."
Unless you meant (alomst) anything other BUT bridges... QUICK_EDIT
it clearly states WW replaced train with wood bridges. There is no new or additional or disabled bridge.
So no, you can't add it in addition.
Well, you can add a bridge image to overlay 59 and 60, except that it doesn't work at all ingame, since the hardcoded logic to make them work is not there. that's on 237, 238 in RA2. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Either use it as train bridge or high wood bridge, not for both. Vacated indices 59, 60 means it could be used for other generic overlays like rocks, not for bridge (though I have only tested for bridge and it doesn't work).
In the in-game image, original gamemd.exe and with replaced indices 237, 238 back to 59, 60.
I guess I should add an addendum to the way low bridges work...
Similar to how you can drive onto crushable fences with tanks even on rock/cliff or other impassable terrain, low bridges just change the ground type on the cells they cover, they do not change the height.
I experimented with using a rock 1-height spine across a valley and used a low bridge across it, the overlay art being centered on the spine showed that it was off the ground, but vehicles would move across at ground level anyway. Visually with the sloped ends even a low bridge should have raised a unit passing over it by 1 height, yet it doesn't, probably for simplicity.
A high bridge by comparison operates the same with the exception of adding 4 height to the ground it passes over. You can see in the attached image how the unit tracks the tile slope below it perfectly, just with added height. Also notice it falls into shadow since it is now notionally below the bridge for the shadow rendering pass.
There's also a bug, at least in TS, where a unit can drive off a high bridge onto a slope below, if that slope is adjacent to the bridge. IIRC that includes the normally-impassable guard rail, so to play safe, mappers should leave a 5-cell wide flat area under the bridge. Curiously enough, it doesn't work reverse, i.e. units cannot jump onto the bridge from a slope below. _________________
Sorry for bump, but wanted to confirm that units in RA2, YR and even with YR+Ares units can and probably will drive off high bridges if you mess with slopes/ramps underneath the bridge, not sure about "adjacent".
Vehicles will tilt and "climb", infantry will "climb".
Any overlay placed beneath bridge is respected: walls block that spot, fences can get driven over and crushed. I'm not sure how Tiberiums and bridges mix, and I haven't tested buildings under bridges either.
Curious: this works as intended (no vehicles driving off the bridge).
But if I were to take the cliff-face and move it back a bit so that the bridge overlay is over the cliff tips, units won't use the right lane at all.
SharedScreenshot.jpg
Description:
Move the cliff face backwards one cell and the bridge will hold but right lane impassable. Reverse for cliff back: left impassable.
Filesize:
518.46 KB
Viewed:
632 Time(s)
SharedScreenshot.jpg
Description:
Fences can get crushed, walls avoided.
Filesize:
518.46 KB
Viewed:
632 Time(s)
_________________ One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done.
That is because only one overlay can exist per cell and high bridge overlay is represented by its middle cell only.
So bridge repair logic takes precedence over the underlying overlay. It may not be just veins but other overlays too could be replaced I suppose. QUICK_EDIT
So bridge repair logic takes precedence over the underlying overlay. It may not be just veins but other overlays too could be replaced I suppose.
Yeah, but what's more interesting is that the vein growth logic is not interrupted - they keep growing on the other side despite the obvious gap. And if you kill the veinhole they recede.
If the bridge is intact when the veins reach it, it blocks them from spreading further. _________________
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 vote in polls in this forum You cannot attach files in this forum You can download files in this forum