View Full Version : About fall through L0
humordwarf
27.03.2006, 15:31
therory:
inside conv files there 3 kind of blocks 0000, 0040 and 0041-00FF
with 0040 and 0040+ all is clear
but 0000 (solid 8x8 single layer block) have TWO Z coords (Z1 and Z2) (i still do not know what for)
HDGE exporter make them equal on export, but maybe they must be different?
maybe Z2 must be Z1+100 or vice versa?
or some another logic?
there are two Z? uhm... maybe is the height like we have when you make npcpos territories (X,Y,Z1,Z2) or castledata
Think it could be highest and lowest points... In original C1 geos we can see 0000 cells with equal heights on central square of giran for example. And somewhere in mountains those two heights are always different.
After ///geodata command client seems to show 0000 cells as if their height was average of those two. And 200/200 should look the same as 300/100 (the highest one comes first).
Difference between 200/200 and 300/100? - On 200/200 items will fall through when visible (visualized by ///geodata) geo is lower than client terrain. On 300/100 - fall through if client terrain out of 100/300 range.
I suggest exporting 0000 cells in a way that every cell has lower height value equal to higher value of next lower neighbour. And cells higher value should be equal to lower value of next higher neighbour...
And one more... About built-in L0 generator from .BMP... Could you make max height difference adjustable? Or maybe make generator keep the smallest possible height difference? It seems that if difference is more than 16 (client height) - character fall to lower level (if it exists). This accuracy means nothing for 1-layer maps, but if we add catacombs - the area above them must have Z-diff between neighbour cells not more than 16(in client) or 32(value in conv.dat).
https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=1934&postdays=0&postorder=asc&start=90
if difference is higher than 24(in conv) they will drop into next layer
add an extra step of surface scan wont hurt
my 1 layer 0000 only block geogen was such that 2nd height of oen block was equal to first height of next block ( vertically scanned ), it produced better resutls.
ANRDaemon
28.03.2006, 01:55
Эмм... Гхмм...
if ((abs(next height) - abs(current height)) > 0xF)
I think something... Really...
BTW, I think (ehhhe... think...), this code much simple...
if(Hcur < Hnext) -> if((Hnext - Hcur) & ~0xF) -> fall down to lower layer
So, MB default NSEW diff must be 15 ? (or this must be fixed to 15 ?)
https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=1934&postdays=0&postorder=asc&start=90
if difference is higher than 24(in conv) they will drop into next layer
add an extra step of surface scan wont hurt
Yes, that is. It's very simple :) You need better terrain smoothing.