Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 07.09.2005, 16:58   #1
red
Архивный участник
 
Join Date: Sep 2005
Posts: 15
Default geodata my share

thats all my work i have done so far... dont complain about shitty php code -> feel free to make it better and share it with others! also dont pm me!
if u got a question -> ask here.

im giving it out since i think l2off got no future - my opinion, and im starting to work on l2j...

some explainations and theory...

i have seen that many ppl do application to generate geodata 'on the fly', i dont think its a good idea, it will be complicated to code and even if u try to create map grid-only based as result u will have hell buggy map and if u try to create 64 or 3type(flor) header map based it will couse great load to server... thats why i made it sql based (to clean up 0,64 and 3type header)

attachments:
- sql-geodata.rar is the empty mysql database
- load.php loads existent geodata into sql
- check.php calculate new header
- write.php write new map from sql
- flat_flors_fix.php not done, grid only based - allow to change existent data into solid area or bridges (if this one dosnt work i got somewhere older version)
- load-l2j.php a sample script to load heights from l2j dump, decompress the bin file with winrar first!

how to calculate bridges height -> ((ingame_height*2)/16-1)=> remove after point number and do this -> *16+1
this formula will give u a height that have to be used in geodata

flat_flors_fix.php does work - parttly, after fucking around with it, i got an idea to use pictures to generate map, theory:
1024x1024 bmp will allow to create 1 layer of geodata, 1pixel=1subgrid, different colors will allow to define height; such script should allow for example to load bmp generated from l2j, without bridge and lower flors but those r simple to add
i think there is no need for further explanation?

later i will post my theory about client side bmp textures..

sry for my bad eng.
red 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 16:06.