Register for your free account! | Forgot your password?

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

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

Advertisement



Error when guards are attacking monsters...

Discussion on Error when guards are attacking monsters... within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 84
Received Thanks: 2
Error when guards are attacking monsters...

i have a problem, when guards are attacking monsters, this error appears in my console, every time a guard attacks a monster, this error shows up on my console...
i think its something wrong with the cps drop, like when guards are attacking, they earn cps or something like that, this is what i think...
Any clue? thanks.

HerpDerpNigga is offline  
Old 09/04/2011, 19:02   #2
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
Check your guard's attack type...It has something to do with it too.
F i n c h i is offline  
Old 09/04/2011, 20:55   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Based on the fact it has to do with MonsterInformation.Drop it is definitely most likely that the CP's value for the guard is null.

When adding the cps make sure the entity flag is player.

That and/or before adding cps make sure Cps != null
pro4never is offline  
Old 09/05/2011, 07:25   #4
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by pro4never View Post
Based on the fact it has to do with MonsterInformation.Drop it is definitely most likely that the CP's value for the guard is null.

When adding the cps make sure the entity flag is player.

That and/or before adding cps make sure Cps != null
An integer can never be null within a method. It can be null, if he's calling it from another class/struct or whatever, but as long is a variable within the method, which CPs most likely are, when it's for dropping. Well, then it will never be null, because it has to have a value, before using it, otherwise the compiler will throw following error:
Code:
Use of unassigned local variable 'variablename'
BaussHacker is offline  
Old 09/05/2011, 14:08   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Ahem what I meant to say was the code INSIDE of his cps code.

I'm assuming he's using trinity or something where it has a billion get/set accessors for every possible thing that needs doing. It's the most obvious thing I can think of where it's trying to send an update packet to the entity cause it considers it a player but the socket connection is null.
pro4never is offline  
Thanks
1 User
Old 09/05/2011, 21:59   #6
 
elite*gold: 0
Join Date: May 2011
Posts: 84
Received Thanks: 2
[Help] Sometimes throws this error

Well, sometimes when I log in, the console throws this error:



So I checked the 831 line in GameState.cs, here it is:
The red line is the 831 line where the errors is
Code:
public Game.Map Map
        {
            get
            {
                if (map == null)
                {
                    [COLOR="Red"][B]ServerBase.Kernel.Maps.TryGetValue(Entity.MapID, out map);[/B][/COLOR]
                    if (Entity.MapID >= 11000 && map == null)
                        Entity.MapID = 1005;
                    if (map == null)
                        return (map = new Conquer_Online_Server.Game.Map(Entity.MapID, Database.MapsTable.MapInformations[Entity.MapID].BaseID, Database.DMaps.MapPaths[Database.MapsTable.MapInformations[Entity.MapID].BaseID], false));
                }
                else
                {
                    if (map.ID != Entity.MapID)
                    {
                        ServerBase.Kernel.Maps.TryGetValue(Entity.MapID, out map);
                        if (Entity.MapID >= 11000 && map == null)
                            Entity.MapID = 1005;
                        if (map == null)
                            return (map = new Conquer_Online_Server.Game.Map(Entity.MapID, Database.MapsTable.MapInformations[Entity.MapID].BaseID, Database.DMaps.MapPaths[Database.MapsTable.MapInformations[Entity.MapID].BaseID], false));
                    }
                }
                return map;
            }
        }
How can TC be a null map?

I checked the 58 line in Screen.cs, here it is:
The red line is the 58 line where the error is
Code:
[COLOR="Red"][B]if (Owner.Map.FreezeMonsters)[/B][/COLOR]
                        return;
                    for (int c = 0; c < Objects.Count; c++)
Why does TC freezes my monsters or w/e the 58 line says?
Thanks
HerpDerpNigga is offline  
Old 09/05/2011, 22:03   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
umm...

It sounds to me like it's saying..


"If my map is not set to anything... try to set it to something from the Kernel.Maps collection"
pro4never is offline  
Thanks
1 User
Old 09/05/2011, 22:10   #8
 
elite*gold: 0
Join Date: May 2011
Posts: 84
Received Thanks: 2
Quote:
Originally Posted by pro4never View Post
umm...

It sounds to me like it's saying..


"If my map is not set to anything... try to set it to something from the Kernel.Maps collection"
Any idea how can I fix this, or is this affecting with something in game, while playing?
Thanks
HerpDerpNigga is offline  
Reply


Similar Threads Similar Threads
Backyard Monsters - Attacking Tribes with 13M loots.....
07/08/2011 - Facebook - 5 Replies
want to know??
[HELP] how to make guards hit monsters
12/09/2009 - CO2 Private Server - 18 Replies
how do i make the Guard1 hit monsters that come nearby? im on 5017 source called COmy v5017 help plz!
invisible monsters, armors, guards,...
01/26/2007 - CO2 Guides & Templates - 4 Replies
Go to C:&#092;Program Files&#092;Conquer 2.0&#092;ini and find file armor open it and delete all in it(before make a backup file) then save and start conquer and here is a edited file



All times are GMT +1. The time now is 21:20.


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.