DaySeven

Moved

Total Downloads: 705 - First Release: Mar 30, 2017 - Last Update: Mar 30, 2017

5/5, 5 likes
  1. Mordeus submitted a new resource:

    day7 - Allows players to check when the next horde night is.

    Read more about this resource...
     
  2. Mordeus updated Day 7 with a new update entry:

    1.1.0

     
  3. Bug in your code
    Code:
    if (_cInfo != null)
    {
        NextFrame(() =>
        {
            _cInfo.SendPackage(new NetPackageGameMessage(EnumGameMessages.Chat, string.Format(color, response),ServerName, false, "", false));
        });
    }
    else
    {
        _cInfo.SendPackage(new NetPackageGameMessage(EnumGameMessages.Chat, string.Format(color, error),ServerName, false, "", false));
    }
    If _cInfo is null you cant send it a message. (you do that more than once)
     
  4. Are you actually having a problem? Code is working for me and on our servers.
    If you are referring to this:
    Code:
    if (_cInfo != null)
    That checks to see if its anything but null, if its not it sends the message.
    hence the !
     
  5. Wulf

    Wulf Community Admin

    It's an if else check, which you use _cInfo in both. I don't think it'd ever be null though generally.
     
  6. Ahh I see, I been ignoring that because its never null, really a useless piece of code.
    I thought about pulling that part out, that was PrintToChat before, but I had to update it to use lang API for release, so I changed it to that not thinking about what I was doing.
    I don't really see a reason to keep that in there anymore, it should never be null, as you stated.
    plugin works fine as it is, so I will wait until next update to fix.
    Thanks for pointing that out Stevasaurous, I will correct it in next update.

    Sometimes we look at something so long, we dont actually see the problem...lol Thanks again.
     
    Last edited by a moderator: Mar 31, 2017
  7. No problem, I also figured it would never be null (I actively tried to make it null through various ways in game and through console for my own plugin testing) but wanted to let you know
     
  8. I'm getting "The Archive is either in unknown format or damaged." I'm on unable to open it with winrar?
     
  9. Just download it and install it to your Oxide plugins directory, no extraction needed, its a C# file.
     
  10. how do you add the plugins to a server
     
  11. Just simply download this, then put it in your oxide/plugins directory.
     
  12. I think this might be an Oxide problem @Wulf ? Not sure if something changed I don't know about, I have been trying to follow all your changes in GitHib, but it's a bit overwelming :) It seems like the other 7DTD plugins have issues too. Here is the compiler log:
    Code:
    DaySeven.cs(11,22): error CS0246: The type or namespace name `SevenDaysPlugin' could not be found. Are you missing an assembly reference?
    EconomicSystem.cs(14,25): error CS0246: The type or namespace name `SevenDaysPlugin' could not be found. Are you missing an assembly reference?
    MessageSystem.cs(15,27): error CS0246: The type or namespace name `SevenDaysPlugin' could not be found. Are you missing an assembly reference?
    Teleport.cs(14,22): error CS0246: The type or namespace name `SevenDaysPlugin' could not be found. Are you missing an assembly reference?
    DaySeven.cs(26,27): error CS0115: `Oxide.Plugins.DaySeven.LoadDefaultConfig()' is marked as an override but no suitable method found to override
    DaySeven.cs(49,21): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference?
    EconomicSystem.cs(50,27): error CS0115: `Oxide.Plugins.EconomicSystem.LoadDefaultConfig()' is marked as an override but no suitable method found to override
    EconomicSystem.cs(214,22): error CS0246: The type or namespace name `Entity' could not be found. Are you missing an assembly reference?
    EconomicSystem.cs(214,37): error CS0246: The type or namespace name `DamageResponse' could not be found. Are you missing an assembly reference?
    EconomicSystem.cs(281,31): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference?
    MessageSystem.cs(28,33): error CS0115: `Oxide.Plugins.MessageSystem.LoadDefaultConfig()' is marked as an override but no suitable method found to override
    MessageSystem.cs(74,29): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference?
    Teleport.cs(21,27): error CS0115: `Oxide.Plugins.Teleport.LoadDefaultConfig()' is marked as an override but no suitable method found to override
    Teleport.cs(117,21): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference?
    Teleport.cs(422,26): error CS0246: The type or namespace name `ClientInfo' could not be found. Are you missing an assembly reference?
    Strangely enough in Visual Studio I get none of this.
    I updated to the latest Oxide version for 7DTD which is Oxide 2.0 3614 for Alpha 16.3 according to the command line
     
  13. Wulf

    Wulf Community Admin

    I'll check and see. I didn't think I pushed any changes for that yet.

    Edit: I think I know why.
     
  14. I just downloaded Oxide build 2.0.3628 and gave it a try, everything compiled and seems to be working, thanks Wulf!