Resource icon

Approved DeathMSG 1.3a

No permission to download

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
I'm sending yesterday's record night until today full
can you help me with these errors?
 

Attachments

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
can confirm me on record that sent you wipe the system is giving error too?
 

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
every time I enter the server of this error attached, you tell me what it is?
 

Attachments

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
every time I enter the server of this error attached, you tell me what it is?
You might want to remove that picture, Anyone can connect using that IP address and login with the RCON password displayed in the picture.

EDIT: Blanked out the Rcon p/w for you.
 

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
You might want to remove that picture, Anyone can connect using that IP address and login with the RCON password displayed in the picture.

EDIT: Blanked out the Rcon p/w for you.
our excuse, did not realize it
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
Isn't it wrong?

Code:
def On_PluginInit(self):
        config = self.DeathMSGConfig()
        v = int(config.GetSetting("Settings", "usebannedpeoplebanlist"))
        if Plugin.GetPlugin("BannedPeople") is not None and v == 1:
            methodname = "BannedPeopleIni"
            pl = Plugin.GetPlugin("BannedPeople")
            ClassName = BannedPeople.BannedPeople()
            setattr(BannedPeople, "Plugin", pl)
            self.method = getattr(ClassName, methodname)
            self.bannedpeople = True
        Util.ConsoleLog("DeathMSG by" + __author__ + " Version: " + __version__ + " loaded.", False)
You assuming in line 31 (4 in this code) that I have BannedPeople directory. Well I don't have, what gives error and plugin wont work. It should check if plugin is available, and if not, set some variable to 0. And only if variable is 1 try to get plugin. Is it possible to make this fix?
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Isn't it wrong?

Code:
def On_PluginInit(self):
        config = self.DeathMSGConfig()
        v = int(config.GetSetting("Settings", "usebannedpeoplebanlist"))
        if Plugin.GetPlugin("BannedPeople") is not None and v == 1:
            methodname = "BannedPeopleIni"
            pl = Plugin.GetPlugin("BannedPeople")
            ClassName = BannedPeople.BannedPeople()
            setattr(BannedPeople, "Plugin", pl)
            self.method = getattr(ClassName, methodname)
            self.bannedpeople = True
        Util.ConsoleLog("DeathMSG by" + __author__ + " Version: " + __version__ + " loaded.", False)
You assuming in line 31 (4 in this code) that I have BannedPeople directory. Well I don't have, what gives error and plugin wont work. It should check if plugin is available, and if not, set some variable to 0. And only if variable is 1 try to get plugin. Is it possible to make this fix?
That's what the code does. Shouldn't give any error at all.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
But yes it does :D:
Code:
Traceback (most recent call last):
File "<string>", line 31 in On_PluginInit
KeyError: The given key was not present in the dictionary.
Whatever this error means, you just need to delete "Plugin.GetPlugin("BannedPeople") is not None" from IF in line 31 and it works fine.

I feel like it's checking if plugin exists here:

Code:
try:
    path = Util.GetRootFolder() + "\\Save\\PyPlugins\\BannedPeople"
    sys.path.append(path)
    import BannedPeople
except:
    pass
But in line 31 you just still assuming that plugin was found.
asd.....................
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
But yes it does :D:
Code:
Traceback (most recent call last):
File "<string>", line 31 in On_PluginInit
KeyError: The given key was not present in the dictionary.
Whatever this error means, you just need to delete "Plugin.GetPlugin("BannedPeople") is not None" from IF in line 31 and it works fine.

I feel like it's checking if plugin exists here:

Code:
try:
    path = Util.GetRootFolder() + "\\Save\\PyPlugins\\BannedPeople"
    sys.path.append(path)
    import BannedPeople
except:
    pass
But in line 31 you just still assuming that plugin was found (I mean code assuming it, not you)
Deleting that line is not really an option.

As I forgot GetPlugin doesn't return null, It throws lovely exception If the name is not in the collected list.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
Sorry, plugin is working, but it would be better to not have error.

Now it has not with your fix! You are genius! :)
 
  • Funny
Reactions: DreTaX

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
Good evening Staff
I am having great difficulty, an error that is complicating my life.
Functioning server perfectly until of nowhere begins climb a lot of red letters and of a warning on the screen and then closes.
I am sending the files it is crianto every time does it
 

Attachments