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

Reworks asset data and improves role system #1268

Merged

Conversation

joaoburatto
Copy link
Contributor

@joaoburatto joaoburatto commented Sep 27, 2023

Summary

This PR reworks the asset data system to not rely on Enums anymore, we now use a DatabaseAsset to recognize each asset and know what to grab. Also has some handy methods to access it easily.

Also improves the role system to ease out the loadout setup process.

Changes to Files

The asset data system has been modified a lot.

Known issues

Something might be broken. I haven't tested every scenario

Copy link
Contributor

@stilnat stilnat left a comment

Choose a reason for hiding this comment

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

did not review the code yet, in the meantime, needs :

  • documentation on how to use it (in code and how to create new database and whatever is needed to use it).
  • To wait for older PRs using the old asset managment system to be properly reviewed (whether rejected or accepted)
  • Should make sure it doesn't have the issue of Spawning ID card and PDA is easily breakable and kicks client when it happens #1136 and therefore closing it.
  • Pass the tests (or modify them if necessary)

@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch from 16a411f to 98058d8 Compare October 1, 2023 04:38
@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch from 98058d8 to a07607a Compare October 10, 2023 15:47
Copy link
Contributor

@stilnat stilnat left a comment

Choose a reason for hiding this comment

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

Partial review, just one question for now :

What happen if I change the name of an asset and regenerate the database ?

@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch from 2e7761e to 03188f5 Compare October 17, 2023 02:48
@joaoburatto
Copy link
Contributor Author

Partial review, just one question for now :

What happen if I change the name of an asset and regenerate the database ?

Currently nothing, I plan to add cleanup when things are removed.

@cosmiccoincidence

This comment was marked as off-topic.

@joaoburatto

This comment was marked as off-topic.

Copy link
Contributor

@stilnat stilnat left a comment

Choose a reason for hiding this comment

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

Partial review : seems like the crafting system is broken. I should see a slice interaction there.
image

check the "weird complex recipe" and try to reproduce.

@stilnat
Copy link
Contributor

stilnat commented Oct 18, 2023

Partial review, just one question for now :
What happen if I change the name of an asset and regenerate the database ?

Currently nothing, I plan to add cleanup when things are removed.

So does the system still works as expected if doing that ?

@joaoburatto
Copy link
Contributor Author

Partial review, just one question for now :
What happen if I change the name of an asset and regenerate the database ?

Currently nothing, I plan to add cleanup when things are removed.

So does the system still works as expected if doing that ?

It does. The only issue that can happen is unused code.

@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch from 2f61dce to f61f40d Compare October 30, 2023 21:58
@stilnat stilnat changed the title Reworks asset data and improves role system [WIP] Reworks asset data and improves role system Nov 1, 2023
@cosmiccoincidence cosmiccoincidence added the Role everything related to roles label Nov 5, 2023
@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch 2 times, most recently from 78ad342 to 9548033 Compare November 6, 2023 19:42
@joaoburatto joaoburatto changed the title [WIP] Reworks asset data and improves role system Reworks asset data and improves role system Nov 6, 2023
@stilnat
Copy link
Contributor

stilnat commented Nov 6, 2023

the crafting loading bar does not show up when crafting

@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch 2 times, most recently from 0d8f2d2 to 6d14663 Compare November 7, 2023 19:25
@stilnat
Copy link
Contributor

stilnat commented Nov 10, 2023

Loading asset databases sometimes get stuck and the only way to stop it is to close Unity. need to be fixed. Also it needs to be faster, not instant, but 90 seconds of loading is too long, compared to the current almost instant loading using enums.

@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch from 6d14663 to ab74127 Compare November 10, 2023 19:17
@stilnat
Copy link
Contributor

stilnat commented Nov 18, 2023

some progress on the pointed issues ?

@joaoburatto
Copy link
Contributor Author

@stilnat last I checked it was better, but I will still work a little bit to improve it.

@cosmiccoincidence cosmiccoincidence changed the title Reworks asset data and improves role system [WIP] Reworks asset data and improves role system Nov 23, 2023
@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch 2 times, most recently from 057fa1d to 92b871f Compare December 11, 2023 00:34
@stilnat
Copy link
Contributor

stilnat commented Dec 12, 2023

Tried renaming assets, removing them and readding them from database, it seems to work well, crafting, role loadout works well. spawning items too. need to test client.

Copy link
Contributor

@stilnat stilnat left a comment

Choose a reason for hiding this comment

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

Partial review, mostly doc for now to add in a few classes

@joaoburatto joaoburatto force-pushed the feature/improve-asset-data-and-role-system branch from 7e44a8e to 51c9d8a Compare December 12, 2023 18:57
@stilnat stilnat changed the title [WIP] Reworks asset data and improves role system Reworks asset data and improves role system Dec 14, 2023
@stilnat stilnat merged commit 7c23959 into RE-SS3D:develop Dec 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Role everything related to roles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants