Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 23:13

  • Please register to post and access all features, it's quick, easy and FREE!

 

(Private Server) DarkOrbit Packets Thread

Reply
 
Old   #31
 
elite*gold: 0
Join Date: Mar 2017
Posts: 13
Received Thanks: 2
Quote:
Originally Posted by S7K Yuuki View Post
If you're asking about the crown of the Kronos gate is a simple binary (int) number inside the create player command.

Imagine it as two groups of 3 binary digits, each one representing a gg ring.
Code:
000 101 => number 5 (Alpha and Gamma)
101 101 => number 45 (Alpha, Gamma, Zeta and I dont remember the top right one..)

* Having all the galaxy gates should be then..*
111 111 => number 63
To add Kronos there simply increment the value by one.
Code:
1 000 000 => number 64
Nevertheless, if you asked for the UBA crown
You must register and activate your account in order to view images.
It's a visual modifier also sent during the player creation.

Regards.-

In which file to replace?



Vitaliy_Spiker is offline  
Old   #32
 
elite*gold: 0
Join Date: May 2013
Posts: 120
Received Thanks: 7
Quote:
Originally Posted by S7K Yuuki View Post
If you're asking about the crown of the Kronos gate is a simple binary (int) number inside the create player command.

Imagine it as two groups of 3 binary digits, each one representing a gg ring.
Code:
000 101 => number 5 (Alpha and Gamma)
101 101 => number 45 (Alpha, Gamma, Zeta and I dont remember the top right one..)

* Having all the galaxy gates should be then..*
111 111 => number 63
To add Kronos there simply increment the value by one.
Code:
1 000 000 => number 64
Nevertheless, if you asked for the UBA crown
You must register and activate your account in order to view images.
It's a visual modifier also sent during the player creation.

Regards.-
Thank you very much, but in what part is that edited to have the kronos crown?


Armandito13x is offline  
Old   #33
 
elite*gold: 0
Join Date: Mar 2017
Posts: 13
Received Thanks: 2
So no one has found out in which file this is being replaced?
Vitaliy_Spiker is offline  
Old   #34
 
elite*gold: 0
The Black Market: 243/0/0
Join Date: Dec 2012
Posts: 12,891
Received Thanks: 7,934
Quote:
Originally Posted by S7K Yuuki View Post
If you're asking about the crown of the Kronos gate is a simple binary (int) number inside the create player command.

Imagine it as two groups of 3 binary digits, each one representing a gg ring.
Code:
000 101 => number 5 (Alpha and Gamma)
101 101 => number 45 (Alpha, Gamma, Zeta and I dont remember the top right one..)

* Having all the galaxy gates should be then..*
111 111 => number 63
To add Kronos there simply increment the value by one.
Code:
1 000 000 => number 64
Nevertheless, if you asked for the UBA crown
You must register and activate your account in order to view images.
It's a visual modifier also sent during the player creation.

Regards.-
bruh. bitflags.

Code:
enum GalaxyGate
{
ALPHA,
BETA,
...
...
...
GALAXYGATE_MAX
}

// PSEUDO AF

int galaxyGatesDone = 0;
for (int i = 0; i < GALAXYGATE_MAX; i++)
{
    if (player.HasDoneGate(i))
        galaxyGatesDone |= i;
}


Requi is offline  
Thanks
1 User
Old   #35
 
elite*gold: 0
Join Date: May 2013
Posts: 120
Received Thanks: 7
Quote:
Originally Posted by Requi View Post
bruh. bitflags.

Code:
enum GalaxyGate
{
ALPHA,
BETA,
...
...
...
GALAXYGATE_MAX
}

// PSEUDO AF

int galaxyGatesDone = 0;
for (int i = 0; i < GALAXYGATE_MAX; i++)
{
    if (player.HasDoneGate(i))
        galaxyGatesDone |= i;
}
Where those men are edited
Armandito13x is offline  
Old   #36
 
elite*gold: 0
The Black Market: 243/0/0
Join Date: Dec 2012
Posts: 12,891
Received Thanks: 7,934
Quote:
Originally Posted by Armandito13x View Post
Where those men are edited
Now in english please?

That's just an easier way to assign galaxygates in the create player command, instead of hardcoding each combination what atleast 90% of the people here would do.

If it's using binary data like that, you can and should use bitflags to make your life easier.

Game will most likely assign the rank in the client like that:

Code:
// On create player
for (int i = 0; i < GALAXYGATE_MAX; i++)
{
    if (galaxyGateDonePart & i)
        GiveGalaxyGateVisuallyNextToName(i);
}
Requi is offline  
Thanks
1 User
Old   #37
 
elite*gold: 0
Join Date: May 2013
Posts: 120
Received Thanks: 7
Quote:
Originally Posted by Requi View Post
Now in english please?

That's just an easier way to assign galaxygates in the create player command, instead of hardcoding each combination what atleast 90% of the people here would do.

If it's using binary data like that, you can and should use bitflags to make your life easier.

Game will most likely assign the rank in the client like that:

Code:
// On create player
for (int i = 0; i < GALAXYGATE_MAX; i++)
{
    if (galaxyGateDonePart & i)
        GiveGalaxyGateVisuallyNextToName(i);
}
I thank you friend, but my question is, how do you add the crown to rank, kronos crown.
Armandito13x is offline  
Old   #38
 
elite*gold: 0
Join Date: Aug 2015
Posts: 658
Received Thanks: 981
Quote:
Originally Posted by Armandito13x View Post
I thank you friend, but my question is, how do you add the crown to rank, kronos crown.
People already have answered you I think almost 10 times and you still ask the same question...

@manulaiko give him an achievement.
Freshek is online now  
Thanks
1 User
Old   #39
 
elite*gold: 0
Join Date: May 2013
Posts: 120
Received Thanks: 7
Quote:
Originally Posted by Freshek View Post
People already have answered you I think almost 10 times and you still ask the same question...

@manulaiko give him an achievement.
I have you not been specifically reinstated, where I edit this code, in which part.
Armandito13x is offline  
Old   #40
 
elite*gold: 396
Join Date: Apr 2015
Posts: 220
Received Thanks: 316
Quote:
Originally Posted by Requi View Post
bruh. bitflags.
Yeah you're completely right, but if they can't even understand the 'binary way' imagine how much it will take to explain bit flags :/

Thanks for the idea anyways ^^
Regards.-
S7K Yuuki is offline  
Thanks
1 User
Old   #41
 
elite*gold: 0
Join Date: May 2013
Posts: 120
Received Thanks: 7
Quote:
Originally Posted by S7K Yuuki View Post
Yeah you're completely right, but if they can't even understand the 'binary way' imagine how much it will take to explain bit flags :/

Thanks for the idea anyways ^^
Regards.-
My question is, how do I make the client see the range this way, where I edit those conditions, where I put those codes, or those packages.

Armandito13x is offline  
Old   #42
 
elite*gold: 0
Join Date: Oct 2010
Posts: 766
Received Thanks: 513
Quote:
Originally Posted by Requi View Post
bruh. bitflags.

Code:
enum GalaxyGate
{
ALPHA,
BETA,
...
...
...
GALAXYGATE_MAX
}

// PSEUDO AF

int galaxyGatesDone = 0;
for (int i = 0; i < GALAXYGATE_MAX; i++)
{
    if (player.HasDoneGate(i))
        galaxyGatesDone |= i;
}
at least do bitflags right then. i only ever needs to be some power of two. so you can shift left each iteration by 1 instead of doing i++, but you need to start at 1 then. so smth like this

Code:
for(int i = 1; i < bla; i <<= 1) {
    if(hasDone(i))
        dataToSend |= i;
}
C0untLizzi is offline  
Thanks
2 Users
Old   #43
 
elite*gold: 0
Join Date: May 2013
Posts: 120
Received Thanks: 7
Quote:
Originally Posted by C0untLizzi View Post
at least do bitflags right then. i only ever needs to be some power of two. so you can shift left each iteration by 1 instead of doing i++, but you need to start at 1 then. so smth like this

Code:
for(int i = 1; i < bla; i <<= 1) {
    if(hasDone(i))
        dataToSend |= i;
}
In which part of the emulator, that is placed.
Armandito13x is offline  
Old   #44
 
elite*gold: 0
Join Date: Dec 2014
Posts: 292
Received Thanks: 121
Quote:
Originally Posted by Armandito13x View Post
In which part of the emulator, that is placed.
Firstly; You need found your ShipInitializationCommand and ShipCreateCommand for while your ship is starting and other ships are being created; You need to change the received information.

Sample: This is your code of ship creation. (other players)

Code:
public ShipCreateCommand(int pMapEntityId, 
String pShipLootId, int pExpansionStage, 
String pClanTag, String pUsername, 
int pPositionX,int pPositionY, 
int pFactionId, int pRingsCount) {
        this.mMapEntityId = pMapEntityId;// User ID or NPC ID
        this.mShipLootId = pShipLootId;//pShipLootId
        this.mExpansionStage = pExpansionStage;
        this.mClanTag = pClanTag;
        this.mUsername = pUsername;
        this.mPositionX = pPositionX;
        this.mPositionY = pPositionY;
        this.mFactionId = pFactionId;
        this.mRingsCount = pRingsCount;
    }
And this is your ShipCreateCommand on Player.java;

Code:
    public ShipCreateCommand getShipCreateCommand() {
        return new ShipCreateCommand(this.getMapEntityId(), //user id
        		             this.getShipLootId(), // ship loot id
        		             this.getAccount()
                                          .getExpansionStage(), // cargo size
                                     this.getAccount()
                                          .getClanTag(), // clan tag
                                     this.getAccount()
                                          .getShipUsername(), // username
                                     this.getCurrentPositionX(), // x position
                                     this.getCurrentPositionY(), // y position 
                                     this.getAccount()
                                          .getFactionId(), // faction id (mmo/eic/vru)
                                     100, // rings count (100 = crown / 63 = 6 ring)
        );
    }
Now the first code I give is code to create ships.
And in your emulator, when you see other players; this ShipCreateCommand start to work with the player information you see.
And as you can see, the order of the information is the same as ShipCreateCommand.
So you need change rings count in your getShipCreateCommand for see crown etc..
The code in the second code I provide is the number of rings.

And ShipInitializationCommand just work like that.

ShipInitializationCommand for your ship informations in game.
ShipCreateCommand for other ship informations in game.

Maybe my english not so good for describe this but i think you can understand me.
LEJYONER(DS) is offline  
Thanks
1 User
Old   #45
 
elite*gold: 0
Join Date: May 2013
Posts: 120
Received Thanks: 7
Arrow

Quote:
Originally Posted by Armandito13x View Post
I thank you friend, but my question is, how do you add the crown to rank, kronos crown.
Quote:
Originally Posted by LEJYONER(DS) View Post
Firstly; You need found your ShipInitializationCommand and ShipCreateCommand for while your ship is starting and other ships are being created; You need to change the received information.

Sample: This is your code of ship creation. (other players)

Code:
public ShipCreateCommand(int pMapEntityId, 
String pShipLootId, int pExpansionStage, 
String pClanTag, String pUsername, 
int pPositionX,int pPositionY, 
int pFactionId, int pRingsCount) {
        this.mMapEntityId = pMapEntityId;// User ID or NPC ID
        this.mShipLootId = pShipLootId;//pShipLootId
        this.mExpansionStage = pExpansionStage;
        this.mClanTag = pClanTag;
        this.mUsername = pUsername;
        this.mPositionX = pPositionX;
        this.mPositionY = pPositionY;
        this.mFactionId = pFactionId;
        this.mRingsCount = pRingsCount;
    }
And this is your ShipCreateCommand on Player.java;

Code:
    public ShipCreateCommand getShipCreateCommand() {
        return new ShipCreateCommand(this.getMapEntityId(), //user id
        		             this.getShipLootId(), // ship loot id
        		             this.getAccount()
                                          .getExpansionStage(), // cargo size
                                     this.getAccount()
                                          .getClanTag(), // clan tag
                                     this.getAccount()
                                          .getShipUsername(), // username
                                     this.getCurrentPositionX(), // x position
                                     this.getCurrentPositionY(), // y position 
                                     this.getAccount()
                                          .getFactionId(), // faction id (mmo/eic/vru)
                                     100, // rings count (100 = crown / 63 = 6 ring)
        );
    }
Now the first code I give is code to create ships.
And in your emulator, when you see other players; this ShipCreateCommand start to work with the player information you see.
And as you can see, the order of the information is the same as ShipCreateCommand.
So you need change rings count in your getShipCreateCommand for see crown etc..
The code in the second code I provide is the number of rings.

And ShipInitializationCommand just work like that.

ShipInitializationCommand for your ship informations in game.
ShipCreateCommand for other ship informations in game.

Maybe my english not so good for describe this but i think you can understand me.

Thank you very much, send a photo to your facebook, with an error that I have.


Armandito13x is offline  
Reply

Tags
codes, darkorbit, emulator, packets, private server



« Previous Thread | Next Thread »

Similar Threads
[Private Server] Packets Thread
Hi!! In this thread I'll put all packets so other users can find the packets easily, if you have a acket that isn't in this thread, this thread...
12 Replies - DarkOrbit
[Release] +5500 Packets structure , client/packets constants
edit : if u know nothing about packets go to this post first explaining what is packets , and explaining a packet with details and everything...
10 Replies - CO2 PServer Guides & Releases
Packets packets packets...
I have been struggling to understand what is a Packet how could i create one with the data i want then send it to my server So please any one tell...
13 Replies - CO2 PServer - Discussions / Questions
[REQUEST] packets send list , or anyway to sniff send packets
hey everyone , as mentioned , i wanna know if anyone got a complete send packets lists or anyway i can sniff send packets , thanks in advance
16 Replies - Kal Online
[Packets] Wie änder ich flyff packets?
HeyHo, Ich würde sehr gerne wissen wie man die Flyff Packets ändert... ich denke mal Zahlen ändern werden nicht ausreichen oder?
19 Replies - Flyff PServer - Discussions / Questions



All times are GMT +1. The time now is 23:13.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.