Announcement

Collapse
No announcement yet.

DMT Modding Tool

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Nice work Hal, I finally got the chance to try out A18 tonight and so far all my A17 SDX mods are working with this without any changes. Except my custom icons don't show up anymore, was there a change to how they work?

    Comment


      #32
      Originally posted by three08 View Post
      Nice work Hal, I finally got the chance to try out A18 tonight and so far all my A17 SDX mods are working with this without any changes. Except my custom icons don't show up anymore, was there a change to how they work?
      Make a folder structure like this: UIAtlases/ItemIconAtlas

      The icon atlas is generated on game start up based on its contents. 160x160 is the new standard size, although 116x80 still works.

      Comment


        #33
        I remember with SDX tool to mod a Dedi, you had to install a dedi on your PC, and build that way, then copy over the dll and mods folder, im assuming its the same way for DMT?

        Comment


          #34
          Originally posted by jerseyetr View Post
          I remember with SDX tool to mod a Dedi, you had to install a dedi on your PC, and build that way, then copy over the dll and mods folder, im assuming its the same way for DMT?
          Yes. With DMT, you can add multiple build locations, so you can point to both the client and dedi and have them build.

          The files are different though. Under Managed, you are looking for Assembly-CSharp.dll, Mods.dll, 0Harmony.dll, and DMT.dll, along with the traditional Mods folder.

          I usually sort the Managed folder by Date modified, and grab them easily.

          Comment


            #35
            Originally posted by sphereii View Post
            Yes. With DMT, you can add multiple build locations, so you can point to both the client and dedi and have them build.

            The files are different though. Under Managed, you are looking for Assembly-CSharp.dll, Mods.dll, 0Harmony.dll, and DMT.dll, along with the traditional Mods folder.

            I usually sort the Managed folder by Date modified, and grab them easily.

            Thats what I usually do as well.

            Thanks for the swift reply. Love your mods and all the work you do!

            Comment


              #36
              Really odd bug now after several hours of playing. My server crashed while I was playing and my game seems to be very borked since.

              Server is fine, all players connect fine, but I cannot get onto my game at all.

              I sign in with DMT and my game Immediately open a SP game... if I quit VIA the pause menu it goes directly to desktop.

              uninstalled 2 times and retired still same thing.
              Installed in new spot same thing.
              Completely wiped all traces of 7dtd same thing
              wiped via game launcher same thing
              Uninstalled, DIDNT use DMT, and it works. Build with DMT, doesn't work.

              It seems once adding the rebuilt assembly dll, i get the error, deleting, and verifying clears the error. But the issue is now, I can't get on my own server and all my players can....

              No matter what I try I can't play with DMT.. All im using is Animal Husbandry, Bandits, Traders and NPCS and its 1 dependency.

              Comment


                #37
                Originally posted by jerseyetr View Post
                Really odd bug now after several hours of playing. My server crashed while I was playing and my game seems to be very borked since.

                Server is fine, all players connect fine, but I cannot get onto my game at all.

                I sign in with DMT and my game Immediately open a SP game... if I quit VIA the pause menu it goes directly to desktop.

                uninstalled 2 times and retired still same thing.
                Installed in new spot same thing.
                Completely wiped all traces of 7dtd same thing
                wiped via game launcher same thing
                Uninstalled, DIDNT use DMT, and it works. Build with DMT, doesn't work.

                It seems once adding the rebuilt assembly dll, i get the error, deleting, and verifying clears the error. But the issue is now, I can't get on my own server and all my players can....

                No matter what I try I can't play with DMT.. All im using is Animal Husbandry, Bandits, Traders and NPCS and its 1 dependency.
                Do you have Scroll Lock on, by any chance? 0-SphereIICore has a feature where, if your scroll lock is on, it'll load up your last save game.

                Comment


                  #38
                  Originally posted by sphereii View Post
                  Do you have Scroll Lock on, by any chance? 0-SphereIICore has a feature where, if your scroll lock is on, it'll load up your last save game.
                  Im honestly not even sure how to turn that on/off

                  EDIT: nvm duh. that scroll lock.

                  EDIT again:

                  Dude.... I love you again.. Thank you so much. Spent almost 3 hours trying to figure out what is wrong... Never knew about that scroll lock feature.

                  Comment


                    #39
                    Originally posted by jerseyetr View Post
                    Im honestly not even sure how to turn that on/off

                    EDIT: nvm duh. that scroll lock.

                    EDIT again:

                    Dude.... I love you again.. Thank you so much. Spent almost 3 hours trying to figure out what is wrong... Never knew about that scroll lock feature.
                    I am sorry that it caused you grief. I use it as a shortcut when I'm doing a lot of testing. That's a feature of 0-SphereIICore, not DMT though.

                    Comment


                      #40
                      Are we supposed to have to reset game files every time we want to rebuild?

                      Bc I can't ever seem to rebuild. I always get the error

                      This Assembly-CSharp.dll file has already been patched by SDX so can not be used as a backup. Reset your game files and try again.
                      Build failed

                      process exited with error code -1

                      Comment


                        #41
                        Originally posted by jerseyetr View Post
                        Are we supposed to have to reset game files every time we want to rebuild?

                        Bc I can't ever seem to rebuild. I always get the error
                        When DMT first runs, it creates a backup folder, with the DLL in it. Each time you re-run the tool, it reads from this backup folder, and not your target folder. If the back up folder does not exist, it makes a copy of the target's folders DLL.

                        I'm guessing that something is happening to your back up, which is either getting removed, or an already-modified DLL is getting there.

                        Comment


                          #42
                          Updated OP for version 1.5.1

                          Comment


                            #43
                            Is there anything else you need when trying to decompile the dll besides dnspy and the newest net core sdk? A little new and can't seem to figure out how to open the Assembly-CSharp.dll file with dnspy. dnspy does seem to compile by itself but doesn't look like the other dnspy i have seen in videos, meaning all it says on the top is dnspy and not dnspy v6.0.5. and whenever I drag and drop Assembly-CSharp.dll file into dnspy after it doesn't open the file.
                            Last edited by rickyralph; 11-14-2019, 11:38 PM.

                            Comment


                              #44
                              Originally posted by rickyralph View Post
                              Is there anything else you need when trying to decompile the dll besides dnspy and the newest net core sdk? A little new and can't seem to figure out how to open the Assembly-CSharp.dll file with dnspy. dnspy does seem to compile by itself but doesn't look like the other dnspy i have seen in videos, meaning all it says on the top is dnspy and not dnspy v6.0.5. and whenever I drag and drop Assembly-CSharp.dll file into dnspy after it doesn't open the file.
                              Are you compiling from the repo? If you're in debug mode then drag and drop events don't fire through visual studio. Just download the dnSpy release from the GitHub page (or click the open icon and choose the dll that way)

                              Comment


                                #45
                                Originally posted by HAL9000 View Post
                                Are you compiling from the repo? If you're in debug mode then drag and drop events don't fire through visual studio. Just download the dnSpy release from the GitHub page (or click the open icon and choose the dll that way)
                                I am compiling dnspy from the repo on github. Through VS2019 I cloned https://github.com/0xd4d/dnSpy.git from the dnspy github wiki section. When I run the dnspy repo and try to drag and drop the dll file it doesn't open the file but rather it opens up a folder overview with the dll filke name and a sub folder showing version.

                                Comment

                                Working...
                                X