Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion fails when botdontshoot is enabled #4

Open
josemam opened this issue Sep 1, 2018 · 3 comments
Open

Assertion fails when botdontshoot is enabled #4

josemam opened this issue Sep 1, 2018 · 3 comments

Comments

@josemam
Copy link
Contributor

josemam commented Sep 1, 2018

As soon as the first bot joins the game if botdontshoot is enabled in the config file, or as soon as it is turned on when there are bots in the game, this message is shown and hlds crashes:

[jk_botti] [ASSERT] 'pBot.pBotEnemy == NULL' : 'bot_combat.cpp' : 'line 756'

I tried commenting out the line (had to, in order to test for #3) and the server seemed to run fine, or at least nothing weird was observed in the server log.

@djearthquake
Copy link

Thanks for acknowledging. How easy it is to forget and not notice such details. I needed to make the bots ignore humans to do some testing where X number of players need to be present. For the last several years I have had a scrolling message vote_ignore to make bots ignore humans. Many crashes recently using this newer code. Are there any plans on changing the source or just keeping this indexed here?

server console (cmdline "jk_botti botdontshoot 1")
[jk_botti] botdontshoot ENABLED
[jk_botti] [ASSERT] 'pBot.pBotEnemy == NULL' : 'bot_combat.cpp' : 'line 756'
Trace/breakpoint trap

@jkivilin
Copy link
Member

Well.. to be honest, I have not played HL for years and jk_botti is not high in my priority list (of hobby programming). I made commit to fix this issue through github editing interface, completely untested. I hope it works.

@djearthquake
Copy link

djearthquake commented Jan 20, 2019

Observer works fine so that will due. I'll focus on this over the Winter or when I get free time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants