Jump to content

Recommended Posts

Hello and thanks in advance for the help. I am attempting to make a mod for DST that would add roof that you can cover a base with. The idea is that you can build a piece of a wooden roof (from 2 planks, 1 silk. and 10 cut grass) and place it over your base so that it keeps you dry (and possibly create an insulation effect if that's possible) Right now I'm working on the basics of getting the item in game, and being able to place it. I have already hit a wall though. I'm having problems making XML files as I have no idea how to work them. Any help is appreciated, and I hope to update this with any further questions until I complete this mod. Or until I give up. 

 

Attached is what I have so far. Basically, I've just been copying and pasting lua from other mods and changing them for my purpose. Any pointers, tips, or info is appreciated, but please don't post telling me that I'm a complete idiot, and need to "kms". Keep in mind, this is my first attempt at a mod of any kind.

 

modmain.lua

 

roof.lua

 

modinfo.lua

Trying to get everything working, but its crashing when I start the server. Log below.

 

[00:00:00]: Starting Up
[00:00:00]: Version: 159550
[00:00:00]: Current time: Tue Dec 22 15:45:44 2015
 
[00:00:00]: Don't Starve Together: 159550 WIN32_STEAM
NNN Build Date: 2015-12-09_16-46-47
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: 
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:00]: Initializing Steam
[00:00:00]: Steam AppBuildID: 892530
[00:00:00]: Steam BetaName(Branch): []
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (10908)
[00:00:00]: HttpClient2::ClientThread::Main()
[00:00:02]: ProfileIndex:5.98
[00:00:02]: [CONNECT] PendingConnection::Reset(true)
[00:00:02]: Network tick rate: U=15(2), D=0
[00:00:02]: Network tick rate: U=15(2), D=0
[00:00:02]: Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.
[00:00:02]: WindowsFirewall - Application already authorized
[00:00:02]: loaded ping_cache
[00:00:02]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/blocklist.txt (Failure)
[00:00:02]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/adminlist.txt (Failure)
[00:00:02]: OnLoadUserIdList: APP:Klei/DoNotStarveTogether/save/whitelist.txt (Failure)
[00:00:02]: Offline user name: OU_76561197965048448
[00:00:02]: SteamID: 76561197965048448
[00:00:02]: cGame::InitializeOnMainThread
[00:00:02]: WindowManager::Initialize
[00:00:02]: CreateWindow: Requesting 1600,900 - 5/6/5 - -1/-1/-1 - 0
[00:00:02]: CreateEGLContext: 12 configs found
[00:00:02]:      0: 8/8/8 -  0/ 0/ 0 - 0
[00:00:02]:      1: 8/8/8 -  0/16/ 0 - 0
[00:00:02]:      2: 8/8/8 -  0/24/ 0 - 0
[00:00:02]:      3: 8/8/8 -  0/24/ 8 - 0
[00:00:02]:      4: 5/5/5 -  0/ 0/ 0 - 0
[00:00:02]:      5: 5/5/5 -  0/16/ 0 - 0
[00:00:02]:      6: 5/5/5 -  0/24/ 0 - 0
[00:00:02]:      7: 5/5/5 -  0/24/ 8 - 0
[00:00:02]:      8: 8/8/8 -  8/ 0/ 0 - 0
[00:00:02]:      9: 8/8/8 -  8/16/ 0 - 0
[00:00:02]:     10: 8/8/8 -  8/24/ 0 - 0
[00:00:02]:     11: 8/8/8 -  8/24/ 8 - 0
[00:00:02]: WindowManager::SetFullscreen(0, 1600, 900, 60)
[00:00:02]: GLInfo
[00:00:02]: ~~~~~~
[00:00:02]: GL_VENDOR: Google Inc.
[00:00:02]: GL_RENDERER: ANGLE (NVIDIA GeForce GTX 560 )
[00:00:02]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)
[00:00:02]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)
[00:00:02]: THREAD - started 'WindowsInputManager' (10180)
[00:00:02]: OpenGL extensions (19, 19):
[00:00:02]: GL_ANGLE_depth_texture
[00:00:02]: GL_ANGLE_framebuffer_blit
[00:00:02]: GL_ANGLE_framebuffer_multisample
[00:00:02]: GL_ANGLE_instanced_arrays
[00:00:02]: GL_ANGLE_pack_reverse_row_order
[00:00:02]: GL_ANGLE_texture_compression_dxt3
[00:00:02]: GL_ANGLE_texture_compression_dxt5
[00:00:02]: GL_ANGLE_texture_usage
[00:00:02]: GL_ANGLE_translated_shader_source
[00:00:02]: GL_EXT_read_format_bgra
[00:00:02]: GL_EXT_robustness
[00:00:02]: GL_EXT_texture_compression_dxt1
[00:00:02]: GL_EXT_texture_format_BGRA8888
[00:00:02]: GL_EXT_texture_storage
[00:00:02]: GL_OES_get_program_binary
[00:00:02]: GL_OES_packed_depth_stencil
[00:00:02]: GL_OES_rgb8_rgba8
[00:00:02]: GL_OES_standard_derivatives
[00:00:02]: GL_OES_texture_npot
[00:00:02]: GL_MAX_TEXTURE_SIZE = 16384
[00:00:02]: GL_MAX_TEXTURE_IMAGE_UNITS = 16
[00:00:02]: GL_MAX_RENDERBUFFER_SIZE = 16384
[00:00:02]: GL_MAX_VIEWPORT_DIMS = 16384, 16384
[00:00:02]: GL_MAX_VARYING_VECTORS = 10
[00:00:02]: GL_MAX_VERTEX_ATTRIBS = 16
[00:00:02]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254
[00:00:02]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
[00:00:02]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
[00:00:02]: 4 compressed texture formats
[00:00:02]: texture format 0x83f0
[00:00:02]: texture format 0x83f1
[00:00:02]: texture format 0x83f2
[00:00:02]: texture format 0x83f3
[00:00:03]: Renderer initialize: Okay
[00:00:03]: AnimManager initialize: Okay
[00:00:03]: Buffers initialize: Okay
[00:00:03]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:03]: GameSpecific initialize: Okay
[00:00:03]: cGame::StartPlaying
[00:00:03]: LOADING LUA
[00:00:03]: DoLuaFile scripts/main.lua
[00:00:03]: DoLuaFile loading buffer scripts/main.lua
[00:00:03]: scripts/main.lua(170,1) running main.lua
 
[00:00:03]: loaded modindex
[00:00:03]: ModIndex: Beginning normal load sequence.
 
[00:00:05]: LOADING LUA SUCCESS
[00:00:05]: PlayerDeaths could not load morgue
[00:00:05]: PlayerHistory loaded player_history 758
[00:00:05]: loaded profile
[00:00:05]: bloom_enabled false
[00:00:05]: loaded saveindex
[00:00:05]: OnFilesLoaded()
[00:00:05]: OnUpdatePurchaseStateComplete
[00:00:07]: Load FE
[00:00:07]: Load FE: done
[00:00:07]: SimLuaProxy::QueryServer()
[00:00:07]: ModIndex: Load sequence finished successfully.
[00:00:07]: Reset() returning
[00:00:08]: [200] Account Communication Success (6)
[00:00:08]: [ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_rcfxRHXN
[00:00:08]: [steam] Auth Session Ticket requested...
[00:00:09]: [steam] Got Auth Session Ticket
[00:00:09]: SimLuaProxy::QueryServer()
[00:00:11]: QueryStats: { "req":"modrank", "field":"Session.Loads.Mods.list", "fieldop":"unwind", "linkpref":"external", "limit": 20}
[00:01:34]: QueryStats: { "req":"modrank", "field":"Session.Loads.Mods.list", "fieldop":"unwind", "linkpref":"external", "limit": 20}
[00:01:37]: Network tick rate: U=15(2), D=0
[00:01:37]: About to start a server with the following settings:
[00:01:37]:   Dedicated: false
[00:01:37]:   Online: false
[00:01:37]:   Passworded: false
[00:01:37]:   ServerPort: 10999
[00:01:37]:   SteamAuthPort: 8766
[00:01:37]:   SteamMasterServerPort: 27016
[00:01:37]:   ClanID: true
[00:01:37]:   ClanOnly: false
[00:01:37]:   ClanAdmin: false
[00:01:37]:   LanOnly: true
[00:01:37]:   EnablePunchthrough: false
[00:01:37]:   EnableAutosaver: true
[00:01:37]:   PVP: false
[00:01:37]:   MaxPlayers: 6
[00:01:37]:   GameMode: endless
[00:01:37]:   OverridenDNS: 
[00:01:37]:   PauseWhenEmpty: false
[00:01:37]:   InternetBroadcasting: true
[00:01:37]:   Intent: social
[00:01:37]: [Warning] Could not confirm port 10999 is open in the firewall. 
[00:01:37]: Could not load mod_config_data/modconfiguration_roof
[00:01:37]: Lan Server Started on port: 10999
[00:01:39]: Could not load mod_config_data/modconfiguration_roof
[00:01:39]: Collecting garbage...
[00:01:39]: lua_gc took 0.01 seconds
[00:01:39]: ~ShardLuaProxy()
[00:01:39]: ~NetworkLuaProxy()
[00:01:39]: ~SimLuaProxy()
[00:01:39]: SteamWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:39]: lua_close took 0.02 seconds
[00:01:39]: ReleaseAll
[00:01:39]: ReleaseAll Finished
[00:01:39]: cGame::StartPlaying
[00:01:39]: LOADING LUA
[00:01:39]: DoLuaFile scripts/main.lua
[00:01:39]: DoLuaFile loading buffer scripts/main.lua
[00:01:39]: scripts/main.lua(170,1) running main.lua
 
[00:01:39]: loaded modindex
[00:01:39]: ModIndex: Beginning normal load sequence.
 
[00:01:39]: ModIndex:GetModsToLoad inserting moddir, roof
[00:01:39]: Could not load mod_config_data/modconfiguration_roof
[00:01:39]: Loading mod: roof (A roof over your head) Version:1.0
[00:01:39]: Mod: roof (A roof over your head) Loading modworldgenmain.lua
[00:01:39]: Mod: roof (A roof over your head)  Mod had no modworldgenmain.lua. Skipping.
[00:01:39]: Mod: roof (A roof over your head) Loading modmain.lua
[00:01:39]: LOADING LUA SUCCESS
[00:01:40]: PlayerDeaths could not load morgue
[00:01:40]: PlayerHistory loaded player_history 758
[00:01:40]: loaded profile
[00:01:40]: bloom_enabled false
[00:01:40]: loaded saveindex
[00:01:40]: OnFilesLoaded()
[00:01:40]: OnUpdatePurchaseStateComplete
[00:01:40]: Unload FE
[00:01:40]: Unload FE done
[00:01:40]: Mod: roof (A roof over your head) Registering prefabs
[00:01:40]: Mod: roof (A roof over your head)  Registering prefab file: prefabs/roof
[00:01:40]: Mod: roof (A roof over your head)    roof
[00:01:40]: Mod: roof (A roof over your head)    roof_placer
[00:01:40]: Mod: roof (A roof over your head)  Registering default mod prefab
[00:01:40]: Could not load texture ../mods/roof/images/inventoryimages/Roof.tex
[00:01:40]: Break at: d:\jenkins-jobs\workspace\DontStarveTogether_Release_Windows_MakeSteamPackage\source\util/resourcemanager.h(142) :
 
[00:01:40]: Could not load texture ../mods/roof/images/inventoryimages/Roof.tex

 

Does your atlas have Roof.tex as the texture it uses, instead of roof.tex?

 

Or do you have any

Asset("IMAGE", "images/inventoryimages/Roof.tex"),

when it should be roof?

Does your atlas have Roof.tex as the texture it uses, instead of roof.tex?

 

Or do you have any

Asset("IMAGE", "images/inventoryimages/Roof.tex"),

when it should be roof?

Yep, that fixed it. Should have been obvious to me. Thanks for the help!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...