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

Client Resource Restart/Start/Download issue #2388

Open
1 task done
BluePeer opened this issue Dec 12, 2024 · 0 comments
Open
1 task done

Client Resource Restart/Start/Download issue #2388

BluePeer opened this issue Dec 12, 2024 · 0 comments
Labels
Class: bug Something isn't working

Comments

@BluePeer
Copy link

Description of the problem

if the client recieve multiple request of start/restart
a resource
the client does not queue them corretly
result is a not know state of half redownloaded/started resourced

tested this with assets/scripts resources

[13:19:19] Skipping integrity check for resource bluerpclient
[13:19:19] Downloaded and validated resource bluerpclient succesfully 
[13:19:19] Skipping integrity check for resource BlueRPLogin
[13:19:19] Downloaded and validated resource BlueRPLogin succesfully 
[13:19:19] Skipping integrity check for resource BlueRPHud
[13:19:19] Downloaded and validated resource BlueRPHud succesfully 
[13:19:19] Skipping integrity check for resource BlueRPNativeMenu
[13:19:19] Downloaded and validated resource BlueRPNativeMenu succesfully 
[13:19:19] Skipping integrity check for resource BlueRPScripts
[13:19:19] Downloaded and validated resource BlueRPScripts succesfully 
[13:19:19] Finished downloading all resources
[13:19:19] Stopping resource BlueRPScripts
[13:19:19] Stopped resource BlueRPScripts
[13:19:19] Loading resource BlueRPScripts
[13:19:19] Loaded resource BlueRPScripts
[13:19:19] Finished downloading all resources
[13:19:19] Stopping resource BlueRPScripts
[13:19:19] Stopped resource BlueRPScripts
[13:19:19] Loading resource BlueRPScripts
[13:19:19] Loaded resource BlueRPScripts

Reproduction steps

use script to start/restart multiple resourcen at once or within clientside download process

async function test() {
alt.stopResource("assets/BlueRPLogin");
alt.stopResource("assets/BlueRPHud");
alt.stopResource("assets/BlueRPNativeMenu");
alt.stopResource("assets/BlueRPScripts");
await alt.Utils.wait(5000);
alt.startResource("assets/BlueRPLogin");
alt.startResource("assets/BlueRPHud");
alt.startResource("assets/BlueRPNativeMenu");
alt.startResource("assets/BlueRPScripts");
}
test();
alt.restartResource("assets/BlueRPLogin");
alt.restartResource("assets/BlueRPHud");
alt.restartResource("assets/BlueRPNativeMenu");
alt.restartResource("assets/BlueRPScripts");

Expected behaviour

one after one redownload and start/restart

[13:18:49] Skipping integrity check for resource BlueRPLogin
[13:18:49] Downloaded and validated resource BlueRPLogin succesfully 
[13:18:49] Finished downloading all resources
[13:18:49] Stopping resource BlueRPLogin
[13:18:49] Stopped resource BlueRPLogin
[13:18:49] Loading resource BlueRPLogin
[13:18:49] Loaded resource BlueRPLogin
[13:18:54] Skipping integrity check for resource BlueRPHud
[13:18:54] Downloaded and validated resource BlueRPHud succesfully 
[13:18:54] Finished downloading all resources
[13:18:54] Stopping resource BlueRPHud
[13:18:54] Stopped resource BlueRPHud
[13:18:54] Loading resource BlueRPHud
[13:18:54] Loaded resource BlueRPHud
[13:18:59] Skipping integrity check for resource BlueRPNativeMenu
[13:18:59] Downloaded and validated resource BlueRPNativeMenu succesfully 
[13:18:59] Finished downloading all resources
[13:18:59] Stopping resource BlueRPNativeMenu
[13:18:59] Stopped resource BlueRPNativeMenu
[13:18:59] Loading resource BlueRPNativeMenu
[13:18:59] Loaded resource BlueRPNativeMenu
[13:19:05] Skipping integrity check for resource BlueRPScripts
[13:19:05] Downloaded and validated resource BlueRPScripts succesfully 
[13:19:05] Finished downloading all resources
[13:19:05] Stopping resource BlueRPScripts
[13:19:05] Stopped resource BlueRPScripts
[13:19:05] Loading resource BlueRPScripts
[13:19:05] Loaded resource BlueRPScripts

Additional context

No response

Operating system

Windows/Linux

Version

release+rc

Crashdump ID

No response

Confirmation of issue's presence

  • By submitting this ticket, I affirm that I have verified the presence of this issue on the latest RC (Release Candidate) version available at the time of writing this ticket.
@BluePeer BluePeer added the Class: bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant