佟志伟 发表于 2014-3-22 19:48

堕落の魂 发表于 2014-3-22 17:09 static/image/common/back.gif
最近怎么这么多的菜鸟新手,总是出一些 私人的意见,傻傻的问题,像是说“XXX怎么不能用啊”之类的,不行的 ...

我觉得如果自己能解决.谁也不会麻烦易宁哥,可是遇到自己解决不了的问题就不提问么,就是放弃这条修改?

http.零度.com 发表于 2014-3-22 20:29

为什么修改之后没用啊?我用的 饥荒dlc贴吧版 的

、恋☆Smile 发表于 2014-3-22 20:36

请问像企鹅这样的特殊生物如何使一次击杀同时掉落2样东西?发现它的设定跟其他生物的不一样。
SetSharedLootTable( 'penguin',
{
    {'feather_crow',0.2},
    {'smallmeat',   0.1},
    {'drumstick',   0.1},
})

yzzn2009 发表于 2014-3-22 20:39

更新预告:二四三.观赏秃鹫(用蛛丝种笼中的秃鹫,喂腐烂食物产种子,喂肉生高鸟蛋)


      用蛛丝种关在笼中的秃鹫,喂它腐烂食物,会掉落随机品种的植物种子,喂大肉、小肉会生高鸟蛋。不想要观赏秃鹫了,用锤子砸掉即可



      实在太疲惫了,周末等于没有休息,但“观赏秃鹫”已经不止一个人要了,加上“地图不显示已探索区域”,本周再加一期更新

yzzn2009 发表于 2014-3-22 20:40

http.零度.com 发表于 2014-3-22 20:29 static/image/common/back.gif
为什么修改之后没用啊?我用的 饥荒dlc贴吧版 的

可以下载首页修改好的游戏直接玩

yzzn2009 发表于 2014-3-22 20:42

、恋☆Smile 发表于 2014-3-22 20:36 static/image/common/back.gif
请问像企鹅这样的特殊生物如何使一次击杀同时掉落2样东西?发现它的设定跟其他生物的不一样。
SetSharedLoo ...



SetSharedLootTable( 'penguin',
{
    {'feather_crow',0.2},
    {'smallmeat',   0.1},
    {'drumstick',   0.1},
})


替换为:

SetSharedLootTable( 'penguin',
{
    {'feather_crow',1.0},
    {'smallmeat',   1.0},
    {'drumstick',   1.0},
})

http.零度.com 发表于 2014-3-22 20:46

yzzn2009 发表于 2014-3-22 20:40 static/image/common/back.gif
可以下载首页修改好的游戏直接玩

修改好的太乱,而且我只想玩普通的生存,修改一点点东西

http.零度.com 发表于 2014-3-22 20:47

http.零度.com 发表于 2014-3-22 20:46 static/image/common/back.gif
修改好的太乱,而且我只想玩普通的生存,修改一点点东西

不用麻烦了宁哥,问题解决了

yzzn2009 发表于 2014-3-22 20:50

http.零度.com 发表于 2014-3-22 20:46 static/image/common/back.gif
修改好的太乱,而且我只想玩普通的生存,修改一点点东西

如果不是修改路径错误(比如没有修改DLC0001文件夹下的文件),就是mod干扰,或是你在DLC版中玩原版游戏,而没有挂载DLC,那就需要修改原版游戏文件,即去掉修改路径中的DLC0001\

http.零度.com 发表于 2014-3-22 20:54

yzzn2009 发表于 2014-3-22 20:50 static/image/common/back.gif
如果不是修改路径错误(比如没有修改DLC0001文件夹下的文件),就是mod干扰,或是你在DLC版中玩原版游戏 ...

谢谢,已经解决

、恋☆Smile 发表于 2014-3-22 21:05

yzzn2009 发表于 2014-3-22 20:42 http://bbs.3dmgame.com/static/image/common/back.gif
SetSharedLootTable( 'penguin',
{
    {'feather_crow',0.2},


原来是这么简单啊,呵呵。 谢谢宁哥!

还有个问题,请问你的企鹅养殖场在哪里设定的收取10个黄金给小企鹅?我找到的几个都不是。

另外,如果我想更改penguin_2爆的食物是不是三条penguin.components.lootdropper:SetLoot({"meat", "meat", "drumstick",
"drumstick"})都要改掉?

、恋☆Smile 发表于 2014-3-22 21:27

我把内容贴出来   省的你找了


二七五.企鹅养殖场(用蜂巢种企鹅养殖场,买小企鹅,养大后卖出赚黄金)

    用记事本打开游戏目录\data\scripts\prefabs\honeycomb.lua文件,在inst:AddComponent

("inspectable")的下一行插入以下内容:

local function penguinshop(inst)
    local pt = inst:GetPosition()
    local peddler = SpawnPrefab("honeycomb")
    peddler.Transform:SetPosition(pt.x, pt.y, pt.z)
    peddler.AnimState:SetBank("wilson")
    peddler.AnimState:SetBuild("willow")
    peddler.AnimState:OverrideSymbol("swap_hat", "hat_straw", "swap_hat")
    peddler.AnimState:Show("HAT")
    peddler.AnimState:Show("HAT_HAIR")
    peddler.AnimState:Hide("HAIR_NOHAT")
    peddler.AnimState:Hide("HAIR")
    peddler.AnimState:OverrideSymbol("swap_body", "armor_grass", "swap_body")
    peddler.AnimState:Hide("ARM_carry")
    peddler.AnimState:Show("ARM_normal")
    peddler.Transform:SetFourFaced()
    peddler.AnimState:PlayAnimation("idle")
    peddler:AddTag("peddler")
    peddler:RemoveComponent("stackable")
    peddler:RemoveComponent("tradable")
    peddler:RemoveComponent("inventoryitem")
    peddler:AddComponent("heater")
    peddler.components.heater.heat = 180
    local light = peddler.entity:AddLight()
    light:SetFalloff(1)
    light:SetIntensity(.8)
    light:SetRadius(10)
    light:SetColour(180/255, 195/255, 50/255)
    light:Enable(true)
    MakeLargeBurnable(peddler)
    MakeLargePropagator(peddler)
    peddler.components.inspectable.getstatus = function(peddler)
      peddler.AnimState:PlayAnimation("give")
      GetPlayer().SoundEmitter:PlaySound("dontstarve/HUD/get_gold")
      local pos = Vector3(peddler.Transform:GetWorldPosition())
      local ents = TheSim:FindEntities(pos.x,pos.y,pos.z, 50)
      for k,v in pairs(ents) do
            if v:HasTag("penguin_2") then
               for k = 1, 20 do
                   SpawnPrefab("goldnugget").Transform:SetPosition

(v.Transform:GetWorldPosition())
               end
               v:Remove()
            end
      end
    end
    peddler:AddComponent("trader")
    peddler.components.trader:SetAcceptTest(function(peddler, item)
      if GetPlayer().components.inventory:Has("goldnugget", 10) then
         if item.prefab == "goldnugget" then
            return true
         end
      end
      return false
    end )
    peddler.components.trader.onaccept = function(peddler, giver, item)
      peddler.AnimState:PlayAnimation("give")
      GetPlayer().SoundEmitter:PlaySound("dontstarve/HUD/research_available")
      GetPlayer().components.inventory:ConsumeByName("goldnugget", 9)
      local penguin = SpawnPrefab("honeycomb")
      penguin.Transform:SetPosition(pt.x+3.1, 0, pt.z+3.1)
      penguin.AnimState:SetBank("penguin")
      penguin.AnimState:SetBuild("penguin_build")
      penguin.Transform:SetFourFaced()
      penguin.AnimState:PlayAnimation("idle_loop", true)
      penguin.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
        penguin.entity:AddSoundEmitter()
        local minimap = penguin.entity:AddMiniMapEntity()
        minimap:SetIcon( "penguin.png" )
      MakeCharacterPhysics(penguin, 50, .5)
      penguin:AddComponent("follower")
      penguin.components.follower:SetLeader(GetPlayer())
      local brain = require "brains/abigailbrain"
      penguin:SetBrain(brain)
      penguin:AddComponent("locomotor")
      penguin.components.locomotor.walkspeed = 0.75
      penguin.components.locomotor.directdrive = false
      penguin:SetStateGraph("SGpenguin")
      penguin:AddComponent("combat")
      penguin.components.combat.hiteffectsymbol = "body"
      penguin.components.combat:SetAttackPeriod(1)
      penguin.components.combat:SetRange(2.5)
      penguin.components.combat:SetDefaultDamage(1)
      penguin:ListenForEvent("attacked", function(penguin, data)

penguin.components.combat:SetTarget(data.attacker) end )
      penguin:AddComponent("health")
      penguin.components.health:SetMaxHealth(50)
      penguin.Transform:SetScale(0.7, 0.7, 0.7)
      penguin:RemoveComponent("stackable")
      penguin:RemoveComponent("tradable")
      penguin:RemoveComponent("inventoryitem")
      penguin:AddTag("retinue")
      penguin:AddTag("penguin_1")
      penguin:AddComponent("lootdropper")
      penguin.components.lootdropper:SetLoot({"smallmeat", "smallmeat"})
      penguin.components.inspectable.getstatus = function(penguin)
            if not penguin:HasTag("retinue") then
               local brain = require "brains/abigailbrain"
               penguin:SetBrain(brain)
               penguin.components.follower:SetLeader(GetPlayer())
               penguin.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
               penguin:AddTag("retinue")
            else
               local brain = require "brains/leifbrain"
               penguin:SetBrain(brain)
               penguin.components.follower:SetLeader(nil)
               penguin.AnimState:SetBloomEffectHandle("")
               penguin:RemoveTag("retinue")
            end
      end
      penguin:DoTaskInTime(math.random(480,560), function()
            if not penguin:HasTag("penguin_2") then
               penguin.AnimState:PlayAnimation("taunt")
               penguin.Transform:SetScale(1, 1, 1)
               penguin:AddTag("penguin_2")
               penguin.components.lootdropper:SetLoot({"meat", "meat", "drumstick",

"drumstick"})
            end
      end )
      penguin:DoPeriodicTask(math.random(120,180), function()
            if penguin:HasTag("penguin_2") then
               SpawnPrefab("bird_egg").Transform:SetPosition

(penguin.Transform:GetWorldPosition())
            end
      end)
    end
    local ice = SpawnPrefab("honeycomb")
    ice.Transform:SetPosition(pt.x+1, 0, pt.z+1)
    ice.AnimState:SetBank("penguin_ice")
    ice.AnimState:SetBuild("penguin_ice")
    ice.AnimState:PlayAnimation("idle")
    ice.AnimState:SetOrientation( ANIM_ORIENTATION.OnGround )
    ice.AnimState:SetLayer( LAYER_BACKGROUND )
    ice.AnimState:SetSortOrder( 1 )
    ice.Transform:SetRotation( 225 )
    ice:RemoveComponent("stackable")
    ice:RemoveComponent("tradable")
    ice:RemoveComponent("inventoryitem")
    ice:AddTag("goodbye")
    ice:AddTag("NOCLICK")
    MakeLargeBurnable(ice)
    MakeLargePropagator(ice)
    local model1 = SpawnPrefab("honeycomb")
    model1.Transform:SetPosition(pt.x+2-1, 0, pt.z-2-1)
    model1.AnimState:SetBank("penguin")
    model1.AnimState:SetBuild("penguin_build")
    model1.Transform:SetFourFaced()
    model1.AnimState:PlayAnimation("idle_loop", true)
    model1.Transform:SetRotation( 270 )
    model1.Transform:SetScale(2, 2, 2)
    model1:RemoveComponent("stackable")
    model1:RemoveComponent("tradable")
    model1:RemoveComponent("inventoryitem")
    model1.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
    model1:AddTag("goodbye")
    MakeLargeBurnable(model1)
    MakeLargePropagator(model1)
    local model2 = SpawnPrefab("honeycomb")
    model2.Transform:SetPosition(pt.x-2-1, 0, pt.z+2-1)
    model2.AnimState:SetBank("penguin")
    model2.AnimState:SetBuild("penguin_build")
    model2.Transform:SetFourFaced()
    model2.AnimState:PlayAnimation("idle_loop", true)
    model2.Transform:SetRotation( 90 )
    model2.Transform:SetScale(2, 2, 2)
    model2:RemoveComponent("stackable")
    model2:RemoveComponent("tradable")
    model2:RemoveComponent("inventoryitem")
    model2.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
    model2:AddTag("goodbye")
    MakeLargeBurnable(model2)
    MakeLargePropagator(model2)
end

local function OnDeploy (inst, pt)
    penguinshop(inst)
    inst.components.stackable:Get():Remove()
end
    inst:AddComponent("deployable")
    inst.components.deployable.ondeploy = OnDeploy
local function onsave(inst, data)
    if inst:HasTag("peddler") then data.peddler = true end
    if inst:HasTag("goodbye") then data.goodbye = true end
    if inst:HasTag("penguin_1") then data.penguin_1 = true end
    if inst:HasTag("penguin_2") then data.penguin_2 = true end
    if inst:HasTag("retinue") then data.retinue = true end
end
local function onload(inst, data)
    if data and data.peddler then
       penguinshop(inst)
       inst:Remove()
    end
    if data and data.goodbye then
       inst:Remove()
    end
    if data and data.penguin_1 then
      inst.AnimState:SetBank("penguin")
      inst.AnimState:SetBuild("penguin_build")
      inst.Transform:SetFourFaced()
      inst.AnimState:PlayAnimation("idle_loop", true)
        inst.entity:AddSoundEmitter()
        local minimap = inst.entity:AddMiniMapEntity()
        minimap:SetIcon( "penguin.png" )
      MakeCharacterPhysics(inst, 50, .5)
      inst:AddComponent("follower")
      inst.components.follower:SetLeader(nil)
      local brain = require "brains/leifbrain"
      inst:SetBrain(brain)
      inst:AddComponent("locomotor")
      inst.components.locomotor.walkspeed = 0.75
      inst.components.locomotor.directdrive = false
      inst:SetStateGraph("SGpenguin")
      inst:AddComponent("combat")
      inst.components.combat.hiteffectsymbol = "body"
      inst.components.combat:SetAttackPeriod(1)
      inst.components.combat:SetRange(2.5)
      inst.components.combat:SetDefaultDamage(1)
      inst:ListenForEvent("attacked", function(inst, data)

inst.components.combat:SetTarget(data.attacker) end )
      inst:AddComponent("health")
      inst.components.health:SetMaxHealth(50)
      inst.Transform:SetScale(0.7, 0.7, 0.7)
      inst:RemoveComponent("stackable")
      inst:RemoveComponent("tradable")
      inst:RemoveComponent("inventoryitem")
      inst:AddTag("penguin_1")
      inst:AddComponent("lootdropper")
      inst.components.lootdropper:SetLoot({"smallmeat", "smallmeat"})
      inst.components.inspectable.getstatus = function(inst)
            if not inst:HasTag("retinue") then
               local brain = require "brains/abigailbrain"
               inst:SetBrain(brain)
               inst.components.follower:SetLeader(GetPlayer())
               inst.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
               inst:AddTag("retinue")
            else
               local brain = require "brains/leifbrain"
               inst:SetBrain(brain)
               inst.components.follower:SetLeader(nil)
               inst.AnimState:SetBloomEffectHandle("")
               inst:RemoveTag("retinue")
            end
      end
      inst:DoTaskInTime(math.random(480,560), function()
            if not inst:HasTag("penguin_2") then
               inst.AnimState:PlayAnimation("taunt")
               inst.Transform:SetScale(1, 1, 1)
               inst:AddTag("penguin_2")
               inst.components.lootdropper:SetLoot({"meat", "meat", "drumstick",

"drumstick"})
            end
      end )
      inst:DoPeriodicTask(math.random(120,180), function()
            if inst:HasTag("penguin_2") then
               SpawnPrefab("bird_egg").Transform:SetPosition

(inst.Transform:GetWorldPosition())
            end
      end)
    end
    if data and data.penguin_2 then
      inst.Transform:SetScale(1, 1, 1)
      inst:AddTag("penguin_2")
      inst.components.lootdropper:SetLoot({"meat", "meat", "drumstick",

"drumstick"})
    end
    if data and data.retinue then
      local brain = require "brains/abigailbrain"
      inst:SetBrain(brain)
      inst.components.follower:SetLeader(GetPlayer())
      inst.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
      inst:AddTag("retinue")
    end
end
    inst.OnSave = onsave
    inst.OnLoad = onload

堕落の魂 发表于 2014-3-22 21:38

佟志伟 发表于 2014-3-22 19:48 static/image/common/back.gif
我觉得如果自己能解决.谁也不会麻烦易宁哥,可是遇到自己解决不了的问题就不提问么,就是放弃这条修改?
...

像7063楼这样的人不就是无理取闹么?!?!?连什么修改条目都没指出来,就算指出来还要麻烦易宁哥再测试一遍然后再回复“实测没有问题”,每天有多少个这样说“欸??这个条目怎么不行呢???”诸如此类的问题,看得我都很心烦啊有木有,就算宁哥不心烦我也替他心烦啊!!

1309202309 发表于 2014-3-22 22:04

堕落の魂 发表于 2014-3-22 21:53 static/image/common/back.gif
我刚刚看了下“二八二.网上宠宠店”,发现用捕虫网种不出,然后我就郁闷了,之后无聊一不小心看到蜜蜂(黄 ...

我也是...

1750820466 发表于 2014-3-22 22:16

能不能让一次性把饥荒里的所有食物都改成不腐坏的

、恋☆Smile 发表于 2014-3-22 22:18

1750820466 发表于 2014-3-22 22:16 static/image/common/back.gif
能不能让一次性把饥荒里的所有食物都改成不腐坏的

一次性改没尝试过,都要一个文件一个文件去改。你可以用冰箱,把冰箱改成永久保险就可以了

http.零度.com 发表于 2014-3-22 22:24

现在的 天然温泉 不适合 巨人的统治 么?我修改后触手皮可以种,但种不出温泉...

http.零度.com 发表于 2014-3-22 22:27

........对不起,拿了多个触手皮....所以种不出来.................

http.零度.com 发表于 2014-3-22 22:27

http.零度.com 发表于 2014-3-22 22:24 static/image/common/back.gif
现在的 天然温泉 不适合 巨人的统治 么?我修改后触手皮可以种,但种不出温泉... ...

........对不起,拿了多个触手皮....所以种不出来.................

渊小乖 发表于 2014-3-22 23:14

从洞穴上来地面变永夜 求大神看下到底什么出了问题很多人有这个情况不止我一个你试试在地下二层呆一段时间 时间长一点挖些铥矿然后打一些怪物大概呆半小时左右上来一定变永夜 自动保存的原因我觉得

胖胖胖猫酱 发表于 2014-3-22 23:23

本帖最后由 胖胖胖猫酱 于 2014-3-22 23:34 编辑

大神,我想问一下,如果我想多一些装备栏,比如弄成5个或者8个的话,应该怎么修改?现在只有3个太少了。我第一次玩也不太懂,看别人的装备栏好像都有5个,就想问一下,要是衣服、帽子、武器都把装备栏占完了,那背包放哪呢?

渊小乖 发表于 2014-3-22 23:31

另外就是增加一个切斯特不拉仇恨

渊小乖 发表于 2014-3-22 23:33

胖胖胖猫酱 发表于 2014-3-22 23:23 static/image/common/back.gif
大神,我想问一下,如果我想多一些装备栏,比如弄成5个或者8个的话,应该怎么修改?现在只有3个太少了。 ...

用MOD把 改出来的不太美观吧

胖胖胖猫酱 发表于 2014-3-22 23:35

渊小乖 发表于 2014-3-22 23:33 static/image/common/back.gif
用MOD把 改出来的不太美观吧

我想说,我用不了MOD,你知道改的方法么?我一用MOD界面就变的奇怪。

yzzn2009 发表于 2014-3-22 23:37

堕落の魂 发表于 2014-3-22 21:53 static/image/common/back.gif
我刚刚看了下“二八二.网上宠宠店”,发现用捕虫网种不出,然后我就郁闷了,之后无聊一不小心看到蜜蜂(黄 ...

需要身上有200个黄金才可以种出来

yzzn2009 发表于 2014-3-22 23:39

、恋☆Smile 发表于 2014-3-22 21:05 static/image/common/back.gif
原来是这么简单啊,呵呵。 谢谢宁哥!

还有个问题,请问你的企鹅养殖场在哪里设定的收取10个黄金给小企 ...

收10个黄金涉及下面两句

if GetPlayer().components.inventory:Has("goldnugget", 10) then

GetPlayer().components.inventory:ConsumeByName("goldnugget", 9)


如果想收15个黄金,就把10改为15,9改为14

企鹅掉物品必须将包含"meat", "meat", "drumstick", "drumstick"的三句都改

yzzn2009 发表于 2014-3-22 23:41

1750820466 发表于 2014-3-22 22:16 static/image/common/back.gif
能不能让一次性把饥荒里的所有食物都改成不腐坏的

修改腐烂标签就可以,但近来官方将许多生物都加了腐烂设定,很容易产生未知的错误

yzzn2009 发表于 2014-3-22 23:43

渊小乖 发表于 2014-3-22 23:14 static/image/common/back.gif
从洞穴上来地面变永夜 求大神看下到底什么出了问题很多人有这个情况不止我一个你试试在地下二层呆一段时间...

官方bug,很可能是切换地图时,没有将原地图设定保存进去导致的,等官方升级修复吧

yzzn2009 发表于 2014-3-22 23:43

胖胖胖猫酱 发表于 2014-3-22 23:23 static/image/common/back.gif
大神,我想问一下,如果我想多一些装备栏,比如弄成5个或者8个的话,应该怎么修改?现在只有3个太少了。我 ...

需要画图,做mod才可以用自己的图片,光修改不行

rxc 发表于 2014-3-22 23:50

大神,请问怎么修改可以让wx78升级的时候加攻击和速度?
页: 213 214 215 216 217 218 219 220 221 222 [223] 224 225 226 227 228 229 230 231 232
查看完整版本: 易宁:饥荒游戏实用修改技巧(非MOD模式,请自行备份)支持海难版——6月6日更新:简化修船工具制作材料(只用木板和绳子)