Help .. Flag system!

02/07/2018 03:46 xyazanx#1
Hello ElitePVPers!

I am editing a source for the new Conquer .. "the updated version"

my question is about the flags after Tops .. "wars"

in the source code there is this :

client.Player.AddTopStatus((ulong)MsgUpdate.Flags3 .DragonFlow, 2, DateTime.Now.AddDays(7));


what does the number 2 after the name of the flag mean ?
sometimes i find it 3 .. sometimes 4 .. what is this ?


another question ..

in the MsgUpdate file there is this
DragonFlow = 1UL << 148,

in Conquer Online 2.0\ini\statuseffect file .. there is this
148 blooddrcontin NULL 10148

in Conquer Online 2.0\c3\effect\skill\blooddrcontin
there are c3 files of the Dragonflow effect of the dragonwarrior "in game effect"


but if i use MsgUpdate.Flags3.DragonFlow, 2, it shows the top 3 trojan effect!!
in totally different folder! ..
please i need help !! it makes no sense >> how this works :mad::mad:
02/07/2018 03:59 Spirited#2
Quote:
Originally Posted by xyazanx View Post
Hello ElitePVPers!

I am editing a source for the new Conquer .. "the updated version"

my question is about the flags after Tops .. "wars"

in the source code there is this :

client.Player.AddTopStatus((ulong)MsgUpdate.Flags3 .DragonFlow, 2, DateTime.Now.AddDays(7));


what does the number 2 after the name of the flag mean ?
sometimes i find it 3 .. sometimes 4 .. what is this ?


another question ..

in the MsgUpdate file there is this
DragonFlow = 1UL << 148,

in Conquer Online 2.0\ini\statuseffect file .. there is this
148 blooddrcontin NULL 10148

in Conquer Online 2.0\c3\effect\skill\blooddrcontin
there are c3 files of the Dragonflow effect of the dragonwarrior "in game effect"


but if i use MsgUpdate.Flags3.DragonFlow, 2, it shows the top 3 trojan effect!!
in totally different folder! ..
please i need help !! it makes no sense >> how this works :mad::mad:
Go to the function definition and find out?
02/07/2018 04:14 xyazanx#3
Quote:
Originally Posted by Spirited View Post
Go to the function definition and find out?
you were answering my first question .. thanks


it refers to a case ..


what about the flag thing ? could you help me please ?
02/07/2018 04:40 Spirited#4
Quote:
Originally Posted by xyazanx View Post
how to do that ? :confused:

Sorry Im kinda new ..




Do you mean like this ?


[Only registered and activated users can see links. Click Here To Register...]

