Jump to content
Sign in to follow this  
You need to play a total of 5 battles to post in this section.
notyourfather

API request

6 comments in this topic

Recommended Posts

75
[WWS]
Member
184 posts
2,831 battles
24 minutes ago, MatroseFuchs said:

Hello, what methods API do you need and what reason?

Auto translate. Since it requires external lib like googletrans or pyslate, I don't think this would be allowed but atleast write the battle chat to a separate log file or python log (since utils.loginfo already exists) while the battle is happening so that it can be read by a separate program and translate it.

This would be a huge help if you can understand what non English speaker says.

Edited by notyourfather

Share this post


Link to post
Share on other sites
75
[WWS]
Member
184 posts
2,831 battles
3 hours ago, MatroseFuchs said:

Ok, as i understood you need a method which will get you message info, right?

Yes, and it seems I can read the python log file while it's being written so it's very possible this way without creating a mod which uses external packages for translation.

My plan is to create a mod that will enable dumping chat message to python.log and create a software that will translate it. I don't know yet how to return the translated messages back to the game but a always-on-top window that will display the translated message will do (if the game is on fullscreen-borderless).

Edited by notyourfather

Share this post


Link to post
Share on other sites
Sign in to follow this  

×