PDA

View Full Version : [SHARE] Geodata Convertion Tool


Stazis
21.09.2006, 03:47
Ok. This must be my biggest share since C1 L2Admin HOWTO documents on RZ. Long time ago ...
Hope this program will make your lives easier.
This is not final release and it still have some bugs.
Please do not ask me questions on how it works or what settings you should use. I suppose that Hints explanations are enought to understand.

Known buglist
1. Possible troubles with some bridges (western bridge from Giran to fields and around Angel waterfalls also Rune Region bridges)

Updates List:
v0.93
- Lineage Map 3D viewer integrated.
(there are no changes in converting algorithm - so do not regenerate your geodata if you already did it with v0.922)

ViewPortal Window controls:
Left Mouse down and drag - forward and back
Right Mouse downa and move left-right - turn scene around
Both Mouse btn down and move forward and back - get POV up and down

v0.922
- fixed access violation error

v0.92
- fixed problem with 16_10 map
- fixed error with caves entries
- fixed error with wrong Restore Defaults func for stairs vert
- revised memory managment (should exclude possibility of Memory Leak)

v0.91
- terrain heights problem fixed - it is perfect now

I included some tuning fields in it but personally prefer using default settings.
Ok - looks like some settings really needs more explanations

Height Calculation Settings:
1. Max plane angle to XY - this is angle between horisontal XY plane and the surface on which character should be able to stand or go. It is normal i think that character can not stand on surface that have 40 and more degrees - it will just fall down or will not be able to go up due to physics.
So there is no need to generate heights for e.g. vertical or near to vertical surfaces like wall (i'm not saing abt top side of wall - i mean front and back sides of wall here).

2. Ray-tracing accuracy - program builds a map from terrain, models etc just like Unreal engine does it. It means that anything on map consists of triangles. Then every triangle (filtered by 1st setting) is scannes with certain step to find heights. It is done by fast ray-tracing algorithm determining dot of intersection of vertical ray with each triangle.
Since geodata detalization (i mean the smallest block of geodata file) determines height for 16*16 points of world setting this value above 16 is not recommended - couse some of needed heights will be skipped. You can just make this value lower to increase accuracy of scanning the surfaces.

Walkability settings:
after generation of heights are done we need to determine walkability flags for each of them
1. Min Plane angle to XY - this setting is an angle of surface wich will not allow character to move in it's direction. E.g. wall usually have it 90 degrees. But again due to physics character should not be able to walk though barrier having mush lower angle. Mean char cant get up on mountain if hill's angle is 40 degrees and more.
2. Stairs height - easy to understand that stairs is accepted also as wall but with little height and it should be walkable. I found that walkable stairs in Lineage always have height of 8 points. If you increase it too much - barriers of bridges and castlewaals will be walkable too and if you make it too low - stairs will be not walkable.
3. Stairs Vert-PArt Angle - this is just for the case if you found stairs with not 90 degree of front side - in that case decrease this value.

Output settings:
when program finishes with walkability flags calculation all it have to do - optimize and save the data. But. Coordinates of all models given in Unreal packages is not absolute. It is relative to model's pivot point but not to world's 0,0,0 coordinates. So each coordinate should be transformed to take it place in the world on exact map.
1. Use 00 00 blocks - this afects on using 00 00 blocks in output to determine big blocks 128*128 points which have no multilayers and have no much difference of heights and no unset walkability flags on it in 6 bytes instead of outputing 64 16*16 blocks which would take 129 bytes.
It affects on memory usage by server and it's perfomance during runtime.
Do not uncheck it if you have no at least 4Gb of RAM on server.
2. Optimization Different - while generating heights with high accuracy same surface can give several heights for near x,y coordinates - so before saving data program should exclude not needed heights - height of character is about 72 points so it can not stand or move between two heights with differens lower that this value under and top of it. So program just exclused lower of tho heights. e.g you have -3467 and -3487 heights at the same point - then -3487 will be excluded.
3. Height increment - character pawn is an volume with it's own cordinate system. This coordinate system's start is not under the feets. It is on 32 points higher than surface on which character stands. It is char's position.
So char's position is always 32 points higher than height of surface. Server works with char's position - not with surfaces. We should increase every height we output on 32 points.

Many thanks goes to:
Digital - supporting me with ideas while digging .dat files format in far 2005 spring
Vaskes - supporting me with many other stuff and testing it while i was busy with this program
Torune - supporting with ideas of per-triangle tracing instead of per-step-point tracing - this decreased runtime perfomance of program in many times
Livid - giving a lot of help with fixing meshes-rotation problem and cutting ground cells problem (i hope my CSG-BSP-tree solution was also usefull for him)
STREZZ, Aspire and some other developers who inspired me all this time
MY FAMILY of couse - being so patient while looking only at my back for 90% of time =)

