Jump to content

sphereii

Members
  • Posts

    3,062
  • Joined

  • Last visited

  • Days Won

    23

Posts posted by sphereii

  1. 6 minutes ago, three08 said:

    Can anyone give me an example of a patch script that replaces an existing method with my own code? I'm trying to add my code in BlockPowerDoor.ActivateBlock but it keeps coming up like this, I get basically the same result when trying to add new methods as well, I can create the method but cant put anything in it.

     

    
    // BlockPoweredDoor
    public override bool ActivateBlock(WorldBase _world, int _cIdx, Vector3i _blockPos, BlockValue _blockValue, bool isOn, bool isPowered)
    {
        //IL_0006: Expected I4, but got O
        return ((BlockPoweredDoorPatchFunctions)/*Error near IL_0006: Stack underflow*/).ActivateBlock_Patch((WorldBase)/*Error near IL_0006: Stack underflow*/, (int)/*Error near IL_0006: Stack underflow*/, (Vector3i)/*Error near IL_0006: Stack underflow*/, (BlockValue)/*Error near IL_0006: Stack underflow*/, (byte)/*Error near IL_0006: Stack underflow*/ != 0, (byte)(int)this != 0);
    }

     

    You would use a Harmony patch

     

     

        [HarmonyPatch(typeof(Block))]
            [HarmonyPatch("Init")]
            public class Init
            {
                public static bool Prefix(ref Block __instance)
                {
    				Debug.Log("Run me.");
                   return true;
                }
            }

     

     

    The return true on a Prefix will allow the base Block's Init to run as well. if you return false, the base Block's Init will not run, just your code.

  2. 1 hour ago, Chase said:

    Is there a way to add command line flags to a config xml? I want to pass "+connect" so players just have to click "play mod" on my server profile and it will connect them to my server.

    You can set the <IPAddress></IPAddress> and <Port></Port> xml node to do the Quick Connect, but no way to directly connect to a server from the configuration.

     

    This is meant to protect players from over enthusiastic modders who try to funnel and force settings unto the user.

  3. 22 minutes ago, DutchPlacebo said:

    Hi, i need some help.

    I want to add a new mod into the launcher. It simply says "Click on Open URL and copy and paste this path: https://raw.githubusercontent.com/SphereII/Winter-Project-A19/master/WinterProject.xml"

     

    So, that's what i do. But it won't add the new mod at the launcher.

    Is there something i do wrong?

    That should already be listed. Take a look under sphereii-mental,

     

    Note: Winter Project has not been updated to 19.5 yet

  4. 2 minutes ago, Gandilein said:

    Yeah I know that with the modlets but I wanted to try the Day of the Dead mod and the Quick Stack Mod but they are mods and not modlets

    If they are not listed in the mod launcher, then you may have to follow their manual installs. I don't think they have a mod launcher configuration.

  5. 5 minutes ago, Gandilein said:

    The HowTos shows the button right next to the Play button but I can't find it somewhere else too.

    I just want to install some mods that are not listed in the Launcher

     

    Manage Modlets allows you to download extra modlets to a game install.   Which mods were you looking for? 

  6. 5 minutes ago, Gandilein said:

    Hey there, I downloaded the ModManager but the "More Mods" button is missing and I can't open the configs, when I press configs, just nothing happens.

    Are you using the 7D2D Mod Launcher, or are you using the Vortex Mod Manager from Nexus? This thread is just for 7D2D Mod Launcher.

  7. 3 minutes ago, Survager said:

    At the same time, Assembly-CSharp.dll after an unsuccessful completion of the assembly has a different size, which differs from the original by 2Mb.
    And also the file 0Harmony appears in the folder with the copy of the game. dll, which weighs 750Mb. That is, it turns out that the antivirus does not block anything?

     

    Possibly; the patch scripts would have added new fields to the DLL, but when it compiles the Mods.dll, those fields are not there. There's still a step being blocked.

  8. 4 minutes ago, Survager said:

    Am I working in the Program Files folder?

    Not. And the game itself and the copy and DMT, all this is on a separate non-system drive. (not C)
    And no, I run the program without administrator rights.
    However, I tried running as administrator and got the same result.

     

    I am not sure what else to otherwise suggest. I have synced up with the latest, using the same version of DMT, and it works on my end, and I have not heard of this issue before. The part that is failing is when its modifying the DLL, and I'm still suspicious of the security software blocking it silently.

  9. 2 minutes ago, Survager said:

    It is unlikely, since the antivirus settings are configured to inform the user as much as possible about some suspicious processes. That is, the antivirus would inform me about such a case and ask whether it is worth allowing the program to do this or that.
    Now I turned off protection and got the same errors (

    Could this be somehow affected by the installed Visual Studio 2019? Or maybe Unity?

     

    No, I have many programs like that installed, and it does not affect it. One thing I do wonder, are you starting DMT Viewer as an administrator? Since you are working in your Program Files folder, I wonder if it's upset about that.

  10. 12 minutes ago, Survager said:

    The 0-SphereIICore folder is located in the "7 Days To Die DMT Mods" folder.
    "The 7 Days To Die DMT Mods" folder is outside the game copy folder and outside the folder with "DMTViewer.exe" file

    I grabbed a fresh copy of everything, and I was able to build.

     

    I'm suspecting that ESET Internet Security is possibly interfering 

  11. 13 minutes ago, Survager said:

    Not sure if I understood your message correctly ...
    Here is a list of what is in the folder with the DMTViewer.exe file

     

     

    Where does the 0-SphereIICore exists?

  12. 7 minutes ago, Survager said:

     

    So, I deleted all the files from the folder with the copy of the game and copied them again from original folder.

    And also deleted the Backups folder from the DMT folder

     

    It's results (((

     

     

     

    Ahh, I think I see something. Another folder structure change is needed.   Do you have the DMT mods in the same folder as DMT Viewer? If so, let's put the DMT mods into a different folder structure different than the game + DMT Viewier.

  13. 4 minutes ago, Perrius said:

    Hallo first off all sry for the bad english. 

    I have a problem installing mods, or rather see them. when i download war of the walkers, and pre-sync the game, I can only see the mods that I manually picked on the list, but not all the mods for the game. When i start the game, it only shows the vanilla game. I have tried reinstall, see if it happens to other mods (I does). So I am a bit lost. the launcher worked fine last week, so i dont now what is wrong :) 

     

    Can you take a screenshot of your Mod Launcher with War of the Walkers selected? Any other mods have this issue?

  14. 5 minutes ago, Survager said:

    How? )
    This is a copy of the original game folder.
    Do I have to check the integrity of the game files in the original folder and then copy it again?

     

    Yes, more in particular, the Assembly-CSHarp.dll gets modified when DMT is ran, so that needs to be 100% clear. The Backup folder I'm talking about should be in the same folder as your DMTViewer.exe

  15. 3 minutes ago, Survager said:

    Yes, I am using ESET Internet Security, but he never swore at DMT

     

    This new log:
     

     

     

    In your DMT folder, can you delete the Backup folder, re-validate your 7 Days to Die steam folder through steam, then try again?

  16.  

    1 minute ago, Survager said:

    I moved the folder outside the folder with the copy of the game.
    The PatchScripts folder is located in the 0-SphereIICore folder

    image.png.365515009cc197d95fc5cb850bc98e9f.png

     

    Here are the contents of the PatchScripts folder:

    EAITaskPatches.cs
    EntityMoveHelper.cs
    FoodSpoilagePatch.cs

     

    I still get the same errors after starting the build (

     

    Which version of DMT are you using?

  17. Just now, Survager said:

    Yes

     

    Yes

     

    Should the DMT Mods folder be outside the game copy folder? Did I understand correctly?

    Yes, it should be outside of the game folder. DMT will copy everything over for you. 

     

    Your error specifically seems to indicate that the 0-SphereIICore\PatchScripts folder is missing, so please check to make sure it exists.

  18. 54 minutes ago, Survager said:

    Hello survivors)
    Somebody help me.
    I have installed DMT.
    Copied the folder 0-SphereIICore (19.3.1.14) to the folder with DMT mods
    Marked 0-SphereIICore in the mod list in DMT
    I run the build and get a lot of errors.
    What am I doing wrong?

     

    
    1|Clearing temp folder
    Parsing arguments
    Running BackupFiles
    Backup dll found: D:\Games\steamapps\common\7 Days To Die DMT\DMT/Backups/SP/19.4b7/Assembly-CSharp.dll
    Running DeployDlls
    Deploying DLLs
    Running LocalisationPatch
    Localisation no longer handled in DMT after A17
    Running InitialPatchTask
    Compiling Roslyn Scripts assembly for InitialPatch...
    Built patch file in 0ms
    PatchMods compile successful
    Found patcher mods: 3
    
    
    
    Hooking harmony
    Hooking console commands
    Running CreateModDll
    Compiling Mods.dll...
    Compiling Roslyn Scripts assembly for InitialPatch...
    Built in 0ms
    Mods.dll compile successful
    
    Parsing arguments
    Running LinkedPatchTask
    Built patch file in 0ms
    PatchMods compile successful
    Found patcher mods: 3
    Link patching 3 files
    
    Parsing arguments
    Running FinalPatchTask
    Built patch file in 0ms
    PatchMods compile successful
    Found patcher mods: 3
    Final patching 3 files
    Running CreateHarmonyDlls
    Compiling Harmony mod for 0-SphereIICore...
    Compiling Roslyn Scripts assembly for FinalPatch...
    warning CS1701: Assuming assembly reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' used by 'UnityEngine.CoreModule' matches identity 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' of 'mscorlib', you may need to supply runtime policy
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\XML\ModInfo.cs(31,33): warning CS0168: The variable 'e' is declared but never used
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\Blocks\BlockSecureLoot.cs(66,13): warning CS0162: Unreachable code detected
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(75,22): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(75,51): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(76,22): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(76,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(62,28): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(63,28): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(89,34): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(90,34): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(128,87): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(191,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(192,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(195,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(273,162): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    process exited with error code -1
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(276,132): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(283,52): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(286,91): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(290,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(291,52): error CS1061: 'ItemValue' does not contain a definition for 'NextSpoilageTick' and no accessible extension method 'NextSpoilageTick' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(294,77): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/0-SphereIICore/Harmony\FoodSpoilage\FoodSpoilage.cs(338,60): error CS1061: 'ItemValue' does not contain a definition for 'CurrentSpoilage' and no accessible extension method 'CurrentSpoilage' accepting a first argument of type 'ItemValue' could be found (are you missing a using directive or an assembly reference?)
    Failed to compile Harmony dll Harmony-0-SphereIICore.dll
    Build failed

     

     

    Can you explain your set up a bit?

     

    d:\Games\steamapps\common\7 Days To Die DMT\DMT Mods/  : that's where all the DMT mods are?

     

    d:\Games\steamapps\common\7 Days To Die DMT  : Is this where your game exists? If so, you want to move the DMT Mods folder outside of this.

     

  19. 6 hours ago, Pud said:

    I keep getting xml errors when starting the launcher.  I have unsinstalled it about 10 times. Gone through windows looking for any residual files with Mod Launcher as the title. still ge tthe same error.

    Can anyone help?

     

    Error message starts out with
    "Error reading private XML Configuration: Syetem.xml.XMLException:"
    ends with
    "C;\Users\Jeff\Documents\GitHub\7D2DModLauncher\" ...etc etc

     

    This seems like there's a bad line in your configuration file.

     

    Click on View, then Open Configuration File.

    Close the Mod Launcher, and look for the RemoteServers= line. This probably has some badly formed stuff. You can delete this entire line, save, then restart the mod launcher.

     

     

  20. 4 hours ago, patratcan said:

    Do animal lose health gradually if they don't have food?  I'll leave for a day and come back and my cow will have 30 health.  It's well protected so I'm trying to figure out if the path to the food storage box is maybe broken.  I've noticed no food is ever being consumed.  

    Do the cows have the maslow task? They could be starving. Unfortunately the system wasn't very polished on release.

×
×
  • Create New...