yzzn2009
发表于 2013-9-20 23:40
小涛丶 发表于 2013-9-20 19:25 static/image/common/back.gif
能不能修改没有狗犬
游戏开始设置世界时可以选择没有狗,现有存档已有狗了,可以这么改
用记事本打开游戏目录\data\scripts\tuning.lua文件,将下列内容:
{minday=0, chance=0},
{minday=15, chance=.1},
{minday=30, chance=.2},
{minday=50, chance=.333},
{minday=75, chance=.5},
替换为:
{minday=0, chance=0},
{minday=15, chance=0},
{minday=30, chance=0},
{minday=50, chance=0},
{minday=75, chance=0},
这是修改随机出现狗的,不是海象的狗。因为我的存档全选了没有随机出现狗,所以不好测试,你测试一下吧
yzzn2009
发表于 2013-9-20 23:43
zl2234 发表于 2013-9-20 14:21 static/image/common/back.gif
我的是20版,按照你的修改能升级,但是退出游戏就自动回到75的生命值,必须再吃一个噩梦燃料才能回升级之 ...
这种深度改写游戏,势必会出现这样那样的问题,即使解决了存档复原,一定还有别的地方会出现冲突的,{:3_172:}认了吧
有_人_坑我
发表于 2013-9-21 07:11
lz啊,你帮我这么久,我也帮你一回:
亲,还在为制作物品慢而苦恼吗?进来吧!
找到 饥荒\data\scripts\actions.lua
记事本打开,找到:
BUILD = Action()在括号里加0,true
HARVEST = Action() 在括号里加0,true
和原来有什么不同呢?没错,就是括号里的东西。第一行加上(0,true)后就可以立马做好物品,第三行可以立即收获田里的作物以及肉夹,忽略距离(隔空取物哦)
有_人_坑我
发表于 2013-9-21 07:19
有_人_坑我 发表于 2013-9-21 07:11 static/image/common/back.gif
lz啊,你帮我这么久,我也帮你一回:
亲,还在为制作物品慢而苦恼吗?进来吧!
找到 饥荒\data\scripts\act ...
REPAIR = Action(),
READ = Action(),
DROP = Action(-1),
CHOP = Action(),
ATTACK = Action(2, true),
FORCEATTACK = Action(2, true),
EAT = Action(),
PICK = Action(),
PICKUP = Action(1),
MINE = Action(),
DIG = Action(nil, nil, true),
GIVE = Action(),
COOK = Action(0,true),
DRY = Action(),
ADDFUEL = Action(),
LIGHT = Action(-4),
EXTINGUISH = Action(0),
LOOKAT = Action(-3, true),
TALKTO = Action(3, true),
WALKTO = Action(-4),
BAIT = Action(),
CHECKTRAP = Action(2),
BUILD = Action(),
PLANT = Action(),
HARVEST = Action(),
GOHOME = Action(),
SLEEPIN = Action(),
EQUIP = Action(0,true),
UNEQUIP = Action(-2,true),
--OPEN_SHOP = Action(),
SHAVE = Action(),
STORE = Action(),
RUMMAGE = Action(-1),
DEPLOY = Action(),
PLAY = Action(),
NET = Action(3),
CATCH = Action(3, true),
FISH = Action(),
REEL = Action(0, true),
POLLINATE = Action(),
FERTILIZE = Action(),
LAYEGG = Action(),
HAMMER = Action(3),
TERRAFORM = Action(),
JUMPIN = Action(),
RESETMINE = Action(3),
ACTIVATE = Action(),
MURDER = Action(0),
HEAL = Action(),
INVESTIGATE = Action(),
UNLOCK = Action(),
TEACH = Action(),
TURNON = Action(2),
TURNOFF = Action(2),
SEW = Action(),
STEAL = Action(),
USEITEM = Action(1, true),
TAKEITEM = Action(),
MAKEBALLOON = Action(),
CASTSPELL = Action(0, false, true, 20),
BLINK = Action(10, false, true, 36),
COMBINESTACK = Action(),
\data\scripts\actions.lua
里面的这些,都是说主角“干活”时的动作的,在括号里加上,或替换成0,true就可以使那个对应的动作立刻完成。比如把 PICK = Action()在括号里加上0,true就可以实现所有物品0秒采集,把 cook = Action()在括号里加上0,true就可以0秒烤熟物品,等等……………………………………………………
guhao456
发表于 2013-9-21 09:39
那个近卫军看代码好像能召唤3种兵但为什么玩起来只出现过主教和战车
wuzihang101
发表于 2013-9-21 13:54
能不能让绿色魔杖能够一定几率召唤出自己的机械马一定几率召唤出战车和一定几率召唤出主教?
yzzn2009
发表于 2013-9-21 14:10
本帖最后由 yzzn2009 于 2013-9-21 14:40 编辑
guhao456 发表于 2013-9-21 09:39 static/image/common/back.gif
那个近卫军看代码好像能召唤3种兵但为什么玩起来只出现过主教和战车
是随机出现的,机器马确实很难看见,反正它的实力也最弱
弥玖
发表于 2013-9-21 14:15
{:3_100:}20版改了几项后就再也进不了游戏了
yzzn2009
发表于 2013-9-21 14:39
弥玖 发表于 2013-9-21 14:15 static/image/common/back.gif
20版改了几项后就再也进不了游戏了
将备份的文件复制回去即可
yzzn2009
发表于 2013-9-21 14:41
wuzihang101 发表于 2013-9-21 13:54 static/image/common/back.gif
能不能让绿色魔杖能够一定几率召唤出自己的机械马一定几率召唤出战车和一定几率召唤出主教? ...
绿色魔杖的还原物品也是用鼠标右键,我怕会冲突,还是给你带王冠出机械兵吧
戴一次王冠出一个机械兵:用记事本打开游戏目录\data\scripts\prefabs\hats.lua文件,将local function ruins_onequip(inst, owner)替换为以下内容:
local function onuse(inst)
local spawn = ""
if inst.style == 1 then
spawn = (math.random()<.5 and "bishop_nightmare") or "knight_nightmare"
elseif inst.style == 2 then
spawn = (math.random()<.3 and "rook_nightmare") or "knight_nightmare"
else
spawn = (math.random()<.3 and "rook_nightmare") or "bishop_nightmare"
end
SpawnAt("maxwell_smoke",inst)
local it = SpawnAt(spawn,inst)
if it.components.follower then
it.components.follower:SetLeader(GetPlayer())
end
end
local function ruins_onequip(inst, owner)
onuse(inst)
想带一群机械兵,就反复戴和脱下王冠即可
yzzn2009
发表于 2013-9-21 14:50
有_人_坑我 发表于 2013-9-21 07:19 static/image/common/back.gif
REPAIR = Action(),
READ = Action(),
DROP = Action(-1),
非常感谢,我研究一下actions.lua文件下面的function,尽快找个形式将它加入修改技巧
310297903
发表于 2013-9-21 15:51
眼睛炮塔攻击力生命力攻击范围修改。。
小涛丶
发表于 2013-9-21 16:35
能不能修改石墙和古代墙可以防护 像墙的另一边着火了只要中间有一堵墙 另一边就不会着火
小涛丶
发表于 2013-9-21 16:36
如果可以请把这个和用蘑菇种蘑菇树添加上去 反正修改上面都没有 我想打造一个极品家园
yzzn2009
发表于 2013-9-21 16:39
310297903 发表于 2013-9-21 15:51 static/image/common/back.gif
眼睛炮塔攻击力生命力攻击范围修改。。
提高眼睛炮塔生命值、回血速度、攻击范围、攻击力
用记事本打开游戏目录\data\scripts\prefabs\eyeturret.lua文件,将下列内容:
1.生命值提高10倍:将inst.components.health:SetMaxHealth(TUNING.EYETURRET_HEALTH)替换为inst.components.health:SetMaxHealth(TUNING.EYETURRET_HEALTH*10)
2.回血速度提高10倍:将inst.components.health:StartRegen(TUNING.EYETURRET_REGEN, 1)替换为inst.components.health:StartRegen(TUNING.EYETURRET_REGEN*10, 1)
3.攻击范围提高1倍:将inst.components.combat:SetRange(TUNING.EYETURRET_RANGE)替换为inst.components.combat:SetRange(TUNING.EYETURRET_RANGE*2)
4.攻击力提高10倍:将inst.components.combat:SetDefaultDamage(TUNING.EYETURRET_DAMAGE)替换为inst.components.combat:SetDefaultDamage(TUNING.EYETURRET_DAMAGE*10)
数字可自行调整
小涛丶
发表于 2013-9-21 16:44
每天顶一次 求快点回复 求种子种池塘 墙变防火墙 蘑菇种蘑菇树添加上去 :loveliness:
yzzn2009
发表于 2013-9-21 17:17
小涛丶 发表于 2013-9-21 16:44 static/image/common/back.gif
每天顶一次 求快点回复 求种子种池塘 墙变防火墙 蘑菇种蘑 ...
游戏的燃烧机制是大、中、小的传播范围,无视中间是否有物品,两个方法阻止墙外着火引燃墙内,一是建墙离可燃品保持一定距离;二是让可燃品不可燃。但修改墙阻燃目前还没有找到路径。
有些比较个性化的种植,最好还是根据大家个人的喜好来搭配,我们的修改技巧只能提供一些例子,让大家可以掌握相关的修改语句。如果都罗列出来,会导致查找效率太低,而且就会有很多人抱怨,我之前加入黄金种远古祭坛就被喷了。所以建议你将种子种池塘、蘑菇种蘑菇树的方法单独保存在一个文档中,作为你自己的个性化修改资料,好吗
小涛丶
发表于 2013-9-21 17:22
yzzn2009 发表于 2013-9-21 17:17 static/image/common/back.gif
游戏的燃烧机制是大、中、小的传播范围,无视中间是否有物品,两个方法阻止墙外着火引燃墙内,一是建墙离 ...
恩 你能做个文档发给我吗? 求您了{:3_112:}
yzzn2009
发表于 2013-9-21 17:39
小涛丶 发表于 2013-9-21 17:22 static/image/common/back.gif
恩 你能做个文档发给我吗? 求您了
类似,其中把你创造组合的条目放在“小涛:个性化修改部分”,将你想要采用的条目放在“易宁:饥荒游戏实用修改技巧部分”,这样每次游戏版本更新,按着顺序修改就可以了
小涛:饥荒常用修改技巧
+++++++++++++++++++++小涛:个性化修改部分+++++++++++++++++++++
一.用种子种池塘
用记事本打开游戏目录\data\scripts\prefabs\seeds.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local pond = SpawnPrefab("pond")
if pond then
pond:PushEvent("growfromseeds")
pond.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
二.用蘑菇种蘑菇树
用记事本打开游戏目录\data\scripts\prefabs\mushrooms.lua文件,在inst.components.cookable.product = data.pickloot.."_cooked"的下一行插入下列内容:
local function OnDeploy (inst, pt)
local mushtree_tall = SpawnPrefab("mushtree_tall")
if mushtree_tall then
mushtree_tall:PushEvent("growfrommushrooms")
mushtree_tall.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
+++++++++++++++++++++易宁:饥荒游戏实用修改技巧部分+++++++++++++++++++++
四十五.用树枝种香蕉树
用记事本打开游戏目录\data\scripts\prefabs\twigs.lua文件,在anim:PlayAnimation("idle")的下一行插入下列内容:
local function OnDeploy (inst, pt)
local cave_banana_tree = SpawnPrefab("cave_banana_tree")
if cave_banana_tree then
cave_banana_tree:PushEvent("growfromtwigs")
cave_banana_tree.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
即可用树枝种香蕉树
四十六.用荧光果种三朵洞穴花
用记事本打开游戏目录\data\scripts\prefabs\lightbulb.lua文件,在inst:AddComponent("tradable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local flower_cave_triple = SpawnPrefab("flower_cave_triple")
if flower_cave_triple then
flower_cave_triple:PushEvent("growfromlightbulb")
flower_cave_triple.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
即可用荧光果种三朵洞穴花
小涛丶
发表于 2013-9-21 17:42
yzzn2009 发表于 2013-9-21 17:39 static/image/common/back.gif
类似,其中把你创造组合的条目放在“小涛:个性化修改部分”,将你想要采用的条目放在“易宁:饥荒游戏实 ...
太感谢你了 顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶
小涛丶
发表于 2013-9-21 20:26
那个一次采集5个能改成一次采20个或者10个或者50个吗?
有_人_坑我
发表于 2013-9-21 20:44
小涛丶 发表于 2013-9-21 20:26 static/image/common/back.gif
那个一次采集5个能改成一次采20个或者10个或者50个吗?
例如:草:用记事本打开游戏目录\data\scripts\prefabs\grass.lua文件,将inst.components.pickable:SetUp("cutgrass", TUNING.GRASS_REGROW_TIME)替换为inst.components.pickable:SetUp("cutgrass", TUNING.GRASS_REGROW_TIME, 5)
inst.components.pickable:SetUp("cutgrass", TUNING.GRASS_REGROW_TIME, 5)这句中的5就是采集的个数
小涛丶
发表于 2013-9-21 21:19
有_人_坑我 发表于 2013-9-21 20:44 static/image/common/back.gif
例如:草:用记事本打开游戏目录\data\scripts\prefabs\grass.lua文件,将inst.components.pickable:SetU ...
谢了 但是怎么改?
yzzn2009
发表于 2013-9-21 22:24
小涛丶 发表于 2013-9-21 20:26 static/image/common/back.gif
那个一次采集5个能改成一次采20个或者10个或者50个吗?
全部采集品一次采集50个:用记事本打开游戏目录\data\scripts\components\pickable.lua文件,将self.numtoharvest = number or 1替换为self.numtoharvest = 50
杨昊鹏
发表于 2013-9-21 22:27
楼主20版的地图滑动很难控制啊.不知道能不能修改正常
yzzn2009
发表于 2013-9-22 00:19
本帖最后由 yzzn2009 于 2013-9-22 00:23 编辑
杨昊鹏 发表于 2013-9-21 22:27 static/image/common/back.gif
楼主20版的地图滑动很难控制啊.不知道能不能修改正常
这是一个官方bug,官方出的针对20版的补丁中,好像修复了这个bug吧,http://bbs.3dmgame.com/thread-4032678-1-1.html这么版本好像就是打好补丁的
yzzn2009
发表于 2013-9-22 14:14
远古物品造一个就解锁(不用总靠近祭坛制造)
用记事本打开游戏目录\data\scripts\recipes.lua文件,将下列内容:
Recipe("thulecite", {Ingredient("thulecite_pieces", 6)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO, nil, nil, true)
Recipe("wall_ruins_item", {Ingredient("thulecite", 1)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO, nil, nil, true, 6)
Recipe("nightmare_timepiece", {Ingredient("thulecite", 2), Ingredient("nightmarefuel", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO, nil, nil, true)
Recipe("orangeamulet", {Ingredient("thulecite", 2), Ingredient("nightmarefuel", 3),Ingredient("orangegem", 1)}, RECIPETABS.ANCIENT,TECH.ANCIENT_FOUR, nil, nil, true)
Recipe("yellowamulet", {Ingredient("thulecite", 2), Ingredient("nightmarefuel", 3),Ingredient("yellowgem", 1)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO, nil, nil, true)
Recipe("greenamulet", {Ingredient("thulecite", 2), Ingredient("nightmarefuel", 3),Ingredient("greengem", 1)}, RECIPETABS.ANCIENT,TECH.ANCIENT_TWO, nil, nil, true)
Recipe("orangestaff", {Ingredient("nightmarefuel", 2), Ingredient("cane", 1), Ingredient("orangegem", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR, nil, nil, true)
Recipe("yellowstaff", {Ingredient("nightmarefuel", 4), Ingredient("livinglog", 2), Ingredient("yellowgem", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO, nil, nil, true)
Recipe("greenstaff", {Ingredient("nightmarefuel", 4), Ingredient("livinglog", 2), Ingredient("greengem", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO, nil, nil, true)
Recipe("multitool_axe_pickaxe", {Ingredient("goldenaxe", 1),Ingredient("goldenpickaxe", 1), Ingredient("thulecite", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR, nil, nil, true)
Recipe("ruinshat", {Ingredient("thulecite", 4), Ingredient("nightmarefuel", 4)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR, nil, nil, true)
Recipe("armorruins", {Ingredient("thulecite", 6), Ingredient("nightmarefuel", 4)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR, nil, nil, true)
Recipe("ruins_bat", {Ingredient("livinglog", 3), Ingredient("thulecite", 4), Ingredient("nightmarefuel", 4)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR, nil, nil, true)
Recipe("eyeturret_item", {Ingredient("deerclops_eyeball", 1), Ingredient("minotaurhorn", 1), Ingredient("thulecite", 5)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR, nil, nil, true)
替换为:
Recipe("thulecite", {Ingredient("thulecite_pieces", 6)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO)
Recipe("wall_ruins_item", {Ingredient("thulecite", 1)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO, nil, nil, nil, 6)
Recipe("nightmare_timepiece", {Ingredient("thulecite", 2), Ingredient("nightmarefuel", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO)
Recipe("orangeamulet", {Ingredient("thulecite", 2), Ingredient("nightmarefuel", 3),Ingredient("orangegem", 1)}, RECIPETABS.ANCIENT,TECH.ANCIENT_FOUR)
Recipe("yellowamulet", {Ingredient("thulecite", 2), Ingredient("nightmarefuel", 3),Ingredient("yellowgem", 1)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO)
Recipe("greenamulet", {Ingredient("thulecite", 2), Ingredient("nightmarefuel", 3),Ingredient("greengem", 1)}, RECIPETABS.ANCIENT,TECH.ANCIENT_TWO)
Recipe("orangestaff", {Ingredient("nightmarefuel", 2), Ingredient("cane", 1), Ingredient("orangegem", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR)
Recipe("yellowstaff", {Ingredient("nightmarefuel", 4), Ingredient("livinglog", 2), Ingredient("yellowgem", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO)
Recipe("greenstaff", {Ingredient("nightmarefuel", 4), Ingredient("livinglog", 2), Ingredient("greengem", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO)
Recipe("multitool_axe_pickaxe", {Ingredient("goldenaxe", 1),Ingredient("goldenpickaxe", 1), Ingredient("thulecite", 2)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR)
Recipe("ruinshat", {Ingredient("thulecite", 4), Ingredient("nightmarefuel", 4)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR)
Recipe("armorruins", {Ingredient("thulecite", 6), Ingredient("nightmarefuel", 4)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR)
Recipe("ruins_bat", {Ingredient("livinglog", 3), Ingredient("thulecite", 4), Ingredient("nightmarefuel", 4)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR)
Recipe("eyeturret_item", {Ingredient("deerclops_eyeball", 1), Ingredient("minotaurhorn", 1), Ingredient("thulecite", 5)}, RECIPETABS.ANCIENT, TECH.ANCIENT_FOUR)
天空宇晶
发表于 2013-9-22 17:08
我来伸手两次了,第三次不好意思了,回个帖支持一下
zl2234
发表于 2013-9-22 17:26
yzzn2009 发表于 2013-7-27 20:04 static/image/common/back.gif
原理与挖掉池塘一样
用铲子挖掉海象屋:用记事本打开游戏目录\data\scripts\prefabs\walrus_camp.lua文 ...
我改了以后没效果,我用的是论坛下载的典藏版3.0顺便问下这个版本的海豹爸爸有BUG经常追着打游戏就跳出了。能不能帮看看是什么问题,还有海豹父子带的冰狗即使在父子都挂了的情况下还是刷。能不能修改下刷新频率
yzzn2009
发表于 2013-9-22 19:22
zl2234 发表于 2013-9-22 17:26 static/image/common/back.gif
我改了以后没效果,我用的是论坛下载的典藏版3.0顺便问下这个版本的海豹爸爸有BUG经常追着打游戏就跳出了 ...
我用的也是这么游戏版本,但追着海象爸爸打,没有出现跳出,所以无从下手。给你一个最简单清除海象屋的方法,只要海象屋在就会生冰狗,烧掉就没有了
用火烧毁海象屋:用记事本打开游戏目\data\scripts\prefabs\walrus_camp.lua文件,在inst.entity:AddSoundEmitter()的下一行插入MakeLargeBurnable(inst)