-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Reworks asset data and improves role system #1268
Conversation
There was a problem hiding this 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)
16a411f
to
98058d8
Compare
98058d8
to
a07607a
Compare
There was a problem hiding this 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 ?
2e7761e
to
03188f5
Compare
Currently nothing, I plan to add cleanup when things are removed. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assets/Scripts/SS3D/CodeGeneration/Creators/DatabaseAssetCreator.cs
Outdated
Show resolved
Hide resolved
Assets/Scripts/SS3D/CodeGeneration/Creators/StaticClassCreator.cs
Outdated
Show resolved
Hide resolved
So does the system still works as expected if doing that ? |
It does. The only issue that can happen is unused code. |
2f61dce
to
f61f40d
Compare
78ad342
to
9548033
Compare
the crafting loading bar does not show up when crafting |
0d8f2d2
to
6d14663
Compare
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. |
6d14663
to
ab74127
Compare
some progress on the pointed issues ? |
@stilnat last I checked it was better, but I will still work a little bit to improve it. |
057fa1d
to
92b871f
Compare
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. |
There was a problem hiding this 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
Assets/Scripts/SS3D/CodeGeneration/Writers/StaticClassWriter.cs
Outdated
Show resolved
Hide resolved
7e44a8e
to
51c9d8a
Compare
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