As I said earlier Lateralus, this isn't just a dev thread but an thread where we'll discuss and share ideas, I already got some very good ones out of this thread. And, leave rest up to the moderators, I believe they can handle it.
As I said earlier Lateralus, this isn't just a dev thread but an thread where we'll discuss and share ideas, I already got some very good ones out of this thread. And, leave rest up to the moderators, I believe they can handle it.
Thanks
This seems more like an advertisement for your own server to reach a larger audience, as you should have suggestions on your own forum so that your community can contribute rather than a community to whom giving suggestions doesn't benefit the majority unless they are willing to join your server (which then would cause them to join your forum to make suggestions). You should have at least made this a broader thread, like "Good ideas for a private server?", not a server-specific development thread.
Although I do see you claim to have TQ's official algorithm for VPs... May I direct you to this thread? None of those algorithms are right, and the official one seems to be fairly complicated as far as how it is split up after level 40 from the values I've gotten up to level 63.
Development threads are allowed, this section is for all private server discussion, as such both public, and private developments are allowed to be posted here.
Why do you define the question and answer as smallbyte? It's obviously strings
It's one of the ways you can use pointers to write strings to the packets.
I forget what source this is from but yah, as someone mentioned it's wrong.
Example of sbyte from hybrids new source.
Code:
public unsafe struct AuthResponsePacket
{
public ushort Size;
public ushort Type;
public uint Key2;
public uint Key1;
private fixed sbyte szIPAddress[16];
public uint Port;
public unsafe string IPAddress
{
get { fixed (sbyte* bp = szIPAddress) { return new string(bp); } }
set
{
string ip = value;
fixed (sbyte* bp = szIPAddress)
{
for (int i = 0; i < ip.Length; i++)
bp[i] = (sbyte)ip[i];
}
}
}
public static AuthResponsePacket Create()
{
AuthResponsePacket retn = new AuthResponsePacket();
retn.Size = 0x20;
retn.Type = 0x41F;
return retn;
}
}
It IS a string it's just a way of storing a string in such a way that it can be read/written simply using pointers.
It's basically saying in that packet that you are allocating 16 bytes for the string packet in the structure. That way it essentially holds the same structure in memory as it does in a packet and can be easily converted without using messy writers like many public sources use.
Ps: I'm sure you know it but 16 bytes is the length for any non specified string length that tq uses.
Why do you define the question and answer as smallbyte? It's obviously strings
Since when does the 's' before a type mean small? The last time I checked it was called signed which gives the type different min/max values(int(signed) min: -2147483648, max: 2147483647 and uint(un signed) min: 0, max: 4294967295...
Sorry sorry sorry. Guess I didn't spend much time looking at the code itself since ImmuneOne already pointed out it's wrong, so didn't spend too much attention on it. Thought he was using the signed bytes to print out the numbers of each question (which I'm not completely sure if Quiz does either).
Anyhow, can anyone confirm that's the correct layout?
Sorry sorry sorry. Guess I didn't spend much time looking at the code itself since ImmuneOne already pointed out it's wrong, so didn't spend too much attention on it. Thought he was using the signed bytes to print out the numbers of each question (which I'm not completely sure if Quiz does either).
Anyhow, can anyone confirm that's the correct layout?
Well two things -- you openly proved that you have little experience in coding. Even if you "didn't hardly look at it," you still saw sbyte and thought it meant "small byte".
Not sitting here trying to flame you, but seriously bro. You can't make any excuse to cover for the fact that you did indeed say that.
Secondly, since lost replied and said it isn't the right layout....I'm guessing it isn't the right layout.
Since when does the 's' before a type mean small? The last time I checked it was called signed which gives the type different min/max values(int(signed) min: -2147483648, max: 2147483647 and uint(un signed) min: 0, max: 4294967295...
Did I fall behind the news or something?
So byte = unsigned and sbyte = signed?
That's how I understand it:
{ sbyte, short, int, long }
{ byte ushort, uint, ulong }
i dont know CoServer 01/14/2010 - CO2 Private Server - 2 Replies hi
i don´t to know what do now:(:(
http://s2.subirimagenes.com/otros/previo/thump_38 84741dibujo.jpg
I do not know what to do. Do not want to start CoServer. What should I do.
Please help me.:(:(
Error while opening CoServer.exe 08/01/2009 - CO2 Private Server - 5 Replies hey
well i,m making 5017 server and i did everything what i needed to do to launch my server but when i open CoServer.exe it gives an error that it failed to open and i tryd different sources but everytime same error.
so my question was if you can help me with the error?
Legends of Ecta(COServer) Players needed!! 03/07/2009 - Say Hello - 0 Replies Hello, im new to this owning forum:cool: and i tought this was the time to introduce myself!!
Please visit my webpage!:)
Error COServer Project 08/03/2008 - Conquer Online 2 - 3 Replies First I get this error
http://img46.imageshack.us/img46/7348/errorshadow rq9.jpg
then when I get press not to send this:
http://img111.imageshack.us/img111/2922/despuesse 5.jpg
The problem is what?