tModLoader / tModLoader

A mod to make and play Terraria mods. Supports Terraria 1.4 (and earlier) installations
https://www.tmodloader.net/
MIT License
4.2k stars 1.88k forks source link

Crashes on launch when trying to use texture pack on OSX/Linux #213

Closed gamrguy closed 5 years ago

gamrguy commented 7 years ago

Description

When attempting to run Terraria with a texture pack (Texture Pack.zip in the TexturePacks folder) the game will immediately crash on launch. This only occurs on OSX/Linux - users on Windows appear to be fine.

Steps to Reproduce

  1. Have Experimental Features enabled (to allow loading texture packs)
  2. Place a Texture Pack.zip in the ModLoader/TexturePacks folder.
  3. Attempt to run Terraria.
  4. See that the game crashes.

Expected behavior

...that the game wouldn't crash and would load the texture pack as normal. Or perhaps multiple texture packs, as there is a "TexturePacks" folder for a reason, eh? Is multiple texture packs a feature?

Actual behavior

As stated: the game crashes.

Reproduction frequency

100%

Versions

I once tested this a while back (might've been a 0.8 version, not sure) but was tested for tModLoader v0.10.0.2.

Mods

The crash occurs before the game starts loading properly. No mods are involved.

Additional Information

The crash occurs without the game window ever opening; on OSX, the app icon briefly appears on the dock and quickly closes. Running the game via Terminal reveals no crashlog.

Jofairden commented 7 years ago

Can you check ModLoader/Logs ? Anything specific in there?

gamrguy commented 7 years ago

I checked the logs. None were updated upon attempting to launch the game.

TheOnlyMrCat commented 5 years ago

Other people with this issue have reported a log looking like this in the client's crash log:

System.TypeInitializationException: The type initializer for 'Ionic.Zip.ZipFile' threw an exception. ---> System.NotSupportedException: Encoding 437 data could not be found. Make sure you have correct international codeset assembly installed and enabled.

at System.Text.Encoding.GetEncoding (System.Int32 codepage) [0x0025f] in <1170fb08300b4d0db71c1d1db8555768>:0

at System.Text.Encoding.GetEncoding (System.String name) [0x00015] in <1170fb08300b4d0db71c1d1db8555768>:0

at Ionic.Zip.ZipFile..cctor () [0x00000] in <3d63c7f29fa146c29caee29323a47c7a>:0 --- End of inner exception stack trace ---

at Terraria.TexturePackSupport.FindTexturePack () [0x00029] in <37fa5c86f4774cd0993f32839325bdc4>:0

at Terraria.Main.LoadContent () [0x00099] in <37fa5c86f4774cd0993f32839325bdc4>:0

at Microsoft.Xna.Framework.Game.Initialize () [0x00053] in <bc6b38abaaf04135afbd0534ec7f6b92>:0

at Terraria.Main.ClientInitialize () [0x00082] in <37fa5c86f4774cd0993f32839325bdc4>:0

at Terraria.Main.Initialize () [0x0640a] in <37fa5c86f4774cd0993f32839325bdc4>:0

at Microsoft.Xna.Framework.Game.DoInitialize () [0x0000d] in <bc6b38abaaf04135afbd0534ec7f6b92>:0

at Microsoft.Xna.Framework.Game.Run () [0x0000e] in <bc6b38abaaf04135afbd0534ec7f6b92>:0

at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x00092] in <37fa5c86f4774cd0993f32839325bdc4>:0
ghost commented 5 years ago

I have the same problem even with normal Terraria on Linux it just does not open with texture packs

Chicken-Bones commented 5 years ago

Fixed! Try it out in 0.11 (soon to be released)