Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 01.07.2005, 00:09   #1
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default Further Explanation On Geodata Here

Quote:
good job for posting this..
but we have already broken down every bit of geodata...
but this will be a good guide to the rest.

as a token of appreciation.. i'll attached our finding on geodata header

--------------------------------------------------------------------------------

report of research on geodata headers

map 25_12
header 19 0C 80 00 10 00 DA 61 4e 00 A5 C9 00 00 3F 10 00 00

0C 19 = 25 12
00 80 = 128
00 10 = 16
00 4E 61 DA = 5136858 = Words for heights in 40 00 and 41++
00 00 C9 A5 = 51621 = 00 00 + 40 00
00 00 10 3F = 4159 = 00 00

many big thx to Stazis


Enjoy Smile
And further explanation on this: ???

Quote:
daaaa fuck !!!! ill do it.

all geodata aria is a 256X256
one point from this aria is 8x8

so we read firs 18 file bytes

then we need to read file as integer(2xbytes)

firs number will be the height type header next number depends on header

we have 3 types of header:

1: when the integer = 0 after that go's 2 integers which meen height
_
._._._._._._._._. |
|1|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |<--- this is 1 point of 256x256
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|_| |
|_|_|_|_|_|_|_|2|<-. |
| _|
|
'--- this is 1 point of 8x8



2: when the integer = 64 after that go's 64 integers of height

._._._._._._._._.
|1|9|_|_|_|_|_|_|
|2|.|_|_|_|_|_|_|
|3|.|_|_|_|_|_|_|
|4|_|_|_|_|_|_|_|
|5|_|_|_|_|_|_|_|
|6|_|_|_|_|_|_|.|
|7|_|_|_|_|_|_|.|
|8|_|_|_|_|_|_|64



3: when the interger = any number that numbet meen's how many heighs will by now

[height_number]
[Flors_number]
[first_flor_height][second_flor_height][n..........]......
[flors_number]
[first_flor_height][second_flor_height][n..........]..
[flor.......



height_nuber meens one pixel of 256x256
flors_numbers will be 64
flor_height depends on flor_number
HongK is offline  
Old 01.07.2005, 07:55   #2
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

seems quite clear cut on this for me O_o;
maybe u should go look thru the geodata first.
Digital is offline  
Old 01.07.2005, 07:59   #3
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

Quote:
Originally Posted by Digital
seems quite clear cut on this for me O_o;
maybe u should go look thru the geodata first.
I have looked at the geodata...It's all junk data...Nothing I can decipher...Does it need to be decoded or something? What program generates .dat files? I see that your post was the hex info...But it doesn't explain anything...Of course it's clear cut for you, you know how to do it :O
HongK is offline  
Old 01.07.2005, 08:10   #4
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

well... that junk data is what we read bit by bit, byte by byte.
and that junk data is how we come out with all those stuff above.
there's no decoding.. it's plain maps...

there is no quick fix to this... it's nothing but plain painstaking hardcore reading, figuring and trying to understand geodata...
it would take alot of time.... and when i say this, yes... it would really takes weeks and months...

program that generates .dat? ask ncsoft
they are the only ones with it.
Digital is offline  
Old 17.07.2005, 05:09   #5
fflam
Архивный участник
 
Join Date: Jun 2005
Posts: 46
Default

ok let me try my hand as explaining what i know about geodata (as much as for my sake as others) but please tell me if im wrong. this is also assumeing you know how to use hexadecimal notation (also know as hex), and can use a hex editer. (http://www.learn-c.com/data_lines.htm has a decent explinathion on hex)

i will use map 25_12 as digital used in my example.

the first 18 bytes are the headder and as digital posted.

19 0C 80 00 10 00 DA 61 4e 00 A5 C9 00 00 3F 10 00 00

0C 19 = 25 12 (map name)
00 80 = 128 (the same for all maps (think its map size?))
00 10 = 16 (the same for all maps (think its map size?))
00 4E 61 DA = 5136858 = Words for heights in 40 00 and 41++
00 00 C9 A5 = 51621 = 00 00 + 40 00
00 00 10 3F = 4159 = 00 00

if you are just editing geodata then mostlikely you wont need to edit this (his is my thought but in fact im just guessing at this point). but if you are creating geodata form scrach you need to find a way to make this headder.


now on to the map data. first off we read the next byte on map 25_12 is

40

now we know this data is going to be a hight type headder. from the other post (for the life of me i cant rember his name). now if you do the hex math in fact 40 = 64 (omg my world is falling appart!!!) and agen form teh post below we know "when the integer = 64 after that go's 64 integers of height " so that means the next 64 numbers are going to be hight data, so the first hight data after the headder is going to be 8FE6 witch = -6513 (short) or 59023 (unsigned short) (im thinking its going to be a short (with neg and pos numbers) but havent tested it yet, so i put both values there for compleetness). and that goes on for 63 more hight values.

thats all good you say, but where on the map are these hights at? well quite simple. we know that all geodata maps are structured in a 256x256 grid (that 65536 squares of data) one starting in the top left of the map going down in a collom on the left side

1 | 257
2 | 258
3 | 259
4 | 260
. | .
. | .
. | .
256

and so on (wow i suck at txt art!!). now with in each of these 256x256 squares the map is further broken down into a 8x8 grid (same as above just to 8 not 256) makeing exactly 64 grid squares per square of the larger 256x256 grid.

now whate a min.. we just got a headder that says were getign 64 indivigual pices of hight data, and we just learned that there are 64 pices of hight data needed per 256x256 square.. it cant be that simple can it?? YES IT CAN!! its as simple as adding the hight value into each of the 8x8 squares one at a time. (starting top left going down and ending at bottom right).

ok now for the other headder types. for the next headder type. im going to use another map. im useing map 19_21. first off can yo find find and decipher the headder? i know you can... good.. now that you are past the headder we find the first hight data headder for this map is 0000. and we know form the post below "when the integer = 0 after that go's 2 integers which meen height" so lets look at what we got.

0000 78F1 78F1

so heres what we know

0000 = hight type headder (since it is 0 we know we are goign to get 2 pices of hight data)

78F1 = hight data number 1

78F1 = hight data number 2

so why only 2 pices of hight data here? why not 64 like befor and have the entire 8x8 grid covered like with the 4000 headder? but it does!! this example is prety stright forward, put the first hight data in the top left hight spot in the 8x8 square, tehn put the 2nd number in the very last spot (the bottom right number spot). since both numbers are the same, the game wil make that entire area flat, why add 64 pices of the same hight data when 2 will do?

you may also notice that some times the hight data in the 00 headder type are not the same, this is becuse it will automaticly make a even graien from the first point to the seccond point (goes up or down a hill).

now for the next headder type (and honestly im not shure about this one compleetly so please let me know if im wrong) agen ill be switching maps for a better example. this time im useing the map 21_25. the reason i chose this map is becuse its the map where the human starting dungen is, and if you ever opened you map while in the dungen you noticed your out in the middle of the ocean. this allows us to know. ok all the other data is going to be a flat plain, and it willb e easey to locate and seperate out the lower "floors" that the dungen is on). so you look at the map and it looks prety dull till BAM it hits you.. and its ugly, but not unmanageable. lets take a look at what we got.

4C00 = hight headder data (since its not 64, and its not 0 that means theres goign to be floors, and we know "when the interger = any number that numbet meen's how many heighs will by now " so 4C00 = 76 so theres goign to be 76 hight values (but thers only room for 64!! ahh be pacent young one)

0100 = floor number (0100 = 1 so this goes on teh "first floor" (witch i assume to be the "generic" floor data for all other headders)

8FDB = hight data

seems simple enough right.. good. so that goes on for a bit {floor number}[hight value]{floor number}[hight value], untill you hit a value with 0200 (floor2) then you get 2 hight values. this is where his explanathion of floors kind of lost me.. but i think i figures it out. basicly what it is saying is in this pixle (1 square of the 8x8 grid) there are 2 hight values one on top of each other. first number is floor1 hight, 2nd number is the hight of floor 2. (now rember think of beign in a giant cube, and we put a floor accrost the middle of it, you can still go under it (hence the bugg where you fall though the world. were just puting a 2nd floor under the main floor)

so for the first data with 2 floors it looks like this.

0200 8FDB A5CD

0200 = how many floors (or how many indivigual hight data will follow for this point)

8FDB = hight for floor1 (or default outside terrin floor)

A5CD = hight for floor2.


so for makeing REAL bridges (iv seen some geodata fix's for bridges but you cant go under them), you have to change the square the bridge is on into a floor type headder, and have one floor for the bridge yopu walk on, and one for the terrain under the bridge. but thats another topic entirely..

well hope that helps. (it helped me at least) and yes i bable alot!!

Fflam assistant dev on ael2
fflam is offline  
Old 17.07.2005, 05:44   #6
Sakumi
Архивный участник
 
Join Date: Apr 2005
Posts: 555
Default

++++++++++++++ kudos for fflam there
Sakumi is offline  
Old 17.07.2005, 05:51   #7
Enishi
Архивный участник
 
Join Date: Apr 2005
Posts: 354
Default

Great post man.
Enishi is offline  
Old 04.08.2005, 15:39   #8
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

umm nice

now if someone could explain how those 8x8 squares are related to ingame coordinates, hell, that would be a great help
can it be that one sqare of the 8x8 is one coordinate ingame?
Riane is offline  
Old 17.10.2005, 00:56   #9
fflam
Архивный участник
 
Join Date: Jun 2005
Posts: 46
Default

some people have ben askign me about my work with geodata.. so i though i would bump the post
fflam is offline  
Old 14.11.2005, 04:18   #10
khul
Архивный участник
 
Join Date: Oct 2005
Posts: 153
Default

Quote:
this time im useing the map 21_25. the reason i chose this map is becuse its the map where the human starting dungen is, and if you ever opened you map while in the dungen you noticed your out in the middle of the ocean. this allows us to know.
21_25 is not in TI were humans start. maybe wrong geo number? or i it im mising some clue in here ? =S

Quote:
so for makeing REAL bridges (iv seen some geodata fix's for bridges but you cant go under them), you have to change the square the bridge is on into a floor type headder, and have one floor for the bridge yopu walk on, and one for the terrain under the bridge. but thats another topic entirely..
If you got the info about this , maybe you can iluminate us and share also ? =)

Also if some1 can answer RIane question would be really good. Thanks this teached me a lot =)
khul is offline  
Old 15.11.2005, 16:56   #11
fflam
Архивный участник
 
Join Date: Jun 2005
Posts: 46
Default

21_25 is where the TI dungen is, when you talk to the gatekeeper on teh island thay teleport you under the water at 21_25.

and as for bridges, think of a bridge as a tunnel. you can walk under he bridge, and you can walk ontop of it, most peoples fixes (as of the writeing of this) for bridges was to just bring the bottom floor up to the hight of the bridge, there for makeing it so you couldend walk under the bridge.
fflam is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:01.