Garry's Mod

Garry's Mod

825 个评价
TTT Bots 2.0
5
2
2
5
2
3
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐, 角色扮演, 写实
文件大小
发表于
更新日期
772.786 KB
2018 年 1 月 3 日 下午 2:39
8 月 24 日 下午 10:13
39 项改动说明 ( 查看 )

订阅以下载
TTT Bots 2.0

在 big 的 1 个合集中
TTT Bots 2.0 Official/Supported Content
12 件物品
描述
This is a bot add-on that is cross-compatible with both TTT and TTT2. It is designed with compatibility in mind and is very easy to use. It is extensively configurable via convars. All it requires is a navmesh and player slots.

Maps have been separated into a different add-on!!

I sincerely apologize for the inconvenience or confusion. It had to be done eventually!

It is OPTIONAL, though recommended. The bots were designed on these maps!

Features
- Climb up ladders
- Patrol around the area
- Coordinate as traitor bots to defeat the Innocents
- Follow one another
- Talk in the chat with their personalities
- Set bot quotas to add/remove bots dynamically
- Decent compatibility for more roles
- Look you up and down when you approach them
- And more!

Supported roles (optional)
- Jester
- Hitman (mostly supported)
- Jackal
- SerialKiller
- Sidekick
- Survivalist
- Bodyguard
- Sheriff
- Deputy
- Drunk

Supported weapons (optional)

1. Defibrillator (TTT2 only)
2. Compatible with most TTT/2 weapon mods

---------------------------------------------------------

How to use
1. Create a server (can be peer-to-peer)
^ https://www.youtube.com/watch?v=1YDRlpp6pKo
2. Make sure you have a navmesh or play one of the officially supported maps.
^ https://www.youtube.com/watch?v=rbYJM8W-hC8
3. Use the command "ttt_bot_add X" in the console, with X being the number of bots to add. Or you can say "!botadd X" in chat.

Go to the GitHub Wiki for an in-depth tutorial :)
https://github.com/thebigsleepjoe/TTT-Bots-2/wiki

GitHub Repo
Please go to my GitHub to report any issues, read the wiki, suggest features, and more:
https://github.com/thebigsleepjoe/TTT-Bots-2

Please report issues or submit feature requests on GitHub! I am very responsive and open-minded.

PLEASE DO NOT REPORT BUGS IN DISCUSSIONS OR COMMENTS
122 条留言
big  [作者] 12 月 8 日 上午 12:35 
I appreciate the effort you’ve put into troubleshooting this. With 300+ mods in that collection, though, I can’t realistically track down the conflict on my end. The personality module isn’t supposed to be nil, so if it’s showing up that way, another addon is overriding it. Adding nil-checks would only mask the underlying issue and could break behavior elsewhere since the personality module is used throughout the code.

When I eventually revisit this mod, I’ll likely rename that variable (and other components) to reduce the chance of collisions.

This issue seems pretty isolated so far, but if adding nil-guards improves your setup, feel free to submit a PR on GitHub. And if that ends up being too much work, I understand if you choose not to include TTT Bots in your server collection.
Guy 12 月 7 日 上午 2:24 
Here's the collection used by the server I hang out in if it helps
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3484563015
Even if you can't reproduce it, it would be nice to add guard conditions in the places I mentioned so the addon fails silently
big  [作者] 12 月 7 日 上午 2:06 
I need more info on reproducing the error. Someone else had this error last month but they never gave me more info.

The error you are experiencing can only occur if there is an issue with bot initialization or, far more likely, if a mod is conflicting with mine and overriding the variable that stores bot personalities. Try testing without other mods enabled.

That said, I was able to just test it again today, TTT2, 12 bots, multiple role mods, and no issues whatsoever.
Guy 12 月 6 日 下午 9:10 
Consistent error on every frame:

[TTT Bots 2.0] lua/tttbots2/components/sv_locomotor.lua:1741: attempt to index field 'components' (a nil value)
1. BotLocomotor - lua/tttbots2/components/sv_locomotor.lua:1741
2. unknown - lua/tttbots2/sh_tttbots2.lua:140

Doesn't seem to impact actual mod behavior?
I managed to suppress the error, but had to comment out/tweak lines in pretty much every file of the "components" folder, mostly the penultimate line in each file where self.components.something gets returned without checking if self.components exists.
Also tweaked a few lines in behavior (wander.lua:174 -> personality is nil, so just return; decrowd.lua:28 -> skip the check on personality, which is nil; lines 30 & 45 of mingecrowbar.lua -> just use the 1.0 default; sv_personality.lua:381 -> comment out, early return total). Also had to comment out lines 124 and 143 of sh_tttbots2.lua and touch line 44 of components/sv_obstacletracker.
big  [作者] 12 月 3 日 下午 3:35 
@Flamingofox3056 - This is a TTT-specific mod. Please read the description; this is at the top of the page. I also said this to someone else last month. My response is still visible at the bottom of this page. This is a TTT server utility, first and foremost, and will never support sandbox.

@ALE199 - There is currently no way to disable jesters shooting people, sorry. I may disable this behavior in a future update, if I (meaningfully) work on this mod again.
Flamingofox3056 12 月 2 日 上午 1:10 
Update:
This does not work in sandbox mode. you specifically have to be in TTT mode for this to work
Flamingofox3056 12 月 2 日 上午 12:54 
By watch I mean id spawn them in and watch them interact with each other
Flamingofox3056 12 月 2 日 上午 12:54 
Are these able to work in sandbox mode? these look really interesting, something i'd probably watch.
ALE199 12 月 1 日 下午 6:58 
hey question is there a way to have Jester bot NOT attack anyone? I feel it makes the game a bit to Jester sided, Jester whole point is to essentially prevent killing everyone at random until you hit the traitor.
big  [作者] 11 月 15 日 下午 11:18 
The code mentioned in the error shouldn't be throwing any errors unless something really wrong is going on. Do you have additional context to their error? I played for a few rounds on a bot map on TTT2 with several custom role mods and the addon seems to work fine.

1. Are you doing something in particular when this error happens?
2. What gamemode?
3. Does it happen without other mods enabled?