-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
Problem Deserializing a list of player #875
Comments
Can you your entire player class? There should also be more details on that exception as well. |
You need a parameterless constructor on your player class. Add that in there and it should work. |
Did that resolve the problem? |
Yes this solves the problem at perfection. Thanks you a lot :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I have a problem.
I have a code that can write this kind of YAML file :
timer: 60
score: 1
timer: 60
score: 1
Where one (name,timer,score) is for 1 player which is a class in my code.
I use the serializer to write the YAML file and it works pretty well. But when I need to read it with the deserializer and put it in a list of players it doesn't work and I have the error message following :
Unhandled exception. (Line: 1, Col: 3, Idx: 2) - (Line: 1, Col: 3, Idx: 2): Exception during deserialization.
I put the 2 function below, if someone have the solution it will really help me out.
The text was updated successfully, but these errors were encountered: