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

[bot-10] respawn configured bots #422

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

d47081
Copy link

@d47081 d47081 commented Jan 11, 2024

this patch allows to re-spawn same bots as configured, if they are not in use.

still testing on YGGverse server but looks it works well.

ps vscode have formatted empty lines, the fix in client.cpp only at line
c786c8a#diff-cf88165d4f283564472fca1bc224f90a38de2f8f0ed3232bf18b10c8959bf4d9R1370

@nekonomicon nekonomicon merged commit 6d2f4bc into FWGS:bot10 Jan 11, 2024
4 checks passed
@d47081
Copy link
Author

d47081 commented Jan 12, 2024

That's strange - it works but after some time bots strarting respawn with common names

image

like somewhere BotCreate still generating with default (null) values.
Will check bot.cpp later, maybe the issue is there

And the max quantity of bots is 4, not 8.

Not sure that's related with PR.

@d47081
Copy link
Author

d47081 commented Jan 13, 2024

I think the reason of mix may be in missed meta update, like:

bot_respawn[index].state = BOT_IS_RESPAWNING;
bot_respawn[index].is_used = FALSE;      // free up this slot

or maybe statuses mismatch on the map change.

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

Successfully merging this pull request may close these issues.

None yet

2 participants