Comments (7)
I did some more testing. If you enter in at least two letters into the search field, select Upload Date from the pull down menu, and then hit Server Search, you will get back a query.
If you then delete the text in the search field, you will now get a list of mods with the most recently uploaded first.
Just an FYI.
from server.
Whatever changes have been made has made the problem worse.
The workaround that I described above for listing the most recent uploaded mods to the vault no longer works. It instead continues to use the initial top 100 rated mods that pop up when you open the mod vault. In order to find a mod now you need to know at least a few characters in the right order for it to show up in the results lists.
from server.
No changes were made to the mod vault since october.
from server.
That is correct, the issue is somehow related to the query search.
Before the date I had posted above, if you leave the text field blank, set the pull down menu to Upload Date, and then click on Server Search it would return a list of the most resent uploaded mods.
If you try this step today, the search will hang the lobby and the error that I had listed above will spam the log.
It is as if the server does not know how to handle a query that is blank. If you enter in at least two letters it will return a query (will search through the mod name and the author field) and present the results with the most recent uploaded mod first. If you go back to the text field and erase the two characters you entered in (note: do not hit Server Search button), you will now see a list that contains the return result mixed with the initial list of most rated mods, sorted by date of upload with the most recent at the top of the list.
from server.
I am trying to pin down the issue, but I am not following to well the programming language.
In lobby/src/modvault/__init__.py
at line 178
there is the function: def search(self):
This sends the contents of the search query textfield to the function modvault_search
I think there may be a problem here if there is no text (blank) entered. It has worked in the past, just do not know why not now.
Continuing on..
modvault_search is located in server/replays/replayServerThread.py
line 80, that begins with
def command_modvault_search(self, message):
In that function there were two commits made on February 4 that was labeled Convert to Python 3. This commit affected a number of files so it is a bit hard to find this file amongst all the changes.
Anyways, in server/replays/replayServerThread.py
the two changes were as follows (there was a recent commit on March 16 so I am using the new line numbers):
on line 129:
while next(query):
it was:
while query.next():
and on line 148:
thumbstr = config['global']['content_url'] + "vault/mods_thumbs/" + urllib.parse.quote(icon)
it was:
thumbstr = config['global']['content_url'] + "vault/mods_thumbs/" + urllib2.quote(icon)
I think the issue may be at line 129. I have been trying to find out if there is an order or logic issue, but I cannot seem to find one.
In all my testing on the search field, I have managed to crash the client when entering this list of two characters and running a server search:
al, an, as, im, ol, on, us
Also any single digit number entered in the text field works fine for the query.
I have had the query return no results on a number of two character searches such as aq
and the client did not crash.
So the client is able to send back a query and able to return an empty query.
So I am puzzled as to why a query with no text or the list of two characters from above will hang the client.
In my testing the two characters I used was a vowel and any other letter. I ran through every combination of that for each vowel (a, e, i, o, u, and y).
Either way, not being able to see the latest mods that have been uploaded sucks.
from server.
Use the master branch for tracking down problems in currently deployed code.
Python3 is not yet live, but indeed 2to3 wrongfully replaced all occurences of query.next() with next(query)
from server.
I wasn't able to reproduce this any longer
from server.
Related Issues (20)
- Add localization key to notice messages
- Is an alternative account an issue, and how to deal with it if so. HOT 9
- Newly foed/friended players don't receive necessary game_info messages
- Unrank custom games after fixed time HOT 5
- Queue pop timer rate calculation is wrong
- Codecov report is broken
- Achievements are broken again HOT 1
- Consider using msgspec library for structured message serialization HOT 3
- Unrank games that are mutual draw HOT 7
- Better TMM map pool selection algorithm HOT 9
- Possibility to create own ban list HOT 2
- Possible to join TMM team when already in game/match launching state. HOT 3
- Error running RabbitMQ reconnect task
- Connection is closed if two login messages are sent to the same connection
- TMM queue pop timer can march to negative infinity HOT 3
- Clients get disconnected if they search for a queue that is inactive HOT 1
- Matchmaking balancing seems broken HOT 32
- Anope database is going away with IRC changes
- Server no longer uses `SINGLE_PLAYER` validity state
- Searches are sometimes left in the queue while players are doing other things HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.