yzzn2009 发表于 2014-1-24 21:52

43880757 发表于 2014-1-24 21:22 static/image/common/back.gif
我也试了一下,但是还是报错宁哥 我没有改动 pickable.lua,只是把草、树枝、树和芦苇还、恶魔花和曼德 ...

不排除收获物品中存在问题,因为也用了pickable标签,还原这些文件试试。另外也可以用“临时工市场”来收获植物

loliy01 发表于 2014-1-24 22:49

恩,我忘记这茬了……要拿一个。ok了

yzzn2009 发表于 2014-1-25 01:18

本帖最后由 yzzn2009 于 2014-1-25 04:48 编辑

闲话两句:“荒野之狼”


      原本说这两天要休息一下,但今天在做别的事时,想到一个创意有些心动,就是在饥荒世界里扮演一匹狼,不能建筑、不能种植、不能采集,只能靠打猎存活,体验野生动物的世界。不但要和别的物种竞争,还会受到同类的挑战,如果你能打败其他的狼,它将成为你狼群里的一分子。经过漫长的写代码、测试过程,终于做出了“荒野之狼”,在变成狼的那一刻,回望故园、女友、宠物、新移民,不觉心头有些苍凉。从此开始,只能在山野间栖身,昔日的伙伴已势同水火,只有在夜色的掩护下,才敢穿越人类聚居区。看着满地的胡萝卜、浆果都已与我无缘,为了填饱肚子,虽然没有了盔甲和装备,也要咬紧牙关,冲向强大的敌人。这就是一匹狼的宿命,赶快去体验吧!


无语。。。 发表于 2014-1-25 08:20

我玩的时候不小心同时按了pgup(招换坐骑)和Home(变身巨鹿),然后主角站在巨鹿的肚子的位置上,上下左右控制巨鹿   !!!!,重点是没有警告,我又同时按了两个的退回,就变回去了!

loliy01 发表于 2014-1-25 08:31

无语。。。 发表于 2014-1-25 08:20 static/image/common/back.gif
我玩的时候不小心同时按了pgup(招换坐骑)和Home(变身巨鹿),然后主角站在巨鹿的肚子的位置上,上下左右 ...

{:3_108:}哇,意外之喜丫

Brainos 发表于 2014-1-25 09:08

枫焰海 发表于 2014-1-24 15:28 static/image/common/back.gif
哇哦~关掉了所有MOD果然就有用了。我现在修改好了之后又开了4个mod 显示数值的mod和5格装备栏的mod 还有自 ...

五彩木箱的代码对于冰箱也有用

无语。。。 发表于 2014-1-25 09:18

loliy01 发表于 2014-1-25 08:47 static/image/common/back.gif
易宁哥,你可以多用玩具来做东西,感觉玩具除了换金子已经没有什么作用了,而且有那么多换金子的途径,其实 ...

你网页游戏玩多了。。。{:3_91:}

无语。。。 发表于 2014-1-25 09:20

那个荒野之狼不能用,刚开始没事,玩了一会就警告

陈浩洋 发表于 2014-1-25 10:09

宁哥,如果你有时间的话可不可以做一个克隆机啊,可以把鸟的羽毛,兔人尾巴,蜂刺,蚊子血囊等等的物品放入克隆机,再放入黄金,可以克隆出鸟,兔子,蜜蜂,蚊子等等

Brainos 发表于 2014-1-25 11:09

本帖最后由 Brainos 于 2014-1-25 11:10 编辑

陈浩洋 发表于 2014-1-25 10:09 static/image/common/back.gif
宁哥,如果你有时间的话可不可以做一个克隆机啊,可以把鸟的羽毛,兔人尾巴,蜂刺,蚊子血囊等等的物品放入 ...
仿照全自动播种机我做了一个克隆机,打开data\scripts\prefabs\feathers.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
2,打开data\scripts\prefabs\manrabbit_tail.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
3,打开data\scripts\prefabs\stinger.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
4,打开data\scripts\prefabs\honey.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
5,打开data\scripts\prefabs\mosquitosack.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
6,打开data\scripts\prefabs\froglegs.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
7,打开data\scripts\prefabs\spidergland.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
8,打开data\scripts\prefabs\pigskin.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
9,打开data\scripts\prefabs\horn.lua,在inst:AddComponent("inspectable")的下一行插入inst:AddComponent("tradable")
10,打开data\scripts\prefabs\eyeturret.lua,在第二个inst:AddComponent("inspectable")的下一行插入
local function ShouldAcceptItem(inst, item)
    local player = GetPlayer()
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "feather_crow" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "feather_robin" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "feather_robin_winter" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "manrabbit_tail" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "stinger" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "honey" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "mosquitosack" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "froglegs" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "spidergland" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "pigskin" then
      return true
      end
    end
    if player.components.inventory:Has("goldnugget", 25) then
       if item.prefab == "horn" then
      return true
      end
    end
    return false
