再世威利仔 发表于 2013-10-18 21:27

THXXXXXXXXXXXXXXX

a115 发表于 2013-10-19 00:07

LZ我想问下为什么.用硝石种麦斯威尔灯(靠近自动点燃、远离自动灭)用不了?

yzzn2009 发表于 2013-10-19 01:02

a115 发表于 2013-10-19 00:07 static/image/common/back.gif
LZ我想问下为什么.用硝石种麦斯威尔灯(靠近自动点燃、远离自动灭)用不了? ...

又测试了一遍,没有问题啊。如果种不出来,最大可能是mod干扰,比如我和lvyan2015一起做的养殖大师mod就修改了硝石文件,卸载相关mod后再试试。另一种可能是替换语句不准确,把原文件替换回去,再仔细修改一遍,就可以了


2432494393DM 发表于 2013-10-19 08:49

yzzn2009 发表于 2013-10-17 23:24 static/image/common/back.gif
萤火虫不怕人(人靠近不会灭)

    用记事本打开游戏目录\data\scripts\prefabs\fireflies.lua文件,将 ...

21版不是晚上的话萤火虫不会出现

רҵ 发表于 2013-10-19 11:36

大大,我想把maxwell灯让人离开半屏就熄灭可以么?

清浅缪狸 发表于 2013-10-19 12:34

修改之后游戏闪退进入不了啊

打死、烤肉酱 发表于 2013-10-19 13:25

yzzn2009 发表于 2013-10-18 19:52 static/image/common/back.gif
不是所有人都使用显血mod,而且10秒就停止更让人分不清有没有射中了,我改了一点,让它效果更明显

有毒的 ...

好吧真是谢谢不过可不可以告诉我怎么让他有时间限制(有点固执额,希望你谅解)

yzzn2009 发表于 2013-10-19 14:09

2432494393DM 发表于 2013-10-19 08:49 static/image/common/back.gif
21版不是晚上的话萤火虫不会出现
你要白天也可以看见?萤火虫没什么具体形态,只有光亮,想光里见光也太难了吧。干脆自己制造萤火虫吧

制造萤火虫

    用记事本打开游戏目录\data\scripts\recipes.lua文件,在Recipe("purplegem", {Ingredient("redgem",1), Ingredient("bluegem", 1)}, RECIPETABS.REFINE, TECH.MAGIC_TWO)的下一行插入以下内容:

Recipe("fireflies", {Ingredient("cutgrass", 1)}, RECIPETABS.REFINE,TECH.SCIENCE_ONE)

    即可在精炼选项(画着白色宝石)下,用一根草制造萤火虫

yzzn2009 发表于 2013-10-19 14:11

清浅缪狸 发表于 2013-10-19 12:34 static/image/common/back.gif
修改之后游戏闪退进入不了啊

这种情况往往是替换语句不准确导致的,多一个逗号、少一个end都会跳出。将游戏原文件替换回去,重新仔细修改就可以了

yzzn2009 发表于 2013-10-19 14:15

רҵ 发表于 2013-10-19 11:36 static/image/common/back.gif
大大,我想把maxwell灯让人离开半屏就熄灭可以么?

下面画红的语句中,17是走进点亮距离,27为远离熄灭距离,自己随意调节

九十八.用硝石种麦斯威尔灯(靠近自动点燃、远离自动灭)

    1.用记事本打开游戏目录\data\scripts\prefabs\nitre.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:

local function OnDeploy (inst, pt)
    local maxwelllight = SpawnPrefab("maxwelllight")
    if maxwelllight then
      maxwelllight:PushEvent("growfromnitre")
                maxwelllight.Transform:SetPosition(pt.x, pt.y, pt.z)
      inst.components.stackable:Get():Remove()
    end
end

    inst:AddComponent("deployable")
    inst.components.deployable.ondeploy = OnDeploy


    2.用记事本打开游戏目录\data\scripts\prefabs\maxwelllight.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:

