I started working on Impulse 5165, first thing I did was to add Nobility, but the icon won't appear in the screen. The table was loaded, and I'm calling ( don't know, what term shall I use -.-) the nobility during log in. What I am missing?
Edit: I was checking on my previous threads, and I have decided to update it to remind myself of what I accomplished 2 years ago. I have fixed the Nobility, it was just an offset that needed to be corrected.
There are specific packets and specific data sets (structs) for each feature that the client can handle.
For nobility the packet id is 2064 and an example of struct for nobility is:
Code:
public class NobilityInformation
{
public string Name;
public uint EntityUID;
public uint Mesh;
public ulong Donation;
public byte Gender;
public int Position;
public NobilityRank Rank;
}
Whereas NobilityRank is:
Code:
public enum NobilityRank : byte
{
Serf = 0,
Knight = 1,
Baron = 3,
Earl = 5,
Duke = 7,
Prince = 9,
King = 12
}
NB: There are lots of sources nowadays that have nobility added including the leaked trinity source for version 5335. You can get it from there.
First you have to add the packet and the specific data set into the source.
Considering this step is finished, you have to make database entries(a table for the data set) to store information for each character.
Once that is done (including save/load) you go on and send the icon in the body of the 'LoginMessages' function that can be found in PacketHandler.cs.
There are specific packets and specific data sets (structs) for each feature that the client can handle.
For nobility the packet id is 2064 and an example of struct for nobility is:
Code:
public class NobilityInformation
{
public string Name;
public uint EntityUID;
public uint Mesh;
public ulong Donation;
public byte Gender;
public int Position;
public NobilityRank Rank;
}
Whereas NobilityRank is:
Code:
public enum NobilityRank : byte
{
Serf = 0,
Knight = 1,
Baron = 3,
Earl = 5,
Duke = 7,
Prince = 9,
King = 12
}
NB: There are lots of sources nowadays that have nobility added including the leaked trinity source for version 5335. You can get it from there.
First you have to add the packet and the specific data set into the source.
Considering this step is finished, you have to make database entries(a table for the data set) to store information for each character.
Once that is done (including save/load) you go on and send the icon in the body of the 'LoginMessages' function that can be found in PacketHandler.cs.
The difference could be close to nothing in this case. Anyway, somethings are just not meant to be built with StringBuilder... (not really, but eh, w/e).
My quick response to you is: the observer can see the nobility because it's part of another packet.
Question: You said my code didn't quite work. Exactly what did you mean by that? How much effort did you actually put in?
Do this: create a file (if doesn't already exist) and put the packet in it (Solution explorer\Conquer_Online_Server\Network\GamePackets \).
Then, send the basic stuff (already showed you how to create the icon packet).
System.NullReferenceException: Object reference not set to an instance of an object.
at Conquer_Online_Server.Network.PacketHandler.LoginMessagers<GameState client> in
E:\..........Conquer_Online_Server\Network\PacketHandler.cs:line 3594
at Conquer_Online_Server.Network.PacketHandler.SetLocation<GeneralData generalData, GameState client>
in E:\......PacketHandler.cs:line 3529
at Conquer_Online_Server\Network.PacketHandler.HandlePacket<Byte[] packet, GameState client>
in E:\.........PacketHandler.cs:line 131
Help with Impulse's 5165 03/09/2013 - CO2 Private Server - 8 Replies I've looked at the database, looked through the code, looked at code that wasn't even relevant to the error and I still cannot find the error to the following, I just don't understand it. (Wow, what it be real easy...)
Error Message:
Load the character stats.
System.NullReferenceException: Object reference not set to an instance of an object.
at Conquer_Online_Server.Program.Main<String args> in D:\Conquer\impluse 5165\Conquer_Online_Server\Program.cs:line46
Line 40-51 in...
[Request]Impulse's 5165 Source 03/09/2013 - CO2 Private Server - 28 Replies Well considering megaupload is down, i am having issues finding this source, if anyone would mind providing it that would be great, figured if I am going to start getting into C# (Conquer Online Coding) again id like to start with some of the basics.
Guilds impulse source(5165) 05/24/2012 - CO2 Private Server - 0 Replies Hey everyone.
well maybe u will see this thread and will think "wtf is this guy doing!", but this is the first time i try to structure a packet.
I'm trying to see a guild's status window, but i know i'm missing something but don't know what :c
this is the packet
using System;
CoolEffect 5165 (impulse) 05/21/2012 - CO2 PServer Guides & Releases - 5 Replies emmm yes, this a noob release i know, but i'm starting to "work" in this source and i want to share somethings including when they are easy to do, so maybe u can help me to improve the code and improve my skills at coding :p
look for this in entity.cs
public Enums.ConquerAction Action
under the set statment (i dk how to call it :c)
HandleCoolEffect((Enums.ConquerAction)SpawnPacket );
[Release] Few commands ( Impulse's 5165 ) 06/18/2010 - CO2 PServer Guides & Releases - 8 Replies Here's a few commands...
In console you can't type @restart to restart so add this at <Program.cs under
public static void CommandsAI(string command)
{
try
{
string data = command.Split(' ');
switch (data)