Search found 8 matches
- Fri Jul 28, 2023 4:31 am
- Forum: General Discussion
- Topic: GetFiles() problem after update
- Replies: 3
- Views: 497
Re: GetFiles() problem after update
Hi Joel thanks for the update but it didn't resolve our issue. After updating easysave, it appears that virtually all of our save/load tests hard crash Unity even with es 3.5.6. A test that doesn't crash but simply fails now (whereas it passes with the pre-update version of es) returns this error: S...
- Fri Jun 16, 2023 11:27 pm
- Forum: General Discussion
- Topic: GetFiles() problem after update
- Replies: 3
- Views: 497
GetFiles() problem after update
Hi, just updated Easysave to 3.5.4 (from 3.4.2) and am having the exact issue detailed here: https://moodkie.com/forum/viewtopic.php?f=13&t=2074&p=7680&hilit=Could+not+find+a+part+of+the+path#p7680 In 3.5.4 it looks like the 'path' variable includes the filename, causing GetFiles to fail...
- Fri Aug 05, 2022 6:39 pm
- Forum: General Discussion
- Topic: Way to preserve non-Unity.Object references?
- Replies: 1
- Views: 645
Way to preserve non-Unity.Object references?
Hi, so Class A holds a reference to an instance of Class B. We have multiple instances of Class A that all reference the same instance of Class B. However, when we save and load, each instance of Class A now references a unique instance of Class B (loading seems to create a new instance of Class B f...
- Thu Jul 07, 2022 7:52 pm
- Forum: General Discussion
- Topic: Constructor code ignored?
- Replies: 8
- Views: 1211
Re: Constructor code ignored?
Ok, but in this case I'm not doing a separate Load("Grid") call or anything, the grid is just being loaded via Load("city"), since the City has a member Grid. I was setting some of that Grid's values in the City's constructor, but after the City was loaded those values reverted t...
- Wed Jul 06, 2022 10:13 pm
- Forum: General Discussion
- Topic: Constructor code ignored?
- Replies: 8
- Views: 1211
Re: Constructor code ignored?
I've noticed that the general pattern of subscribing to actions in a loaded class's constructor actually seems to work elsewhere in our code. The difference seems to be that the City class is trying to subscribe to an action owned by its own member instance of the Grid class (vs subscribing to an ac...
- Wed Jul 06, 2022 5:55 pm
- Forum: General Discussion
- Topic: Constructor code ignored?
- Replies: 8
- Views: 1211
Re: Constructor code ignored?
Ah ok, thank you for clarifying. As a follow-up question, it appears that even values I don't save are 'reset' or lost after being loaded. Example: In my game I have a City class that holds an instance of a Grid class. The Grid class has a System.Action that the City class subscribes to via a call i...
- Wed Jul 06, 2022 3:34 pm
- Forum: General Discussion
- Topic: Constructor code ignored?
- Replies: 8
- Views: 1211
Re: Constructor code ignored?
Sorry, yes I can get a project together but I realize my last explanation was jumbled so let me try explaining it a different way. I have saved a non-object class, MyClass, that includes a variable MyVar. In the save file, MyVar is set to 100. In MyClass’s parameterless constructor, I set MyVar to 5...
- Wed Jul 06, 2022 5:57 am
- Forum: General Discussion
- Topic: Constructor code ignored?
- Replies: 8
- Views: 1211
Constructor code ignored?
Hi, I've mostly got saving and loading working in my game, but it seems like when I load a non-unity object class, any changes made by code that executes in its parameterless constructor are subsequently ignored? Is this by design or am I making a mistake somewhere? Example: Class A holds an array o...