Register for your free account! | Forgot your password?

You last visited: Today at 17:06

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

Advertisement



[Release]My source...

Discussion on [Release]My source... within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 10/09/2011, 16:51   #316
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by F i n c h i View Post
Using IP 127.0.0.1 causes this client crash.
I'm about 90% sure the source is causing the problem, don't know why I haven't even touched it. Btw I use hamachi, so yeah.
killersub is offline  
Old 11/14/2011, 02:14   #317
 
elite*gold: 0
Join Date: Sep 2011
Posts: 17
Received Thanks: 8
Hey can someone post a link to this source?
xskive is offline  
Old 11/14/2011, 03:12   #318
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Spirited is offline  
Thanks
1 User
Old 11/14/2011, 03:15   #319
 
elite*gold: 0
Join Date: Sep 2011
Posts: 17
Received Thanks: 8
Quote:
Originally Posted by Fаng View Post
****, that was fast.
xskive is offline  
Old 11/14/2011, 05:25   #320
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Quote:
Originally Posted by xskive View Post
****, that was fast.
It was? o.o I responded an hour after you posted. Besides, this community helped me find my major and passion. The least I can do is give back.
Spirited is offline  
Old 12/16/2011, 06:56   #321
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Could somebody explain to me how to add dialog to an npc please? I know how to make the dialog, but when i build then debug the npc still says nothing. Not sure what i'm doing wrong so if anyone could tell me that'd be great, thanks.
corbit15 is offline  
Old 12/16/2011, 12:35   #322
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
Quote:
Originally Posted by corbit15 View Post
Could somebody explain to me how to add dialog to an npc please? I know how to make the dialog, but when i build then debug the npc still says nothing. Not sure what i'm doing wrong so if anyone could tell me that'd be great, thanks.
The case number should be the same as your NPC ID.
F i n c h i is offline  
Old 12/16/2011, 19:03   #323
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
i've been making sure the case numbers are matching with the npc id but still doesn't work
corbit15 is offline  
Old 12/17/2011, 02:24   #324
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Quote:
Originally Posted by corbit15 View Post
i've been making sure the case numbers are matching with the npc id but still doesn't work
Move the "Dialogs.cs" file to the main project, right about "Program.cs". Then delete the second project and rebuild it. There's NO benefit from splitting off the Dialogs into their own project. These days, if your computer can't build a solution in less than 3 seconds, there's something seriously wrong with it.

You shouldn't keep the dialogs like that either. Circular dependency is very poor style in programming and it causes a lot of problems... like the one you're experiencing.
Spirited is offline  
Thanks
1 User
Old 12/17/2011, 09:46   #325
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
for a full source mine takes about 3-5seconds. nothing "wrong" with it?
_DreadNought_ is offline  
Old 12/17/2011, 10:05   #326
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Quote:
Originally Posted by _DreadNought_ View Post
for a full source mine takes about 3-5seconds. nothing "wrong" with it?
I'm referring to back in the days when it took more than a minute to compile something. I don't mean literally 3 seconds on the dot. Was that comment really necessary?
Spirited is offline  
Old 12/17/2011, 10:24   #327
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Quote:
Originally Posted by Fаng View Post
Move the "Dialogs.cs" file to the main project, right about "Program.cs". Then delete the second project and rebuild it. There's NO benefit from splitting off the Dialogs into their own project. These days, if your computer can't build a solution in less than 3 seconds, there's something seriously wrong with it.

You shouldn't keep the dialogs like that either. Circular dependency is very poor style in programming and it causes a lot of problems... like the one you're experiencing.
Thanks i got it working now . Another question though, every once in a while i get a problem in program.cs with this line:

int Len = BitConverter.ToInt32(arg1, position += (ushort)(JunkLen + 4));

any idea why? i searched and found you posted something for it and i tried it and i thought it worked but it still happens every so often.

#EDIT nevermind i'm not having the problem anymore

#EDIT okay or not i just got the error again
corbit15 is offline  
Old 12/17/2011, 20:58   #328
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Ive had that many of times I fixed it by changing the routine.

Code:
                    try
                    {
                        Client.Exchange = false;

                        Client.Action = 1;
                        ushort position = 7;
                        uint PacketLen = BitConverter.ToUInt32(arg1, position); position += 4;
                        int JunkLen = BitConverter.ToInt32(arg1, position); position += 4; position += (ushort)JunkLen;
                        int Len = BitConverter.ToInt32(arg1, position); position += 4;
                        byte[] pubKey = new byte[Len];
                        for (int x = 0; x < Len; x++)
                            pubKey[x] = arg1[x + position];
                        string PubKey = System.Text.ASCIIEncoding.ASCII.GetString(pubKey);

                        Client.Cryptography = Client.DHKeyExchance.HandleClientKeyPacket(PubKey, Client.Cryptography);
                    }
Just uses a different method to do it. never had the problem since. could never figure it out either.
_DreadNought_ is offline  
Old 12/17/2011, 21:38   #329
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Quote:
Originally Posted by _DreadNought_ View Post
Ive had that many of times I fixed it by changing the routine.

Code:
                    try
                    {
                        Client.Exchange = false;

                        Client.Action = 1;
                        ushort position = 7;
                        uint PacketLen = BitConverter.ToUInt32(arg1, position); position += 4;
                        int JunkLen = BitConverter.ToInt32(arg1, position); position += 4; position += (ushort)JunkLen;
                        int Len = BitConverter.ToInt32(arg1, position); position += 4;
                        byte[] pubKey = new byte[Len];
                        for (int x = 0; x < Len; x++)
                            pubKey[x] = arg1[x + position];
                        string PubKey = System.Text.ASCIIEncoding.ASCII.GetString(pubKey);

                        Client.Cryptography = Client.DHKeyExchance.HandleClientKeyPacket(PubKey, Client.Cryptography);
                    }
Just uses a different method to do it. never had the problem since. could never figure it out either.
ah i almost had it lol i was one line off.

just tried it and the error showed up again right after i built and debugged O.o

#EDIT well after about 20 attempts i was actually able to login again. Has anyone had any problems in thread.cs and timer32.cs?
corbit15 is offline  
Old 12/17/2011, 23:20   #330
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Yes I had that problem in thread.cs and timer32.cs just ignore it.
_DreadNought_ is offline  
Reply


Similar Threads Similar Threads
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code
02/13/2011 - AutoIt - 6 Replies
Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein. Funktionsweise: 1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken 2. in meinem Programm auf "Code generieren" klicken 3. In euer Scite gehen und einfügen Hier ist der Source Code vom Programm:
[Release]How To Make Tq Source Work + Working Source + Server ByBass + Commands
12/08/2008 - CO2 PServer Guides & Releases - 15 Replies
1: How To Make The Server Work In fact, before other people did not just let ACC now with hi EACC Columbia landing on the settlement of the issue, and the rest is our own how to improve the content of those interested can improve the next. MY MY set and the same. INI MAP INI files and MAP with the client-to-date coverage of the account. server.dat ! And then as long as the client will be able to modify server.dat! 127.0.0.1 192.168.0.1 192.168.1.1 IP。 Please do generally use...



All times are GMT +1. The time now is 17:06.


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.