Conker446

  • Content Count

    41
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Conker446

  • Rank
    Junior Member
...

Badges

Recent Profile Visitors

860 profile views
  1. Thank you recezib! I solved that problem. I thought that "pak" is a code that must be added XD. Anyway, really sorry for bothering you
  2. My mod item with the function of chest still make crash for guest player. Following is the error message and my original code. http://prntscr.com/5onzbb local assets={ Asset("ANIM", "anim/buckyball.zip"), Asset("ATLAS", "images/inventoryimages/buckyball.xml"), Asset("IMAGE", "images/inventoryimages/buckyball.tex")}local function OnDropped(inst) inst.Light:Enable(true)endlocal function OnPickup(inst) inst.Light:Enable(false)endlocal function onopen(inst) inst.SoundEmitter:PlaySound("dontstarve/common/butterfly_trap")end local function onclose(inst) inst.SoundEmitter:PlaySound("dontstarve/common/butterfly_trap")end local function fn() local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() inst.entity:AddSoundEmitter() inst.entity:AddLight() inst.entity:AddNetwork() MakeInventoryPhysics(inst) inst.AnimState:SetBank("bulb") inst.AnimState:SetBuild("buckyball") inst.AnimState:PlayAnimation("idle") inst.AnimState:SetBloomEffectHandle( "shaders/anim.ksh" ) local light = inst.entity:AddLight() light:SetFalloff(0.7) light:SetIntensity(.5) light:SetRadius(1.0) light:SetColour(237/255, 237/255, 209/255) light:Enable(true) if not TheWorld.ismastersim then return inst end inst.entity:SetPristine() inst:AddComponent("tradable") inst:AddComponent("inspectable") inst:AddComponent("fuel") inst.components.fuel.fuelvalue = TUNING.TINY_FUEL inst:AddComponent("inventoryitem") inst.components.inventoryitem.atlasname = "images/inventoryimages/buckyball.xml" inst.components.inventoryitem:SetOnDroppedFn(OnDropped) inst.components.inventoryitem:SetOnPickupFn(OnPickup) inst:AddComponent("container") inst.components.container:WidgetSetup("treasurechest") inst.components.container.onopenfn = onopen inst.components.container.onclosefn = onclose MakeHauntableLaunchAndDropFirstItem(inst) return instend return Prefab( "common/inventory/buckyball", fn, assets ) Actually, I tried to put the code recezib gave me. But, whenever I did this, DST automatically went out or had no response. I think it's my fault because I'm not a good mod maker and I feel like I have to revise this code properly. But, I failed.. Can you give me more detailed way to put that code in my lua file??
  3. Oh, thank you for your helping me. But... If you don't mind, can you show me more specific way to apply this code? I tried what you told me to do and it has no response without any message in DST. I know that the code you gave me have to be revised, but I failed several times..
  4. I updated a new item which have the function of original chest. The difference of this item compared to original is that this item can be pickable. And it's owner can open it at one's inventory by clicking the right button. As a host, everything was fine to me. But, whenever my friend try to open this item as a guest, It always shows WARNING message showing that attempt to index local 'widget' (a nil value) Because this item's code is not complicate, I want to get advice from you guys by showing this. Please let me show you. local assets={ Asset("ANIM", "anim/buckyball.zip"), Asset("ATLAS", "images/inventoryimages/buckyball.xml"), Asset("IMAGE", "images/inventoryimages/buckyball.tex")} local function OnDropped(inst) inst.Light:Enable(true)end local function OnPickup(inst) inst.Light:Enable(false)end local function onopen(inst) inst.SoundEmitter:PlaySound("dontstarve/common/butterfly_trap") end local function onclose(inst) inst.SoundEmitter:PlaySound("dontstarve/common/butterfly_trap")end local function fn()local inst = CreateEntity() inst.entity:AddTransform()inst.entity:AddAnimState()inst.entity:AddSoundEmitter() inst.entity:AddLight() inst.entity:AddNetwork() MakeInventoryPhysics(inst) inst.AnimState:SetBank("bulb") inst.AnimState:SetBuild("buckyball") inst.AnimState:PlayAnimation("idle") inst.AnimState:SetBloomEffectHandle( "shaders/anim.ksh" ) local light = inst.entity:AddLight() light:SetFalloff(0.7) light:SetIntensity(.5) light:SetRadius(1.0) light:SetColour(237/255, 237/255, 209/255) light:Enable(true) if not TheWorld.ismastersim then return inst end inst.entity:SetPristine() inst:AddComponent("tradable") inst:AddComponent("inspectable") inst:AddComponent("fuel") inst.components.fuel.fuelvalue = TUNING.TINY_FUEL inst:AddComponent("inventoryitem") inst.components.inventoryitem.atlasname = "images/inventoryimages/buckyball.xml" inst.components.inventoryitem:SetOnDroppedFn(OnDropped) inst.components.inventoryitem:SetOnPickupFn(OnPickup) inst:AddComponent("container") inst.components.container:WidgetSetup("treasurechest") inst.components.container.onopenfn = onopen inst.components.container.onclosefn = onclose MakeHauntableLaunchAndDropFirstItem(inst) return instend return Prefab( "common/inventory/buckyball", fn, assets )
  5. Oh, I guess I have to tell my subscribers about that. Anyway, thank you so much
  6. When I play DST with my mod character. Some people often said that they can only see fire effect without anything. Further more, there were a few people who can't rejoin my server again. I can't understand this phenomenon because other guys still have a great time with me. What I have to do on this?
  7. Oh.. But, it is good to hear that the problem is not hard to fix to you Anyway, I always feel sorry for asking you to give some helps. Thank you so much!
  8. Since I've got lots of helps from rezecib, I thought that all problems have been fixed. But, it is not perfectly created yet. My spider character webweb still have a problem. A guest who use this character in my server, his walking speed decrease nearby spider den. However, as a host, It was fine for me. Can you guys give some helps about this?
  9. I guess I fixed most problem with my mod character.(of course there is a great help from rezecib) But, subscribers often said that my character create crash with other mod characters. Apparently, there was no problem when I test with the other mods they said, but as a host, I could'n find any problem with them. What can I do for my subscribers? I really want to help them. Is there any good way to find reason for this crash?
  10. I created ghost's tex, but it still has no face in DST. It just like a white faceless ghost, even thought it's ghost image has blue body. Why this problem happen to my mod? Did I missed some codes in character.lua?
  11. I don't have any skeleton.lua in my mod character. In steam workshop, however, my subscribers said that there is a problem about this mod. Because I don't have any of skeleton.lua in my mod, I can't find any good solution about this.. What I have to do? Following message is came from the one of the my mod subscribers.