Skip to content
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

ReadInt64 missing #1

Open
EnemyArea opened this issue Sep 4, 2019 · 0 comments
Open

ReadInt64 missing #1

EnemyArea opened this issue Sep 4, 2019 · 0 comments

Comments

@EnemyArea
Copy link

Hello, nice job :D But you need a parser for the int64 nodes too.

namespace SheepReaper.GameSaves.Klei.TypeParsers
{
public class Integer64Parser : IParser
{
public long Parse(IDataReader reader, TypeInfo info, List templates) => reader.ReadInt64();

    object IParser.Parse(IDataReader reader, TypeInfo info, List<Template> templates) => Parse(reader, info, templates);
}

}

In public class DataReader : BufferBinaryReader, IDataReader
....
[SerializationTypeCode.Int64] = new Integer64Parser(),

Some maps have a 64bit value in it. These maps can't be loaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant