Jump to content

Recommended Posts

Posted

Hello! its not really lineage question but im sure it fits best into that section.

Im currently developing some simple lineage like mmo but i wonder how can i replicate the movement on server, how do geodata work in l2? I got obstacles in my map but right now server does not know the map and simply moves the character to the destination place with sraight line.

SO thats question for someone who digged in geodata, how does it really work? How do server side confirm paths and keep the synchronization with all clients?

Posted

The client sends information to the server, including the X, Y, Z coordinates, and the server sends them to the other clients.

Posted (edited)

Well thats not what i was asking for :D
I know that client requests XYZ location but server has to analyze it, find obstacles or find out if someone tries to move through a wall and thats role of geodata. I rather wanted to know how server analyzes the obstacles, ramps etc to find a path for requesting client, how is geodata implemented internally

Edited by Szakalaka
Posted (edited)

Well thats not what i was asking for :D

I know that client requests XYZ location but server has to analyze it, find obstacles or find out if someone tries to move through a wall and thats role of geodata. I rather wanted to know how server analyzes the obstacles, ramps etc to find a path for requesting client, how is geodata implemented internally

You need to look in geoengine, it makes the character to move over the obstacle if it appears on the path. But regarding the clientitself - without server, every static object(like walls, house's, doors,etc) and poly objects(Like floor, roof, some walls) have implimented collision - that creates from the import and is handled by the engine(so that if the object has collision - actor(Player or NPC) cant move trough it, its very simple).

I suggest you to look on public unreal engine source, code - to get better view on this, thats not so hard t all if you know more then just java...

Edited by LightFusion
Posted

Client handles it well, i was rather worried about server side ;)

Then why is your server handling player movement ? Orginaly geo engine/geodata maded only to correct client/server(relations) that means - if on client(your game) doesnt allowing to move trough object, same thing need to apply to server side.

Here is an example 

of how server correct movement of player, the author of this is a scammer so...

Posted

But look from my perspective. I have code it from zero. So i got working client module which sends XYZ. Now i have to somehow have all map vertices saved on server to know if someone is tryin to walk through wall. I have to check it and thats what im asking for - for the most optimal way to do it and i ws thinkin of geodata implementation in L2

Posted

If you're developing a small l2-like MMO, you should know better than to stay away from L2's model of maps. Any other engine out there has greater/better/newer mapping methods than the crap Unreal Engine2 since 10 years ago.

Posted (edited)

But look from my perspective. I have code it from zero. So i got working client module which sends XYZ. Now i have to somehow have all map vertices saved on server to know if someone is tryin to walk through wall. I have to check it and thats what im asking for - for the most optimal way to do it and i ws thinkin of geodata implementation in L2

man you dont read what i say or what ? if on client side  player deletes his static model(object) that reprisent some wall, and he will be able to pass it - he should be returned where he was, according to geo map, but these whole work is making damn geo engine, can you just look on source, or what you expecting to get from here ?

Edited by LightFusion
Posted

man you dont read what i say or what ? if on client side  player deletes his static model(object) that reprisent some wall, and he will be able to pass it - he should be returned where he was, according to geo map, but these whole work is making damn geo engine, can you just look on source, or what you expecting to get from here ?

 

 

I can confirm that, this work must happen server side. There are rare cases tho where MMORPGs do the work client side but they have great protections too. In l2 everything is byppassable

Posted (edited)

Geodata is data like any other data, it is stored on arrays and you refer to it. Regarding pathfinding, you iterate until you find the good road (it's a A* approach, but could be reworked using JPS). Each node got 4 values, NWSE related, the point is the 4 sides of a node got a specific value, and you calculate the path using the shortest amount (Counter Strike got a similar pathfinding system, you place nodes for bots, corner nodes got different colors than walking nodes to make bots camp, etc).

 

On L2J / L2OFF (as Counter Strike), this data is static, and related to regions. Which means if you want to add a rock, and that rock must have a LoS/movement restriction, you must rework the geodata related to that region.

 

Nowadays the geo stuff is often dynamic, items can directly interact with each other.

 

About movement, you got a infinite task which keeps updated values and send info to others clients (on L2J it's mixed with GameTimeController).

 

L2J geodata is layered to fit with Z. Meaning you can have numerous layers on a similar portions of X/Y (ToI for example).

 

If that can give you an idea :

 

 

Edited by Tryskell
Posted (edited)

if i understand right then that code(GAME) i will give you its a nice example of how to path finding.(CODE ITS NOT MINE I JUST GOOGLE IT) 

 

debug it and run it.

 

Code: http://pastebin.com/vLeBz5gh

Youtube: 

Edited by AbSoLuTePoWeR
Posted

if i understand right then that code(GAME) i will give you its a nice example of how to path finding.(CODE ITS NOT MINE I JUST GOOGLE IT) 

 

debug it and run it.

 

Code: http://pastebin.com/vLeBz5gh

Youtube: 

 

eisai panivlakas kai esu kai aftos pou egrapse to code

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • https://file.kiwi/85ded214#HP0EQ54upx_76JaA90zfOQ    
    • No complicated KYC, instant setup after purchase!  Boost your connection speed and secure your privacy today!  Official Website: https://novproxy.com?kwd=tt-max
    • Passa o conhecimento mano, só mercenários no mundo do l2.
    • I participate in "forum deal" in role middleman. I will advertise free your product with discounted from your "street store" on different forums. I know these forum addresses,i can post your advertisement on different forums.   Street store must be licensed(i will check license through website),store must pay taxes(i will check payment taxes through tax service website). Please note:seller(you) will decide "will like" to buyer or "not will like" total discount(total discount is price your product with discounted  plus my percentage above). Seller(you) decides what will be my percentage .   If you need free advertising,please write me in messenger for contact who are you by nationality and in which country you live. If you owner street store or you employee street store i will advertise free your product from your street store on different forums.   Country Location:i accept all countries except Ukraine. I will not conduct deals with buyers and sellers from Ukraine. I do not cooperate with country Ukraine. If you Ukrainian by nationality or live in Ukraine,ignore this topic.   Shoes,clothing,furniture,bags,televisions,music centers,telephones,laptops,tablets,refrigerators,washing machines,microwaves,fans.   Advertising process. Buyer sees product with discounted. To buyer likes price. Buyer pays my percentage on to payment details guarantor on forum,seller decides what will be my percentage. Buyer and seller through me decide what will be deadline in days for forum transaction(i will either receive money in specified deadline or i won't receive money).   Guarantor on forum notifies me that buyer paid money to payment details guarantor. I'm sending in "forum deal" address "street store" which ready to sell product with discount to buyer. Buyer arrives on given address,enters in street store,finds employee(seller) and asks "in stock?" this product with discount. If this product in stock employee(seller) shows buyer this product,which buyer saw on forum with discount. Buyer inspects product and if to buyer like product,buyer pays money seller and receives receipt for purchase. If buyer product doesn't like,buyer product doesn't purchase,according to clause in "forum questionnaire" seller must register on forum and write in "forum deal" that buyer has declined refused to purchase this product. Guarantor will return money to buyer(in full amount). If you in role seller don't want to register on forum,then advertising won't be(from me) on different forums. How it will be possible to prove that exactly this buyer,exactly from forum,on which this buyer saw my advertising topic,successfully purchased product. When buyer pays my percentage to guarantor on payment details guarantor,buyer writes to guarantor in private message "code word". When buyer meets with seller in store,buyer informs seller exactly same "code word". Then seller registers on forum and sends to guarantor in private message this "code word"(seller will have such right according to clause in "forum questionnaire"). Guarantor confirms to seller that "code word" is correct. If buyer purchases product,but buyer messages in "forum deal" that he not buy this product(buyer is lying in "forum deal"),then according to clause in "forum questionnaire" seller is connected to "forum deal"(i'll let you know via messenger when you need to connect to "forum deal"). Seller sends in "forum deal" "code word" and sends in "forum deal" screenshot receipt about successful sale product(seller will have such right according to clause "forum questionnaire"). On based "code word" and screenshot receipt about successful sale product guarantor makes decision:send money to middleman or return money to buyer.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..