Also sometimes when writing i get this:
https://i.imgur.com/8o2qf91.png
Error happens on line 137:
https://i.imgur.com/BQvETS8.png
Search found 10 matches
- Sat Jan 25, 2020 6:40 am
- Forum: General Discussion
- Topic: Now getting type mismatch...
- Replies: 2
- Views: 1370
- Sat Jan 25, 2020 6:37 am
- Forum: General Discussion
- Topic: Now getting type mismatch...
- Replies: 2
- Views: 1370
Now getting type mismatch...
Hi, i followed your advice in my last thread. I have created a Easy save 3 manager with only the references to all my prefabs, attacks and weapons and added that to both my saving and loading scenes. Now when i load my attack, not only does it lose the reference but it overwrites the references on m...
- Tue Jan 21, 2020 8:15 am
- Forum: General Discussion
- Topic: Not saving ScriptableObjects correctly, losing prefab ref
- Replies: 18
- Views: 9000
Re: Not saving ScriptableObjects correctly, losing prefab re
Hi there, Just to check, is there a reference to your prefab in the scene prior to runtime? If not, make sure a script references it in your scene, and then press the Refresh References button on the ES3ReferenceMgr. You might want to try pressing this anyway just to check everything has been added...
- Tue Jan 21, 2020 12:57 am
- Forum: General Discussion
- Topic: Not saving ScriptableObjects correctly, losing prefab ref
- Replies: 18
- Views: 9000
Re: Not saving ScriptableObjects correctly, losing prefab re
Hi there, This is likely because a reference to these objects do not exist in the reference manager of the scene that you are loading from. Please could you try going to the scene in which you're intending to load and drag the prefab into the References array of the ES3ReferenceMgr Component of the...
- Mon Jan 20, 2020 6:21 am
- Forum: General Discussion
- Topic: Not saving ScriptableObjects correctly, losing prefab ref
- Replies: 18
- Views: 9000
Not saving ScriptableObjects correctly, losing prefab ref
Hi. When i save my ScriptableObject of type 'Weapon' i lose two reference. The first i lose is the icon and i also lose references in my 'Attack' (so my weapon can't even fire). To be clear, the ScriptableObject of type 'Weapon' holds another ScriptableObject of type 'Attack'. When saving the weapon...
- Fri Nov 22, 2019 6:06 am
- Forum: General Discussion
- Topic: Saving a map state
- Replies: 9
- Views: 16647
Re: Saving a map state
Hi Joel, im a little confused. When im creating a new node with new<Node> its creating an instance of a class, not a component, no?Since Node is a class in the cs file MapNode.cs If i cant do this, how else would i save the nodes for later reconstruction? Im also not getting any of the warnings you ...
- Thu Nov 21, 2019 9:37 am
- Forum: General Discussion
- Topic: Saving a map state
- Replies: 9
- Views: 16647
Re: Saving a map state
Sent you a PM, thanks.Joel wrote:Hi there,
Would you be able to show me the error your are getting with stack trace, and also show me what your Node class looks like? And please could you PM me a very basic project which replicates it, along with instructions?
All the best,
Joel
- Thu Nov 21, 2019 1:41 am
- Forum: General Discussion
- Topic: Saving a map state
- Replies: 9
- Views: 16647
Re: Saving a map state
Hi there, Just to check, have you followed the instructions in the Saving and Loading GameObjects and Prefabs guide ? Particularly the Saving and loading prefab instances section . With regards to the example I sent, this is only intended as an example. I recommend reading the comments in the code ...
- Wed Nov 20, 2019 3:27 am
- Forum: General Discussion
- Topic: Saving a map state
- Replies: 9
- Views: 16647
Re: Saving a map state
How can i save the references? The prefabs are instantiated at runtime? I have managed to save and load most things. However the following still isn't working: 1. The nodes i save and then load up are correct, however they are completely missing their script component altogether? i save the nodes li...
- Tue Nov 19, 2019 8:44 am
- Forum: General Discussion
- Topic: Saving a map state
- Replies: 9
- Views: 16647
Saving a map state
I have a scene and a gameobject called 'Map', which contains all the gameobjects that generate my games map. This map is similar to the one in slay the spire. The map: https://i.imgur.com/VOQKry5.jpg The map is generated and players can move up the map by clicking on various nodes, where they are th...