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

changes for 1.4.3 #243

Merged
merged 35 commits into from
Jan 21, 2024
Merged

changes for 1.4.3 #243

merged 35 commits into from
Jan 21, 2024

Conversation

wsrvn
Copy link
Collaborator

@wsrvn wsrvn commented Jan 14, 2024

closes #242 #240 #238 #237 #235 #234 #233 #232 #231. idk about other cup mode stuff. we cant/dont test cup mode really

@wsrvn wsrvn requested a review from lythx January 15, 2024 22:49
@felacek
Copy link
Collaborator

felacek commented Jan 17, 2024

When all maps but one are removed and the current one is skipped, the controller crashes.

@wsrvn
Copy link
Collaborator Author

wsrvn commented Jan 17, 2024

map service doesnt expect maps other than the current one being removed i believe, as that wasnt possible until now (just a guess) @lythx gotta fix this before merge

@xadll
Copy link

xadll commented Jan 17, 2024

During today's testing, I tried switching mods a lot, skipping/restarting maps a lot, and removing various maps from the jukebox and map list.

Some errors popped up in the log, I probably didn't notice it in the game if something went wrong there.
I don't know the exact replication procedure yet.

Error: Cant find map with id znbgMZayw8uBByLWqc6kYsEfG6l in memory
    at Function.updateNextMap (file:///app/server/trakman/src/services/MapService.ts:380:36)
    at Function.update (file:///app/server/trakman/src/services/MapService.ts:356:16)
    at Object.callback (file:///app/server/trakman/src/Listeners.ts:214:11)
    

Could it be related to leaving the SCORE screen too quickly? (skip by BACKSPACE)
Or by manipulating the jukebox right before that?

TypeError: ranking is not iterable
    at Function.handleEndRound (file:///app/server/trakman/src/services/RoundsService.ts:233:23)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at processImmediate (node:internal/timers:449:9)
    at Object.callback (file:///app/server/trakman/src/Listeners.ts:199:9)

@xadll
Copy link

xadll commented Jan 17, 2024

The cup mod works fine for me so far.

@xadll
Copy link

xadll commented Jan 17, 2024

/xlist ?, /xlist _, /xlist -, /xlist !, /xlist ;, /xlist :, /xlist +, /xlist @, ... - this kind of xlist arguments will cause the controller to crash.

<INFO> [17 Jan 2024 14:56:22] (ChatService.ts:78) streda.veteran|XadL»»» (xadlik) used command /xlist with params ?
SyntaxError: Unexpected token '<', "
 <!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at Response.json (file:///app/server/trakman/node_modules/node-fetch/src/body.js:149:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Function.searchForMap (file:///app/server/trakman/src/TMXFetcher.ts:227:19)
    at Object.callback (file:///app/server/trakman/plugins/ui/dynamic_components/TMXSearchWindow.component.ts:57:18)
<FATAL> [17 Jan 2024 14:56:22] (Logger.ts:88) Unhandled rejection occured: 
	Unexpected token '<', "
 <!DOCTYPE "... is not valid JSON
 	SyntaxError: Unexpected token '<', "
 	<!DOCTYPE "... is not valid JSON
 	    at JSON.parse (<anonymous>)
	    at Response.json (file:///app/server/trakman/node_modules/node-fetch/src/body.js:149:15)
 	    at processTicksAndRejections (node:internal/process/task_queues:95:5)
 	    at Function.searchForMap (file:///app/server/trakman/src/TMXFetcher.ts:227:19)
 	    at Object.callback (file:///app/server/trakman/plugins/ui/dynamic_components/TMXSearchWindow.component.ts:57:18)
 App [Trakman:0] exited with code [1] via signal [SIGINT]
 App [Trakman:0] starting in -fork mode-
 App [Trakman:0] online

@wsrvn
Copy link
Collaborator Author

wsrvn commented Jan 17, 2024

ill look into the /xlist issue;

errors in your first comment seem to be coming from the mapservice issues i mentioned right above, which we'll probably work on soon-ish (this weekend? maybe).

@wsrvn wsrvn marked this pull request as draft January 17, 2024 21:28
@felacek
Copy link
Collaborator

felacek commented Jan 20, 2024

Regarding the map queue: removeFromJukebox which is called by remove does not remove unforced (aka not explicitly jukeboxed) maps from the queue, I'll rewrite it a bit.

@felacek
Copy link
Collaborator

felacek commented Jan 20, 2024

As for the 'ranking not iterable' bug, this is why it happens.
image

Caused by this in ClientSocket.ts
image

I think it would be good just to try calling GetCurrentRanking again because perhaps the server is in some transitional state between podium screen and the game and just doesn't answer in time?

@wsrvn wsrvn marked this pull request as ready for review January 20, 2024 21:26
Copy link
Collaborator

@felacek felacek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done :D

@wsrvn wsrvn merged commit f88c21f into main Jan 21, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment