![]() |
|
|
#1 | ||
|
Архивный участник
Join Date: Jun 2005
Posts: 258
|
Quote:
Quote:
|
||
|
|
|
|
#2 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
seems quite clear cut on this for me O_o;
maybe u should go look thru the geodata first. |
|
|
|
|
#3 | |
|
Архивный участник
Join Date: Jun 2005
Posts: 258
|
Quote:
|
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
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. |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jun 2005
Posts: 46
|
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 |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2005
Posts: 555
|
++++++++++++++ kudos for fflam there
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Apr 2005
Posts: 354
|
Great post man.
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Apr 2005
Posts: 196
|
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? |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jun 2005
Posts: 46
|
some people have ben askign me about my work with geodata.. so i though i would bump the post
|
|
|
|
|
#10 | ||
|
Архивный участник
Join Date: Oct 2005
Posts: 153
|
Quote:
Quote:
Also if some1 can answer RIane question would be really good. Thanks this teached me a lot =) |
||
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jun 2005
Posts: 46
|
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. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|