Alright, I’m back. Disgruntled, but back. I briefly looked into the CurrentCulture issues and have not made any changes related to that. Unity, once again, has made a mess and I’m going to wait it out to see what happens. It might happen that the culture changes will be reverted and GDE will work as expected once again.
I’ve submitted an update that includes support for VideoClips, also bug fixes. You should be able to import into Unity 2018.3+ with no issues. There are still some deprecation warnings I will address, but those do not affect runtime code so its low priority.
GDE has been going for roughly 5 years. If you’d like to leave me a tip, for lack of a better word, I’d be forever grateful. You can do so here: Patreon
My players can manipulate the data freely, and I want them to be able to save different configurations.
Is it possible to make multiple different Save files during play mode?
If you mean playmode in the editor, this is what you do:
Yes, you should be able to. Essentially, you need to init with the data file you want to manipulate, then use SaveToDisk() when you want to save it to the physical file. Then load the other data file, manipulate, then call SaveToDisk(). Make sure to backup all your data before attempting in case there are bugs. It should work, but there might be some extra steps I’m forgetting. See Playmode Saving.
If you mean save to different sets during runtime (on a device), just init and save with the file you want to focus on, and when you want to switch, init with the other file and save as you need.
Also, there’s a hurricane that’s bearing down on us in the next few days so if I don’t answer for a while, I might have lost power and internet. See you on the other side!
Hello! Really enjoying using this asset. It does a big important job in my game just the way I was hoping it would be done.
That said I’m hitting a bit of a bug with using Texture2D fields in my items. Specifically, whenever I save and reload my data after populating some Texture2D fields, the data is lost. GIF showing what I mean:
The same behavior happens when I actually try to launch the game. The field returns null in my generated class instance.
Am I doing something wrong here? I saved the schema and rebuilt the generated scripts.
Thanks for your help and thanks for the great asset!
Is it possible to use array with excel spreadsheets?
If yes, what’s the format? I didn’t find much info about GDE and arrays but i have many playmaker actions about arrays and i don’t know how to use them…
I understand the “GDE Get All Item Keys” action gets all column A items and it saves them in a array
But i cant understand the get/set array actions
The get/set array actions allow you to load/set a GDE array to/from a Playmaker Array variable. Use get to load a GDE array into a Playmaker Array variable, then manipulate that array using all of Playmaker’s array actions. When you want to save that array back to your GDE data, you use GDE’s set array action.
How can i have a GDE array? In the schema editor i don’t see the array option.
Another question: In the action “GDE Get All Item Keys” if we have duplicate names the array doesn’t add them
For example if i have 5 names in column A, John, Peter, Celeste, Ana, Michael, the array will have 5 elements
If the names are John, John, John, Peter, Celeste, the array will only have 3 elements.
How can i solve this?
When creating a new field in a schema, once you select the type, there are checkboxes to the right “Is List” and “Is 2D List” check these to create an array (Is List) or two dimensional array (Is 2D List).
And Item Key refers to the ID of the item, not the data within the item itself. I think you are misunderstanding how the data is organized. Are you using a spreadsheet? If so, and you’d like to create a list, then all those names need to be in a single cell separated by a comma. The list format is:
Once I have imported one spreadsheet, I cannot import another. How do I get the Import box to come up again without hitting “Clear Import Export Settings”?
If you want to import a different spreadsheet, you need to clear the import/export settings. If you want to just clear your data (without changing the spreadsheet you are importing), you can delete your data file and then click load. It should clear everything and start fresh.
You mean you want “myBlah.yy” ? I’m not sure what you are trying to do but that is beyond the scope of GDE. The purpose is to get the value of xx, yy, zz.
The idea is if you have schema Parent, and another schema Child, you can have a field of type Child in the Parent schema. Say Parent has a Child field called oldest, and Child has a int field age. You can do something like:
I’m encountering a mental bug - on one user’s machine, vector2 data is being read as rounded-up ints, not floats. That is, a value of (0.35, 0.05) is being read as (35,5).
You can see it’s not a simple scaling x100 as the place-value shift is different depending on place values. I’ve tried to look through the GDE code to see where it’s reading and parsing the strings but it gets pretty deep and I’ve failed! The machine screwing up is Windows 10.
As an aside, you really need to update the store listing so GDE comes up under ‘database’ searches. There must be loads of people missing this and going with other solutions just because they don’t know about it.
Edit : It seems to be due to Localisation Culture. My user is Austrian and his decimal and place-value symbols are inverted to English. That would explain the number difference. The issue of localisation is described here.
I’ve just tried adding CultureInfo.InvariantCulture to GDE but that’s reportedly failed to fix the issue.
Edit 2 : I can confirm the problem is caused by localisation. Going into “Windows 10 Settings” and changing regional format to German (Austria) recreates the problem.
Can you try to replace those calls with parse instead? I’m sorry for just throwing this over the fence. Things are crazy here. If you can test that call and it works, you should do a search/replace for all Convert.ToSingle calls. There is probably a few that need updating.