local function onhammered(inst, worker)
    SpawnPrefab("collapse_small").Transform:SetPosition(inst.Transform:GetWorldPosition())
    SpawnPrefab("nitre").Transform:SetPosition(inst.Transform:GetWorldPosition())
    inst:Remove()
end

    inst:AddComponent("playerprox")
    inst.components.playerprox:SetDist(17, 27 )
    inst.components.playerprox:SetOnPlayerNear(function() if not inst.components.burnable:IsBurning() then inst.components.burnable:Ignite() end end)
    inst.components.playerprox:SetOnPlayerFar(extinguish)
    inst:AddComponent("workable")
    inst.components.workable:SetWorkAction(ACTIONS.HAMMER)
    inst.components.workable:SetWorkLeft(1)
    inst.components.workable:SetOnFinishCallback(onhammered)


    3.用记事本打开游戏目录\data\scripts\prefabs\maxwelllight_flame.lua文件,将下列内容:

    {anim="level1", sound="dontstarve/common/maxlight", radius=1, intensity=.75, falloff= 1, colour = {207/255,234/255,245/255}, soundintensity=.1},
    {anim="level2", sound="dontstarve/common/maxlight", radius=1.5, intensity=.8, falloff=.9, colour = {207/255,234/255,245/255}, soundintensity=.3},
    {anim="level3", sound="dontstarve/common/maxlight", radius=2, intensity=.8, falloff=.8, colour = {207/255,234/255,245/255}, soundintensity=.6},
    {anim="level4", sound="dontstarve/common/maxlight", radius=2.5, intensity=.9, falloff=.7, colour = {207/255,234/255,245/255}, soundintensity=1},
    {anim="level1", sound="dontstarve/common/maxlight", radius=2, intensity=.75, falloff=.4, colour = {207/255,234/255,245/255}, soundintensity=.1},
    {anim="level2", sound="dontstarve/common/maxlight", radius=3, intensity=.8, falloff=.4, colour = {207/255,234/255,245/255}, soundintensity=.3},
    {anim="level3", sound="dontstarve/common/maxlight", radius=4, intensity=.8, falloff=.4, colour = {207/255,234/255,245/255}, soundintensity=.6},
    {anim="level4", sound="dontstarve/common/maxlight", radius=6, intensity=.9, falloff=.4, colour = {207/255,234/255,245/255}, soundintensity=1},

    替换为

    {anim="level1", sound="dontstarve/common/maxlight", radius=5, intensity=.75, falloff= 1, colour = {207/255,234/255,245/255}, soundintensity=.1},
    {anim="level2", sound="dontstarve/common/maxlight", radius=7.5, intensity=.8, falloff=.9, colour = {207/255,234/255,245/255}, soundintensity=.3},
    {anim="level3", sound="dontstarve/common/maxlight", radius=10, intensity=.8, falloff=.8, colour = {207/255,234/255,245/255}, soundintensity=.6},
    {anim="level4", sound="dontstarve/common/maxlight", radius=12.5, intensity=.9, falloff=.7, colour = {207/255,234/255,245/255}, soundintensity=1},
    {anim="level1", sound="dontstarve/common/maxlight", radius=10, intensity=.75, falloff=.4, colour = {207/255,234/255,245/255}, soundintensity=.1},
    {anim="level2", sound="dontstarve/common/maxlight", radius=15, intensity=.8, falloff=.4, colour = {207/255,234/255,245/255}, soundintensity=.3},
    {anim="level3", sound="dontstarve/common/maxlight", radius=20, intensity=.8, falloff=.4, colour = {207/255,234/255,245/255}, soundintensity=.6},
    {anim="level4", sound="dontstarve/common/maxlight", radius=30, intensity=.9, falloff=.4, colour = {207/255,234/255,245/255}, soundintensity=1},

    即可用硝石种麦斯威尔灯,靠近自动点燃、远离自动灭,不想要时用锤子砸毁即可

1304755606 发表于 2013-10-19 15:22

