Garry's Mod

Garry's Mod

TTT Bots 2.0
113 Comments
big  [author] 15 Nov @ 11:18pm 
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?
Sniper516 but something 15 Nov @ 10:59pm 
[TTT Bots 2.0] lua/tttbots2/components/sv_personality.lua:354: attempt to index field 'bot' (a nil value)
1. unknown - lua/tttbots2/sh_tttbots2.lua:132

Sorry but im too stupid to figure out how to put like messages on github but can you please tell me cause this error is so annoying, why do i keep getting this errror
big  [author] 2 Nov @ 8:30pm 
@encrede -- This mod doesn't support Homigrad natively.

If Homigrad implements the same methods as vanilla TTT, I don't see why this mod wouldn't work if the server owner made a very small tweak to the "compatible gamemodes" table in my mod.
encrede 2 Nov @ 8:27am 
будет ли оно кое-как работать в хомиграде и ему подобным?
big  [author] 31 Oct @ 2:47pm 
@sigmasdog:) -- I don't know how you'd put these bots in sandbox without just rebuilding the TTT gamemode from scratch. These bots are meant for the TTT/2 gamemode, and will never be ported to sandbox.

@UltraFormula1 -- Performance is relative to your hardware and the size of the map. The bots are fairly well-optimized as-is, and I can comfortably run ~20 on my decent computer.

If you're playing on a huge labyrinth at 10 bots, you're gonna have worse performance than 20 bots on a medium map. This is because the pathfinding complexity increases near-exponentially with large maps.

The best (free) solutions are to A) reduce bots, or B) play on a smaller map.
sigmasdog:) 31 Oct @ 1:34pm 
Pls sandbox bots
UltraFormula1 30 Oct @ 8:06pm 
Is it just me or are these bots not well optimised by default? Is there any way to improve performance with them?
big  [author] 26 Oct @ 7:28pm 
Извини, я не говорю по-русски, поэтому пользуюсь переводчиком. Играть нужно в режиме TTT на сервере. Вот переведённая часть описания:

Как играть:

Создайте сервер (можно обычный peer-to-peer).

Убедитесь, что на карте есть navmesh или выберите одну из поддерживаемых карт.

В консоли введите команду ttt_bot_add X, где X — количество ботов.
Также можно написать !botadd X в чате.
Slipkor85 26 Oct @ 5:47am 
какой режим брать TTT или sandbox?
Slipkor85 26 Oct @ 5:46am 
а как с ними поиграть?:steamsad:
goofyball31 22 Oct @ 9:01am 
they just go around with crowbars and start hitting random ♥♥♥♥ and they run away from me ebven if they are traitors
Barsik^^ 8 Oct @ 7:55am 
ZBATTLE
big  [author] 4 Oct @ 11:48pm 
I need more info. Review "How to use" section in the meantime.
Chicken 4 Oct @ 3:33am 
it's not spawns help me
chillin' fella 20 Sep @ 4:50am 
is there a chance you could port leadbot's "leadbot_afk" command where the bot takes over for you? if not then that's fine
Piggy guy 14 Sep @ 2:04am 
thanks man!
ZeRelic 31 Aug @ 3:47am 
how do i add translate file?
Nesigmohka1 13 Aug @ 11:39pm 
Ok i understand
big  [author] 13 Aug @ 9:20pm 
@Nesigmohka1 -- I have worked on this mod off-and-on for almost a decade now for free. I've poured several hundreds of development hours into making the bots semi-competent. The fact is that making actually competent bots for an arbitrary, social-focused, heavily modded gamemode like TTT, is a HUGE undertaking.

I am sorry that you feel the bots are "really stupid." I hear what you're saying, and to an extent I agree. This mod is at the end of its development cycle. I have little time or will to work on it currently, and there haven't been any community PRs in a long time. As it stands, the bots are usable enough for most people I've spoken with to be satisfied, and that makes me happy with its current state.

This mod is fully open-source, so you may contribute to its codebase and improve the mod for everyone. Or, if you prefer to own more of the code yourself, you can fork the project and make something incredible with my code as a starting point.
Nesigmohka1 13 Aug @ 8:57pm 
Can you do new update or what? Because they are really stupid
big  [author] 3 Aug @ 11:34pm 
TTT2 or TTT? What mods are you using?
Maffin 3 Aug @ 9:14am 
They are refusing to even equip a gun. Only happens on dedicated server
Maffin 3 Aug @ 8:59am 
Why arent the bots shooting anyone?
big  [author] 1 Aug @ 7:51pm 
Glad you figured it out. Also lol Shadowysn. It's nice to see your name here once in a while.
Shadowysn 1 Aug @ 8:02am 
h o w do you manage to fail the most essential part of actually playing the gamemode the mod requires
arkacha_ 1 Aug @ 8:01am 
Lol, turns out I was playing on sandbox, bruh:steammocking:
arkacha_ 1 Aug @ 7:47am 
says nothing, the game does not see the command
big  [author] 31 Jul @ 6:35pm 
What does it say when you enter those commands?
arkacha_ 31 Jul @ 1:24pm 
help, commands like don't work for me!! --- !botadd \ tt_bot_add 10
TF2Player3253 29 Jun @ 12:11am 
Yeah I realised that Im a dumbass
big  [author] 28 Jun @ 10:19pm 
Read the description
TF2Player3253 28 Jun @ 7:30pm 
UUu How tf do i use this
big  [author] 20 Jun @ 6:35pm 
That error is unrelated to my mod. You need to mount CS:S to play TTT2. You can do this by owning CS:S or downloading the textures online.
ryzyK 20 Jun @ 11:34am 
[TTT2 (Base) - v0.14.4b] TTT2 WARNING: CS:S does not appear to be mounted by GMod. Things may break in strange ways. Server admin? Check the TTT readme for help.

1. unknown - gamemodes/terrortown/gamemode/server/sv_main.lua:298 how to fix
big  [author] 18 Jun @ 10:41pm 
Eh, probably not by me. I've been working on this specific addon on-and-off for almost a decade now. The bots are in a good enough state right now to where I'm comfortable letting the addon coast for the foreseeable future while I work on other (non-gmod) projects.
tacoz 18 Jun @ 6:25pm 
will there ever be a 3.0.....
big  [author] 20 Apr @ 4:25pm 
Ensure the model path you are using is correct. It has to be a full path to a valid playermodel.
Zeressa 20 Apr @ 4:17pm 
Custom player doesn't work for the bots for some reason.
big  [author] 19 Apr @ 3:35pm 
If you got it installed properly, you are on a server, there are open player slots, and the commands aren't loading, then there must be a deeper issue with your installation of the game or the mod.

Assuming you're on a P2P server, validate your files and triple-check that there are NO warning messages from the mod in your console. The mod may fail to load fully if there is no navmesh, or for a number of other reasons.

There are people using the mod actively that haven't reported any issues like this, so it's most likely not a problem within my control beyond giving you these troubleshooting steps.

@D и t я - see the description "How to use"
БОТ CAheK 19 Apr @ 10:25am 
yes
капішончік 19 Apr @ 7:28am 
how to spawn bots?
big  [author] 17 Apr @ 5:33pm 
You may be seeing the convars, which are variables you can set for the mod. The commands are a bit different and depend on the mod fully loading to function.

The mod will not load properly if you are not in a compatible server. Are you in a server AND are there available player slots?
БОТ CAheK 17 Apr @ 1:52am 
the other commands of the mods are working, but not the ttt_bot_add.
or !addbot
big  [author] 16 Apr @ 6:52pm 
If the commands aren't loading, then the mod isn't loading. Either there's an error (which you would likely have noticed and mentioned), or the mod may have not been installed or enabled. Or you aren't playing on a supported version of TTT.
БОТ CAheK 16 Apr @ 1:34pm 
(sorry, i js dont have github)
БОТ CAheK 16 Apr @ 1:33pm 
hey, i have a problem. when i try to use the commands "!addbot 15 or console ttt_bot_add 15" it doesnt work, it says unknown command "ttt_bot_add" or when i type in chat it doesn't work.
big  [author] 15 Mar @ 2:14am 
Generally speaking (and this isn't directed at anyone in particular here), I haven't worked on any significant features for this addon for some time now. The mod is "solving" a highly complex problem, and thus is very complicated itself. I also have other projects I am more personally invested in for the time being.

If anyone has suggestions, I highly encourage you to clone the codebase, try to create the feature yourself, then contribute to the repository ("PR"). I am very open to these, and it does not have to be perfect.

Suggesting a feature like, "can you make the bots talk back," is a large task in scope, and I do not personally see the purpose in investing my energy--so I will likely never work on it.
big  [author] 15 Mar @ 2:04am 
@SpaceMan They will actively walk away from nearby C4 if they aren't preoccupied with something else.

However, due to the complex nature of pathing and how diverse TTT maps are, I decided to still allow them to path through risky areas.
SpaceMan 13 Mar @ 7:02pm 
since i dont have a github could you please make it so that the terrorist bots move away from the c4 that they placed as sometimes the bots will kill themselves because of the c4 (theyd win the match otherwise)