Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 10.05.2005, 08:53   #51
yellowperil
Архивный участник
 
Join Date: Mar 2005
Posts: 114
Default

is each layer set at a specific height then ?
if thats the case its should be a lot easier to implement.
yellowperil is offline  
Old 10.05.2005, 08:56   #52
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

yes i'd presume to think that way.
and 40 00 "maybe" an indictor to state
for layer01 it's aa bb cc dd
for layer02 it's ee ff gg hh
....
which would probably make more sense...
and starting from 41 00 it's all layering info.
just need someone to comfirm with me if this is the case
if so... we could make any kind of maps already
Digital is offline  
Old 15.05.2005, 06:39   #53
Rhea
Архивный участник
 
Join Date: Apr 2005
Posts: 8
Default

Okay... so... the l2 world is nothing but a big sandwich.
I've got a couple questions.
First off, they've said outright that the whole game is based off the unreal engine.
So I'm wondering, what PARTS of the engine did they use, and what parts seem modified.
The second thing is, aren't there map makers for unreal? Although I doubt they're anywhere as complex as the lineage world is, could an editor, or an adjusted editor be used to modify at least one section of the mapworld?
I'm wondering also about object placements.
Could you actually call forth various objects and place them however you please?

Say for example, you wanted to make a 'test' area in one of the unused map sections, and made what might be a 'garden of stone' useing say... various objects, and placed them around like a garden.
Is it also possible to reuse objects, but give them different textures, or would they have to be the same no matter what.
(example: put a fountain from the forgotten temple in, but change it's surface to look stony)
One other thing I don't know if you guys have addressed,
Not only is there 'water damage', but in c2 I belive people take damage from fire (blazeing swamp).
Is there a code for this in the system?
Rhea is offline  
Old 15.05.2005, 07:47   #54
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Not sure if that would work because we don't have the libraries for the items they used to make the maps.

Usually, if you were able to open up the editor and make a certain area, you would need the textures and items you wanted to place in it. Just imagine it like the NeverWinter Nights world builder. You'll need those objects to place on the terrain and make sure they all have the right collision boxes attached to them.

As of now, we can go into the editor and edit the textures for the weapons and stuff because the item is basically the same - we're just adding the different skin to it. Without the libraries, I think we're pretty much screwed. :?
flakka is offline  
Old 22.05.2005, 16:31   #55
Dubie
Архивный участник
 
Join Date: Mar 2005
Posts: 133
Default

lol nvm Dig posted the code here
my bad

Peace,
Dubie
Dubie is offline  
Old 23.05.2005, 06:36   #56
yellowperil
Архивный участник
 
Join Date: Mar 2005
Posts: 114
Default

well heres some news, I wrote an app that can create a bmp from the info stored in a conv.dat

now if we take 00 00 as the base grayscale image, each and every map should contain 256x256 00 00 entries. Stop me if I am wrong.....

I ran my app, and discovered this IS NOT the case, every file I have tried so far does not contain 256x256 00 00 entries. I may have missid something, but I dont think so.

This could either mean that the base 00 00 layer is made up of more than just 00 00 ?

Any ideas would be nice....
yellowperil is offline  
Old 24.05.2005, 00:40   #57
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

Ok - wrote the code able to parse any geodata file to structures

Conclusion - only 3 types of structures are present

00 00 - following by two words (meaning of which is known already)
40 00 - following by 64 words (think 8 groups of 8 words)
>40 00 - following by substructures
Substructures are started with 01 00, 02 00 .... 09 00 following by 1,2...9 words correspondently

Words are height coordinates.

any ideas what 40 00 structure describes?
Stazis is offline  
Old 24.05.2005, 02:33   #58
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

yes, that's what i've came to conclusion as well stazis.
just that nobody had time to help proof my logic :S
imo 40 00 is definition for spliting the rest of the height into different layer slots.
that's y their data is actually stacked
e.g AA BB BB CC CC DD DD EE ....
and that'd make the layer system work
e.g 41 00 01 00 where 01 00 is AA BB BB CC
and of cuz, AA BB BB CC is the floor and ceiling for that layer
and that's what geodata should be.

hopefully someone would proof this theory. derived it weeks ago :S
Digital is offline  
Old 26.05.2005, 09:18   #59
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

here is my analyser - i'm not the programmer =)

[php:1:5f0e77eb5e]<?php
$m="25_12";
$i=fopen($m."_conv.dat","rb");
$o=fopen($m.".dat","w+b");
$h=fread($i,18);
fwrite($o,$h);
// init the counters
$zero=0;
$forty=0;
$un=0;
$fourx=0;
$maxd=0;
while (!feof($i)) { // start reading
$tr=fread($i,1);
$tr2=fread($i,1); // first indictor
$d=ord($tr)+ord($tr2)*256; //convert 2 bytes to word
if ($d>$maxd) $maxd=$d; // remember if is maximal indictor
switch($d) {
case 0: // 00 00
$zero++;
$data=fread($i,4); // read xx xx yy yy
fwrite($o,$tr);
fwrite($o,$tr2);
fwrite($o,$data); // write to output
break;
case 64: // 40 00
break;
$forty++;
$fr=fread($i,128); // read 64 bytes following
fwrite($o,$tr);
fwrite($o,$tr2);
fwrite($o,$fr); // write to output
break;
default: // 41 00 and ++
break;
if ($d>64 && $d<512) {
$fourx++;
$j=0;
fwrite($o,$tr); // write to output
fwrite($o,$tr2);
while ($j<$d) { // reads subindictor and its data until indictor count is not reached
$dr1=fread($i,1); // read subindictor
$dr2=fread($i,1);
$dr=ord($dr1)+ord($dr2)*256;
if ($dr>10) {echo "DR>10"; exit(); // if subindictor >10 - FAIL
}
$sd=fread($i,$dr*2);
fwrite($o,$dr1);
fwrite($o,$dr2);
fwrite($o,$sd);
$j=$j+$dr;}
} else {
echo "Unknown sig: ".$d."\n"; // raise unknown indictor failure
echo $zero." ".$forty." ".$fourx." ".$un;
exit();
}
break;
}
}
echo $zero." ".$forty." ".$fourx." ".$un."\n"; // output summary info
echo "Maximum descriptor ".$maxd;
fclose($i);
fclose($o);
?>[/php:1:5f0e77eb5e]
Stazis is offline  
Old 26.05.2005, 10:50   #60
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

http://xx.xx6.2xx.xx4/~digital/analyzer.php
Digital is offline  
Old 26.05.2005, 20:57   #61
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

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
Digital is offline  
Old 27.05.2005, 11:34   #62
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

current development
http://c2hybrid.sceneoracle.com/geodata/analyzer.php
Digital is offline  
Old 15.06.2005, 13:31   #63
Awhite
Архивный участник
 
Join Date: May 2005
Posts: 13
Default

Digital, where could i get the source of that last php file ?
Awhite 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 22:21.