Search Unity

Unity Seriliazier problem - Picture included !

Discussion in 'Scripting' started by Mirace, Jul 21, 2014.

  1. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    Hello, im adding seriliazition to my project but so far im only getting errors, save&loading is working but i want to know why im getting these errors and what i can do for them ? :
    edit. These errors appears right after loading save game.
    Untitled.png

    Please help me !
     
  2. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
    Can you define a bit more what is your serialization?
     
  3. numberkruncher

    numberkruncher

    Joined:
    Feb 18, 2012
    Posts:
    953
    Like LightStriker says, we need more information to be able to help.

    But... I have a question for you. How have you managed to add that magenta text onto all of those editor windows?
     
  4. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    Hi, i tought you could see what i have seriliazed on the picture :) I basicly just selected "PlayerManager" object and pushed "Store information + all children". That magenta stuff is Riva tuner statics , check google


    Edit.

    That method works with all other objects, like my night table has scripts and stuff. No errors. Only errors fires up when i assign my player object to be stored..
     
  5. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    I dont know what i did but somehow now i only get 1 error:
    Code (JavaScript):
    1. Serialization error: Serialization.UnitySerializer+MissingConstructorException: Could not construct an object of type 'System.IO.StreamWriter', it must be creatable in this scope and have a default parameterless constructor or you should handle the CreateType event on UnitySerializer to construct the object
    2.   at Serialization.UnitySerializer.CreateInstance (System.Type itemType) [0x0009a] in D:\Pilvi\Copy\Kissakalat\Project Amber\Assets\Plugins\whydoidoit.com\Serialization\UnitySerializer.cs:1764
    3.  
    Any ideas which causes IO error ? Should i ignore it ?

    and, i have exactly this same problem.. Does anyone know what causes this ?
    http://whydoidoit.com/forums/topic/unity-serializer-with-hingejoint-for-doors/
     
    Last edited: Jul 21, 2014
  6. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    Anyone ?
     
  7. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    Okey guys, i have fixed all errors. But im facing new problem ! Why Unity Serializer screws one of my doors Y rotation ? when im saving rotation gets 5-10 more or less from real value.
     
  8. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    Okey i still got same problem with doors. They got wrong rotation everytime i save my game and now there is new problem.. Somehow serializer is removing one of my scripts from player object without giving any error log..
     
  9. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
  10. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
    And I still have no idea what you're doing, and you still haven't post any snippet of code.
     
  11. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    What code you want to see ?? You can get unity serializer from http://whydoidoit.com/unityserializer/ , there is also all the code what im using. Its not really CODE related issue. I want to know why and what causes :

    1. Door rotation to get messed up ( door has hingejoint ) when save happens
    2. Removing one of my scripts from player object without any error log
     
  12. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
    I guess you should take it with the author of Unity Serializer then.
     
    numberkruncher and Mirace like this.
  13. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    So far no answer from author, if anyone has same problems and you have sorted it, please tell me how. :)
     
  14. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    No answer from author. I need help with this !
     
  15. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    Still looking for help these problems:
    1. Door rotation to get messed up ( door has hingejoint ) when save happens
    2. Removing one of my scripts from player object without any error log
    Im happy to provide more info if needed. Author is disappeared and not answering to mails.
     
  16. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
  17. Mirace

    Mirace

    Joined:
    Nov 29, 2010
    Posts:
    481
    Havent, will try.