|
You last visited: Today at 09:42
Advertisement
(Private Server) DarkOrbit Packets Thread
Discussion on (Private Server) DarkOrbit Packets Thread within the DarkOrbit forum part of the Browsergames category.
08/01/2017, 17:03
|
#31
|
elite*gold: 0
Join Date: Mar 2017
Posts: 19
Received Thanks: 3
|
Quote:
Originally Posted by S7K Yuuki
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
It's a visual modifier also sent during the player creation.
Regards.-
|
In which file to replace?
|
|
|
08/02/2017, 11:16
|
#32
|
elite*gold: 0
Join Date: May 2013
Posts: 315
Received Thanks: 26
|
Quote:
Originally Posted by S7K Yuuki
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
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?
|
|
|
08/06/2017, 20:27
|
#33
|
elite*gold: 0
Join Date: Mar 2017
Posts: 19
Received Thanks: 3
|
So no one has found out in which file this is being replaced?
|
|
|
08/07/2017, 02:41
|
#34
|
elite*gold: 3800
Join Date: Dec 2012
Posts: 13,039
Received Thanks: 8,243
|
Quote:
Originally Posted by S7K Yuuki
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
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;
}
|
|
|
08/07/2017, 02:46
|
#35
|
elite*gold: 0
Join Date: May 2013
Posts: 315
Received Thanks: 26
|
Quote:
Originally Posted by Requi
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
|
|
|
08/07/2017, 02:49
|
#36
|
elite*gold: 3800
Join Date: Dec 2012
Posts: 13,039
Received Thanks: 8,243
|
Quote:
Originally Posted by Armandito13x
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);
}
|
|
|
08/07/2017, 04:56
|
#37
|
elite*gold: 0
Join Date: May 2013
Posts: 315
Received Thanks: 26
|
Quote:
Originally Posted by Requi
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.
|
|
|
08/07/2017, 07:49
|
#38
|
elite*gold: 0
Join Date: Aug 2015
Posts: 803
Received Thanks: 1,362
|
Quote:
Originally Posted by Armandito13x
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...
@ give him an achievement.
|
|
|
08/07/2017, 08:29
|
#39
|
elite*gold: 0
Join Date: May 2013
Posts: 315
Received Thanks: 26
|
Quote:
Originally Posted by Freshek
People already have answered you I think almost 10 times and you still ask the same question...
@ give him an achievement.
|
I have you not been specifically reinstated, where I edit this code, in which part.
|
|
|
08/07/2017, 11:14
|
#40
|
elite*gold: 0
Join Date: Apr 2015
Posts: 246
Received Thanks: 397
|
Quote:
Originally Posted by Requi
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.-
|
|
|
08/07/2017, 12:26
|
#41
|
elite*gold: 0
Join Date: May 2013
Posts: 315
Received Thanks: 26
|
Quote:
Originally Posted by S7K Yuuki
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.
|
|
|
08/07/2017, 12:33
|
#42
|
elite*gold: 46
Join Date: Oct 2010
Posts: 782
Received Thanks: 525
|
Quote:
Originally Posted by Requi
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;
}
|
|
|
08/07/2017, 12:40
|
#43
|
elite*gold: 0
Join Date: May 2013
Posts: 315
Received Thanks: 26
|
Quote:
Originally Posted by C0untLizzi
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.
|
|
|
08/07/2017, 13:43
|
#44
|
elite*gold: 0
Join Date: Dec 2014
Posts: 341
Received Thanks: 221
|
Quote:
Originally Posted by Armandito13x
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.
|
|
|
08/07/2017, 14:52
|
#45
|
elite*gold: 0
Join Date: May 2013
Posts: 315
Received Thanks: 26
|
Quote:
Originally Posted by Armandito13x
I thank you friend, but my question is, how do you add the crown to rank, kronos crown.
|
Quote:
Originally Posted by LEJYONER(DS)
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.
|
|
|
|
|
Similar Threads
|
[Private Server] Packets Thread
06/10/2020 - DarkOrbit - 14 Replies
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 will be constantly updated untill we find ALL packets ;)
Packets:
-Box Collect Response:
Note, here the packet can start with "0|LM" or "0|y" it has the same effect ;)
|
[Release] +5500 Packets structure , client/packets constants
10/07/2012 - CO2 PServer Guides & Releases - 10 Replies
edit : if u know nothing about packets go to this post first
explaining what is packets , and explaining a packet with details and everything
http://www.elitepvpers.com/forum/co2-pserver-disc ussions-questions/2162344-packets-packets-packets. html#post19074533
i start making my very own packet structure to use them on my new proxy but i thought of ripping them from the source
so yeah the following packets is ripped of trinity base source
right now im just providing the packets structure...
|
Packets packets packets...
10/06/2012 - CO2 Private Server - 13 Replies
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 if as example i want to send some info from my client to my server, then handle them from the server
how could i do that
: i have my socket server, also i don't wanna copy and paste codes i want to UNDERSTAND.
My PacketReader.cs
|
[REQUEST] packets send list , or anyway to sniff send packets
08/10/2012 - Kal Online - 16 Replies
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
|
[Packets] Wie änder ich flyff packets?
07/16/2011 - Flyff Private Server - 19 Replies
HeyHo,
Ich würde sehr gerne wissen wie man die Flyff Packets ändert...
ich denke mal Zahlen ändern werden nicht ausreichen oder?
|
All times are GMT +2. The time now is 09:42.
|
|