Author Topic: [Share] L2D Geodata for aCis Project  (Read 16629 times)

Offline Kraker

  • Cave Spider
  • *
  • Posts: 158
  • Awards Customer crew on duty !
Re: [Share] L2D Geodata for aCis Project
« Reply #15 on: December 29, 2014, 11:50:50 AM »
I've already read it, but I still have doubts...
"When you are crossing the street look both ways I might fastener eyes before seeing its end." - Forgotten swordsman of feudal Japan

Offline Hasha

  • Inner Circle
  • Ant Queen
  • *
  • Posts: 1.820
  • Super Trooper
  • Awards Searched by gold diggers, loved by Mama Tryskell. If your ideas were electricity, you could probably power a city. Bring good advices or reports. H for Hasha
Re: [Share] L2D Geodata for aCis Project
« Reply #16 on: December 29, 2014, 01:26:50 PM »
I've already read it, but I still have doubts...
Well, you can check the code by yourself.

PathCheckers - canMove check....code bellow represents the same functionality of code.

L2D:
Code: [Select]
			// obstacle found, return
if ((GeoData.getInstance().getNsweNearest(gpx, gpy, gpz) & direction) == 0)
return new GeoLocation(gpx, gpy, gpz);

L2J/L2OFF:
Code: [Select]
			// check axis directions
byte nswe = GeoData.getInstance().getNsweNearest(gpx, gpy, gpz);
switch (direction)
{
case GeoStructure.CELL_FLAG_N:
if ((nswe & GeoStructure.CELL_FLAG_N) == 0)
return new GeoLocation(gpx, gpy, gpz);
break;

case GeoStructure.CELL_FLAG_S:
if ((nswe & GeoStructure.CELL_FLAG_S) == 0)
return new GeoLocation(gpx, gpy, gpz);
break;

case GeoStructure.CELL_FLAG_W:
if ((nswe & GeoStructure.CELL_FLAG_W) == 0)
return new GeoLocation(gpx, gpy, gpz);
break;

case GeoStructure.CELL_FLAG_E:
if ((nswe & GeoStructure.CELL_FLAG_E) == 0)
return new GeoLocation(gpx, gpy, gpz);
break;

case GeoStructure.CELL_FLAG_N_AND_W:
byte nsweN = GeoData.getInstance().getNsweNearest(gpx, gpy - 1, gpz);
byte nsweW = GeoData.getInstance().getNsweNearest(gpx - 1, gpy, gpz);

boolean nw = (nswe & GeoStructure.CELL_FLAG_N) != 0 && (nsweN & GeoStructure.CELL_FLAG_W) != 0;
boolean wn = (nswe & GeoStructure.CELL_FLAG_W) != 0 && (nsweW & GeoStructure.CELL_FLAG_N) != 0;

if (!nw && !wn)
return new GeoLocation(gpx, gpy, gpz);
break;

case GeoStructure.CELL_FLAG_N_AND_E:
nsweN = GeoData.getInstance().getNsweNearest(gpx, gpy - 1, gpz);
byte nsweE = GeoData.getInstance().getNsweNearest(gpx + 1, gpy, gpz);

boolean ne = (nswe & GeoStructure.CELL_FLAG_N) != 0 && (nsweN & GeoStructure.CELL_FLAG_E) != 0;
boolean en = (nswe & GeoStructure.CELL_FLAG_E) != 0 && (nsweE & GeoStructure.CELL_FLAG_N) != 0;

if (!ne && !en)
return new GeoLocation(gpx, gpy, gpz);
break;

case GeoStructure.CELL_FLAG_S_AND_W:
byte nsweS = GeoData.getInstance().getNsweNearest(gpx, gpy + 1, gpz);
nsweW = GeoData.getInstance().getNsweNearest(gpx - 1, gpy, gpz);

boolean sw = (nswe & GeoStructure.CELL_FLAG_S) != 0 && (nsweS & GeoStructure.CELL_FLAG_W) != 0;
boolean ws = (nswe & GeoStructure.CELL_FLAG_W) != 0 && (nsweW & GeoStructure.CELL_FLAG_S) != 0;

if (!sw && !ws)
return new GeoLocation(gpx, gpy, gpz);
break;

case GeoStructure.CELL_FLAG_S_AND_E:
nsweS = GeoData.getInstance().getNsweNearest(gpx, gpy + 1, gpz);
nsweE = GeoData.getInstance().getNsweNearest(gpx + 1, gpy, gpz);

boolean se = (nswe & GeoStructure.CELL_FLAG_S) != 0 && (nsweS & GeoStructure.CELL_FLAG_E) != 0;
boolean es = (nswe & GeoStructure.CELL_FLAG_E) != 0 && (nsweE & GeoStructure.CELL_FLAG_S) != 0;

if (!se && !es)
return new GeoLocation(gpx, gpy, gpz);
break;
}
« Last Edit: December 29, 2014, 01:29:16 PM by Hasha »
Hasha, DreamLand core/datapack developer.

