Announcement

Collapse
No announcement yet.

SDX 0.7.3 - Alpha 17

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SDX 0.7.3 - Alpha 17

    Hey guys,

    note: there's a new tool for modding 7DTD. Head to the DMT Thread to download it

    Here's the updated SDX tool for A17. To get the latest version of SDX download click here.

    Thanks to Dominix, the original creator of SDX and the modders that tested the early version of this.

    Many thanks to SphereII who collects, categorises, reminds and documents all the stuff that needs to happen. He's also got a Mod Launcher you should check out at https://7d2dmodlauncher.github.io/Installer/publish/

    Installation video done by Three08: https://youtu.be/6EiIJWAMG7E

    Have fun ^^

    Hal
    Last edited by HAL9000; 05-10-2019, 06:12 PM.

    #2
    The SDX Tutorials will get updated over the next little bit, but one the big change here is that the XML parsing ability is disabled, as is asset loading. These are all handled by the vanilla XPath hooks.

    XPath Thread:
    https://7daystodie.com/forums/showth...anation-Thread


    Asset Bundle Loading Hooks:

    https://7daystodie.com/forums/showth...-Loading-Hooks

    Comment


      #3
      Thanks Hal!

      Comment


        #4
        I hope this gets pinned.

        Comment


          #5
          Originally posted by Guppycur View Post
          I hope this gets pinned.
          And moved to the SDX section... who is this dope?

          Comment


            #6
            Originally posted by HAL9000 View Post
            And moved to the SDX section... who is this dope?
            Must be new! Welcome to the forums!

            Comment


              #7
              Promptly! Thanks!

              Comment


                #8
                All Aboard! Thanks!

                I vote for a sticky too.

                Comment


                  #9
                  Update time!

                  Just some bug fixes. Usual Link

                  Cheers,

                  Hal

                  Comment


                    #10
                    Getting an error that not sure what this means.

                    Did a brandnew compile nothing loaded no mods nothing even selected just compiled.

                    I get this error
                    Code:
                    2018-12-27T11:56:56 18.986 INF StartAsServer
                    2018-12-27T11:57:00 23.481 INF Block IDs with mapping
                    2018-12-27T11:57:00 23.481 INF BlockIDs from Mapping
                    2018-12-27T11:57:01 24.145 INF Item IDs with mapping
                    2018-12-27T11:57:01 24.146 INF ItemIDs from Mapping
                    2018-12-27T11:57:02 25.436 ERR XML loader: Loading and parsing 'rwgmixer.xml' failed
                    2018-12-27T11:57:02 25.437 EXC The requested value 'BiomeIDMapper' was not found.
                    ArgumentException: The requested value 'BiomeIDMapper' was not found.
                      at System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase) [0x00000] in <filename unknown>:0 
                      at EnumUtils+EnumInfoCache`1[WorldGenerationEngine.Input.LibNoiseModuleTypes].Parse (System.String _name, Boolean _ignoreCase) [0x00000] in <filename unknown>:0 
                      at EnumUtils.Parse[LibNoiseModuleTypes] (System.String _name, Boolean _ignoreCase) [0x00000] in <filename unknown>:0 
                      at WorldGenerationEngine.Input.RulesFromXml.loadBiomeGenerators (WorldGenerationEngine.Input.WorldGenerationRules _rules, System.Xml.XmlElement _root) [0x00000] in <filename unknown>:0 
                      at WorldGenerationEngine.Input.RulesFromXml.Load (.XmlFile file) [0x00000] in <filename unknown>:0 
                      at WorldStaticData+<loadSingleXml>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0 
                    UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
                    UnityEngine.DebugLogHandler:LogException(Exception, Object)
                    UnityEngine.Logger:LogException(Exception, Object)
                    UnityEngine.Debug:LogException(Exception)
                    Logger:masterLogException(Exception)
                    Logger:Exception(Exception)
                    Log:Exception(Exception)
                    <loadSingleXml>c__Iterator1:MoveNext()
                    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
                     
                    (Filename:  Line: -1)
                    
                    2018-12-27T11:58:38 26.958 INF createWorld: Navezgane, TestPrefab2, GameModeSurvival
                    2018-12-27T11:58:38 27.213 INF Started thread ChunkCalc
                    2018-12-27T11:58:38 27.214 INF Started thread ChunkRegeneration
                    2018-12-27T11:58:39 27.637 INF World.Load: Navezgane
                    2018-12-27T11:58:39 27.639 WRN Loaded world file from different version: 'Alpha 17 (b240)'
                    2018-12-27T11:58:42 31.066 INF Started thread GenerateChunks
                    2018-12-27T11:58:42 31.344 INF Loading dtm raw file took 276ms
                    2018-12-27T11:58:43 31.481 INF Biomes image size w= 3072, h = 3072
                    2018-12-27T11:58:43 31.843 INF Loading and creating biomes took 498ms
                    2018-12-27T11:58:44 32.951 INF Loading and parsing of generator took 1108ms
                    2018-12-27T11:58:44 32.959 INF Started thread SaveChunks C:\Users\James\AppData\Roaming/7DaysToDie/Saves/Navezgane/TestPrefab2\Region
                    2018-12-27T11:58:46 34.728 INF AstarManager Init
                    2018-12-27T11:58:51 39.449 INF Weather Packages Created FROM BIOMES
                    2018-12-27T11:58:51 39.751 INF createWorld() done
                    2018-12-27T11:58:51 39.752 INF Loading players.xml
                    2018-12-27T11:58:51 39.796 ERR Loading player data failed for player '76561197999182315', rolling back: Illegal encoding for 7 bit encoded int
                      at PooledBinaryReader.Read7BitEncodedInt () [0x00000] in <filename unknown>:0 
                      at PooledBinaryReader.ReadString () [0x00000] in <filename unknown>:0 
                      at PlayerDataFile.Read (System.IO.BinaryReader _br, UInt32 _version) [0x00000] in <filename unknown>:0 
                      at PlayerDataFile.Load (System.String _dir, System.String _playerName) [0x00000] in <filename unknown>:0 
                    2018-12-27T11:58:51 39.797 ERR Loading backup player data failed for player '76561197999182315', rolling back: Illegal encoding for 7 bit encoded int
                      at PooledBinaryReader.Read7BitEncodedInt () [0x00000] in <filename unknown>:0 
                      at PooledBinaryReader.ReadString () [0x00000] in <filename unknown>:0 
                      at PlayerDataFile.Read (System.IO.BinaryReader _br, UInt32 _version) [0x00000] in <filename unknown>:0 
                      at PlayerDataFile.Load (System.String _dir, System.String _playerName) [0x00000] in <filename unknown>:0 
                    Doesn't matter if I select any or no mods on compile, compiles fine started a new nevsgene game and I see that in the console.
                    Using SDX Version SDX0.7.3

                    If I go back and replace the original dll it works fine. no errors.

                    Comment


                      #11
                      Originally posted by FastBurst View Post
                      Getting an error that not sure what this means.

                      Did a brandnew compile nothing loaded no mods nothing even selected just compiled.

                      I get this error
                      Code:
                      2018-12-27T11:56:56 18.986 INF StartAsServer
                      2018-12-27T11:57:00 23.481 INF Block IDs with mapping
                      2018-12-27T11:57:00 23.481 INF BlockIDs from Mapping
                      2018-12-27T11:57:01 24.145 INF Item IDs with mapping
                      2018-12-27T11:57:01 24.146 INF ItemIDs from Mapping
                      2018-12-27T11:57:02 25.436 ERR XML loader: Loading and parsing 'rwgmixer.xml' failed
                      2018-12-27T11:57:02 25.437 EXC The requested value 'BiomeIDMapper' was not found.
                      ArgumentException: The requested value 'BiomeIDMapper' was not found.
                        at System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase) [0x00000] in <filename unknown>:0 
                        at EnumUtils+EnumInfoCache`1[WorldGenerationEngine.Input.LibNoiseModuleTypes].Parse (System.String _name, Boolean _ignoreCase) [0x00000] in <filename unknown>:0 
                        at EnumUtils.Parse[LibNoiseModuleTypes] (System.String _name, Boolean _ignoreCase) [0x00000] in <filename unknown>:0 
                        at WorldGenerationEngine.Input.RulesFromXml.loadBiomeGenerators (WorldGenerationEngine.Input.WorldGenerationRules _rules, System.Xml.XmlElement _root) [0x00000] in <filename unknown>:0 
                        at WorldGenerationEngine.Input.RulesFromXml.Load (.XmlFile file) [0x00000] in <filename unknown>:0 
                        at WorldStaticData+<loadSingleXml>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0 
                      UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
                      UnityEngine.DebugLogHandler:LogException(Exception, Object)
                      UnityEngine.Logger:LogException(Exception, Object)
                      UnityEngine.Debug:LogException(Exception)
                      Logger:masterLogException(Exception)
                      Logger:Exception(Exception)
                      Log:Exception(Exception)
                      <loadSingleXml>c__Iterator1:MoveNext()
                      UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
                       
                      (Filename:  Line: -1)
                      
                      2018-12-27T11:58:38 26.958 INF createWorld: Navezgane, TestPrefab2, GameModeSurvival
                      2018-12-27T11:58:38 27.213 INF Started thread ChunkCalc
                      2018-12-27T11:58:38 27.214 INF Started thread ChunkRegeneration
                      2018-12-27T11:58:39 27.637 INF World.Load: Navezgane
                      2018-12-27T11:58:39 27.639 WRN Loaded world file from different version: 'Alpha 17 (b240)'
                      2018-12-27T11:58:42 31.066 INF Started thread GenerateChunks
                      2018-12-27T11:58:42 31.344 INF Loading dtm raw file took 276ms
                      2018-12-27T11:58:43 31.481 INF Biomes image size w= 3072, h = 3072
                      2018-12-27T11:58:43 31.843 INF Loading and creating biomes took 498ms
                      2018-12-27T11:58:44 32.951 INF Loading and parsing of generator took 1108ms
                      2018-12-27T11:58:44 32.959 INF Started thread SaveChunks C:\Users\James\AppData\Roaming/7DaysToDie/Saves/Navezgane/TestPrefab2\Region
                      2018-12-27T11:58:46 34.728 INF AstarManager Init
                      2018-12-27T11:58:51 39.449 INF Weather Packages Created FROM BIOMES
                      2018-12-27T11:58:51 39.751 INF createWorld() done
                      2018-12-27T11:58:51 39.752 INF Loading players.xml
                      2018-12-27T11:58:51 39.796 ERR Loading player data failed for player '76561197999182315', rolling back: Illegal encoding for 7 bit encoded int
                        at PooledBinaryReader.Read7BitEncodedInt () [0x00000] in <filename unknown>:0 
                        at PooledBinaryReader.ReadString () [0x00000] in <filename unknown>:0 
                        at PlayerDataFile.Read (System.IO.BinaryReader _br, UInt32 _version) [0x00000] in <filename unknown>:0 
                        at PlayerDataFile.Load (System.String _dir, System.String _playerName) [0x00000] in <filename unknown>:0 
                      2018-12-27T11:58:51 39.797 ERR Loading backup player data failed for player '76561197999182315', rolling back: Illegal encoding for 7 bit encoded int
                        at PooledBinaryReader.Read7BitEncodedInt () [0x00000] in <filename unknown>:0 
                        at PooledBinaryReader.ReadString () [0x00000] in <filename unknown>:0 
                        at PlayerDataFile.Read (System.IO.BinaryReader _br, UInt32 _version) [0x00000] in <filename unknown>:0 
                        at PlayerDataFile.Load (System.String _dir, System.String _playerName) [0x00000] in <filename unknown>:0 
                      Doesn't matter if I select any or no mods on compile, compiles fine started a new nevsgene game and I see that in the console.
                      Using SDX Version SDX0.7.3

                      If I go back and replace the original dll it works fine. no errors.
                      SDX doesn't do anything with the XML now, aside from copying the files over into your Mods/ folder. Do you have your full output log?

                      Comment


                        #12
                        Originally posted by sphereii View Post
                        SDX doesn't do anything with the XML now, aside from copying the files over into your Mods/ folder. Do you have your full output log?
                        Here is the entire file. No Mods folder all vanilla except the SDX with literally no mods even selected just went to build to make sure it worked
                        Code:
                        Initialize engine version: 2018.2.0f2 (787658998520)
                        Forcing GfxDevice: Direct3D 11
                        GfxDevice: creating device client; threaded=1
                        Direct3D:
                            Version:  Direct3D 11.0 [level 11.1]
                            Renderer: NVIDIA GeForce GTX 1080 Ti (ID=0x1b06)
                            Vendor:   
                            VRAM:     11127 MB
                            Driver:   25.21.14.1701
                        Begin MonoManager ReloadAssembly
                        - Completed reload, in  0.126 seconds
                        <RI> Initializing input.
                        
                        <RI> Input initialized.
                        
                        <RI> Initialized touch support.
                        
                        UnloadTime: 0.391509 ms
                        2018-12-27T12:12:56 0.003 INF [Steamworks.NET] SteamAPI_Init() ok
                        2018-12-27T12:12:56 0.037 INF NET: InitCallbacks
                        2018-12-27T12:12:56 0.050 INF Texture quality is set to 0
                        2018-12-27T12:12:56 0.051 INF Precaching...
                        2018-12-27T12:12:56 0.052 INF Precaching file: 7DaysToDie_Data/resources.assets
                        2018-12-27T12:12:56 0.112 INF [EAC] Not loading, not started from launcher
                        2018-12-27T12:12:57 1.402 INF Precaching file: 7DaysToDie_Data/sharedassets1.assets
                        2018-12-27T12:12:57 1.404 INF Precaching file: Data/Bundles/BlockTextureAtlases
                        2018-12-27T12:12:58 1.993 INF Precaching file: Data/Bundles/TerrainTextures
                        2018-12-27T12:12:58 2.051 INF Precaching done
                        2018-12-27T12:13:02 6.361 INF Loading main scene
                        Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
                        UnloadTime: 1.754796 ms
                        SDX:  SDX detected base game directory as: X:\SteamLibrary\steamapps\common\7 Days To Die\
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        SDX:  Could not find sdx config file: ''. Using default settings
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        SDX: Mod Engine Started.
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        SDX: Finding type refs...
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        SDX: Loading mods assembly
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        SDX: Loaded!1
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        SDX: BlankClassForSdxToPreventBug
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        SDX:  SDX is no longer loading bundles
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        SDX: Begin Load mod script...
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        2018-12-27T12:13:02 6.529 INF Awake
                        2018-12-27T12:13:02 6.559 WRN Setting global culture failed!
                        2018-12-27T12:13:02 6.593 WRN Localization: Duplicate key "bowl" found! Please check Localization file. Skipping entry...
                        Localization language: English
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        2018-12-27T12:13:02 6.599 INF Version: Alpha 17 (b221) Compatibility Version: Alpha 17, Build: Windows 64 Bit
                        2018-12-27T12:13:02 6.599 INF System information:
                        2018-12-27T12:13:02 6.599 INF    OS: Windows 10  (10.0.0) 64bit
                        2018-12-27T12:13:02 6.600 INF    CPU: Intel(R) Core(TM) i7-6950X CPU @ 3.00GHz (cores: 20)
                        2018-12-27T12:13:02 6.600 INF    RAM: 130973 MB
                        2018-12-27T12:13:02 6.600 INF    GPU: NVIDIA GeForce GTX 1080 Ti (11127 MB)
                        2018-12-27T12:13:02 6.600 INF    Graphics API: Direct3D 11.0 [level 11.1] (shader level 5.0)
                        2018-12-27T12:13:02 6.600 INF Last played version: Alpha 17
                        2018-12-27T12:13:02 6.600 INF Local UTC offset: -6 hours
                        2018-12-27T12:13:02 6.600 WRN Setting global culture failed!
                        2018-12-27T12:13:02 6.606 INF Command line arguments: X:\SteamLibrary\steamapps\common\7 Days To Die\7DaysToDie.exe -force-d3d11 -logfile X:\SteamLibrary\steamapps\common\7 Days To Die\7DaysToDie_Data\output_log__2018-12-27__12-12-51.txt
                        2018-12-27T12:13:02 6.607 INF Not running in Big Picture Mode, no on-screen keyboard available
                        2018-12-27T12:13:02 6.608 INF Starting PlayerInputManager...
                        2018-12-27T12:13:02 6.618 INF InControl (version 1.6.17 build 9143, native module = False, XInput = True)
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/XInputInterface32
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/.\XInputInterface32
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/XInputInterface32
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/libXInputInterface32
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/.\libXInputInterface32
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/libXInputInterface32
                        2018-12-27T12:13:02 6.709 INF Starting UserProfileManager...
                        2018-12-27T12:13:02 6.766 INF [MODS] No mods folder found
                        2018-12-27T12:13:02 6.775 INF Loading permissions file at 'C:\Users\James\AppData\Roaming/7DaysToDie/Saves/serveradmin.xml'
                        2018-12-27T12:13:02 6.815 INF Loading permissions file done.
                        2018-12-27T12:13:02 6.842 INF Awake done in 313 ms
                        2018-12-27T12:13:03 7.144 INF Atlas reset took 295 ms
                        2018-12-27T12:13:03 7.144 INF Atlas load took 301 ms
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/libc
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/.\libc
                        Fallback handler could not load library X:/SteamLibrary/steamapps/common/7 Days To Die/7DaysToDie_Data/Mono/libc
                        
                        Unloading 9 unused Assets to reduce memory usage. Loaded Objects now: 3913.
                        Total: 6.763867 ms (FindLiveObjects: 0.761173 ms CreateObjectMapping: 0.080554 ms MarkObjects: 5.875717 ms  DeleteObjects: 0.046080 ms)
                        
                        Unloading 1 Unused Serialized files (Serialized files now loaded: 1)
                        
                        Unloading 13 unused Assets to reduce memory usage. Loaded Objects now: 3913.
                        Total: 9.233757 ms (FindLiveObjects: 1.564673 ms CreateObjectMapping: 0.200021 ms MarkObjects: 7.427078 ms  DeleteObjects: 0.041301 ms)
                        
                        Unloading 0 Unused Serialized files (Serialized files now loaded: 1)
                        
                        Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 3913.
                        Total: 6.523909 ms (FindLiveObjects: 0.642389 ms CreateObjectMapping: 0.086016 ms MarkObjects: 5.784580 ms  DeleteObjects: 0.010922 ms)
                        
                        2018-12-27T12:13:03 7.338 INF User joined: fastburst
                        2018-12-27T12:13:03 7.532 INF Reloading serveradmin.xml
                        2018-12-27T12:13:03 7.532 INF Loading permissions file at 'C:\Users\James\AppData\Roaming/7DaysToDie/Saves/serveradmin.xml'
                        2018-12-27T12:13:03 7.532 INF Loading permissions file done.
                        UMA Overlay loading took 410 ms
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        UMA Slot loading took 1 ms
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        2018-12-27T12:13:07 11.233 INF WorldStaticData.Init() needed 2.843s
                        2018-12-27T12:13:07 11.372 INF [Steamworks.NET] Login ok.
                        2018-12-27T12:13:07 11.639 INF AchievementManager: Received stats and achievements from Steam
                        2018-12-27T12:13:15 19.854 INF NET: Starting server protocols
                        2018-12-27T12:13:15 19.871 INF NET: LiteNetLib server started
                        2018-12-27T12:13:15 19.871 INF [Steamworks.NET] NET: Server started
                        SDX: SDX ModEngine::StartModScripts
                         
                        (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)
                        
                        2018-12-27T12:13:15 19.872 INF StartGame
                        2018-12-27T12:13:16 20.275 INF Atlas reset took 375 ms
                        Unloading 3 Unused Serialized files (Serialized files now loaded: 4)
                        
                        Unloading 731 unused Assets to reduce memory usage. Loaded Objects now: 24017.
                        Total: 54.625326 ms (FindLiveObjects: 1.904300 ms CreateObjectMapping: 0.411648 ms MarkObjects: 49.818325 ms  DeleteObjects: 2.490711 ms)
                        
                        2018-12-27T12:13:17 21.072 INF Persistent GamePrefs saved
                        GamePref.AdminFileName = serveradmin.xml
                        GamePref.AirDropFrequency = 24
                        GamePref.AirDropMarker = True
                        GamePref.AutopilotMode = 0
                        GamePref.BedrollDeadZoneSize = 15
                        GamePref.BlockDurabilityModifier = 100
                        GamePref.BloodMoonEnemyCount = 8
                        GamePref.BuildCreate = True
                        GamePref.ConnectToServerIP = 127.0.0.1
                        GamePref.ConnectToServerPort = 26900
                        GamePref.ControlPanelEnabled = False
                        GamePref.ControlPanelPort = 8080
                        GamePref.CraftTimer =
                        It doesn't stop the game just thought it was very interesting that this is happening.

                        - - - Updated - - -

                        output_log__2018-12-27__12-12-51.txt

                        Turns out the file has too many lines easier to just attach

                        Comment


                          #13
                          I also noticed a HUGE reduction in DLL file size original B240 is 7201kb in size new SDX produced is 6961kb seems like maybe some code is missing possibly?

                          Comment


                            #14
                            Originally posted by FastBurst View Post
                            I also noticed a HUGE reduction in DLL file size original B240 is 7201kb in size new SDX produced is 6961kb seems like maybe some code is missing possibly?
                            Have you revalidated your XML files? Could it be that an old copy existed in your Backup folder, and gets re-deployed?

                            I'm using this version of SDX just fine.

                            Comment


                              #15
                              Yes new install - validated and still getting the error.
                              Started new Nevsgame as well

                              Comment

                              Working...
                              X