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

The GUI size is wrong and cannot be resized #146

Open
krisavi opened this issue Mar 10, 2018 · 5 comments
Open

The GUI size is wrong and cannot be resized #146

krisavi opened this issue Mar 10, 2018 · 5 comments

Comments

@krisavi
Copy link

krisavi commented Mar 10, 2018

I tried even deleting configuration, still not able to access buttons

in GUI it looks like that and not able to press any buttons
image

In log file there were few errors with encodings

[Exception 13:12:18.3005890]: Encoding name 'windows-1257' not supported
Parameter name: name
[]:   at System.Text.Encoding.GetEncoding (System.String name) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0 
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0 
  at KerbalEngineer.Settings.SettingHandler.Deserialise (System.String fileName, System.Type[] extraTypes) [0x00000] in <filename unknown>:0 
  at KerbalEngineer.Settings.SettingHandler.Load (System.String fileName, System.Type[] extraTypes) [0x00000] in <filename unknown>:0 
  at KerbalEngineer.Editor.BuildOverlay.Load () [0x00000] in <filename unknown>:0 
  at KerbalEngineer.Editor.BuildOverlay.Awake () [0x00000] in <filename unknown>:0 

[Exception 13:12:20.4426933]: GuiDisplaySize->GuiDisplaySize // Encoding name 'windows-1257' not supported
Parameter name: name
[]:   at System.Text.Encoding.GetEncoding (System.String name) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000] in <filename unknown>:0 
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream stream) [0x00000] in <filename unknown>:0 
  at KerbalEngineer.Settings.SettingHandler.Deserialise (System.String fileName, System.Type[] extraTypes) [0x00000] in <filename unknown>:0 
  at KerbalEngineer.Settings.SettingHandler.Load (System.String fileName, System.Type[] extraTypes) [0x00000] in <filename unknown>:0 
  at KerbalEngineer.GuiDisplaySize..cctor () [0x00000] in <filename unknown>:0 
@Y0ssarian
Copy link

Fix procedure:
Go to KER directory (KSP\GameData\KerbalEngineer)
Open each xml file (most will be in settings folder) and change in first line file encoding from whatever you have (windows-1257 or other) to utf-8.
Save all xm files, run KSP and enjoy fixed KER gui.

@calanchue
Copy link

Fixing xml file with hands doesn't solve problem. After launching ksp once, it will overwrite xml file. After that, you will face same problem again.

@krisavi
Copy link
Author

krisavi commented Apr 8, 2018

@calanchue is right, fixing it manually doesn't solve it.
Why would the file even change the encoding by itself. On one launch it is ok and then it messes up. Had to close the game, remove all the config files and restart game to get it kinda working again.

For some reason I have to remove files every time, to launch the game correctly, because as soon as the game closes next startup it will be broken again...

Seems like mod or game itself messed up encoding and then it wasn't able to read it.

Shouldn't the mod be able to fix that error programmatically?

@Y0ssarian
Copy link

Well, It did not overwrite for me. I changed it once and everything is ok since then.

@calanchue
Copy link

calanchue commented Apr 9, 2018

Sorry, That was my own fault. your uploaded version is totally fine!
Cause was my own mods which intend to fix the problem from outside of KER.

Thank you for your help. maybe you saved a lot out people out there.

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

3 participants