hollowstrawberry / polyconverter Goto Github PK
View Code? Open in Web Editor NEWConverts Poly Bridge 2 Sandbox .layout files into .json and back, for easy editing
License: The Unlicense
Converts Poly Bridge 2 Sandbox .layout files into .json and back, for easy editing
License: The Unlicense
Hi there! I was trying to convert the auto save file (.slot) I got from the game, using the self contained executable (v1.4) and I've been getting this error:
[Fatal Error] Couldn't convert "Lowest Budget (No Breaks).slot":
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidOperationException: Invalid binary data stream: could not parse peeked BinaryEntryType byte '0' into a known entry type.
at Sirenix.Serialization.BinaryDataReader.PeekEntry(String& name)
at Sirenix.Serialization.BinaryDataReader.ExitNode()
at Sirenix.Serialization.ComplexTypeSerializer`1.ReadValue(IDataReader reader)
at Sirenix.Serialization.SerializationUtility.DeserializeValue[T](IDataReader reader)
at Sirenix.Serialization.SerializationUtility.DeserializeValue[T](Stream stream, DataFormat format, DeserializationContext context)
at Sirenix.Serialization.SerializationUtility.DeserializeValue[T](Byte[] bytes, DataFormat format, DeserializationContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at PolyConverter.PolyConverter.InnerSlotToJson(String slotPath, String jsonPath)
at PolyConverter.PolyConverter.SlotToJson(Strin
[ErrorPolyCOnventer_SelfContained.txt](https://github.com/orchidalloy/PolyConverter/files/10117530/ErrorPolyCOnventer_SelfContained.txt)
g slotPath, String jsonPath)///
[>] Done.
I don't really know c#, so I'm really out of my depth - do you have any ideas or pointers on how could I try to fix it?
Thanks!!
when using manual game path, the gamepath variable is set this way
// Program.cs line 25
gamePath = $"{File.ReadAllText(ManualGamePath).Trim()}\\Poly Bridge 2_Data\\Managed";
addind the path to the Managed folder to it, but when loading the games libraries this path is added again
// Program.cs line 72
PolyBridge2Assembly = Assembly.LoadFrom($"{gamePath}\\Poly Bridge 2_Data\\Managed\\Assembly-CSharp.dll");
causing an error because it ends up searching for the libraries in "${gamepath}\Poly Bridge 2_Data\Managed\Poly Bridge 2_Data\Managed\library.dll"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.