Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 04:49

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

Advertisement



Can someone explain this to me?

Discussion on Can someone explain this to me? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 31
Can someone explain this to me?

I've got this in Redux:

Code:
/// <summary>
///  [0x400000000]
/// </summary>
TopGuildLeader = 1U << 34, //17179869184,
Its for the Halo's.
I upgraded the Client to 5079 (rest is working and Packets are no problem anymore).

When i try to add this to myself, with a custom command (its adding the 'NoBody' status). and then my Character disappears...

Code:
/// <summary>
/// [0x00000004]
/// </summary>
NoBody = 1U << 2,
It looks like the bitshift isn't correct, but i doubt it is the problem.

Is there anybody that can help me?

Client should not be the problem, since Halo's were added in 5078 if i'm right.

Kind regards.
bashondegek is offline  
Old 08/07/2020, 03:55   #2
 
elite*gold: 0
Join Date: Jul 2011
Posts: 96
Received Thanks: 76
It should be 1UL << 34.

1U means unsigned integer (uint). Unsigned integers have 32 bits and can't have a value bigger than 4,294,967,295 and smaller than 0. So after 31 bitshifts, 32nd will just reset the value

(1U << 32 == 1U << 0)

1UL on the other hand, means unsigned long (ulong) and can take absurdly high values and most importantly, can shift bits 63 times in one direction (64th will reset again)

(1UL << 64 == 1UL << 0 == 1U << 0)

Latyos is offline  
Old 08/07/2020, 09:18   #3
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 31
Quote:
Originally Posted by Latyos View Post
It should be 1UL << 34.

1U means unsigned integer (uint). Unsigned integers have 32 bits and can't have a value bigger than 4,294,967,295 and smaller than 0. So after 31 bitshifts, 32nd will just reset the value

(1U << 32 == 1U << 0)

1UL on the other hand, means unsigned long (ulong) and can take absurdly high values and most importantly, can shift bits 63 times in one direction (64th will reset again)

(1UL << 64 == 1UL << 0 == 1U << 0)

Thanks for the explanation! Thats seems to work indeed.
Problem that i'm having now, is that the client is not showing the effect anyways...
When i try it with the older effects its working pretty good, so the luckytime effects are working... But still not the halo's..

Its not giving me any errors or something.

Patched the client from 5065 to 5082, so that shouldn't be the problem..
bashondegek is offline  
Old 08/07/2020, 09:54   #4
 
elite*gold: 0
Join Date: Jul 2011
Posts: 96
Received Thanks: 76
Quote:
Originally Posted by bashondegek View Post
Thanks for the explanation! Thats seems to work indeed.
Problem that i'm having now, is that the client is not showing the effect anyways...
When i try it with the older effects its working pretty good, so the luckytime effects are working... But still not the halo's..

Its not giving me any errors or something.

Patched the client from 5065 to 5082, so that shouldn't be the problem..
try "/string 10 gamemain" or "/string gamemain 10" (not really sure about the order). If you see halo on your character, there's no issue with files. Else, you are probably on wrong version (still can check "/c3/effect/other" for "gamemain" directory.)

If string command works, there's probably issue in statuseffect.ini file. Try to locate gamemain entry there as well.
Latyos is offline  
Old 08/07/2020, 10:06   #5
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 31
Quote:
Originally Posted by Latyos View Post
try "/string 10 gamemain" or "/string gamemain 10" (not really sure about the order). If you see halo on your character, there's no issue with files. Else, you are probably on wrong version (still can check "/c3/effect/other" for "gamemain" directory.)

If string command works, there's probably issue in statuseffect.ini file. Try to locate gamemain entry there as well.

Never knew that.
Guess something else is wrong, since i'm seeing fireworks... haha

I've got the effects in the c3/effect/other folder...
Seeing the dds files there which are containing: Top-Trojan and Top Archer for example.


Update:
/String is doing other stuff, its not related to the statuseffects..
bashondegek is offline  
Old 08/07/2020, 13:43   #6
 
elite*gold: 0
Join Date: Jul 2011
Posts: 96
Received Thanks: 76
Quote:
Originally Posted by bashondegek View Post
Never knew that.
Guess something else is wrong, since i'm seeing fireworks... haha

I've got the effects in the c3/effect/other folder...
Seeing the dds files there which are containing: Top-Trojan and Top Archer for example.


Update:
/String is doing other stuff, its not related to the statuseffects..
Do you see "gamemain" folder?

Also sorry, forgot string command in redux was ***.

Code:
private static void Process_String(Player client, string[] command)
        {
            if (client.Account.Permission < PlayerPermission.GM)
                return;
            if (command.Length < 2)
                client.SendMessage("Error: Proper format is /string Content");
            else
                client.SendToScreen(StringsPacket.Create(client.UID, (StringAction)int.Parse(command[1]), command2[2]), true);
        }
Replace it with this instead. Then try "/string 10 gamemain".
Latyos is offline  
Old 08/07/2020, 14:19   #7
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 31
Quote:
Originally Posted by Latyos View Post
Do you see "gamemain" folder?

Also sorry, forgot string command in redux was ***.

Code:
private static void Process_String(Player client, string[] command)
        {
            if (client.Account.Permission < PlayerPermission.GM)
                return;
            if (command.Length < 2)
                client.SendMessage("Error: Proper format is /string Content");
            else
                client.SendToScreen(StringsPacket.Create(client.UID, (StringAction)int.Parse(command[1]), command2[2]), true);
        }
Replace it with this instead. Then try "/string 10 gamemain".
Cool! That seems to work...!
Seeing the Halo at my own character now.

Then there is something wrong with my packets or the enum?
bashondegek is offline  
Reply


Similar Threads Similar Threads
Can someone explain we how i can add items in a4 boxes
02/27/2018 - Nostale - 3 Replies
I try it with rollgenerateitem but somebody tell me i need to add it directly in the source
Can't start, someone can help/explain?
06/20/2013 - Archlord - 1 Replies
Hello I can't start the game on, i login perfectly etc (at the website) en then: http://www.elitepvpers.com/forum/members/4923576- tibbie-albums12754-error-picture43304-erroral.png (In FAQ there is no 10011 error code lol, only 10010..?) When i want to start with easylogin the first 3 things are V (good)
TBot Nice And Clean Can Someone Explain That
11/09/2007 - SRO Hacks, Bots, Cheats & Exploits - 3 Replies
So ? http://i174.photobucket.com/albums/w95/mompel/bot .jpg
Can someone explain me?
09/14/2005 - Lineage 2 - 0 Replies
Hi guys :) i play on a C2 hispanic private server, i'd love to know how to use correctly l2walker, i'm actually with the 10.23 version of it, and i don't know how to connect to that server, i think i introduce correctly the things but then it doesn't seem so, can you help me please / if you can give me screens i'll be really thankfull) I attach the server info to see if you can tell me which port and IP i must introduce. Thanks to all and congrats for the good work you do :)



All times are GMT +1. The time now is 04:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.