Automb Posted February 22, 2015 Share Posted February 22, 2015 Hi, brand new to moddng here. I'm working on just the base game, no ROG or DST yet. I've gotten to the point of the game not crashing when I enable the character mod but their icon is blank in the mod page and the character is not there in the character selection page. I've looked over some of the threads but haven't found this particulair problem. This is my modmain.lua PrefabFiles = { "westcott",} Assets = { Asset( "IMAGE", "images/saveslot_portraits/westcott.tex" ), Asset( "ATLAS", "images/saveslot_portraits/westcott.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/westcott.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/westcott.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/westcott_silho.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/westcott_silho.xml" ), Asset( "IMAGE", "bigportraits/westcott.tex" ), Asset( "ATLAS", "bigportraits/westcott.xml" ), Asset( "IMAGE", "images/map_icons/westcott.tex" ), Asset( "ATLAS", "images/map_icons/westcott.xml" ), } local require = GLOBAL.require -- The character select screen linesGLOBAL.STRINGS.CHARACTER_TITLES.westcott = "The Earthbound"GLOBAL.STRINGS.CHARACTER_NAMES.westcott = "A mole among men"GLOBAL.STRINGS.CHARACTER_DESCRIPTIONS.westcott = "*Immune to underground darkness\n*Has a spiffy lanturn\n*Haunted by ghastly guilt"GLOBAL.STRINGS.CHARACTER_QUOTES.westcott = "\"Quote\"" -- Custom speech stringsGLOBAL.STRINGS.CHARACTERS.WESTCOTT = require "speech_westcott" -- Let the game know character is male, female, or robottable.insert(GLOBAL.CHARACTER_GENDERS.MALE, "westcott") AddMinimapAtlas("images/map_icons/westcott.xml")AddModCharacter("westcott") Any help would be great. I haven't started working on his perks and cons yet, I would just like him to show up as an option. Link to comment Share on other sites More sharing options...
Blueberrys Posted February 23, 2015 Share Posted February 23, 2015 In your modinfo, set:reign_of_giants_compatible = true Link to comment Share on other sites More sharing options...
Automb Posted February 23, 2015 Author Share Posted February 23, 2015 In your modinfo, set:reign_of_giants_compatible = trueI'm not trying to make it compatible to RoG yet, but I have both dont_starve_compatible = true reign_of_giants_compatible = true Link to comment Share on other sites More sharing options...
Blueberrys Posted February 23, 2015 Share Posted February 23, 2015 @Automb I know it's not for RoG yet, but because you are using a RoG-enabled client, it might not be running the mod at all if the mod says it's incompatible. Add this line to the end of your modmain.print("westcott mod executed")Then try running the mod again, and provide your log immediately afterwards. Link to comment Share on other sites More sharing options...
Automb Posted February 23, 2015 Author Share Posted February 23, 2015 @BlueberrysDdi that, started it up. Mod still not appearing on start menu Starting upDon't Starve: 115739 WIN32_STEAMBuild Date: 2014-11-04_16-15-32THREAD - started 'GAClient' (13488)HttpClient::ClientThread::Main()cGame::InitializeOnMainThreadWindowManager::InitializeRestoreWindowPosition Saved Client Pos (0 x 22) Adjusted Window Pos (-8 x -8)EnsureWindowOnScreen All good.GLInfo~~~~~~GL_VENDOR: Google Inc.GL_RENDERER: ANGLE (Intel® HD Graphics)GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)OpenGL extensions (16, 16):GL_ANGLE_framebuffer_blitGL_ANGLE_instanced_arraysGL_ANGLE_pack_reverse_row_orderGL_ANGLE_texture_compression_dxt3GL_ANGLE_texture_compression_dxt5GL_ANGLE_texture_usageGL_ANGLE_translated_shader_sourceGL_EXT_read_format_bgraGL_EXT_robustnessGL_EXT_texture_compression_dxt1GL_EXT_texture_format_BGRA8888GL_EXT_texture_storageGL_OES_get_program_binaryGL_OES_packed_depth_stencilGL_OES_rgb8_rgba8GL_OES_standard_derivativesTHREAD - started 'WindowsInputManager' (13468)GL_MAX_TEXTURE_SIZE = 4096GL_MAX_TEXTURE_IMAGE_UNITS = 16GL_MAX_RENDERBUFFER_SIZE = 4096GL_MAX_VIEWPORT_DIMS = 4096, 4096GL_MAX_VARYING_VECTORS = 10GL_MAX_VERTEX_ATTRIBS = 16GL_MAX_VERTEX_UNIFORM_VECTORS = 254GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4GL_MAX_FRAGMENT_UNIFORM_VECTORS = 2214 compressed texture formatstexture format 0x83f0texture format 0x83f1texture format 0x83f2texture format 0x83f3cDontStarveGame::DoGameSpecificInitialize()cGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(161,1) running main.lua scripts/modindex.lua(311,1) loaded modindex scripts/modindex.lua(75,1) ModIndex: Beginning normal load sequence. scripts/modindex.lua(239,1) WARNING loading modinfo.lua: samplecharacter does not specify if it is compatible with the base game. It may not work properly. scripts/modindex.lua(242,1) WARNING loading modinfo.lua: samplecharacter does not specify if it is compatible with Reign of Giants. It may not work properly. scripts/modindex.lua(219,1) Error loading mod: westcott (Westcott)! ...common/dont_starve/data/../mods/westcott/modinfo.lua:21: attempt to call global 'print' (a nil value)LUA ERROR stack traceback: C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/../mods/westcott/modinfo.lua(21,1) in main chunk =[C] in function 'xpcall' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/util.lua(439,1) in function 'RunInEnvironment' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/modindex.lua(216,1) in function 'InitializeModInfo' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/modindex.lua(183,1) in function 'LoadModInfo' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/modindex.lua(175,1) in function 'UpdateModInfo' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/mods.lua(130,1) in function 'LoadMods' scripts/main.lua(229,1) in function 'ModSafeStartup' scripts/main.lua(274,1) =[C] in function 'SetPersistentString' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/mainfunctions.lua(18,1) in function 'SavePersistentString' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/modindex.lua(76,1) =[C] in function 'GetPersistentString' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/modindex.lua(63,1) in function 'BeginStartupSequence' scripts/main.lua(273,1) in function 'callback' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/modindex.lua(322,1) =[C] in function 'GetPersistentString' C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/modindex.lua(302,1) in function 'Load' scripts/main.lua(272,1) in main chunk I think this is the main chunk you wanted to see. Link to comment Share on other sites More sharing options...
Blueberrys Posted February 23, 2015 Share Posted February 23, 2015 @Automb, put it in modmain, not modinfo. Link to comment Share on other sites More sharing options...
Automb Posted February 23, 2015 Author Share Posted February 23, 2015 @Blueberrys Ah, I accidentally put it in both okay, new log below scripts/modindex.lua(311,1) loaded modindex scripts/modindex.lua(75,1) ModIndex: Beginning normal load sequence. scripts/modindex.lua(239,1) WARNING loading modinfo.lua: samplecharacter does not specify if it is compatible with the base game. It may not work properly. scripts/modindex.lua(242,1) WARNING loading modinfo.lua: samplecharacter does not specify if it is compatible with Reign of Giants. It may not work properly. scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_westcott scripts/mods.lua(152,1) Loading mod: westcott (Westcott) LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue 4567 scripts/playerprofile.lua(480,1) loaded profile scripts/playerprofile.lua(544,1) bloom_enabled false scripts/saveindex.lua(99,1) loaded saveindex scripts/gamelogic.lua(1172,1) OnFilesLoaded() scripts/gamelogic.lua(1161,1) OnUpdatePurchaseStateComplete scripts/gamelogic.lua(117,1) Unload BE Could not unload undefined prefab 0x4374c56c (yellowstaff)Could not unload undefined prefab 0x303bfdce (axe)Could not unload undefined prefab 0x378bda50 (wall_wood_item)Could not unload undefined prefab 0x8cc766ef (pumpkin_lantern)Could not unload undefined prefab 0xfdcabd86 (earmuffshat)Could not unload undefined prefab 0x7f46d7c0 (batbat)Could not unload undefined prefab 0xcceee6c3 (cutstone)Could not unload undefined prefab 0xaf34ecc0 (trunkvest_winter)Could not unload undefined prefab 0x875750ea (turf_road)Could not unload undefined prefab 0x4aeb6641 (armordragonfly)Could not unload undefined prefab 0xcd7669e5 (nightsword)Could not unload undefined prefab 0x1daa5ab7 (turf_carpetfloor)Could not unload undefined prefab 0xefa57cea (bandage)Could not unload undefined prefab 0xde4bc7e7 (wall_hay_item)Could not unload undefined prefab 0xe51acd32 (lightning_rod)Could not unload undefined prefab 0x947bfcb8 (lightning_rod_placer)Could not unload undefined prefab 0x68ba7100 (researchlab2)Could not unload undefined prefab 0x3386a16a (researchlab2_placer)Could not unload undefined prefab 0x3f5176c5 (firepit)Could not unload undefined prefab 0x8a462465 (firepit_placer)Could not unload undefined prefab 0x75370b6 (papyrus)Could not unload undefined prefab 0xbea16a01 (hambat)Could not unload undefined prefab 0xeb646050 (icehat)Could not unload undefined prefab 0x10473739 (spear)Could not unload undefined prefab 0x8d44bbad (cookpot)Could not unload undefined prefab 0x30d2f57d (cookpot_placer)Could not unload undefined prefab 0x89c20b1b (telebase)Could not unload undefined prefab 0x868a468f (telebase_placer)Could not unload undefined prefab 0x9d92cce (purpleamulet)Could not unload undefined prefab 0xcf1626 (rabbithouse)Could not unload undefined prefab 0x1aa31ec4 (rabbithouse_placer)Could not unload undefined prefab 0xe474f23c (armormarble)Could not unload undefined prefab 0x3ccdbe75 (icestaff)Could not unload undefined prefab 0x68ba7101 (researchlab3)Could not unload undefined prefab 0xd6985329 (researchlab3_placer)Could not unload undefined prefab 0x21bf03b1 (thulecite)Could not unload undefined prefab 0x539e9e8a (trunkvest_summer)Could not unload undefined prefab 0xf4eb0943 (shovel)Could not unload undefined prefab 0x761a1799 (gunpowder)Could not unload undefined prefab 0x9a99c7b7 (armorgrass)Could not unload undefined prefab 0xda17c8e8 (armorslurper)Could not unload undefined prefab 0x47611d71 (sweatervest)Could not unload undefined prefab 0x85181f7c (minerhat)Could not unload undefined prefab 0xe8f381a1 (turf_checkerfloor)Could not unload undefined prefab 0xd3671c87 (rainhat)Could not unload undefined prefab 0x2e264dbc (blowdart_pipe)Could not unload undefined prefab 0x2f0f89cb (reflectivevest)Could not unload undefined prefab 0xc4101586 (hammer)Could not unload undefined prefab 0x41ba89b5 (nightmarefuel)Could not unload undefined prefab 0xfbaefa0e (rainometer)Could not unload undefined prefab 0xeea990dc (rainometer_placer)Could not unload undefined prefab 0x7fcb037d (greenstaff)Could not unload undefined prefab 0x7fceff10 (featherfan)Could not unload undefined prefab 0x3c935451 (eyeturret_item)Could not unload undefined prefab 0xcba65752 (amulet)Could not unload undefined prefab 0xe16c07d0 (ruinshat)Could not unload undefined prefab 0xd2c60301 (dragonflychest)Could not unload undefined prefab 0xa72c4129 (dragonflychest_placer)Could not unload undefined prefab 0xb1591875 (greenamulet)Could not unload undefined prefab 0xdac7fbf5 (birdcage)Could not unload undefined prefab 0xe1f9b335 (birdcage_placer)Could not unload undefined prefab 0x68ba7102 (researchlab4)Could not unload undefined prefab 0x79aa04e8 (researchlab4_placer)Could not unload undefined prefab 0x2c158f7c (torch)Could not unload undefined prefab 0x265d1455 (turf_woodfloor)Could not unload undefined prefab 0x9a0ed246 (yellowamulet)Could not unload undefined prefab 0xb4e674c6 (hawaiianshirt)Could not unload undefined prefab 0xc78d9876 (siestahut)Could not unload undefined prefab 0xb22fa874 (siestahut_placer)Could not unload undefined prefab 0xce5a342e (firesuppressor)Could not unload undefined prefab 0xbbba0ebc (firesuppressor_placer)Could not unload undefined prefab 0x9a6718eb (resurrectionstatue)Could not unload undefined prefab 0x6b0c64bf (resurrectionstatue_placer)Could not unload undefined prefab 0xdfb37276 (telestaff)Could not unload undefined prefab 0x3f6c9ebb (diviningrod)Could not unload undefined prefab 0xa6b98890 (beargervest)Could not unload undefined prefab 0xe5936c6a (firestaff)Could not unload undefined prefab 0x34fb4f82 (pitchfork)Could not unload undefined prefab 0x3d4d1dc6 (bedroll_straw)Could not unload undefined prefab 0xadfdb7ae (armor_sanity)Could not unload undefined prefab 0x76d26529 (bugnet)Could not unload undefined prefab 0x5ce426c4 (blowdart_fire)Could not unload undefined prefab 0x4740cff7 (tent)Could not unload undefined prefab 0xb4d742b3 (tent_placer)Could not unload undefined prefab 0x8a2d55ba (catcoonhat)Could not unload undefined prefab 0x4116c653 (raincoat)Could not unload undefined prefab 0x62a5e7fe (nightlight)Could not unload undefined prefab 0x185806ec (nightlight_placer)Could not unload undefined prefab 0xa1e54a85 (goldenaxe)Could not unload undefined prefab 0xe6af29d2 (compass)Could not unload undefined prefab 0x19c004b2 (pighouse)Could not unload undefined prefab 0x469fe538 (pighouse_placer)Could not unload undefined prefab 0xca16846d (boards)Could not unload undefined prefab 0xfa14dec6 (birdtrap)Could not unload undefined prefab 0x7c11af2 (treasurechest)Could not unload undefined prefab 0xd411bef8 (treasurechest_placer)Could not unload undefined prefab 0xef21c9f2 (rope)Could not unload undefined prefab 0xb981ecda (fast_farmplot)Could not unload undefined prefab 0x6c77c310 (fast_farmplot_placer)Could not unload undefined prefab 0xbcfca634 (strawhat)Could not unload undefined prefab 0x111db7ae (footballhat)Could not unload undefined prefab 0x1eee0485 (transistor)Could not unload undefined prefab 0x1cd9e60e (razor)Could not unload undefined prefab 0x1541c9cc (armorruins)Could not unload undefined prefab 0xe87e06c0 (icebox)Could not unload undefined prefab 0xf2bd1baa (icebox_placer)Could not unload undefined prefab 0x36768a92 (orangestaff)Could not unload undefined prefab 0x2ca456a0 (orangeamulet)Could not unload undefined prefab 0xff7a976 (staff_tornado)Could not unload undefined prefab 0xd8067599 (beehat)Could not unload undefined prefab 0xc22935e4 (icepack)Could not unload undefined prefab 0x739fbe3c (homesign)Could not unload undefined prefab 0x33fdbd2e (homesign_placer)Could not unload undefined prefab 0x1c42203 (bell)Could not unload undefined prefab 0x15220700 (backpack)Could not unload undefined prefab 0xa8b25abc (wall_ruins_item)Could not unload undefined prefab 0x3ede96f8 (nightstick)Could not unload undefined prefab 0xd5201c09 (beebox)Could not unload undefined prefab 0x753b7621 (beebox_placer)Could not unload undefined prefab 0xb918c5fd (fishingrod)Could not unload undefined prefab 0x651e3e9e (eyebrellahat)Could not unload undefined prefab 0x92ccc001 (coldfirepit)Could not unload undefined prefab 0x21e04429 (coldfirepit_placer)Could not unload undefined prefab 0x5a59f5cc (goldenshovel)Could not unload undefined prefab 0x2e54b535 (cane)Could not unload undefined prefab 0xb6201ac9 (onemanband)Could not unload undefined prefab 0x4685284 (umbrella)Could not unload undefined prefab 0xda1f7edf (winterometer)Could not unload undefined prefab 0x955229cb (winterometer_placer)Could not unload undefined prefab 0xe2bfa46 (tophat)Could not unload undefined prefab 0xacbea762 (fertilizer)Could not unload undefined prefab 0x3949a42 (meatrack)Could not unload undefined prefab 0x56340ba8 (meatrack_placer)Could not unload undefined prefab 0x6dda899f (watermelonhat)Could not unload undefined prefab 0x94cf6c04 (goldenpickaxe)Could not unload undefined prefab 0x86860bc2 (boomerang)Could not unload undefined prefab 0xb1fa364d (pickaxe)Could not unload undefined prefab 0x3cb06493 (healingsalve)Could not unload undefined prefab 0x39311b4d (grass_umbrella)Could not unload undefined prefab 0x37c31aa6 (lantern)Could not unload undefined prefab 0xbc429ef3 (bushhat)Could not unload undefined prefab 0x80cb1e18 (featherhat)Could not unload undefined prefab 0x3edae42e (multitool_axe_pickaxe)Could not unload undefined prefab 0x7f2d088c (armorwood)Could not unload undefined prefab 0x46094f1b (beefalohat)Could not unload undefined prefab 0xf8e41fa9 (bedroll_furry)Could not unload undefined prefab 0xcda99af6 (winterhat)Could not unload undefined prefab 0x1c48b877 (campfire)Could not unload undefined prefab 0xdfe3a33 (campfire_placer)Could not unload undefined prefab 0x4d9a964d (trap)Could not unload undefined prefab 0x68370bd6 (trap_teeth)Could not unload undefined prefab 0x4058bc0 (molehat)Could not unload undefined prefab 0xcad92460 (flowerhat)Could not unload undefined prefab 0xec43b9f4 (sewing_kit)Could not unload undefined prefab 0xfb180669 (blowdart_sleep)Could not unload undefined prefab 0x38967bb2 (researchlab)Could not unload undefined prefab 0x77e9ae38 (researchlab_placer)Could not unload undefined prefab 0x8bbc7f55 (beemine)Could not unload undefined prefab 0xdf13a0c1 (ruins_bat)Could not unload undefined prefab 0x22ec3802 (wall_stone_item)Could not unload undefined prefab 0x8d60ee3a (coldfire)Could not unload undefined prefab 0xe72d29b0 (coldfire_placer)Could not unload undefined prefab 0x263bc4d5 (slow_farmplot)Could not unload undefined prefab 0x321f7255 (slow_farmplot_placer)Could not unload undefined prefab 0xe5071541 (nightmare_timepiece)Could not unload undefined prefab 0xc3bf310c (blueamulet)Could not unload undefined prefab 0x2ae7e3b3 (purplegem)Could not unload undefined prefab 0x6f21e747 (piggyback)Could not unload undefined prefab 0xf0330963 (panflute)Could not unload undefined prefab 0xdb20fa95 (heatrock)Could not unload undefined prefab 0x1153dbb9 (pottedfern)Could not unload undefined prefab 0xf2102a71 (pottedfern_placer)Could not unload undefined prefab 0x33ab6997 (hud)Could not unload undefined prefab 0x3364203d (forest)Could not unload undefined prefab 0x2e5cb72d (cave)Could not unload undefined prefab 0x40b82ff2 (maxwell)Could not unload undefined prefab 0xbddda476 (fire)Could not unload undefined prefab 0x1078732c (character_fire)Could not unload undefined prefab 0x427b5b39 (shatter)scripts/gamelogic.lua(120,1) Unload BE done scripts/dlcsupport.lua(24,1) Load scripts/DLC001_prefab_files HttpClientWriteCallback (0x020C21FF, 1, 16, 0x06E9F668)HttpClientWriteCallback READ 16 (16 total)scripts/mods.lua(269,1) Mod: westcott (Westcott) Registering prefabs scripts/mods.lua(292,1) Mod: westcott (Westcott) Registering default mod prefab scripts/gamelogic.lua(132,1) Load FE scripts/gamelogic.lua(136,1) Load FE: done scripts/screens/mainscreen.lua(576,1) platform_motd table: 11B894F0 SimLuaProxy::QueryServer()scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully. Link to comment Share on other sites More sharing options...
Blueberrys Posted February 23, 2015 Share Posted February 23, 2015 Hmm. Would you mind attaching your mod as a zip file? Link to comment Share on other sites More sharing options...
Automb Posted February 24, 2015 Author Share Posted February 24, 2015 No problem, the art files are just filler so don't judge me too harshly for their quality xD westcott.zip Link to comment Share on other sites More sharing options...
Blueberrys Posted February 26, 2015 Share Posted February 26, 2015 @AutombSet this in modinforeign_of_giants_compatible = trueEdit: Also, in westcott.xml , you forgot to change the texture's filename.<Texture filename="westcott.tex" /> Link to comment Share on other sites More sharing options...
Automb Posted February 27, 2015 Author Share Posted February 27, 2015 Thank you so much! I thought I had gotten everything but I missed somethng. Thanks for pointing out, he shows up fine-ish now. The art is blacked out for some reason but I can fix that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.