then what ? :(
Yes, but highlighting the right thing first.
You should go through this entirely before attempting to even run a server, if you haven't already:
[Only registered and activated users can see links. Click Here To Register...]
02/07/2018 22:16 xyazanx#5
Quote:
Originally Posted by Spirited View Post
Yes, but highlighting the right thing first.
You should go through this entirely before attempting to even run a server, if you haven't already:
[Only registered and activated users can see links. Click Here To Register...]
I went through it .. Did not help in my problem ..

I am asking how can I make totally new statusflags (by photoshop)
how to put them in the right folder to use them IN GAME ..
02/08/2018 00:49 Spirited#6
And I'm saying figure it out. You should know how to find a function definition. Or did you figure that out already? In which case, what do you need help with exactly? We're here to answer questions, not run a server for you.
02/08/2018 00:59 xyazanx#7
Quote:
Originally Posted by Spirited View Post
And I'm saying figure it out. You should know how to find a function definition. Or did you figure that out already? In which case, what do you need help with exactly? We're here to answer questions, not run a server for you.
so helping me in a small issue is "running a server" for you ?
I can run my own server .. I am asking simple questions and you are not answering .. I am not a coder but i edited more than 90% of this source by myself by "coding" .. Faced a problem .. posted here .. 0 help >> you are telling me to figure it out .. i spent days trying to .. could not

THANKS FOR YOUR HELP
02/08/2018 01:09 Spirited#8
Quote:
Originally Posted by xyazanx View Post
so helping me in a small issue is "running a server" for you ?
I can run my own server .. I am asking simple questions and you are not answering .. I am not a coder but i edited more than 90% of this source by myself by "coding" .. Faced a problem .. posted here .. 0 help >> you are telling me to figure it out .. i spent days trying to .. could not

THANKS FOR YOUR HELP
I'm referring to the ~5 threads you have open. And if you're not a programmer, then why are you editing source code? That's dangerous. High performance server code shouldn't be modified by someone who doesn't know what they're doing. That's what leads to these sources having more bugs, more exploits, and more performance problems. That's why your source isn't allowed here to begin with. It's already in that state. So let's try again. What do you want from us? What is your question?
02/08/2018 01:27 xyazanx#9
this is it ..

in the MsgUpdate file there is this
DragonFlow = 1UL << 148,

in Conquer Online 2.0\ini\statuseffect file .. there is this
148 blooddrcontin NULL 10148

in Conquer Online 2.0\c3\effect\skill\blooddrcontin
there are c3 files of the Dragonflow effect of the dragonwarrior "in game effect"


but if i use MsgUpdate.Flags3.DragonFlow, 2, it shows the top 3 trojan effect!!
in totally different folder! ..


everything is ordered correctly but the results make no sense .. loading a flag from another folder .. why ? .. any idea how the "client" works ?
02/08/2018 01:35 Spirited#10
Alright, so look up bitflags for C#. That answers your first question. Second question is the same, look up the function definition. Right click on the function name and select go to definition if you haven't figured that out yet. Same as F12. From there, it should have a variable name and be used in the function. Read the function and figure out what it's being used for if the variable name isn't helpful. And likely the flags aren't correct (that's what I mean about bugs in these sources). You'll need to figure it out using that status effect file for your client version.
02/08/2018 01:50 xyazanx#11
Quote:
Originally Posted by Spirited View Post
Alright, so look up bitflags for C#. That answers your first question. Second question is the same, look up the function definition. Right click on the function name and select go to definition if you haven't figured that out yet. Same as F12. From there, it should have a variable name and be used in the function. Read the function and figure out what it's being used for if the variable name isn't helpful. And likely the flags aren't correct (that's what I mean about bugs in these sources). You'll need to figure it out using that status effect file for your client version.


Now thats a good answer :D thanks ..

the definition of number 2 is [public struct Int32] from metadata
nevermind about this ..

the second question .. the flags works fine but with different names ..

different folder locations .. i cant figure how to organize them ..


let me ask you about the UL << 148
i know it is a bitshift .. what is UL "unsigned Long"?
what does the whole UL << 148 means ?
I though the number 148 is the order number in the file statuseffect.ini
in the column number 148 there is this "148 blooddrcontin NULL 10148"
then there is a folder with the name "blooddrcontin" has the c3 files "dds files"
am I right ? no ?
02/08/2018 01:56 Ultimation#12
btw status flags are just a bigint
02/08/2018 01:59 Spirited#13
Quote:
Originally Posted by xyazanx View Post
Now thats a good answer :D thanks ..

the definition of number 2 is [public struct Int32] from metadata
nevermind about this ..

the second question .. the flags works fine but with different names ..

different folder locations .. i cant figure how to organize them ..


let me ask you about the UL << 148
i know it is a bitshift .. what is UL "unsigned Long"?
what does the whole UL << 148 means ?
I though the number 148 is the order number in the file statuseffect.ini
in the column number 148 there is this "148 blooddrcontin NULL 10148"
then there is a folder with the name "blooddrcontin" has the c3 files "dds files"
am I right ? no ?
http://www.alanzucconi.com/2015/07/26/enum-flags-and-bitwise-operators/

And sometimes folders are compressed in wdf files. Like c3.wdf.
02/08/2018 02:20 xyazanx#14
Quote:
Originally Posted by Spirited View Post
http://www.alanzucconi.com/2015/07/26/enum-flags-and-bitwise-operators/

And sometimes folders are compressed in wdf files. Like c3.wdf.
number 2 refers to flag type


HTML Code:
public void AddTopStatus(UInt64 Title, byte flagtype, DateTime EndsOn, Boolean Db = true)
:awesome:
02/08/2018 04:52 Spirited#15
Quote:
Originally Posted by xyazanx View Post
number 2 refers to flag type


HTML Code:
public void AddTopStatus(UInt64 Title, byte flagtype, DateTime EndsOn, Boolean Db = true)
:awesome:
Seems like they implemented it as three separate status bitmaps rather than one bigint bitmap (as Ultimation suggested it be implemented as). That's probably why you have multiple status flag enums, weird ids, etc. As I said, those sources are pretty awful. It's confusing for us to have to deal with as well, especially when there are so many variants.