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

Create a character in gdscript without requiring saving a local file #2491

Open
shazzner opened this issue Dec 1, 2024 · 2 comments
Open

Comments

@shazzner
Copy link
Contributor

shazzner commented Dec 1, 2024

Is your feature request related to a problem? Please describe.
In the game I'm developing, all data is created and stored in a sqlite database, including any scripts. This is due to the fact that the game is very data-heavy. Generally this works fine; although, there are a few quirks I have to work around. Unfortunately, I'm not able to create characters in the same manner as it requires creating a new Character in gdscript then saving it as a character resource locally. This causes issues as I have to ship individual dch files for updates and track them separately from my data.

Describe the solution you'd like
Should be able to declare a character, their portrait, and any additional properties in gdscript without needing to save the character resource locally. Then reference that character in any subsequent timelines.

Describe alternatives you've considered
As far as I know, there isn't a way to create a character without any disk writes. Instead of the data-driven approach I'd prefer, I have to create each character manually in the editor or via a long gdscript which requires a save to file locally. The other alternative is to use an entirely separate system for just the portraits and manually call show/hide functions in the timeline script.

Additional context
I understand this is an unusual case from the standard dialogic game; however, as more games get developed with Dialogic that an established architecture pattern, such as being data-driven, that this feature would see more use.

@Jowan-Spooner
Copy link
Member

Do I understand you'd always recreate these character resources from the database at game startup?
I have to test this stuff more but I agree that should be possible at some point.

@shazzner
Copy link
Contributor Author

shazzner commented Dec 1, 2024

Do I understand you'd always recreate these character resources from the database at game startup? I have to test this stuff more but I agree that should be possible at some point.

Yeah, that is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants