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

MinQLX stderr log problems #131

Open
savagemiguel opened this issue Aug 31, 2024 · 2 comments
Open

MinQLX stderr log problems #131

savagemiguel opened this issue Aug 31, 2024 · 2 comments

Comments

@savagemiguel
Copy link

Hello,

Firstly, I'd like to apologize if this is an issue that's already been fixed. I'm still learning python and how to make plugins and things for MinQLX. I've made quite a few plugins for my server and I've also used quite a few. My problem is recently I reimagined xPaw's PHP Source Query Library and redid it as my own coding but kept the same concept. It works the same as theirs and I've had no issues.

However, lately, I am having a problem with the bots. I have bots enabled on the server for testing purposes and I've attempted to trace the issue that I get from the dispatcher with no luck. I know nothing about C# or C++ or C... header files, etc. But I keep getting the same error. The dispatcher will load all of my plugins with no issues (spent days troubleshooting to make everything work correctly.) This has got me stumped.

I keep getting the same error about the handler_return with f returning unknown value and then it goes into a Thread, daemon, etc. I have traced back to the f() function but nothing looks wrong to me when I follow the code. I even followed into the _events.py and some of the C files. Below is the link to my pastebin so you can see the full error.

https://pastebin.com/FKKsidrz

Any help is appreciated. Thank you! I love this add-on and I love learning how to make the plugins. My stats from the PHP library do not show up when this error occurs. Every time I've had to restart the server and then it works. After some time passes, I get the same error and the library cannot read the socket... etc. If I can get this main error fixed, I can troubleshoot the library to see if I made a mistake somewhere.

@em92
Copy link
Collaborator

em92 commented Sep 9, 2024

https://pastebin.com/FKKsidrz
TypeError: bots.bots_handle_game_end() takes 1 positional argument but 2 were given

I guess bots_handle_game_end does not have "self" argument there.

I keep getting the same error about the handler_return with f returning unknown value and then it goes into a Thread,

Do not return anything on round_start hook. This should be fine.

@savagemiguel
Copy link
Author

https://pastebin.com/FKKsidrz
TypeError: bots.bots_handle_game_end() takes 1 positional argument but 2 were given

I guess bots_handle_game_end does not have "self" argument there.

I keep getting the same error about the handler_return with f returning unknown value and then it goes into a Thread,

Do not return anything on round_start hook. This should be fine.

Hello,

Thank you for your reply! I think the handler_return with f returning an unknown value is probably to do with the bots_handle_game_end not having the self argument. Not entirely sure yet. I ended up getting my stats up and running perfectly fine. I actually updated minqlx to the latest one and the problem is still there, however everything else I had issues with got fixed when I updated. If I ever figure out why the error is coming up and find a fix for it, I will let you know. :) I appreciate your 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

2 participants