P.S. Any donation would be very appreciated. Thanks.
My WMZ are
Z860843335214
E235096803512
R343909594191
U260965927502

or E-Gold - AccNo 3607151

or PayPal - [email protected]

if you can't use a WebMoney but still want to donate - contact me
stazis at ua dot fm

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
GeoConv_v0.93.zip — 331706 байт

[drzoom]
21.09.2006, 03:56
o_O!
Thx Stazis:)
I knew u will share this:)

<rus>
1ый нах
</rus>

soil
21.09.2006, 04:31
Thanks!!Stazis

Rexx
21.09.2006, 04:40
Thanks for the share.

nish
21.09.2006, 04:44
damn real nice tool. thanks for your time you spent making this and most of all for sharing it thanks :)

karabas
21.09.2006, 05:03
Thanks!
Stazis 20WMZ from me.

Sakumi
21.09.2006, 05:05
Awsome stazis ;)

Any paypal? Or just the donation methods above?

Stazis
21.09.2006, 05:23
Awsome stazis ;)

Any paypal? Or just the donation methods above?
updated list with E-gold - i can't use PayPal.
Thanks anyway

hex0id
21.09.2006, 05:24
Wow, didn't even think that you could do that! Thanks a lot.

<rus>
Стазис от души!
</rus>

Domzelan
21.09.2006, 05:25
thx man...

Sakumi
21.09.2006, 06:47
updated list with E-gold - i can't use PayPal.
Thanks anyway

I'll see if I can 'assist' you in the ways listed. If not now, maybe after payday (my server is all of 30 players - so its out of my paycheck ^^)

mytynyk
21.09.2006, 07:08
perfect job man ty

GMan
21.09.2006, 07:34
Looks very nice, thanks

mmm2
21.09.2006, 07:35
big thnx! great job

TheOrder
21.09.2006, 07:36
Awsome share bud i knew u would share it in the end :) !

Luno
21.09.2006, 08:45
When I lunch that converter and open package I get error " '95xx.xx' is not valid floating point value".

hel
21.09.2006, 09:02
Control Panel > Language and regional settings > >
... ... Replace "," to ".".

Ameron
21.09.2006, 09:36
Stazis, WMU plz =)

L2Character
21.09.2006, 12:20
Very, very nice. This is an awesome share. I trust that the entire L2 private world will be extremely grateful for this. Thank you very much.

top-gear
21.09.2006, 12:24
sharing spree ^_^

Darkraven
21.09.2006, 12:54
Who can make a guide for settings?

Stazis
21.09.2006, 13:27
*updated list of WM with WMU and WMR
heh - 5WMZ total for now ... think it is worth to write some settings explanations ...=)

Stazis
21.09.2006, 15:05
Awsome share bud i knew u would share it in the end :) !
It's not the end. =) It is only a start =)

MuNLoK
21.09.2006, 18:17
I will test it now, thank you Stazis :)

Darkraven
21.09.2006, 18:57
Height Increment setting is really needed? For what?

Stazis
21.09.2006, 19:44
it is described in first post what is it needed for.

good news - uploaded new version - triangulation of terrain problem is solved - terrain heights are perfect now. looking at walkability calculation of terrain - smth is still wrong there.

MuNLoK
21.09.2006, 23:57
Fantastic Stazis, really excellent work, thank you very much for this work, and thanks for share it.

BeTePok
22.09.2006, 02:39
Big thz Stazis
Стазис сори денег нету, а так охото дать, за столь хорошо проделаную работу. Запостил на 99нетс. Еще раз биг сенк

AHTUKULLEP
22.09.2006, 08:40
lunch that program and open map file I get error " '95xx.xx' is not valid floating point value but i change '95xx.xx' fo '9567' and the pogramm good ride map BUT in finish i have new error '*******' is not valid floating point value! Help me PLZ

Sorry my english!!

AHTUKULLEP
22.09.2006, 08:42
/RUS/
Вобшем вот проблема, грузу мапу и тут же эррор '95xx.xx' is not valid floating point value, я заменяю значение на 9567 и прога всёже грузит мапу, однако в конце она мне выдаёт такуюже ошибку, ну только значение разное в зависимости от мапы!!!! ХЕЛП

Darkraven
22.09.2006, 09:11
Control Panel > Language and regional settings > >
... ... Replace "," to ".".

AHTUKULLEP
22.09.2006, 09:12
Control Panel > Language and regional settings > >
... ... Replace "," to ".".

I undestend you....

hel
22.09.2006, 09:13
AHTUKULLEP:
Зайди в панель управления, язык и региональные стандарты, во вкладку "региональные параметры", в самом верху есть выпадающий список с языками, справа кнопка "настройка...", тыкаешь её и в поле "разделитель дробной части" ставишь "." вместо ",", жмешь ок везде и вуаля... ГеоКонвертер стал генерить карты без проблем. :)

If you have a problem with floating value in GeoConv, then you must go into the control panel, Language and regional standarts, in the top place, where located list of countries, click Configure on the right place of list, next look at the first text field, where exist ",", change "," to "." and click ok. After that GeoConv will be worked normally.

PS: It's very hard to translate, but i think you're all understand that. :D

AHTUKULLEP
22.09.2006, 09:16
OK sorry ALL WORK!!! ^) SORRY plzpzlpzl ^)

radio
23.09.2006, 22:40
generated 19_16 geo >>>>> error.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
error.PNG — 17457 байт

Sakumi
23.09.2006, 23:07
Ewu C5 ;)

(random-text-to-get-10-characters)

radio
24.09.2006, 02:03
and more error

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
error2.PNG — 10009 байт

hel
24.09.2006, 09:10
Mithril Mines, Abandoned Coal Mines, Hunters Village\Oren tunnel, Hardins Academy cave, North exit of Oren, Imperial Tomb and many and many geodatas with tunnels is bugged (invisible walls on the start of tunnels\mines\caves), also my players cannot pass to Newbie Guide at Orc's start place...
I believe, GeoConv make SAME walkability segments on all layers on same coordinates?

Zil
24.09.2006, 10:57
2 Stazis
Если есть кошель на paypal, сообщи, деньжат кину! Прога классная, готов поддержать материально (сколько смогу) твой проект. (за неимением WebMoney)

sys[antaris]
24.09.2006, 13:28
2 Stazis
Если есть кошель на paypal, сообщи, деньжат кину! Прога классная, готов поддержать материально (сколько смогу) твой проект. (за неимением WebMoney)

Я тоже кину, за то что не заставил изобретать велосипед ;)

Dainishi
24.09.2006, 13:28
Fist of all, thank you very much Stazis! This is a great tool.

About the invisible walls:

If you use the Geoconv v0.9 to generate the map 24_12, there are no invisible wall on Abandoned Coal Mines entrance.

Using Geoconv v0.91, the map generated has the invisible wall on the entrance.

But, generating map 25_11 with both versions of program end up with a invisible wall on Imperial Tomb entrance.

I only check those 2 maps so far, don't know if this is true for other entrances or bridges.

Maybe this can help Stazis figure out what is causing those invisible walls.

PS: When a click on Reset Defaults, the value of Stairs Vert-Part Angle changes from 90 to 0.3. This happens with all you guys???

Darkraven
24.09.2006, 13:36
Yes, for me too.

Zil
24.09.2006, 18:45
;68368']Я тоже кину, за то что не заставил изобретать велосипед ;)

А мы уже начали изобретать :)
Написали генератор, но пока лишь нулевого слоя (не поверхностного, а самого нижнего) :) Ну раз тут такое, то свое пока что отложим :) посмотрим что будет


Thnx. Very-very good tool

gpadmin
27.09.2006, 06:32
Thank you man, great work
Respect Stazis

Stazis
27.09.2006, 23:44
ok guys i was away for 5 days - and was really surprised with stupid error i did implementing terrain walkability.=)
i already fixed this issue and it was not present in 0.9
now i'm checking abt Imperial Tomb issue and hope will upload new version till morning.

да пэйпэл то не проблема заиметь, вот тока что с ним потом делать. ладно на всяк случай вот paypal - [email protected]

MuNLoK
27.09.2006, 23:52
fantastic Stazis :) thanks

FidoW
28.09.2006, 01:36
I will be waiting the next version to upload a new pack :D

Stazis
28.09.2006, 01:53
btw Dainishi - Imperial Tomb i believe is 25_15 map not 25_11 and 0.9 version had not given invisible wall - it is totally problem of 0.91 ver walkability issue.

Stazis
28.09.2006, 04:42
updated to 0.92 (see first post for fixes list)

kin
28.09.2006, 06:50
Updates List:
v0.92
- fixed problem with 16_10 map
- fixed error with caves entries
- fixed error with wrong Restore Defaults func for stairs vert
- revised memory managment (should exclude possibility of Memory Leak)

Should we change Z coordinates back to normal, when creating the new Geo?

TheOrder
28.09.2006, 07:34
Should we change Z coordinates back to normal, when creating the new Geo?
Yep

GJ Stazis !

kin
28.09.2006, 08:54
Does anyone have original coordinates for Zigurit teleporter? :)

FidoW
28.09.2006, 12:48
I am trying to generate all geos with the last version but i have an error in some of maps... when tool is "Calculating walkability... 99%" ... i get this message... and cant continue:

With 18_14
Access violation at address 00489A01 in module 'GeoConv.exe'. Read of address 00000000.

With 17_22
Access violation at address 00487E71 in module 'GeoConv.exe'. Read of address 77D3EBD7.

L2Character
28.09.2006, 13:28
yes, I am getting the same error Fidow.

FidoW
28.09.2006, 13:36
I try to generate the same maps in others computers and identical problem.

midnight
28.09.2006, 15:25
Thanks stazis!!!

Stazis
28.09.2006, 18:16
ok - i got this error too
i'm still not sure if i should upload new version here before testing it myself on all maps or after .... i mean thanks to all for testing and reporting. working on fixing that Access violation

FidoW
28.09.2006, 18:57
Maps with "Access violation" error...

17_22 - 18_14 - 19_13 - 21_15 - 24_20 - 25_12 - 25_18

gurkanhu
28.09.2006, 19:43
first , thank you stazis for this great program :)

+ 21_15 - 22_15 - 22_16 - 22_19 - 23_14 for me :)

Stazis
28.09.2006, 20:15
updated - fixed access violation error

bigfoot
29.09.2006, 07:08
error in v0.922
---------------------------
Geo Data Convertor
---------------------------
Access violation at address 00405B20 in module 'GeoConv.exe'. Write of address FFFFFFF7.
---------------------------
ОК
---------------------------

generate 15_21 map.

Stazis
01.10.2006, 02:21
bigfoot - your report not confirmed - worked well with my 15_21

uploaded new version - with integrated 3D map view function
there are no any changes in geo converting mechanism yet - so do not regenerate your geos.

hel
01.10.2006, 06:03
Hard.: Celeron 1300 (100mhz) + 512 sdram (100mhz) + radeon 9000...
Soft.: XP Pro SP2 + DirectX9.0c + Latest video drivers.
I think it's not correct...

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
toiview.jpg — 15123 байт

Domzelan
01.10.2006, 06:14
Hel share your viewer plz :) if u can :)

hel
01.10.2006, 06:43
My? o_O
It's viewer by Stazis. See 1st post, he was attach it. :)
Place here your screenshot... Maybe I not alone with that bug(?)..

Stazis
01.10.2006, 17:09
screen is too small - cant see exact problem you have
you mean terrain not complete? or what?

hel - is this notebook configuration? i mean is it Radeon 9000 for mobile? to be more exact is it Samsung notebook?

hel
01.10.2006, 17:42
Nope, it's desktop config.
Yes. Not full terrain and trees flying.
Many surfaces (for example in toi) not shows or transparent...

I don't know why PP resize screenshot.
Now I upload screenshot in zip.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
toiview.zip — 21628 байт

Stazis
01.10.2006, 18:20
terrain not complete confirmed for Radeon 9000 - will see what i can do
as for surfaces as i understood it is only in non-wireframe mode
related to Z-buffer usage - i'm not sorting models for drawing in deep order.
see - i'm not writing Game Engine =) i'm using viewer to define what's wrong can be with geoconversion. if there will be some extra time i'l pay some attention to Z-order sorting of triangles and maybe for building own BSPtree for correct frustrum - of couse it will make it much more higher with perfomance but as i said it is not needed atm.

Sigfried
01.10.2006, 20:41
I have on some places as ToI or Cruma Tower problem with moobs. Moobs dont walk thru wall but they can shoot thru walls. It is normal? I think isnt.

Is problem in geodata or server code?

thanks

hel
01.10.2006, 20:57
Maybe pathnode?

Sigfried
01.10.2006, 21:11
Maybe pathnode?

U used humordwarf tool for generataion of pathnode.

Have someone same problem?

zcold
02.10.2006, 06:41
U used humordwarf tool for generataion of pathnode.

Have someone same problem?

Mobs can't pass? lol. It's not a geo problem. It's pathnodes. Re-make file with HD tool or any other tool, and all will be ok.

Sigfried
02.10.2006, 12:07
Mobs can't pass? lol. It's not a geo problem. It's pathnodes. Re-make file with HD tool or any other tool, and all will be ok.

You dont understand my problem :)

I am talking about walls in ToI or Cruma Tower. Moobs cant go thru walls it is good :) but they shoot thru walls.

My question was, if it is geo problem or problem in server code.

Domzelan
02.10.2006, 12:17
Strazis - can u make viewer rotateable in x and y ?

rus: Чтобы можно было камеру вертеть тоесть под любым углом смотреть на мапу? Круто бы было сделать там же просмотр геодаты (dat файла) :) тузла получилась бы 3 в 1 :)

MuNLoK
02.10.2006, 16:00
The retail PathMaker work fine

Aspire
02.10.2006, 16:03
The retail PathMaker work fine

yep, but node that he generate isnt good, coz geo have many trash in layers.

GeNtOo
06.10.2006, 11:18
x.x3 not working for me at all select any map and got 95xx.xx not a valid flaoting point .
using default values.


hmm converter don't like real numbers , like only integers.
then i change map restitution to integer it start to work
but on the end get same error just whit other numbers

kin
06.10.2006, 14:34
Use search! It was explained 1000000000 time how to fix your error!

Sakumi
08.10.2006, 00:18
Use search! It was explained 1000000000 time how to fix your error!

In the time it took to write your post you could have explained it.

I guess your time was more well spent being rude ;)

zlopi
08.10.2006, 16:25
In catacombs a failure under the ground

http://rapidshare.de/files/35977080/001.JPG.html
http://rapidshare.de/files/35977253/002.JPG.html

Onepex
16.10.2006, 08:19
I'm trying to re-generate Rune (21_16), but I keep getting the error:

Exception processing package ../StacicMesh/StaticMeshActor925.usx
Cannot open file "E:\Lineage\StaticMeshes\StaticMeshActor925.usx". The system cannot find the file specifiied
I've talked to all my friends which also has fully updated C5, but they dont have StaticMeshActor925.usx either.

Any ideas?

Cheers for a good program btw.

Stazis
16.10.2006, 12:32
you will have to wait - tool is not fully compatible with C5 files.
anyway thanks for reporting this error.

Aspire
16.10.2006, 17:10
you will have to wait - tool is not fully compatible with C5 files.
anyway thanks for reporting this error.

any words from you sounds like a song :P
better have fine c4 geo than some strange c5.

mcrabben7
16.10.2006, 19:07
any words from you sounds like a song :P
better have fine c4 geo than some strange c5.

Not if you're running a C5 server :P

Aspire
16.10.2006, 20:51
Not if you're running a C5 server :P

if you run it, you just cant use this geos :D

Onepex
16.10.2006, 21:21
if you run it, you just cant use this geos :D
We already are ;) Only problem is Rune Castle Town (21_16). All other generated works like a charm.

mcrabben7
17.10.2006, 03:05
19_16 has issues for me, since it changed from C4. StaticMeshActor.usx I think it was.

dinesat4
19.10.2006, 05:13
ehm... another mirror?¡

moon
24.04.2007, 08:17
hi all have any one some problems whit the cata's geodata that hi make's whit this tool ?

MuNLoK
24.04.2007, 12:47
stazis... have you some new info about your new version? :)

The thread where you was talking about the new version was deleted.

~Marquis~
24.04.2007, 20:19
http://img48.imageshack.us/img48/6041/interludemapnd6.jpg
I have just made turned quickly the old C4 map into C6, dunno if this was done before.

FidoW
24.04.2007, 20:49
http://img48.imageshack.us/img48/6041/interludemapnd6.jpg
I have just made turned quickly the old C4 map into C6, dunno if this was done before.
First isnt C6, is Interlude

And thats bad, Interlude Map have too muchs new that the zones you changed...

nnightmare
25.04.2007, 04:48
lots of areas change in interlude due to the new fortresses wich are around the world.. means spawns, geodata and other things change in each area where there is a fort..

~Marquis~
25.04.2007, 20:21
here is a new version totally remade based on interlude (for ya fidow) map.
http://img61.imageshack.us/img61/5352/interludemapps9.jpg

FidoW
27.04.2007, 02:01
here is a new version totally remade based on interlude (for ya fidow) map.
http://img61.imageshack.us/img61/5352/interludemapps9.jpg

Koner already make it 3 weeks ago

https://postpacific.loc-online.com/forums/showthread.php?p=83134#post83134

bfgsnake
15.06.2007, 13:50
reshare Geodata Convertion Tool please

TheOrder
15.06.2007, 15:16
Well it works fine ! It's shared on forum , don't understand what else you need ?