end
local function OnGetItemFromPlayer(inst, giver, item)
    giver.components.inventory:ConsumeByName("goldnugget", 50)
    if item.prefab == "feather_crow" then
       inst.name = "crow"
    end
    if item.prefab == "feather_robin" then
       inst.name = "robin"
    end
    if item.prefab == "feather_robin_winter" then
       inst.name = "robin_winter"
    end
    if item.prefab == "manrabbit_tail" then
       inst.name = "bunnyman"
    end
    if item.prefab == "stinger" then
       inst.name = "killerbee"
    end
    if item.prefab == "honey" then
       inst.name = "bee"
    end
    if item.prefab == "mosquitosack" then
       inst.name = "mosquito"
    end
    if item.prefab == "froglegs" then
       inst.name = "frog"
    end
    if item.prefab == "spidergland" then
       inst.name = "spider"
    end
    if item.prefab == "pigskin" then
       inst.name = "pigman"
    end
    if item.prefab == "horn" then
       inst.name = "beefalo"
    end
    local pt = Vector3(inst.Transform:GetWorldPosition())
    inst:StartThread(function()
      for k = 1, 25 do
            local theta = 1 * 2 * PI
            local radius = 4
            local result_offset = FindValidPositionByFan(theta, radius, 25, function(offset)
                local x,y,z = (pt + offset):Get()
                local ents = TheSim:FindEntities(x,y,z , 1)
                return not next(ents)
            end)
            if result_offset then
                local tentacle = SpawnPrefab(inst.name)
                tentacle.Transform:SetPosition((pt + result_offset):Get())
                GetPlayer().components.playercontroller:ShakeCamera(inst, "FULL", 0.2, 0.02, .25, 40)
                local fx = SpawnPrefab("splash_ocean")
                local pos = pt + result_offset
                fx.Transform:SetPosition(pos.x, pos.y, pos.z)
            end
            Sleep(.33)
      end
    end)
    return true
end
    inst:AddComponent("trader")
    inst.components.trader.onaccept = OnGetItemFromPlayer
    inst.components.trader:SetAcceptTest(ShouldAcceptItem)
即可把各色羽毛、兔人尾巴、蜂刺、蜂蜜、蚊子血囊、蛙腿、蜘蛛腺体、猪皮、牛角给远古守护者(炮塔),分别克隆出各色鸟、兔人、杀人蜂、蜜蜂、蚊子、青蛙、普通蜘蛛、猪人、牛,每次克隆消耗25黄金。

陈浩洋 发表于 2014-1-25 11:30

Brainos 发表于 2014-1-25 11:09 static/image/common/back.gif
仿照全自动播种机我做了一个克隆机,打开data\scripts\prefabs\feathers.lua,在inst:AddComponent("inspe ...

额....对不起,我是想要点击某样物品出现两个格子,在两个格子里放入物品和黄金,点start按钮,开始克隆,最后克隆出的动物就放在格子里

陈浩洋 发表于 2014-1-25 11:59

yzzn2009 发表于 2014-1-25 01:18 static/image/common/back.gif
闲话两句:“荒野之狼”




宁哥,你写作文肯定很厉害!

loliy01 发表于 2014-1-25 12:28

无语。。。 发表于 2014-1-25 09:18 static/image/common/back.gif
你网页游戏玩多了。。。

{:3_109:}我不玩网页游戏的亲。。。只是觉得,这个可行而已。

无语。。。 发表于 2014-1-25 13:10

loliy01 发表于 2014-1-25 12:28 static/image/common/back.gif
我不玩网页游戏的亲。。。只是觉得,这个可行而已。

一般都是那些网页游戏才有装备分颜色,比如勇士的信仰 ,机甲小子,造梦西游,枪魂等,除了网页游戏,还有什么装备分颜色??

loliy01 发表于 2014-1-25 13:13

无语。。。 发表于 2014-1-25 13:10 static/image/common/back.gif
一般都是那些网页游戏才有装备分颜色,比如勇士的信仰 ,机甲小子,造梦西游,枪魂等,除了网页游戏,还 ...

呃……我只是觉得,箱子可以有别的颜色,其他应该可以,增加一点乐趣。哈哈

loliy01 发表于 2014-1-25 13:14

易宁哥,你看看这个是什么情况。还有就是吸地牛会被红胡子杀死……这个……东西掉了一地,然后就弹了。

yzzn2009 发表于 2014-1-25 13:36

loliy01 发表于 2014-1-25 08:47 static/image/common/back.gif
易宁哥,你可以多用玩具来做东西,感觉玩具除了换金子已经没有什么作用了,而且有那么多换金子的途径,其实 ...

我之前也想过武器附魔,但技术上比较繁琐,要想保存附魔效果,需要将每种武器都加入存档功能,需要改一大堆文件。等再研究一下,看有没有更好的途径吧

yzzn2009 发表于 2014-1-25 13:42

陈浩洋 发表于 2014-1-25 10:09 static/image/common/back.gif
宁哥,如果你有时间的话可不可以做一个克隆机啊,可以把鸟的羽毛,兔人尾巴,蜂刺,蚊子血囊等等的物品放入 ...

技术上类似于“小型温室”,不算复杂,但小动物克隆出来后就没有什么可玩了,还不像“小型温室”种出来的蔬菜,可以吃,可以磨种子再种,让我们再想想,能不能再充实一点内容,让这更创意成熟起来

yzzn2009 发表于 2014-1-25 13:45

Brainos 发表于 2014-1-25 11:09 static/image/common/back.gif
仿照全自动播种机我做了一个克隆机,打开data\scripts\prefabs\feathers.lua,在inst:AddComponent("inspe ...

{:3_121:},只要不断钻研,你一定会做出许多有趣的作品的

无语。。。 发表于 2014-1-25 13:52

yzzn2009 发表于 2014-1-25 13:45 static/image/common/back.gif
,只要不断钻研,你一定会做出许多有趣的作品的

那个荒野之狼不能用,刚开始没事,玩了一会就警告

yzzn2009 发表于 2014-1-25 13:57

loliy01 发表于 2014-1-25 13:14 static/image/common/back.gif
易宁哥,你看看这个是什么情况。还有就是吸地牛会被红胡子杀死……这个……东西掉了一地,然后就弹了。 ...

吸地牛是可以被红胡子撞死的,报错图显示是红胡子抢东西时报错的,我刚才测试了几次带吸地牛去打红胡子,每次吸地牛死后,都没有跳出,不排除是系统运算的偶然情况,比如一个红胡子正在抢,另一个正在撞,撞的先于抢的一点点,系统还没有确认目标消失,所以才会跳出。你再试试,如果是频繁跳出,我会优化一下的

yzzn2009 发表于 2014-1-25 13:58

无语。。。 发表于 2014-1-25 13:52 static/image/common/back.gif
那个荒野之狼不能用,刚开始没事,玩了一会就警告

方便发一张报错图

yzzn2009 发表于 2014-1-25 14:23

闲话两句:本周就到这里吧


      翻翻近期的回复,大部分都是负面的反馈。每每精疲力尽做出一个条目,如果大家喜欢,一般都不会表达,如果遇到问题(我是处女座,追求完美,每一个条目都反复测试才敢推出的),就排山倒海而来,久而久之,整个人心里积累的都是负面能量,多做多错,实在没有动力写6-8个小时的代码了。偶尔浏览别的地方,比如贴吧,看见有人分享修改后的快乐,才感觉苦苦做的一切,还不是完全没有意义。本周的更新就到这里结束了,给我一点时间去消化,等心里的伤口痊愈了,我们再出发吧

无语。。。 发表于 2014-1-25 14:43

本帖最后由 无语。。。 于 2014-1-25 14:45 编辑

yzzn2009 发表于 2014-1-25 14:23 static/image/common/back.gif
闲话两句:本周就到这里吧



你多休息,其实不要这么在意,那些负面的提议你不必要关心,你能做这么多已经不错了{:3_121:}(至少我是怎么觉得,相信大家也不会觉得你做的不好,因为你尽力了)

1344152253 发表于 2014-1-25 15:02

5格背包mod和修改后的可携带普通背包是不是有冲突 {:3_103:}

1344152253 发表于 2014-1-25 15:09

能让武器衣服或者有耐久值的物品放入背包中回复耐久值

loliy01 发表于 2014-1-25 19:15

yzzn2009 发表于 2014-1-25 14:23 static/image/common/back.gif
闲话两句:本周就到这里吧




要给易宁哥点赞~!!!

43880757 发表于 2014-1-25 22:35

请问23版恶魔花瓣有什么用? 以前用17版的时候,可以合成噩梦燃料,但是现在貌似没了?

43880757 发表于 2014-1-25 23:54

易宁哥我有个想法,你看可不可以种植一个建筑群(生活中心?),包含三个建筑。 第一个建筑给金子可以恢复饥饿值,建筑可以用食物啊什么表示;第二个建筑给金子可以恢复生命值,建筑可以用蜘蛛腺体或者什么组合起来;第三个给金子可以恢复精神值,建筑可以用书籍、图书管理员或者默剧演员什么的组合。这样三个建筑一目了然。第三个建筑还可以给金子降低精神值,用麦克斯韦和幽灵什么的表示。


另外请问23版的噩梦花朵还能合成噩梦燃料吗? 怎么没看到有合成选项呢?

无语。。。 发表于 2014-1-26 07:38

43880757 发表于 2014-1-25 23:54 static/image/common/back.gif
易宁哥我有个想法,你看可不可以种植一个建筑群(生活中心?),包含三个建筑。 第一个建筑给金子可以恢复 ...

回复生命的是果汁店,你把弄好的果汁自己喝,可以补血,回复饥饿的是小酒馆,可以拿钱点那个冰箱,他会给你食物,第三个挺不错{:3_117:}
页: 175 176 177 178 179 180 181 182 183 184 [185] 186 187 188 189 190 191 192 193 194
查看完整版本: 易宁:饥荒游戏实用修改技巧(非MOD模式,请自行备份)支持海难版——6月6日更新:简化修船工具制作材料(只用木板和绳子)