Jump to content

Recommended Posts

Posted (edited)

Hey,  correct me if i am wrong, but what i have noticed that 99% interlude packs still have this bug. I saw this in Acis, Frozen, Mobius and actually in all older packs.

 

DIFF:

Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
===================================================================
--- java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java	(revision 5)
+++ java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java	(working copy)
@@ -34,7 +34,7 @@
 		writeD(_activeChar.getX());
 		writeD(_activeChar.getY());
 		writeD(_activeChar.getZ());
-		writeD(_activeChar.getHeading());
+		writeD(0);
 		writeD(_activeChar.getObjectId());
 		writeS(_activeChar.getName());
 		writeD(_activeChar.getRace().ordinal());
@@ -180,7 +180,7 @@
 		
 		writeD(_activeChar.getAppearance().getNameColor());
 		
-		writeD(0x00); // isRunning() as in UserInfo?
+		writeD(_activeChar.getHeading());
 		
 		writeD(_activeChar.getPledgeClass());
 		writeD(_activeChar.getPledgeType());

 

Edited by Vilmis
  • Like 4
  • Thanks 2
Posted (edited)
		writeC(0x03);
		writeD(_activeChar.getX());
		writeD(_activeChar.getY());
		writeD(_activeChar.getZ());
		writeD(_activeChar.getHeading()); /* Removing this because it's Vehicle ID */

You are fixed character model heading only for known players, but for self in UserInfo forgot.

Edited by Rootware
Posted (edited)
43 minutes ago, Rootware said:

		writeC(0x03);
		writeD(_activeChar.getX());
		writeD(_activeChar.getY());
		writeD(_activeChar.getZ());
		writeD(_activeChar.getHeading()); /* Removing this because it's Vehicle ID */

You are fixed character model heading only for known players, but for self in UserInfo forgot.

I know this and yep, it's vehicle id.
Btw, what's about userinfo i think this  is client bug (ncsoft bug) or am i wrong? UserInfo even can not send heading. That's why never tried to fix it. I saw this bug in new clients and etc.

Edited by Vilmis
  • Like 1
Posted (edited)
1 hour ago, Vilmis said:

I know this and yep, it's vehicle id.
Btw, what's about userinfo i think this  is client bug (ncsoft bug) or am i wrong? UserInfo even can not send heading. That's why never tried to fix it. I saw this bug in new clients and etc.

 

When you entering to the world you can see own/another character always with wrong heading. It's client bug, because model in client always spawns w/o server heading - always look to the east. While teleporting the heading saving and processing correct for all characters own or another.

Edited by Rootware
Posted
32 minutes ago, Rootware said:

 

When you entering to the world you can see own/another character always with wrong heading. It's client bug, because model in client always spawns w/o server heading - always look to the east. While teleporting the heading saving and processing correct for all characters own or another.

I know that as well, mate, but thanks for your info.
For example: UserInfo doesn't send heading at all, but for some reason many l2j packs still have this heading in UserInfo. Instead of heading should be vehicle id as well, but not heading.

Posted (edited)
1 hour ago, Vilmis said:

I know that as well, mate, but thanks for your info.
For example: UserInfo doesn't send heading at all, but for some reason many l2j packs still have this heading in UserInfo. Instead of heading should be vehicle id as well, but not heading.

 

Sure. You are right, my mistake. I meant TeleportToLacation packet. You can send him with special params (for disable black screen for teleport) after UserInfo packet while character entering onto the world and you will see correct character rotation.

Edited by Rootware
  • Like 1
Posted (edited)

the only heading mistake on mobius god clients* is on teleport etc  

 

i havent see something else wrong

 

 

edit* i just read u talk about c6

 

my bad

Edited by Pamela32
Posted (edited)

It has been fixed since Kamael on L2J, so postIL chronicles, and probably few downgrades, aren't impacted.

 

If you ask "why", I would answer "why not" ? If we use a base L2J IL, we inherit from all L2J issues. Whoever use L2J IL shares a common pool of issues than people can eventually see and fix.

 

I won't blame you if you don't have EventTrigger, ShortCutDelete (than L2J doesn't even have nowadays, btw), ExDuelEnemyRelation or ExMPCCPartyInfoUpdate packets. Or one of the 20+ PvP event.

 

It's all about seeing it, first. That's simply tell you than every project shares the same mommy DNA.

 

Ty for the find.

 

@sotid Everytime you addKnownObject a Player on your knownlist. Which is : teleport and enterworld. Few appreciations of that edit is on a market, people won't be on the same heading anymore, or if you want to backstab correctly a Player (which didn't yet move) upon teleport on pvp grounds.

Edited by Tryskell
  • Like 1
Posted
23 minutes ago, Tryskell said:

@sotid Everytime you addKnownObject a Player on your knownlist. Which is : teleport and enterworld. Few appreciations of that edit is on a market, people won't be on the same heading anymore, or if you want to backstab correctly a Player (which didn't yet move) upon teleport on pvp grounds.

Thank you!

Posted (edited)
4 minutes ago, sotid said:

Thank you!

 

For self teleport heading, you have to correctly address Player heading upon TeleportToLocation packet. CharInfo is only for others people who are appearing on a zone you are "seeing the first time".

 

Will be part of aCis rev 382, it is validated on L2OvC.

Edited by Tryskell
Posted
59 minutes ago, Tryskell said:

 

For self teleport heading, you have to correctly address Player heading upon TeleportToLocation packet. CharInfo is only for others people who are appearing on a zone you are "seeing the first time".

What you want do in TeleportToLocation packet? It doesn't have heading in interlude packet. Also, on teleport you don't need add correction or something like that for heading, because heading stays same after teleport and broadcasting correctly for others. 
Just only one main problem is to fix heading on first log in for yourself, because it's a visual bug of UserInfo which doesn't send heading at all.

Posted
2 minutes ago, Vilmis said:

What you want do in TeleportToLocation packet? It doesn't have heading in interlude packet. Also, on teleport you don't need add correction or something like that for heading, because heading stays same after teleport and broadcasting correctly for others. 
Just only one main problem is to fix heading on first log in for yourself, because it's a visual bug of UserInfo which doesn't send heading at all.

 

Try this up.

 

	@Override
	protected final void writeImpl()
	{
		writeC(0x22);
		
		writeD(_objectId);
		writeD(_x);
		writeD(_y);
		writeD(_z);
		writeD(_isFastTeleport ? 1 : 0); // 0 - with black screen, 1 - fast teleport (for correcting position)
		writeD(_heading);
	}

 

Posted (edited)
1 hour ago, Rootware said:

 

Try this up.

 


	@Override
	protected final void writeImpl()
	{
		writeC(0x22);
		
		writeD(_objectId);
		writeD(_x);
		writeD(_y);
		writeD(_z);
		writeD(_isFastTeleport ? 1 : 0); // 0 - with black screen, 1 - fast teleport (for correcting position)
		writeD(_heading);
	}

 

Did you try? This „FastTeleport“ works in interlude, but heading doesn't look like would be working as i mentioned before or maybe i'm wrong? You can add almost everything whatever you want to writeImpl() if they are in the bottom they won't break the packet.

btw, if  TeleportToLocation would send heading which means //goup should fix your heading when entered to world again and have heading from database, but it doesn't.

Edited by Vilmis

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • "Just make your own game!" sounds simple until you’ve tried it. I did, with Epic Dragon World and learned the hard way that "open source" often means "free labor for resellers." The MIT license became a buffet for people to grab code, rebrand it and ghost the project. Even basic collaboration collapsed because everyone wanted their vision, not *a* vision. NCSoft’s lawyers aren’t theoretical. They’re a sword of Damocles. Even if you rebuild a client from scratch, if it feels like Lineage 2, they’ll come knocking. Ask the Chrono Trigger fangame corpses how that goes. MMOs are hospice care. The genre’s on life support, kept alive by whales and nostalgia. Look at Throne and Liberty, NCSoft’s own "successor" to L2, flopping harder than a 2004 PKer in ToI. Classic reboots (WoW, L2) are bandaids, not resurrections. This is the hobby. Optimizing old systems, reverse-engineering spaghetti code and preserving janky mechanics is the fun part. Monetizing it turns it into customer service hell. No thanks. Community? What community? The L2 scene is 90% resellers, 10% players who’ll quit the second they don’t get +16 on day one. Both asking how to install Java and why running the uncompiled server does not work.
    • Dear players, Open beta test for C3 begins today at 19:00 server time (GMT +2). 💰 All participants who find bugs during OBT will be rewarded with Coin of Luck (CoL): - 1 CoL for each staticmesh issue found — e.g., walking through textures, etc., - 2 CoL or more for server-side issues, depending on their severity., We strongly recommend reviewing the quest list - when switching to Chronicle 3, the total number of quests should match the number shown in the upper right corner of the window and correspond to the quest count from Chronicle 2. To log into the game, use the same data you use to access the Airin server. 📌 Download client: Google Drive
    • 🔥 Sale Alert! 🔥 Twitter Accounts with 50 Followers — now on SALE! Looking to launch a project or warm up your account base fast? We’ve got starter Twitter accounts with ~50 followers at a sweet price. 💰 Limited-time offer – while stock lasts! ✅ Organic-Looking ✅ Clean & Safe ✅ Perfect for boosting credibility 📦 Instant delivery
    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock