accweb icon indicating copy to clipboard operation
accweb copied to clipboard

Driver swap crashes using accweb

Open stonith opened this issue 2 years ago • 1 comments

I've confirmed that accweb has a bug that causes driver swaps to crash the game client, when I create a server using another tool it doesn't crash. I haven't had time to to test whether it's just the entrylist itself since it requires two people to test. However, I've attached the entrylist file(entrylist.json) created by accweb and another tool that works(entrylist.txt).

entrylist.zip

stonith avatar Oct 13 '22 07:10 stonith

I tried copying the entrylist.txt file into the server instance directory (deleted entrylist.json) and manually ran accserver.exe myself, however the driver swap still crashes the game. It seems that the problem isn't the entrylist itself but somewhere else.

stonith avatar Oct 15 '22 16:10 stonith

@stonith i'm having the same problem, have you ever found a solution?

StingerTopGun avatar Mar 23 '23 08:03 StingerTopGun

Very odd - we've had 2 x 48 car x (3/4 drivers) x >10hr races in the last month and we've had no issues at all

mrpbdy avatar Mar 23 '23 23:03 mrpbdy

@StingerTopGun no, I never got around to isolating the issue

@mrpbdy windows or Linux?

stonith avatar Mar 28 '23 15:03 stonith

@stonith Windows.

mrpbdy avatar Mar 28 '23 18:03 mrpbdy

@stonith I know this is an old thread, but I had this same issue with driver swap, and through some testing I found that ACCweb sets a default value of tyreSetCount to 0 in eventRules.json which crashes it. The ACC server wiki shows that it should be a value from 1 to 50. I changed mine to 50 and no more crashing on driver swap.

https://www.acc-wiki.info/wiki/Server_Configuration#eventRules.json

alotufo avatar Dec 12 '23 07:12 alotufo

I believe the line to be changed to default to 50 is:

https://github.com/assetto-corsa-web/accweb/blob/fd887405dfb9e6509d059fdfa07066b02bb452f8/public/src/components/server_config/eventrules.vue#L40

alotufo avatar Dec 12 '23 17:12 alotufo

Nice catch!

stonith avatar Dec 12 '23 18:12 stonith

@StingerTopGun in case you were still looking for a fix I'll mention you too

alotufo avatar Dec 12 '23 18:12 alotufo

merged!

pedrofaria avatar Jan 20 '24 03:01 pedrofaria