饥荒联机版

饥荒联机版

39 个评价
Handymanness
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
14.459 KB
2015 年 8 月 9 日 上午 3:56
2015 年 10 月 10 日 下午 1:49
3 项改动说明 ( 查看 )

订阅以下载
Handymanness

描述
Takes your action and attack buttons to a whole new level: equipping and crafting are actions too, right?


=== IMPORTANT: ===
Read the whole text before asking any questions.
If you do post, be polite and concise.
This mod was originally written for the vanilla version. This port has been tested to some extent before going public. Bug reports are most welcome.
Great thanks to Rusty | Skypaladin for testing and giving some good feedback and interesting ideas.

ISSUES:
The mod works for the player who hosts the server, locally. To make it work all around, I would have to make it a server based mod, and it would involve a lot of programming to make up for Klei's kludgy code. Unfortunately, I don't have the time to do that. If you think you can and want to invest your time in this, let me know, I'll explain you the issues.
If Klei improves their network interfaces and respective API, then yes, I'll be happy to do it myself. :)

DESCRIPTION:

No screenshots because there is no point to it. The mod has no visual cues, just as the action and attack buttons.

If no actions are available for the ACTION button (i.e. pressing spacebar doesn't cause your character to do anything), then this mod will:

1) Check which tools (for digging, mining or chopping) you have in your inventory.
2) Of those NOT found, which ones you can craft.
3) Look for possible interactions for the unequipped/not yet crafted tool(s).
4) Equip a tool, if a target for an existing tool is found.
5) Otherwise, craft a tool, if a target for that tool is found.


if you press the ATTACK button and are not equipped with a weapon (bare handed or equipped with a tool), AND there is a weapon in your inventory, then the weapon dealing the most damage will be equipped; if you are not wearing armor (body or head), and there is any such item available in the inventory, it will be automatically equipped as well. BEWARE OF FIRE: you probably know what happens if you jettison your backpack near a fire...

What about darkness? What if equipping something puts away my torch/miner's hat?

The mod figures out when it is dark and prevents this from happening. It also equips light sources automatically.

The mod is configurable. Much of this automation has influence on game balance, and altering that is up to each user's taste. You can choose:
1) For each tool, whether it is auto-craft, auto-equip or just the regular behaviour.
2) Whether to avoid crafting tools which are available for pickup in the vicinity - but outside of the action button's radius.
3) Whether golden tools are crafted or not and, if so, whether they have priority over regular ones.
4) Whether the mod is active by default and inhibited with ALT (i.e. ALT + Space to NOT use the mod), or the other way around (i.e. the mod only kicks in if you press the spacebar while holding down ALT). You can also choose to use the CTRL key instead of ALT.
5) What to prioritize (chopping/mining/digging).
6) Whether weapons/armor/helmets are auto-equipped.
7) Whether to equip light sources.

Disclaimer (previously removed because it is obvious from the description above): There is some other mod in the workshop called Auto-Equip, which hasn't been maintained. I never downloaded it, because 1) it was defunct and 2) it didn't do what I wanted anyway.
47 条留言
Scofield 2019 年 11 月 22 日 上午 11:52 
games crashes everytime i try to enter server with this mod.
SurDno 2019 年 10 月 29 日 下午 2:23 
[00:03:38]: [string "../mods/workshop-496747385/modmain.lua"]:8: variable 'c_give' is not declared

Yikes. Any intention on fix this?
Hider 2019 年 10 月 17 日 上午 6:50 
vismutp я согласен хотел поиграть а оно вылетело :DSTsmallbird:
hime  [作者] 2019 年 4 月 20 日 下午 12:57 
@vismutp: Мод работает. Играю сам с этим. Пожалуйста, поделитесь информацией о вашей конфигурации, если вы хотите сообщить о проблеме. И напиши на английском в следующий раз.
vismutp 2019 年 4 月 20 日 上午 10:40 
Мод не работает. Игра вылетает переодически.
hime  [作者] 2016 年 4 月 1 日 上午 11:42 
@Kain Morgen: My promise to look into it still holds. But as I told you before, it will take a while. And thanks for pointing me to the mod that works on clients. I might learn how to get my mods working as well...
Kain Morgen 2016 年 3 月 31 日 上午 10:17 
This is as good as it gets:

Fixed the nil errors I found related to combat.
Will not auto-equip ranged weapons with F.
Will not auto-replace ranged weapons with F.

Added a configurable button (H by default, can't be set to F) to instantly equip a weapon which will be chosen on a priority list that can be found within modmain.lua.
This list can be text-edited as you wish. By default it equips Battlespear > Goldenspear (if you have that mod) > Spear only.
Instructions included.

Mod works host-only and is disabled on guests clients.
Tested on DST v170618. Might be working on DS RoG as well.
If you want to use this with SW, just add the compatibility flag yourself.
Machete actions are not handled in this code, though.

I won't add more featutes or SW compatibility, as I'll now see what might be improved on Auto-Actions by Jespercal, which is similar to Handymanness, but works on guests clients as well.


drive.google.com/open?id=0B5VdLchci4O4WHdaNEVNTVdDbE0
Kain Morgen 2016 年 3 月 20 日 下午 4:26 
Hello Hime,
I fixed some nil errors that happened on several occasions when using the attack button and also added rules that prevent replacing ranged weapons and equipping stronger ranged weapons, because I did not like wasting darts on weak enemies.

I also tried to add a key to instantly equip a spear type weapon, but I can't get that feature to work yet.

If you are interested in seing my improvements and you might consider helping me with the instant-spear-equip-button, please add me to your friendslist and send me a message.
xDizzyBx 2015 年 11 月 21 日 上午 11:37 
Thanks for the answer, and I appreciate the work and I understand. I did not delete it though, just deactivate it while playing with controller. I tried it out with keyboard and mouse and is amazing. I just hope some modder can upate that for you someday.
hime  [作者] 2015 年 11 月 21 日 上午 6:39 
@Azahziel: Thanks for trying it out, and I'm sorry I'm not working on this anymore. You are not the first to ask for controller support, but it is a lot of work and I haven't the time or drive to do it myself, not at the moment. If you or anyone would like to work it (and share credit, of course), I'll be happy to help.