Jump to content
  • 0

Broadcasting Heading & On Enterworld Heading


Question

Posted

Hi everyone, i got 2 questions. I just need advice or sugestion no much help. 

 

1. When people login the heading is wrong. Let's say the heading has a value of 35000 and player log out. Value is stored on database at "heading" i checked it.

    When player login the heading is not the same as in database. I added a System.out.println(activeChar.getHeading); and it return the value from the database, so the value hasnt change at all.

    What's wrong is the broadcast. Other's watch you normally, but you watch your character in wrong direction (heading). So i guess is UserInfo.java

 

2. Same as previous the difference is that i made a code that changes the player heading. Example: activeChar.setHeading(0); then i type activeChar.broadcastUserInfo();   

    The player not see himself change direction but other's watch him change just fine. So i guess again UserInfo.java. 

 

Something is wrong with it.. I checked broadcastUserInfo() and is same as aCis. First it sendPacket to this (userinfo) and then broadcasttoAll (charInfo).

 

Any advice?

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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


×
×
  • 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..