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

Vehicle asset ID assigning #137

Open
Ridderrasmus opened this issue Feb 21, 2022 · 2 comments
Open

Vehicle asset ID assigning #137

Ridderrasmus opened this issue Feb 21, 2022 · 2 comments
Labels
confirmed Bug or feature has been accepted enhancement New feature or request

Comments

@Ridderrasmus
Copy link

Ridderrasmus commented Feb 21, 2022

Is your feature request related to a problem? Please describe.
When assigning IDs the only check the function makes is whether the ID is in use and if it is, completely exits the function. So if I were to try to preemptively assign specific IDs to vehicles they are just overwritten and if I later want to assign an ID to a vehicle and it happens to be the same as an earlier one nothing happens.

Describe the solution you'd like
It would make it easier if it would also check whether the vehicle being assigned an ID already has one and also rather than exiting when it sees the ID already being used instead tries to assign a higher number ID.

Describe alternatives you've considered
The script I'm writing technically works without it but it would work best if I could simply just in the editor run the assign ID command on each vehicle in the init so that the IDs are gonna for certain stay the same every game. This would allow me to only need to use the ID to save and load rather than a full search for every vehicle.

Additional context
The main reason I would like this done is because I'm currently making a script on top of Mike Force that saves as much about the vehicles assigned IDs in the vehicle asset system as possible and to be able to load it when starting Mike Force back up again later.

@Ridderrasmus Ridderrasmus added the enhancement New feature or request label Feb 21, 2022
@Alablm Alablm added the confirmed Bug or feature has been accepted label Jul 21, 2022
@Alablm
Copy link
Contributor

Alablm commented Jul 21, 2022

Hey @Ridderrasmus sorry I've taken so long to get to this. Going to look into this within the next week or so hopefully. Would you be interested in submitting your save script to the project?

@Ridderrasmus
Copy link
Author

Gladly! I'll get to work on it when you've got something on this. I might also write you on discord when I start, to check what is gonna be the best way to go about certain things, if that's okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed Bug or feature has been accepted enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants