Hajas

botnames.txt problems

Recommended Posts

Posted (edited)

Would be great if you could fix this for next release.

Problem: Select names already selected. Then we have almost times 2-3 bots with the same name even with a file with over 240 names playing with just 40 bots.

Script Fix: In the connection I check if the name already exist, if yes bot is kicked. Sometimes works fine, but sometimes the server don't get the names randomly but sequentially dunno why, then we enter in a forever loop, since the kicked ones are selected again and again. So it fails and I can't use it. :(

COD4X Fix Sugestion: Read the file and put all of them in a list, select a name randomly and take that name out of the list. If the list is empty use the regular bot0, bot1... names as usual.

Improvement Suggestion: Have 2 files, allies_names.txt and axis_names.txt (or the name you wish) so each team will have different kind of names. 

Cheers

Edited by Hajas

Share this post


Link to post
Share on other sites

Underlying issue here is RNG sucks and you can't do much about it. Currently planned solution is to add option to name bot as you add it: addTestClient( <name> ). 

Share this post


Link to post
Share on other sites
15 minutes ago, leiizko said:

Underlying issue here is RNG sucks and you can't do much about it. Currently planned solution is to add option to name bot as you add it: addTestClient( <name> ). 

https://github.com/callofduty4x/CoD4x_Server/blob/dev_newarch/src/sv_client.c#L1239

could be easily added here. not sure if "botnames.txt" is a useful feature. could imho be removed and better be done through gsc with this change.

  • Like 1

Share this post


Link to post
Share on other sites

Added in last github source. You can now name them as explained above, name must be atlest 3 chars long up to a maximum of 35, anything else will be cut.

Also there is a .isBot field now which returns boolean if client is a bot. You cannot set anything to this anymore.

  • Thanks 1

Share this post


Link to post
Share on other sites
6 hours ago, leiizko said:

Added in last github source. You can now name them as explained above, name must be atlest 3 chars long up to a maximum of 35, anything else will be cut.

Also there is a .isBot field now which returns boolean if client is a bot. You cannot set anything to this anymore.

Great great great! Thank you! :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.