Jump to content

How to make an item 'buildable'?


Recommended Posts

Okay so how do you make an item buildable (like campfire, science machines etc).

With buildable i mean you first get a greenish example of how it will look and when you build it you can't pick it up again, you can only smash it with a hammer.

If you use spriter, what do i name the builds etc. 

 

It may be a bit of a stupid question but still, i want to know :)

 

Thanks!

Link to comment
Share on other sites

 If I understood correctly, the part at the end of the prototypers, beemines etc. allows the green thingy to appear

MakePlacer("common/beemine_placer", "bee_mine", "bee_mine", "idle")  --beemine.luaMakePlacer( "common/researchlab_placer", "researchlab", "researchlab", "idle" ),  --scienceprototyper.luaMakePlacer( "common/researchlab2_placer", "researchlab2", "researchlab2", "idle" )
Link to comment
Share on other sites

 

 If I understood correctly, the part at the end of the prototypers, beemines etc. allows the green thingy to appear

MakePlacer("common/beemine_placer", "bee_mine", "bee_mine", "idle")  --beemine.luaMakePlacer( "common/researchlab_placer", "researchlab", "researchlab", "idle" ),  --scienceprototyper.luaMakePlacer( "common/researchlab2_placer", "researchlab2", "researchlab2", "idle" )

 

 

As stated above, you need to make a placer for your thingy, or use an already existing. Remember to mention it in the crafting recipe! I think the game knows that you want a structure then.

 

Oh wow,

I didn't get any notification to your replies. Sorry for that.

So, i guess i will have to create an idle animation in spriter and then call it idle.

Just link the animation to the code right?

 

But what exactly do i have to mention in the crafting recipe?

Link to comment
Share on other sites

Oh wow,

I didn't get any notification to your replies. Sorry for that.

So, i guess i will have to create an idle animation in spriter and then call it idle.

Just link the animation to the code right?

 

But what exactly do i have to mention in the crafting recipe?

 

If that thing of yours has a visual appearance, it probably has an idle (or similiar) animation already? Just use that one.

Regarding the crafting recipe:

local rec = Recipe("MYPREFAP", {Ingredient("MATERIAL", 4)}, RECIPETABS.TOWN, TECH.SCIENCE_ONE, "MYPREAFB_PLACER")

rec.atlas = "images/ICON.xml"

Link to comment
Share on other sites

If that thing of yours has a visual appearance, it probably has an idle (or similiar) animation already? Just use that one.

Regarding the crafting recipe:

local rec = Recipe("MYPREFAP", {Ingredient("MATERIAL", 4)}, RECIPETABS.TOWN, TECH.SCIENCE_ONE, "MYPREAFB_PLACER")

rec.atlas = "images/ICON.xml"

 

Okay. i will try this tomorrow! I will keep you up to date sir!

Thanks for your help.

Link to comment
Share on other sites

If that thing of yours has a visual appearance, it probably has an idle (or similiar) animation already? Just use that one.

Regarding the crafting recipe:

local rec = Recipe("MYPREFAP", {Ingredient("MATERIAL", 4)}, RECIPETABS.TOWN, TECH.SCIENCE_ONE, "MYPREAFB_PLACER")

rec.atlas = "images/ICON.xml"

 

Okay so i tried to do it today anyway. I got everything set up, but when i craft the item my character says: I can't do that. Any idea what i am doing wrong?

This is the prefab lua:

local Assets ={	Asset("ANIM", "anim/paintedrock.zip"),    Asset("ATLAS", "images/inventoryimages/paintedrock.xml"),}local function fn(Sim)	local inst = CreateEntity()	inst.entity:AddTransform()	inst.entity:AddAnimState()    MakeInventoryPhysics(inst)    inst:AddTag("structure")    inst.AnimState:SetBank("paintedrock")    inst.AnimState:SetBuild("paintedrock")    inst.AnimState:PlayAnimation("idle", true)    	inst:AddComponent("inspectable")        return instendSTRINGS.NAMES.PAINTEDROCK = "Rock Paintings"STRINGS.CHARACTERS.GENERIC.DESCRIBE.PAINTEDROCK = "Drok show dominance!"return Prefab( "common/objects/paintedrock", fn, assets)        MakePlacer( "common/paintedrock_placer", "paintedrock", "paintedrock", "idle" )

 

Also this is what i added in the modmain:

local paintedrock = GLOBAL.Recipe("paintedrock", {Ingredient("wigstan", 1, "images/inventoryimages/wigstan.xml"), Ingredient("twigs", 8), Ingredient("rope", 3)}, RECIPETABS.REFINE, TECH.SCIENCE_TWO, PAINTEDROCK_PLACER, nil, nil, nil, 1)paintedrock.atlas = "images/inventoryimages/wigstanfull.xml" 

 

Thanks for your help :)

Link to comment
Share on other sites

Shouldn't be

"paintedrock_placer"

instead of

PAINTEDROCK_PLACER

in modmain recipe?

 

I tried to change it but neither one works. Here is my log file for people who might know what went wrong:

 

Starting upDon't Starve: 110570 WIN32_STEAMBuild Date: 2014-09-11_10-12-49THREAD - started 'GAClient' (5268)HttpClient::ClientThread::Main()cGame::InitializeOnMainThreadWindowManager::InitializeWindowManager::SetFullscreen(0, 1920, 1080, 60)GLInfo~~~~~~GL_VENDOR: Google Inc.GL_RENDERER: ANGLE (NVIDIA GeForce GTX 660)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 (19, 19):GL_ANGLE_depth_textureGL_ANGLE_framebuffer_blitGL_ANGLE_framebuffer_multisampleGL_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_derivativesGL_OES_texture_npotGL_MAX_TEXTURE_SIZE = 16384GL_MAX_TEXTURE_IMAGE_UNITS = 16GL_MAX_RENDERBUFFER_SIZE = 16384GL_MAX_VIEWPORT_DIMS = 16384, 16384GL_MAX_VARYING_VECTORS = 10GL_MAX_VERTEX_ATTRIBS = 16GL_MAX_VERTEX_UNIFORM_VECTORS = 254GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221THREAD - started 'WindowsInputManager' (4020)4 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(386,1) Could not load mod_config_data/modconfiguration_InfiniteClothes	scripts/mods.lua(152,1) Loading mod: InfiniteClothes	scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_n_tools	scripts/mods.lua(152,1) Loading mod: n_tools (N Tools) (Old API! (mod: 4 game: 6) )	scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_Where's My Beefalo	scripts/mods.lua(152,1) Loading mod: Where's My Beefalo (Where's My Beefalo?) (Old API! (mod: 5 game: 6) )	scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_workshop-174345915	scripts/mods.lua(152,1) Loading mod: workshop-174345915 (Craftable Gears)	scripts/mods.lua(179,1) Mod: InfiniteClothes	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: InfiniteClothes	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: InfiniteClothes	Loading modmain.lua	scripts/mods.lua(179,1) Mod: Where's My Beefalo (Where's My Beefalo?)	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: Where's My Beefalo (Where's My Beefalo?)	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: Where's My Beefalo (Where's My Beefalo?)	Loading modmain.lua	scripts/mods.lua(179,1) Mod: n_tools (N Tools)	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: n_tools (N Tools)	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: n_tools (N Tools)	Loading modmain.lua	scripts/mods.lua(179,1) Mod: workshop-174345915 (Craftable Gears)	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: workshop-174345915 (Craftable Gears)	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: workshop-174345915 (Craftable Gears)	Loading modmain.lua	LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue	446	scripts/playerprofile.lua(477,1) loaded profile	scripts/playerprofile.lua(541,1) bloom_enabled	true	scripts/saveindex.lua(99,1) loaded saveindex	scripts/gamelogic.lua(1162,1) OnFilesLoaded()	scripts/gamelogic.lua(1151,1) OnUpdatePurchaseStateComplete	scripts/gamelogic.lua(118,1) 	Unload BE	Could not unload undefined prefab 0x4374c56c (yellowstaff)Could not unload undefined prefab 0x303bfdce (axe)Could not unload undefined prefab 0x94cf6c04 (goldenpickaxe)Could not unload undefined prefab 0x8cc766ef (pumpkin_lantern)Could not unload undefined prefab 0xfdcabd86 (earmuffshat)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 0xaf34ecc0 (trunkvest_winter)Could not unload undefined prefab 0x875750ea (turf_road)Could not unload undefined prefab 0xcd7669e5 (nightsword)Could not unload undefined prefab 0x3f6c9ebb (diviningrod)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 0xb1fa364d (pickaxe)Could not unload undefined prefab 0x34fb4f82 (pitchfork)Could not unload undefined prefab 0xdf809124 (gears)Could not unload undefined prefab 0x3f5176c5 (firepit)Could not unload undefined prefab 0x8a462465 (firepit_placer)Could not unload undefined prefab 0x62a5e7fe (nightlight)Could not unload undefined prefab 0x185806ec (nightlight_placer)Could not unload undefined prefab 0x3d4d1dc6 (bedroll_straw)Could not unload undefined prefab 0xadfdb7ae (armor_sanity)Could not unload undefined prefab 0xdf13a0c1 (ruins_bat)Could not unload undefined prefab 0x76d26529 (bugnet)Could not unload undefined prefab 0x5ce426c4 (blowdart_fire)Could not unload undefined prefab 0x1541c9cc (armorruins)Could not unload undefined prefab 0xe16c07d0 (ruinshat)Could not unload undefined prefab 0xe5936c6a (firestaff)Could not unload undefined prefab 0x1c48b877 (campfire)Could not unload undefined prefab 0xdfe3a33 (campfire_placer)Could not unload undefined prefab 0x89c20b1b (telebase)Could not unload undefined prefab 0x868a468f (telebase_placer)Could not unload undefined prefab 0x4740cff7 (tent)Could not unload undefined prefab 0xb4d742b3 (tent_placer)Could not unload undefined prefab 0x10473739 (spear)Could not unload undefined prefab 0x36768a92 (orangestaff)Could not unload undefined prefab 0x8d44bbad (cookpot)Could not unload undefined prefab 0x30d2f57d (cookpot_placer)Could not unload undefined prefab 0xa1e54a85 (goldenaxe)Could not unload undefined prefab 0x68ba7100 (researchlab2)Could not unload undefined prefab 0x3386a16a (researchlab2_placer)Could not unload undefined prefab 0xdac7fbf5 (birdcage)Could not unload undefined prefab 0xe1f9b335 (birdcage_placer)Could not unload undefined prefab 0xe6af29d2 (compass)Could not unload undefined prefab 0x2ca456a0 (orangeamulet)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 0xe87e06c0 (icebox)Could not unload undefined prefab 0xf2bd1baa (icebox_placer)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 0xa8b25abc (wall_ruins_item)Could not unload undefined prefab 0x21bf03b1 (thulecite)Could not unload undefined prefab 0xfa14dec6 (birdtrap)Could not unload undefined prefab 0x68370bd6 (trap_teeth)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 0x539e9e8a (trunkvest_summer)Could not unload undefined prefab 0x2e54b535 (cane)Could not unload undefined prefab 0xb981ecda (fast_farmplot)Could not unload undefined prefab 0x2639673 (farmplot_placer)Could not unload undefined prefab 0xf4eb0943 (shovel)Could not unload undefined prefab 0xbcfca634 (strawhat)Could not unload undefined prefab 0xe2bfa46 (tophat)Could not unload undefined prefab 0xcda99af6 (winterhat)Could not unload undefined prefab 0x761a1799 (gunpowder)Could not unload undefined prefab 0x1cd9e60e (razor)Could not unload undefined prefab 0xbea16a01 (hambat)Could not unload undefined prefab 0x2e264dbc (blowdart_pipe)Could not unload undefined prefab 0xec43b9f4 (sewing_kit)Could not unload undefined prefab 0x46094f1b (beefalohat)Could not unload undefined prefab 0x9a99c7b7 (armorgrass)Could not unload undefined prefab 0x4d9a964d (trap)Could not unload undefined prefab 0xd8067599 (beehat)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 0x15220700 (backpack)Could not unload undefined prefab 0x8bbc7f55 (beemine)Could not unload undefined prefab 0xe8f381a1 (turf_checkerfloor)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 0x86860bc2 (boomerang)Could not unload undefined prefab 0x80cb1e18 (featherhat)Could not unload undefined prefab 0x5a59f5cc (goldenshovel)Could not unload undefined prefab 0xfb180669 (blowdart_sleep)Could not unload undefined prefab 0xc4101586 (hammer)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 0x111db7ae (footballhat)Could not unload undefined prefab 0x9d92cce (purpleamulet)Could not unload undefined prefab 0x3949a42 (meatrack)Could not unload undefined prefab 0x56340ba8 (meatrack_placer)Could not unload undefined prefab 0xbc429ef3 (bushhat)Could not unload undefined prefab 0x22ec3802 (wall_stone_item)Could not unload undefined prefab 0xfbaefa0e (rainometer)Could not unload undefined prefab 0xeea990dc (rainometer_placer)Could not unload undefined prefab 0x41ba89b5 (nightmarefuel)Could not unload undefined prefab 0x3cb06493 (healingsalve)Could not unload undefined prefab 0x75370b6 (papyrus)Could not unload undefined prefab 0x37c31aa6 (lantern)Could not unload undefined prefab 0xcceee6c3 (cutstone)Could not unload undefined prefab 0x7fcb037d (greenstaff)Could not unload undefined prefab 0x3edae42e (multitool_axe_pickaxe)Could not unload undefined prefab 0x7f2d088c (armorwood)Could not unload undefined prefab 0xc3bf310c (blueamulet)Could not unload undefined prefab 0x739fbe3c (homesign)Could not unload undefined prefab 0x33fdbd2e (homesign_placer)Could not unload undefined prefab 0x7f46d7c0 (batbat)Could not unload undefined prefab 0x378bda50 (wall_wood_item)Could not unload undefined prefab 0x3c935451 (eyeturret_item)Could not unload undefined prefab 0xb6201ac9 (onemanband)Could not unload undefined prefab 0xf0330963 (panflute)Could not unload undefined prefab 0x6f21e747 (piggyback)Could not unload undefined prefab 0x1daa5ab7 (turf_carpetfloor)Could not unload undefined prefab 0xcba65752 (amulet)Could not unload undefined prefab 0x38967bb2 (researchlab)Could not unload undefined prefab 0x77e9ae38 (researchlab_placer)Could not unload undefined prefab 0xcad92460 (flowerhat)Could not unload undefined prefab 0xb1591875 (greenamulet)Could not unload undefined prefab 0x1153dbb9 (pottedfern)Could not unload undefined prefab 0xf2102a71 (pottedfern_placer)Could not unload undefined prefab 0x68ba7102 (researchlab4)Could not unload undefined prefab 0x79aa04e8 (researchlab4_placer)Could not unload undefined prefab 0x263bc4d5 (slow_farmplot)Could not unload undefined prefab 0x2639673 (farmplot_placer)Could not unload undefined prefab 0xe5071541 (nightmare_timepiece)Could not unload undefined prefab 0x2c158f7c (torch)Could not unload undefined prefab 0x2ae7e3b3 (purplegem)Could not unload undefined prefab 0x265d1455 (turf_woodfloor)Could not unload undefined prefab 0xf8e41fa9 (bedroll_furry)Could not unload undefined prefab 0xdb20fa95 (heatrock)Could not unload undefined prefab 0x9a0ed246 (yellowamulet)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(123,1) 	Unload BE done	HttpClientWriteCallback (0x064F5EC7, 1, 16, 0x0671F6B0)HttpClientWriteCallback READ 16 (16 total)scripts/mods.lua(269,1) Mod: InfiniteClothes	Registering prefabs	scripts/mods.lua(275,1) Mod: InfiniteClothes	  Registering prefab file: prefabs/hats	scripts/mods.lua(279,1) Mod: InfiniteClothes	    strawhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    tophat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    beefalohat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    featherhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    beehat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    minerhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    spiderhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    footballhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    earmuffshat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    winterhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    bushhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    flowerhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    walrushat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    slurtlehat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    ruinshat	scripts/mods.lua(275,1) Mod: InfiniteClothes	  Registering prefab file: prefabs/sweatervest	scripts/mods.lua(279,1) Mod: InfiniteClothes	    sweatervest	scripts/mods.lua(275,1) Mod: InfiniteClothes	  Registering prefab file: prefabs/trunkvest	scripts/mods.lua(279,1) Mod: InfiniteClothes	    trunkvest_summer	scripts/mods.lua(279,1) Mod: InfiniteClothes	    trunkvest_winter	scripts/mods.lua(292,1) Mod: InfiniteClothes	  Registering default mod prefab	scripts/mods.lua(269,1) Mod: Where's My Beefalo (Where's My Beefalo?)	Registering prefabs	scripts/mods.lua(292,1) Mod: Where's My Beefalo (Where's My Beefalo?)	  Registering default mod prefab	scripts/mods.lua(269,1) Mod: n_tools (N Tools)	Registering prefabs	scripts/mods.lua(292,1) Mod: n_tools (N Tools)	  Registering default mod prefab	scripts/mods.lua(269,1) Mod: workshop-174345915 (Craftable Gears)	Registering prefabs	scripts/mods.lua(292,1) Mod: workshop-174345915 (Craftable Gears)	  Registering default mod prefab	scripts/gamelogic.lua(133,1) 	Load FE	scripts/gamelogic.lua(135,1) 	Load FE: done	scripts/screens/mainscreen.lua(575,1) platform_motd	table: 0E0D38F0	SimLuaProxy::QueryServer()scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully.	Reset() returningQueryServerComplete no callbackHttpClientWriteCallback (0x064F5EC7, 1, 16, 0x0671F6B0)HttpClientWriteCallback READ 16 (16 total)QueryServerComplete no callbackHttpClientWriteCallback (0x064F5E24, 1, 999, 0x0671F6B0)HttpClientWriteCallback READ 999 (999 total)scripts/screens/mainscreen.lua(575,1) platform_motd	table: 09D2AD30	QueryStats: { "req":"modrank", "field":"Session.Loads.Mods.list", "fieldop":"unwind", "linkpref":"external", "limit": 20}GetCachedUGCCount 0EnumerateUserSubscribedFiles(0)OnEnumerateUserSubscribedFilesResult    EResult 1, results 3/3Enum complete. Found 3 mods.DeleteUnsubscribedFiles [../mods]FindDirectoriesMatching [../mods/workshop-*]GetPublishedFileDetails(0)Getting mod details...HttpClientWriteCallback (0x064F5EC9, 1, 2405, 0x0671F6B0)HttpClientWriteCallback READ 2405 (2405 total)OnPublishedFileDetailsResult    EResult 1, 174345915   245850, 219740, [Craftable Gears], [A simple mod that makes a big difference! Craftable Gears will enhance your Don't Starve experience, but is better suited to less experienced players.Non-Steam download (for Standalone users):  778307366501961690, 921272559330450588, 76561198078423852, 1377908704, 1401066279, 0, 0, [utility,tweak], 249, [mod_publish_data_file.zip], 5648, 60496, [], 0GetPublishedFileDetails(1)Getting mod details...OnPublishedFileDetailsResult    EResult 1, 248047614   245850, 219740, [Porta-Grill], [Porta-Grill is compatible with RoG-The Porta-Grill is a portable grill.-The Porta-Grill is fueled with wood,charcoal etc.-The Porta-Grill has an on\off switch to help save fuel.-The Porta-Grill has a small amount of light when switched on.-The Porta-Grill must be switched on in order to cook!-The Porta-Grill only shows fuel level when in your inventory.-The Porta-Grill has a small amount of heat when switched on.-Craftable under the FOOD TAB-Recipe = 1 Heatrock,4 Charcoal and 1 Hammer.Have fun, comments and suggestions are welcome.], 486701738724992747, 486696207832842650, 76561197989646930, 1397241945, 1403404990, 0, 0, [item,environment,tweak,Scenario,Other,Reign of Giants Compatible], 249, [mod_publish_data_file.zip], 24394, 24231, [], 0GetPublishedFileDetails(2)Getting mod details...OnPublishedFileDetailsResult    EResult 1, 249713554   245850, 219740, [BackPackPlus], [BackPackPlus is remake of BackPack Slot mod. Original mod have some troubles, so i decided to make this.Its adds backpack slot to inventory in bit different way then original mod.in cost of this you will have 1 slot less for other itemsworks in RoG], 3262042471837696793, 3278927438273575900, 76561198005761360, 1397633462, 1400900127, 0, 0, [Interface,tweak], 249, [mod_publish_data_file.zip], 33843, 20553, [], 0Mod listing complete.DownloadPublishedFile(0)Downloading mod file 778307366501961690 [mod_publish_data_file.zip] [Craftable Gears]...OnDownloadPublishedFileResult    EResult 1, 778307366501961690   245850, 5648, [mod_publish_data_file.zip], 76561198078423852UnpackMod 778307366501961690 [mod_publish_data_file.zip] [Craftable Gears]RecursivelyDeleteDirectory [../mods/workshop-174345915]DelFile [../mods/workshop-174345915/Craftable Gears.tex] 0: ok.DelFile [../mods/workshop-174345915/Craftable Gears.xml] 0: ok.DelFile [../mods/workshop-174345915/modinfo.lua] 0: ok.DelFile [../mods/workshop-174345915/modmain.lua] 0: ok.DelDirectory [../mods/workshop-174345915] 0: ok.SteamWorkshop::UnzipMod ../mods/workshop-174345915WriteModFile [../mods/workshop-174345915/Craftable Gears.tex] 21960 bytesWriteModFile [../mods/workshop-174345915/Craftable Gears.xml] 154 bytesWriteModFile [../mods/workshop-174345915/modinfo.lua] 530 bytesWriteModFile [../mods/workshop-174345915/modmain.lua] 352 bytesDownloadPublishedFile(1)Downloading mod file 486701738724992747 [mod_publish_data_file.zip] [Porta-Grill]...OnDownloadPublishedFileResult    EResult 1, 486701738724992747   245850, 24394, [mod_publish_data_file.zip], 76561197989646930UnpackMod 486701738724992747 [mod_publish_data_file.zip] [Porta-Grill]RecursivelyDeleteDirectory [../mods/workshop-248047614]RecursivelyDeleteDirectory [../mods/workshop-248047614/anim]DelFile [../mods/workshop-248047614/anim/grill.zip] 0: ok.DelDirectory [../mods/workshop-248047614/anim] 0: ok.RecursivelyDeleteDirectory [../mods/workshop-248047614/images]RecursivelyDeleteDirectory [../mods/workshop-248047614/images/inventoryimages]DelFile [../mods/workshop-248047614/images/inventoryimages/grill.tex] 0: ok.DelFile [../mods/workshop-248047614/images/inventoryimages/grill.xml] 0: ok.DelDirectory [../mods/workshop-248047614/images/inventoryimages] 0: ok.DelDirectory [../mods/workshop-248047614/images] 0: ok.RecursivelyDeleteDirectory [../mods/workshop-248047614/minimap]DelFile [../mods/workshop-248047614/minimap/grill.tex] 0: ok.DelFile [../mods/workshop-248047614/minimap/grill.xml] 0: ok.DelDirectory [../mods/workshop-248047614/minimap] 0: ok.RecursivelyDeleteDirectory [../mods/workshop-248047614/scripts]RecursivelyDeleteDirectory [../mods/workshop-248047614/scripts/prefabs]DelFile [../mods/workshop-248047614/scripts/prefabs/grill.lua] 0: ok.DelDirectory [../mods/workshop-248047614/scripts/prefabs] 0: ok.DelDirectory [../mods/workshop-248047614/scripts] 0: ok.DelFile [../mods/workshop-248047614/grill.tex] 0: ok.DelFile [../mods/workshop-248047614/grill.xml] 0: ok.DelFile [../mods/workshop-248047614/modinfo.lua] 0: ok.DelFile [../mods/workshop-248047614/modmain.lua] 0: ok.DelDirectory [../mods/workshop-248047614] 0: ok.SteamWorkshop::UnzipMod ../mods/workshop-248047614WriteModFile [../mods/workshop-248047614/grill.tex] 21960 bytesWriteModFile [../mods/workshop-248047614/grill.xml] 128 bytesWriteModFile [../mods/workshop-248047614/modinfo.lua] 288 bytesWriteModFile [../mods/workshop-248047614/modmain.lua] 768 bytesWriteModFile [../mods/workshop-248047614/anim/grill.zip] 10088 bytesWriteModFile [../mods/workshop-248047614/images/inventoryimages/grill.tex] 5566 bytesWriteModFile [../mods/workshop-248047614/images/inventoryimages/grill.xml] 128 bytesWriteModFile [../mods/workshop-248047614/minimap/grill.tex] 5566 bytesWriteModFile [../mods/workshop-248047614/minimap/grill.xml] 128 bytesWriteModFile [../mods/workshop-248047614/scripts/prefabs/grill.lua] 4052 bytesDownloadPublishedFile(2)Downloading mod file 3262042471837696793 [mod_publish_data_file.zip] [BackPackPlus]...OnDownloadPublishedFileResult    EResult 1, 3262042471837696793   245850, 33843, [mod_publish_data_file.zip], 76561198005761360UnpackMod 3262042471837696793 [mod_publish_data_file.zip] [BackPackPlus]RecursivelyDeleteDirectory [../mods/workshop-249713554]RecursivelyDeleteDirectory [../mods/workshop-249713554/images]DelFile [../mods/workshop-249713554/images/backpack.tex] 0: ok.DelFile [../mods/workshop-249713554/images/backpack.xml] 0: ok.DelDirectory [../mods/workshop-249713554/images] 0: ok.RecursivelyDeleteDirectory [../mods/workshop-249713554/scripts]DelFile [../mods/workshop-249713554/scripts/phfix.lua] 0: ok.DelDirectory [../mods/workshop-249713554/scripts] 0: ok.DelFile [../mods/workshop-249713554/modinfo.lua] 0: ok.DelFile [../mods/workshop-249713554/modmain.lua] 0: ok.DelFile [../mods/workshop-249713554/preview.jpg] 0: ok.DelFile [../mods/workshop-249713554/preview.tex] 0: ok.DelFile [../mods/workshop-249713554/preview.xml] 0: ok.DelDirectory [../mods/workshop-249713554] 0: ok.SteamWorkshop::UnzipMod ../mods/workshop-249713554WriteModFile [../mods/workshop-249713554/modinfo.lua] 295 bytesWriteModFile [../mods/workshop-249713554/modmain.lua] 877 bytesWriteModFile [../mods/workshop-249713554/preview.jpg] 20553 bytesWriteModFile [../mods/workshop-249713554/preview.tex] 21960 bytesWriteModFile [../mods/workshop-249713554/preview.xml] 138 bytesWriteModFile [../mods/workshop-249713554/images/backpack.tex] 5566 bytesWriteModFile [../mods/workshop-249713554/images/backpack.xml] 140 bytesWriteModFile [../mods/workshop-249713554/scripts/phfix.lua] 448 bytesMod downloads complete.GetCachedUGCCount 0SteamWorkshop::CompleteCallback (success, Mods were updated.) setSimLuaProxy::OnUpdateWorkshopModsComplete(ok., Mods were updated.)scripts/screens/modsscreen.lua(888,1) Reloading Mod Info Prefabs	scripts/screens/modsscreen.lua(868,1) WARNING: icon paths for mod workshop-174345915 (Craftable Gears) are not valid. Got icon_atlas="Craftable Uncraftables Logo.xml" and icon="Craftable Uncraftables Logo.tex".Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.	scripts/screens/modsscreen.lua(875,1) Loading Mod Info Prefabs	scripts/screens/modsscreen.lua(880,1) Unloading Mod Info Prefabs	scripts/screens/modsscreen.lua(880,1) Unloading Mod Info Prefabs	scripts/mods.lua(304,1) unloading prefabs for mod MOD_InfiniteClothes	scripts/mods.lua(304,1) unloading prefabs for mod MOD_Where's My Beefalo	scripts/mods.lua(304,1) unloading prefabs for mod MOD_n_tools	scripts/mods.lua(304,1) unloading prefabs for mod MOD_workshop-174345915	Collecting garbage...lua_gc took 0.01 seconds~SimLuaProxy()lua_close took 0.01 secondsReleaseAllReleaseAll FinishedcGame::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(386,1) Could not load mod_config_data/modconfiguration_Drok	scripts/mods.lua(152,1) Loading mod: Drok	scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_InfiniteClothes	scripts/mods.lua(152,1) Loading mod: InfiniteClothes	scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_n_tools	scripts/mods.lua(152,1) Loading mod: n_tools (N Tools) (Old API! (mod: 4 game: 6) )	scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_Where's My Beefalo	scripts/mods.lua(152,1) Loading mod: Where's My Beefalo (Where's My Beefalo?) (Old API! (mod: 5 game: 6) )	scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_workshop-174345915	scripts/mods.lua(152,1) Loading mod: workshop-174345915 (Craftable Gears)	scripts/mods.lua(179,1) Mod: Drok	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: Drok	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: Drok	Loading modmain.lua	scripts/mods.lua(179,1) Mod: Where's My Beefalo (Where's My Beefalo?)	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: Where's My Beefalo (Where's My Beefalo?)	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: Where's My Beefalo (Where's My Beefalo?)	Loading modmain.lua	scripts/mods.lua(179,1) Mod: n_tools (N Tools)	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: n_tools (N Tools)	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: n_tools (N Tools)	Loading modmain.lua	scripts/mods.lua(179,1) Mod: InfiniteClothes	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: InfiniteClothes	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: InfiniteClothes	Loading modmain.lua	scripts/mods.lua(179,1) Mod: workshop-174345915 (Craftable Gears)	Loading modworldgenmain.lua	scripts/mods.lua(187,1) Mod: workshop-174345915 (Craftable Gears)	  Mod had no modworldgenmain.lua. Skipping.	scripts/mods.lua(179,1) Mod: workshop-174345915 (Craftable Gears)	Loading modmain.lua	LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue	446	scripts/playerprofile.lua(477,1) loaded profile	scripts/playerprofile.lua(541,1) bloom_enabled	true	scripts/saveindex.lua(99,1) loaded saveindex	scripts/gamelogic.lua(1162,1) OnFilesLoaded()	scripts/gamelogic.lua(1151,1) OnUpdatePurchaseStateComplete	scripts/gamelogic.lua(112,1) 	FE assets already loaded	scripts/mods.lua(269,1) Mod: Drok	Registering prefabs	scripts/mods.lua(275,1) Mod: Drok	  Registering prefab file: prefabs/drok	scripts/mods.lua(279,1) Mod: Drok	    drok	scripts/mods.lua(275,1) Mod: Drok	  Registering prefab file: prefabs/wigstan	scripts/mods.lua(279,1) Mod: Drok	    wigstan	scripts/mods.lua(275,1) Mod: Drok	  Registering prefab file: prefabs/wigstanfull	scripts/mods.lua(279,1) Mod: Drok	    wigstanfull	scripts/mods.lua(275,1) Mod: Drok	  Registering prefab file: prefabs/wigstanstone	scripts/mods.lua(279,1) Mod: Drok	    wigstanstone	scripts/mods.lua(275,1) Mod: Drok	  Registering prefab file: prefabs/beefalo_hide	scripts/mods.lua(279,1) Mod: Drok	    beefalo_hide	scripts/mods.lua(275,1) Mod: Drok	  Registering prefab file: prefabs/paintedrock	scripts/mods.lua(17,1) error calling LoadPrefabFile in mod Drok: ...ps/common/dont_starve/data/scripts/mainfunctions.lua:70: Error loading file prefabs/paintedrock...pps/common/dont_starve/data/../mods/Drok/scripts/prefabs/paintedrock.lua:33: '<eof>' expected near 'MakePlacer'LUA ERROR stack traceback:        =[C] in function 'assert'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/mainfunctions.lua(70,1)        =(tail call) ?        =[C] in function 'xpcall'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/mods.lua(15,1)        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/mods.lua(276,1) in function 'RegisterPrefabs'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(116,1) in function 'LoadAssets'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(1143,1) in function 'DoResetAction'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(1158,1) in function 'complete_callback'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/upsell.lua(27,1) in function 'UpdateGamePurchasedState'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(1163,1)	...        =[C] in function 'GetPersistentString'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/saveindex.lua(91,1) in function 'Load'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(1179,1) in function 'callback'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/playerprofile.lua(571,1) in function 'Set'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/playerprofile.lua(455,1)        =[C] in function 'GetPersistentString'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/playerprofile.lua(453,1) in function 'Load'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(1178,1) in main chunk        =[C] in function 'require'        C:/Users/Lorenzo/Games/Steam/steamapps/common/dont_starve/data/scripts/mainfunctions.lua(651,1)	scripts/mods.lua(226,1) Disabling Drok because it had an error.	scripts/frontend.lua(723,1) SCRIPT ERROR! Showing error screen	scripts/mods.lua(292,1) Mod: Drok	  Registering default mod prefab	scripts/mods.lua(269,1) Mod: Where's My Beefalo (Where's My Beefalo?)	Registering prefabs	scripts/mods.lua(292,1) Mod: Where's My Beefalo (Where's My Beefalo?)	  Registering default mod prefab	scripts/mods.lua(269,1) Mod: n_tools (N Tools)	Registering prefabs	scripts/mods.lua(292,1) Mod: n_tools (N Tools)	  Registering default mod prefab	scripts/mods.lua(269,1) Mod: InfiniteClothes	Registering prefabs	scripts/mods.lua(275,1) Mod: InfiniteClothes	  Registering prefab file: prefabs/hats	scripts/mods.lua(279,1) Mod: InfiniteClothes	    strawhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    tophat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    beefalohat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    featherhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    beehat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    minerhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    spiderhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    footballhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    earmuffshat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    winterhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    bushhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    flowerhat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    walrushat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    slurtlehat	scripts/mods.lua(279,1) Mod: InfiniteClothes	    ruinshat	scripts/mods.lua(275,1) Mod: InfiniteClothes	  Registering prefab file: prefabs/sweatervest	scripts/mods.lua(279,1) Mod: InfiniteClothes	    sweatervest	scripts/mods.lua(275,1) Mod: InfiniteClothes	  Registering prefab file: prefabs/trunkvest	scripts/mods.lua(279,1) Mod: InfiniteClothes	    trunkvest_summer	scripts/mods.lua(279,1) Mod: InfiniteClothes	    trunkvest_winter	scripts/mods.lua(292,1) Mod: InfiniteClothes	  Registering default mod prefab	scripts/mods.lua(269,1) Mod: workshop-174345915 (Craftable Gears)	Registering prefabs	scripts/mods.lua(292,1) Mod: workshop-174345915 (Craftable Gears)	  Registering default mod prefab	scripts/screens/mainscreen.lua(575,1) platform_motd	table: 1404E4A8	SimLuaProxy::QueryServer()scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully.	Reset() returning../mods/Drok/images/saveslot_portraits/drok.tex is 120x104 but compressed textures must have power of 2 dimensions.../mods/Drok/images/selectscreen_portraits/drok.tex is 188x284 but compressed textures must have power of 2 dimensions.../mods/Drok/images/selectscreen_portraits/drok_silho.tex is 188x284 but compressed textures must have power of 2 dimensions.HttpClientWriteCallback (0x064F5EC7, 1, 16, 0x0671F6B0)HttpClientWriteCallback READ 16 (16 total)QueryServerComplete no callbackHttpClientWriteCallback (0x064F5E24, 1, 999, 0x0671F6B0)HttpClientWriteCallback READ 999 (999 total)scripts/screens/mainscreen.lua(575,1) platform_motd	table: 1404F9E8	Could not unload undefined prefab 0x350a87f2 (note)Could not unload undefined prefab 0x350a87f2 (note)Could not unload undefined prefab 0x350a87f2 (note)scripts/mods.lua(304,1) unloading prefabs for mod MOD_Drok	scripts/mods.lua(304,1) unloading prefabs for mod MOD_Where's My Beefalo	scripts/mods.lua(304,1) unloading prefabs for mod MOD_n_tools	scripts/mods.lua(304,1) unloading prefabs for mod MOD_InfiniteClothes	scripts/mods.lua(304,1) unloading prefabs for mod MOD_workshop-174345915	Collecting garbage...lua_gc took 0.03 seconds~SimLuaProxy()lua_close took 0.01 secondsCould not unload undefined prefab 0x350a87f2 (note)Could not unload undefined prefab 0x350a87f2 (note)Could not unload undefined prefab 0x350a87f2 (note)Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. HttpClient::ClientThread::Main() completeShutting down 

Link to comment
Share on other sites

 

Should be:

return Prefab( "common/objects/paintedrock", fn, assets),        MakePlacer( "common/paintedrock_placer", "paintedrock", "paintedrock", "idle" )

 

Okay so i got the structure working now, ****ing comma haha!

The only problem is my art is missing...

 

post-447131-0-77136700-1412680285_thumb.

post-447131-0-49894600-1412680263_thumb.

 

I did link the anim files correctly

 

Do you have any idea of how to fix that? Hope you can help 

Thanks!

Link to comment
Share on other sites

 

maybe just:

inst.AnimState:PlayAnimation("idle")

 

Tried it, no difference.

Maybe there is something wrong with the animation but i don't think so. I made this in sprite:

post-447131-0-93215000-1412683951_thumb.

 

I always used the name paintedrock so i have no idea what i did wrong.

Any ideas?

Link to comment
Share on other sites

Could not find anim build paintedrock

Could not find anim bank [paintedrock]

 

Seems like your anim file is bad after all, or game can't find it.

 

That's weird, because as you can see it does exist. 

I tried deleting it and let ModTools create a new one but it is still the same.

Any suggestions?

Link to comment
Share on other sites

That's weird, because as you can see it does exist. 

I tried deleting it and let ModTools create a new one but it is still the same.

Any suggestions?

Make new project with file structure like that:

PaintedRock->PaintedRock->paintedrock.png

And make new anim file with that.

 

Link to comment
Share on other sites

Add this to assets in modmain:

Asset("ANIM", "anim/paintedrock.zip"),

rock is quite smal btw

 

Allright, i made some changes to the art and i think it fits in the game nicely. Maybe i need to reduce the resolution of the rock to make it look like all the other items. Maybe i'll tweak the design a bit.

post-447131-0-09374200-1412702676_thumb.

 

What do you think about the art?

 

Also i have some other questions. You can walk straight through the rock. You cant walk through the default boulder. I think the code that causes this is:

    MakeObstaclePhysics(inst, 1.) 

I tried adding it but no change.

 

I have one last question. You know the evil flower has multiple art. f1,f2,f3 etc. Is it possible to do the same for the cave paintings? I guess i have to create more builds inside the spriter file called paintedrock1, paintedrock2?

 

Anyways thanks so much for your help!

Link to comment
Share on other sites

Allright, i made some changes to the art and i think it fits in the game nicely. Maybe i need to reduce the resolution of the rock to make it look like all the other items. Maybe i'll tweak the design a bit.

What do you think about the art?

 

Also i have some other questions. You can walk straight through the rock. You cant walk through the default boulder. I think the code that causes this is:

    MakeObstaclePhysics(inst, 1.) 

I tried adding it but no change.

 

I have one last question. You know the evil flower has multiple art. f1,f2,f3 etc. Is it possible to do the same for the cave paintings? I guess i have to create more builds inside the spriter file called paintedrock1, paintedrock2?

 

Anyways thanks so much for your help!

 

Hija! My turn!

 

 

did you try to remove that "." after "1"? Dunno, it just bugs me.

 

regarding the multiple art: yes ofc, by playing different animations it should be easily do-able. That means making more animations (builds should work too, but are probably more complicated)... I would stop right there, I don't like spriter at all.

The coding part is very easy:

make a table array with all animation names, like so:

local names = {    "rock1",    "rock2",}

and pick a random one:

--local function fn()inst.animname = names[math.random(#names)]inst.AnimState:PlayAnimation(inst.animname)

and if you want to keep them look the same in different sessions:

local function onsave(inst, data)	data.anim = inst.animnameendlocal function onload(inst, data)    if data and data.anim then        inst.animname = data.anim	    inst.AnimState:PlayAnimation(inst.animname)	endend--local function fn()    --------SaveLoad    inst.OnSave = onsave     inst.OnLoad = onload 
Link to comment
Share on other sites

Just unpack some anims with krane, flowers are one example of that, there are some others to.

That line for collisions is good.

Art is nice.

You can just put everything in one anim file and just change anims later depending on some conditions you want, 1 build but lot of anims in it. 

Link to comment
Share on other sites

 

Hija! My turn!

 

 

did you try to remove that "." after "1"? Dunno, it just bugs me.

 

regarding the multiple art: yes ofc, by playing different animations it should be easily do-able. That means making more animations (builds should work too, but are probably more complicated)... I would stop right there, I don't like spriter at all.

The coding part is very easy:

make a table array with all animation names, like so:

local names = {    "rock1",    "rock2",}

and pick a random one:

--local function fn()inst.animname = names[math.random(#names)]inst.AnimState:PlayAnimation(inst.animname)

and if you want to keep them look the same in different sessions:

local function onsave(inst, data)	data.anim = inst.animnameendlocal function onload(inst, data)    if data and data.anim then        inst.animname = data.anim	    inst.AnimState:PlayAnimation(inst.animname)	endend--local function fn()    --------SaveLoad    inst.OnSave = onsave     inst.OnLoad = onload 

 

 

Just unpack some anims with krane, flowers are one example of that, there are some others to.

That line for collisions is good.

Art is nice.

You can just put everything in one anim file and just change anims later depending on some conditions you want, 1 build but lot of anims in it. 

 

Thanks! I will try this, but i first want to make sure the physics thing works, i removed the dot but still nothing... any ideas?

 

EDIT: Got it working, i still had "makeinventoryphysics" enabled in the prefab lua, deleted that and now it works! :D

Thanks guys you make my day! 

Also i will keep you up to date on the mod :)

I will work on the random art on the rock now! 

THANKS AGAIN!

Link to comment
Share on other sites

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.

×
  • Create New...