"Genius is an idiot, who does't know that problem cannot be solved and he solves it."
"Knowledge gives the feeling of beeing smart to dumb people and beeing dumb to smart people."
"Nobody remains virgin, live fucks everyone."
"Time wasted with a joy is not wasted time."
Dreams: "When they come true, you don't know what to do."

Offline dandilo

  • Dân
  • Goblin
  • *
  • Posts: 52
  • Vi veri veniversum vivus vici.
  • Awards Customer crew on duty !
Re: [Share] L2D Geodata for aCis Project
« Reply #17 on: December 29, 2014, 03:17:41 PM »
What is the minimum configuration to start the server with the new code of geodata?

Code: [Select]
@echo off
title aCis gameserver console
:start
REM -------------------------------------
REM Default parameters for a basic server.
java -Xmx512m -cp ./libs/*; net.sf.l2j.gameserver.GameServer
REM
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin have restarted, please wait.
echo.
goto start
:error
echo.
echo Server have terminated abnormaly.
echo.
:end
echo.
echo Server terminated.
echo.
pause

Offline SweeTs

  • ╭∩╮(︶︿︶)╭∩╮
  • Fanatic Fan
  • Core
  • *
  • Posts: 3.586
  • You're never too old to learn something stupid.
  • Awards Do what you want 'cause a pirate is free, you are a pirate ! Searched by gold diggers, loved by Mama Tryskell. Bring good advices or reports. Crazy Banana.
Re: [Share] L2D Geodata for aCis Project
« Reply #18 on: December 29, 2014, 03:27:25 PM »
2G at least, the server is using 1,2G atm. With 1,5G the server should also launch, but it's minimum :P
« Last Edit: December 29, 2014, 03:33:00 PM by SweeTs »

Offline dandilo

  • Dân
  • Goblin
  • *
  • Posts: 52
  • Vi veri veniversum vivus vici.
  • Awards Customer crew on duty !
Re: [Share] L2D Geodata for aCis Project
« Reply #19 on: December 29, 2014, 03:34:39 PM »
Code: [Select]
java -Xmx512m -cp ./libs/*; net.sf.l2j.gameserver.GameServer
REM
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Xmx3072m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts



I do not understand where I am going wrong.

Offline hqsly

  • Customer
  • Elder Prairie Keltir
  • *
  • Posts: 39
  • Awards Customer crew on duty !
Re: [Share] L2D Geodata for aCis Project
« Reply #20 on: December 29, 2014, 03:59:17 PM »
Code: [Select]
java -Xmx512m -cp ./libs/*; net.sf.l2j.gameserver.GameServer
REM
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Xmx3072m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts



I do not understand where I am going wrong.

Java must be x64 version!!!

-Xmx2G

Offline SweeTs

  • ╭∩╮(︶︿︶)╭∩╮
  • Fanatic Fan
  • Core
  • *
  • Posts: 3.586
  • You're never too old to learn something stupid.
  • Awards Do what you want 'cause a pirate is free, you are a pirate ! Searched by gold diggers, loved by Mama Tryskell. Bring good advices or reports. Crazy Banana.
Re: [Share] L2D Geodata for aCis Project
« Reply #21 on: December 29, 2014, 04:44:20 PM »
No comment, you did not change the ram value at all and use like 1G, 2G instead of 1024m and so on :D

Code: [Select]
java -Xmx512m -cp ./libs/*; net.sf.l2j.gameserver.GameServer
« Last Edit: December 29, 2014, 04:49:38 PM by SweeTs »

Offline Hasha

  • Inner Circle
  • Ant Queen
  • *
  • Posts: 1.820
  • Super Trooper
  • Awards Searched by gold diggers, loved by Mama Tryskell. If your ideas were electricity, you could probably power a city. Bring good advices or reports. H for Hasha
Re: [Share] L2D Geodata for aCis Project
« Reply #22 on: December 29, 2014, 05:12:11 PM »
You guys should read the "Readme.txt" in "geodata" folder.

In short:
32b Windows/JRE -> Due to Windows architecture you can't set more than 1,4GB JVM heap size. So you are unable to run server with full geodata. If you select only several geodata regions, you can run server with 1-1,4GB heap size.

32b Linux/JRE, 64b Windows/Linux/JRE -> you can run server with full geodata, but you must set JVM heap size to 1,8GB+. Suggested at least 2GB.
Hasha, DreamLand core/datapack developer.

"Genius is an idiot, who does't know that problem cannot be solved and he solves it."
"Knowledge gives the feeling of beeing smart to dumb people and beeing dumb to smart people."
"Nobody remains virgin, live fucks everyone."
"Time wasted with a joy is not wasted time."
Dreams: "When they come true, you don't know what to do."

Offline Trance

  • Everybody lies
  • Customer
  • Oel Mahum Witch Doctor
  • *
  • Posts: 555
  • Awards Customer crew on duty !
Re: [Share] L2D Geodata for aCis Project
« Reply #23 on: January 04, 2015, 11:30:55 AM »
i think its better to Convert the depmax geodata (tested its better from this stupid geodata)

Not nice to call somebody else's work this way. Anyways; I've used l2service.com's geodata, a converted version, and I had sweet results in-game.

Offline xlolx

  • Fox
  • *
  • Posts: 27
  • Awards Customer crew on duty !
Re: [Share] L2D Geodata for aCis Project
« Reply #24 on: January 07, 2015, 08:09:57 PM »
I try akumu and this L2D too i test only 1 area TOI in baium room everything is good but in TOI12 i can wall hit mob's with archer and mob hit me mage skills from wall too. I try with another character and i can wall hit him... btw not everywhere just in most of the area TOI12 i didn't check other floors... What i can do for that any idea???

Offline Rootware

  • Inner Circle
  • Orfen
  • *
  • Posts: 2.116
  • Awards Customer crew on duty ! Searched by gold diggers, loved by Mama Tryskell. Bring good advices or reports.
Re: [Share] L2D Geodata for aCis Project
« Reply #25 on: January 07, 2015, 08:59:35 PM »
In the TOI no walls. At least in the sense how they look like in Giran.
Code: [Select]
<html><head><body>Трискел:<br>
Трискел не говорит с дураками, которые не знают свою профессию!
</body></html>

Offline xlolx

  • Fox
  • *
  • Posts: 27
  • Awards Customer crew on duty !
Re: [Share] L2D Geodata for aCis Project
« Reply #26 on: January 09, 2015, 02:55:54 AM »
So what you mean??? I can't avoid TOI wall hit???

Offline Tryskell

  • The cute dwarf
  • Administrator
  • Core
  • *
  • Posts: 3.773
  • Awards You don't like me, but I got the power. Forever dwarf.
Re: [Share] L2D Geodata for aCis Project
« Reply #27 on: January 09, 2015, 02:57:23 AM »
It's not a problem with aCis, it's a problem with geodata. If the geodata sucks, no matter how good the geoengine is, it won't do miracles for you.

You got some work, Rootware :dw2_14:.
« Last Edit: January 09, 2015, 04:08:43 AM by Tryskell »
Code: [Select]
<html><body>Triskel:<br>
Triskel does not speak with foolish fellows who do not know their profession!
</body></html>

Offline Rootware

  • Inner Circle
  • Orfen
  • *
  • Posts: 2.116
  • Awards Customer crew on duty ! Searched by gold diggers, loved by Mama Tryskell. Bring good advices or reports.
Re: [Share] L2D Geodata for aCis Project
« Reply #28 on: January 09, 2015, 03:59:57 AM »
So what you mean??? I can't avoid TOI wall hit???

Need rework all floors and add the real walls with real height of wall. Currently uses "lift" model. It's not good, because she stops only movements.

Me need tests. When i will find free time for this i check my idea with the Hasha geo engine. If it will be the solve of this problem then i going start to big geo rework. :D

It's not a problem with aCis, it's a problem with geoengine. If the geodata sucks, no matter how good the geoengine is, it won't do miracles for you.

You got some work, Rootware  :ork2_19:

It's not geo's problem. Geo engine can not create something what was missed from geodata.  :dw2_14:
« Last Edit: January 09, 2015, 04:02:59 AM by Rootware »
Code: [Select]
<html><head><body>Трискел:<br>
Трискел не говорит с дураками, которые не знают свою профессию!
</body></html>

Offline Tryskell

  • The cute dwarf
  • Administrator
  • Core
  • *
  • Posts: 3.773
  • Awards You don't like me, but I got the power. Forever dwarf.
Re: [Share] L2D Geodata for aCis Project
« Reply #29 on: January 09, 2015, 04:09:13 AM »
I fixed my previous answer, I was obviously talking about geodata ;p.
Code: [Select]
<html><body>Triskel:<br>
Triskel does not speak with foolish fellows who do not know their profession!
</body></html>