Themes from "Downloadable Content" not working

7 replies [Last post]
Cyberman
Cyberman's picture
User offline. Last seen 10 years 7 weeks ago. Offline
Joined: 2012-08-10
Posts: 4

Hello! I have a problem with themes from "Downloadable Content" section. They don't work on my PCs with Windows 7 and 8.1. When I wanna play on this themes it says: "Bad data or cannot access file /Themes/Planet_v1 (or smth like this)/theme.cfg". What can I do for fix it?
Here's a screenshots:
Windows 7:

Windows 8.1:

Star and Moon
Star and Moon's picture
User offline. Last seen 6 days 4 hours ago. Offline
Joined: 2010-04-03
Posts: 720

It looks like there's no problem with the map itself, but the theme it's linked to is broken. Try changing the theme. (button below the preview)

Cyberman
Cyberman's picture
User offline. Last seen 10 years 7 weeks ago. Offline
Joined: 2012-08-10
Posts: 4

Oh, sorry for mistake. I meant themes (22 themes by Luelle and Military theme), not maps. First post fixed.

sheepluva
sheepluva's picture
User offline. Last seen 22 weeks 12 hours ago. Offline
Joined: 2009-07-18
Posts: 563

Hm. That's weird.

Do ANY DLC themes or maps work on those systems?

What does the PhysFS lines in the game0.log say? Did mounting the needed Folders succeed or fail?
(Maybe pastebin full game0.log - check it's contents and remove any references to e.g. your Windows username or language first, if you don't want them to be visible)

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

Cyberman
Cyberman's picture
User offline. Last seen 10 years 7 weeks ago. Offline
Joined: 2012-08-10
Posts: 4

Thanks for help! I checked a log and saw that problem was caused by the non-latin name of my PCs. Does the game support only latin symbols? Have to create new profile for HW.

sheepluva
sheepluva's picture
User offline. Last seen 22 weeks 12 hours ago. Offline
Joined: 2009-07-18
Posts: 563

Cyberman allegedly wrote:

Thanks for help! I checked a log and saw that problem was caused by the non-latin name of my PCs. Does the game support only latin symbols? Have to create new profile for HW.

Hm, it should support non-latin names, but it might got broken in the recent releases that use PhysFS.
(Due to the way the game passes file paths to PhysFS - or it might even be a limitation of PhysFS)

Either way we'll have to look into this.
Thank you for reporting the issue and even finding+telling what caused it!

My apologies for the inconvenience - I'm glad you could also find a solution/workaround for you though!

Happy gaming!

... Oh I almost forgot!
You don't need to create a new Windows profile to workaround this.
Hedgewars can be started with a custom userfiles/profile location:
hedgewars.exe --config-dir="C:\myhwfolder"

So just copy your hedgewars profile folder to a path that does not contain any non-latin letters (and a location where you have read/write permissions) and supply its path in the link of hedgewars using --config-dir=, similar to what is shown above.

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

nemo
nemo's picture
User offline. Last seen 19 weeks 5 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Can you by any chance test with UTF-8?

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Cyberman
Cyberman's picture
User offline. Last seen 10 years 7 weeks ago. Offline
Joined: 2012-08-10
Posts: 4

sheepluva allegedly wrote:

... Oh I almost forgot!
You don't need to create a new Windows profile to workaround this.
Hedgewars can be started with a custom userfiles/profile location:
hedgewars.exe --config-dir="C:\myhwfolder"

So just copy your hedgewars profile folder to a path that does not contain any non-latin letters (and a location where you have read/write permissions) and supply its path in the link of hedgewars using --config-dir=, similar to what is shown above.


Thanks again! It works. Now I can play with custom themes.

sheepluva allegedly wrote:

Either way we'll have to look into this.
Thank you for reporting the issue and even finding+telling what caused it!
Don't mention it. Hope you'll fix it in the next release.

nemo allegedly wrote:

Can you by any chance test with UTF-8?

It was addressed to me? I have very little understanding of programming (only from school course) and I do not think I could do anything to help you. Sorry.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]