我想问下把蜂箱的容量加大了但无论我多久采蜜都都才收获了6个   这是不是BUG

yzzn2009 发表于 2013-10-19 15:49

1304755606 发表于 2013-10-19 15:22 static/image/common/back.gif
我想问下把蜂箱的容量加大了但无论我多久采蜜都都才收获了6个   这是不是BUG ...
我刚才又测试了一遍,可以采超过6个啊。这条需要修改两处,是不是第二处没有修改啊

八十.蜂箱容量增加10倍(最多可采60个蜂蜜)

    用记事本打开游戏目录\data\scripts\prefabs\beebox.lua文件,

    1.将下列内容:

    { amount=6, idle="honey3", hit="hit_honey3" },
    { amount=3, idle="honey2", hit="hit_honey2" },
    { amount=1, idle="honey1", hit="hit_honey1" },

    替换为:

    { amount=60, idle="honey3", hit="hit_honey3" },
    { amount=30, idle="honey2", hit="hit_honey2" },
    { amount=10, idle="honey1", hit="hit_honey1" },

    2.将inst.components.harvestable:SetUp("honey", 6, nil, onharvest, updatelevel)替换为inst.components.harvestable:SetUp("honey", 60, nil, onharvest, updatelevel)

    即可让蜂箱容量增加10倍,可减少照管的时间

wuyv 发表于 2013-10-19 16:22

挺好,挺给力的

乱码、 发表于 2013-10-19 16:35

楼主真是尽心尽责。在下深感佩服。膜拜之。

乱码、 发表于 2013-10-19 17:17

由于对楼主的敬佩之情,翻看了楼主前面的回复,真是越看越感动。看了你发的百科地址,知道你在很多方面都有涉及。而且能在毫无利益的情况下有如此好的心境和耐心来帮助我们这些菜鸟,提高我们的游戏性。我一定会记住这个名字,向你学习。感谢《饥荒》这个游戏让我知道你。

yzzn2009 发表于 2013-10-19 17:52

乱码、 发表于 2013-10-19 17:17 static/image/common/back.gif
由于对楼主的敬佩之情,翻看了楼主前面的回复,真是越看越感动。看了你发的百科地址,知道你在很多方面都有 ...

我们在一起能为更多的人提供一点方便,是我个人的荣幸。人与人都是一生一相遇,一分别一生,所以珍惜我们擦身而过的缘分,到老时,回首这些美妙的点滴,心里还会是甜的。感谢你的支持,有你们的希望和鼓励,修改技巧才能渐渐完善起来

1344152253 发表于 2013-10-19 17:59

请问怎么改草帽放在地上出牛啊   我找半天没找到

yzzn2009 发表于 2013-10-19 18:41

1344152253 发表于 2013-10-19 17:59 static/image/common/back.gif
请问怎么改草帽放在地上出牛啊   我找半天没找到

草帽是所有帽子的主干语句,修改了它影响太大,目前只有高礼帽变牛。如果你嫌高礼帽需要用6个蛛丝造比较麻烦,可以改为6根草造

一四二.帽子戏法(高礼帽放在地上无限变出牛)

    用记事本打开游戏目录\data\scripts\prefabs\hats.lua文件,在inst.components.dapperness.dapperness = TUNING.DAPPERNESS_MED的下一行插入以下内容:

local function ondropped(inst)
    inst:AddComponent( "spawner" )
    inst.components.spawner:Configure( "beefalo", TUNING.TOTAL_DAY_TIME*0)
    SpawnPrefab("collapse_small").Transform:SetPosition(inst.Transform:GetWorldPosition())
end

local function OnPutInInventory(inst)
    inst:RemoveComponent( "spawner" )
end

        inst:ListenForEvent("ondropped",ondropped)
    inst.components.inventoryitem:SetOnPutInInventoryFn(OnPutInInventory)

    即可将高礼帽放在地上无限刷牛,杀一头出一头,直到将高礼帽捡起来。将beefalo(牛)改为其他物品名称(见本修改技巧最后一项“常用物品中英文名称”),即可无限变出几百种物品。不能杀死的物品,就重复扔下、捡起帽子来刷





二.6根草造高礼帽

    用记事本打开游戏目录\data\scripts\recipes.lua文件,将Recipe("tophat", {Ingredient("silk", 6)}, RECIPETABS.DRESS,TECH.SCIENCE_ONE)替换为以下内容:

Recipe("tophat", {Ingredient("cutgrass", 6)}, RECIPETABS.DRESS,TECH.SCIENCE_ONE)

杨昊鹏 发表于 2013-10-19 18:49

楼主,游戏中音乐大小一调就闪退。。。
求楼主修复此BUG

yzzn2009 发表于 2013-10-19 18:54

杨昊鹏 发表于 2013-10-19 18:49 static/image/common/back.gif
楼主,游戏中音乐大小一调就闪退。。。
求楼主修复此BUG

试了一下调音乐,没有发现跳出。之前有人提过,设置格子大小会跳出。这种设置跳出好像不是bug,而与游戏版本、杀毒软件、计算机缺少一些插件有关

吃人少女 发表于 2013-10-19 19:11

话说大象不用MOD的话地图只能存在1只~
只有杀了才会出新的~
有办法修改吗?
想能不杀大象也会出现新的脚印~

994274298 发表于 2013-10-19 19:41

http://dl.3dmgame.com/201308/36280.html这个是血量显示的MOD不知道是几版的 (对不起了)   还有哦 那个新加的蓝牙棒不是很懂 解释一下 谢谢:lol

994274298 发表于 2013-10-19 19:44

整理时间:2013-08-15      血量显示应该是对应那时候的版本

积极群 发表于 2013-10-19 19:45

有没有瞬间移动的呢?

yzzn2009 发表于 2013-10-19 20:09

吃人少女 发表于 2013-10-19 19:11 static/image/common/back.gif
话说大象不用MOD的话地图只能存在1只~
只有杀了才会出新的~
有办法修改吗?


修改足迹产生大象,需要动hunter标签,而这个标签是地图读入时就插入的,存读档时也要清点足迹数量,一旦修改会很不安全,很容易造成各种跳出。建议还是使用我和lvyan2015一起做的养殖大师mod或批量产大象mod获得大象比较安全(而且21版还存在官方bug,大象会无故消失)

yzzn2009 发表于 2013-10-19 20:17

994274298 发表于 2013-10-19 19:41 static/image/common/back.gif
http://dl.3dmgame.com/201308/36280.html这个是血量显示的MOD不知道是几版的 (对不起了)   还有哦 ...

谢谢,让你费心了。“魔之双臂”等于让佩戴狼牙棒时左右键都有功能,本来是设计左键抓来后敌人昏迷的,但冲突一大堆,最后改成左键抓敌即死,可以远距离攻击敌人,又在眼前捡战利品,连墙、触手都能抓过来,抓兔子、鸟什么都比较方便。右键瞬移可以躲开蜘蛛等群体攻击敌人的反击

yzzn2009 发表于 2013-10-19 20:21

积极群 发表于 2013-10-19 19:45 static/image/common/back.gif
有没有瞬间移动的呢?

远距离瞬移没有研究成功(关键定位不好设置),短瞬移在“瑞士手杖”、“魔之双臂”里都可以做到

一四一.瑞士手杖(砍树、凿石、锤墙、挖草、取暖、补脑、瞬移、10倍攻击力、2倍速度、照明,18版及以后游戏使用)

    用记事本打开游戏目录\data\scripts\prefabs\cane.lua文件,

    1.在local function onequip(inst, owner)的下一行插入inst.Light:Enable(true)

    2.在local function onunequip(inst, owner)的下一行插入inst.Light:Enable(false)

    3.在anim:PlayAnimation("idle")的下一行插入以下内容:

    inst:AddComponent("tool")
    inst.components.tool:SetAction(ACTIONS.CHOP, 15)
    inst.components.tool:SetAction(ACTIONS.MINE, 15)
    inst.components.tool:SetAction(ACTIONS.HAMMER,15)
    inst.components.tool:SetAction(ACTIONS.DIG)

    inst:AddComponent("heater")
    inst.components.heater.equippedheat = 100

    inst:AddComponent("dapperness")
    inst.components.dapperness.dapperness = TUNING.DAPPERNESS_HUGE

    inst:AddComponent("blinkstaff")

    local light = inst.entity:AddLight()
        light:SetFalloff(0.4)
        light:SetIntensity(.7)
        light:SetRadius(2.5)
        light:SetColour(180/255, 195/255, 150/255)
    light:Enable(true)

    4.将inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE)替换为inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE*10)

    5.将inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT替换为inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT*2

    即可让手杖拥有瑞士军刀般的多功能。装备手杖时,在空地上点鼠标右键可瞬移,借此可跳过较窄沟壑,少走冤枉路。这是将我和lvyan2015一同做的万用斧mod、神奇雨伞mod的部分功能组合在一起,以方便大家





一六五.魔之双臂(狼牙棒左键抓来敌人并致死、右键抓地移动主角)

    用记事本打开游戏目录\data\scripts\prefabs\tentaclespike.lua文件,将下列内容:

    inst:AddComponent("weapon")
    inst.components.weapon:SetDamage(TUNING.SPIKE_DAMAGE)

    -------

    inst:AddComponent("finiteuses")
    inst.components.finiteuses:SetMaxUses(TUNING.SPIKE_USES)
    inst.components.finiteuses:SetUses(TUNING.SPIKE_USES)

    inst.components.finiteuses:SetOnFinished( onfinished )

    替换为:

local function onattack(inst, owner, target)
    local pt = owner:GetPosition()
    if target.components.health then
       target.Transform:SetPosition(pt.x+1, pt.y, pt.z)
    end
    inst:DoTaskInTime(0.1, function()
    target.components.health:DoDelta(-3000)
    end)
end
    inst:AddComponent("weapon")
    inst.components.weapon:SetDamage(0)
    inst.components.weapon:SetRange(20, 25)
    inst.components.weapon:SetOnAttack(onattack)
    inst.components.weapon:SetProjectile("bishop_charge")
    inst:AddComponent("blinkstaff")

    即可在装备狼牙棒时,对敌人点左键将其抓过来并致死,对空地点右键,抓地移动主角,左右开弓让主角既杀伤敌人,又可有效闪避。用来抓鸟、兔、火鸡、大象等会逃跑的动物也很实用哦。狼牙棒靠打沼泽里的触手获得

994274298 发表于 2013-10-19 20:21

好像   主角的动作会被攻击打断的    如果跟你说的右键瞬移可以躲开蜘蛛等群体攻击敌人的反击应该会被打断吧

yzzn2009 发表于 2013-10-19 20:30

本帖最后由 yzzn2009 于 2013-10-19 20:34 编辑

994274298 发表于 2013-10-19 20:21 static/image/common/back.gif
好像   主角的动作会被攻击打断的    如果跟你说的右键瞬移可以躲开蜘蛛等群体攻击敌人的反击应该会被 ...
围着一群蜘蛛攻击,它们一靠近你就瞬移开,有点距离就用左键抓它们,我反复测试了,可以不减血歼灭一群,不会被咬到的,当然前提是熟练

994274298 发表于 2013-10-19 20:39

抓 是 什么 意思   是点一下死还是 将其抓制某一地方死撬:dizzy:
页: 61 62 63 64 65 66 67 68 69 70 [71] 72 73 74 75 76 77 78 79 80
查看完整版本: 易宁:饥荒游戏实用修改技巧(非MOD模式,请自行备份)支持海难版——6月6日更新:简化修船工具制作材料(只用木板和绳子)