Register for your free account! | Forgot your password?

You last visited: Today at 12:49

  • 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 05/22/2010, 18:30   #121
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
Ok... this is officially driving me insane... I cannot figure out why it would possibly be doing this.

I'm unable to do any output to console through player commands and I'm unable to add/test commands because of that.

It's as though that chat packet handling is never happening at all which really doesn't make sense as other commands that were already added do work.


I've A: tested adding a console command to make sure I wasn't doing something stupid and not writing it out correctly.

B: Written a function in the packet handler to do the writeline (incase it was only possible to do console output for some reason in the main cs file) and then called that using the console command. it works fine...

C: Removed all the existing commands so that there can't be any problem with switch statements or anything. I simply have it doing

Code:
  static bool CheckCommand(Message message, Client.GameState client)
        {            
            if (message.__Message.StartsWith("/"))
            {                
                Console.WriteLine("You used CheckCommand");
                return true;
            }
            return false;
        }
No success with that so I added a writeline directly into the chat handler (right before the checkcmd function is being called). No luck there either.

Note: I've tried using the stupidly simple function I wrote (that worked when being called from the main cs file) as well as the normal console.writeline format... I simply cannot think of a single reason why this won't work.. Personally I use commands for all my coding and debugging so this is really bothering me :S I'm sure it's something stupidly simple that I'm missing but it's just not making any sense to me.
pro4never is offline  
Old 05/22/2010, 21:31   #122

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Quote:
Originally Posted by pro4never View Post
Ok... this is officially driving me insane... I cannot figure out why it would possibly be doing this.

I'm unable to do any output to console through player commands and I'm unable to add/test commands because of that.

It's as though that chat packet handling is never happening at all which really doesn't make sense as other commands that were already added do work.


I've A: tested adding a console command to make sure I wasn't doing something stupid and not writing it out correctly.

B: Written a function in the packet handler to do the writeline (incase it was only possible to do console output for some reason in the main cs file) and then called that using the console command. it works fine...

C: Removed all the existing commands so that there can't be any problem with switch statements or anything. I simply have it doing

Code:
  static bool CheckCommand(Message message, Client.GameState client)
        {            
            if (message.__Message.StartsWith("/"))
            {                
                Console.WriteLine("You used CheckCommand");
                return true;
            }
            return false;
        }
No success with that so I added a writeline directly into the chat handler (right before the checkcmd function is being called). No luck there either.

Note: I've tried using the stupidly simple function I wrote (that worked when being called from the main cs file) as well as the normal console.writeline format... I simply cannot think of a single reason why this won't work.. Personally I use commands for all my coding and debugging so this is really bothering me :S I'm sure it's something stupidly simple that I'm missing but it's just not making any sense to me.
So I tried to use this as an command
Code:
case "cmd":
                                        {
                                            Console.WriteLine("Console output");
                                            break;
                                        }
And that does exactly what it says it does, also tried this
if (message.__Message.StartsWith("/"))
{
Console.WriteLine("You used CheckCommand");
And it outputs on the console whenever I use a command. So what exactly is your problem?
Kiyono is offline  
Old 05/22/2010, 21:52   #123
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
Quote:
Originally Posted by Kiyono View Post
So I tried to use this as an command
Code:
case "cmd":
                                        {
                                            Console.WriteLine("Console output");
                                            break;
                                        }
And that does exactly what it says it does, also tried this
if (message.__Message.StartsWith("/"))
{
Console.WriteLine("You used CheckCommand");
And it outputs on the console whenever I use a command. So what exactly is your problem?
Yah... very strange cause it's refusing to work and i have the identical thing. I'll just start with a fresh source and see if that fixes it... it's a very strange problem though cause everything else works but it refuses to do console output
pro4never is offline  
Old 05/22/2010, 21:56   #124

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Quote:
Originally Posted by pro4never View Post
Yah... very strange cause it's refusing to work and i have the identical thing. I'll just start with a fresh source and see if that fixes it... it's a very strange problem though cause everything else works but it refuses to do console output
Really strange that it doesn't work for you but it does for me but be glad that you just have that problem, my problem is worse >_<
Kiyono is offline  
Old 05/22/2010, 22:48   #125
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Hmm, just add my msn and message me. I'll try my best to help ya...it would be just a lot easier to talk over msn than doing it with PMs/this thread. Even if I'm not online, message me with your problem and also tell me your time zone...I've got GMT +2.
-impulse- is offline  
Old 05/23/2010, 00:23   #126
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
it is:
Code:
client.Entity.ConquerPoints
then the same for money on adding / taking away
Code:
client.Entity.ConquerPoints += 500;
client.Entity.ConquerPoints -= 500;
MonstersAbroad is offline  
Old 05/23/2010, 00:25   #127
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
Quote:
Originally Posted by ElectricZebra View Post
Ok I need a little help.
Instead of the code for silvers:

What is it for CPs?
I have tried:

But it don't work.
Any help?
client.Entity.ConquerPoints

EDIT: Beat me to it >.>
xScott is offline  
Old 05/23/2010, 01:35   #128
 
BlueFlame11's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 116
Received Thanks: 12
#Edit Never mind fixed it
BlueFlame11 is offline  
Old 05/23/2010, 07:49   #129
 
chickmagnet's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 372
Received Thanks: 53
well i use this and it works its navicat lite 9 its premium full and thx 4 the source its perfect 4 me 2 start learnin

chickmagnet is offline  
Old 05/23/2010, 10:14   #130
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Quote:
Originally Posted by ElectricZebra View Post
I need some help.
When I coded a npc I made the case ID what it said in the game, and I build and debugged, but when i login, it still says hi i havent been coded my id is blah.
Anyone know why?
left click NPCDialog->Build
MonstersAbroad is offline  
Old 05/23/2010, 22:14   #131
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Decker, figure it out -_- its a base
MonstersAbroad is offline  
Old 05/23/2010, 23:43   #132
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by ElectricZebra View Post
Why is it I can only make +9 gear and not +12?
Go where commands are and fin
Code:
item.Plus = Math.Min(Data[9], 9);
or something like that... do it.

Code:
item.Plus = Math.Min(Data[9], 12);
-impulse- is offline  
Thanks
1 User
Old 05/23/2010, 23:54   #133
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
I think this just might bring people out of lotf.
Arcо is offline  
Thanks
1 User
Old 05/23/2010, 23:59   #134
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
Quote:
Originally Posted by .Arco View Post
I think this just might bring people out of lotf.
*** I hope so...

Ooh and for the record I did get the console output working. I just needed to re-extract the source. Must have messed something up when I was messing around with the packets.. which is strange but w/e.
pro4never is offline  
Old 05/24/2010, 00:04   #135
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by ElectricZebra View Post
How do we add mobs and guards?

#edit
item.Plus = Math.Min(Data[9], 9); is not in the source, I have searched, all I have found close to that is newItem.Plus = Math.Min((byte)9, plus);
Take other sources as examples.


"Math.Min((byte)9, plus)"
What do you think you're supposed to change if you're trying to raise the +9 limit?
Arcо is offline  
Thanks
1 User
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 +2. The time now is 12:49.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.