WineHQ
Wine Forums

Board index » WineHQ » Wine Help




 Page 1 of 1 [ 4 posts ] 



 
Author Message
 Post subject: Time zone error
 Post Posted: Tue Aug 21, 2018 9:51 pm 
Offline
Newbie
Newbie

Joined: Tue Aug 21, 2018 9:44 pm
Posts: 1
Hello, right now I'm trying to play a game called Graveyard Keeper. It launches fine, but on loading screen game gives me a "unable to initialize time zone, check your OS settings [..]' error. Is there a a way around it?


Top 
 Post subject: Re: Time zone error
 Post Posted: Thu Aug 23, 2018 11:03 am 
Offline
Level 6
Level 6
User avatar

Joined: Tue Nov 22, 2016 5:39 pm
Posts: 512
Did you already try a fresh WINEPREFIX with latest Wine (3.14) or wine-staging?

If so, please provide a log (remember to use the code tags - or a pastebin like site if the log is too big). Also a screenshot of the error message would be good.

Also, is there a reason you don't use the native Linux version of the game?


Top 
 Post subject: Re: Time zone error
 Post Posted: Tue Sep 11, 2018 5:20 pm 
Offline
Newbie
Newbie

Joined: Tue Sep 11, 2018 4:47 pm
Posts: 2
You need to define your timezone in the registry as explained here: https://azyobuzin.hatenablog.com/entry/ ... /17/002707

So, a generic UTC solution could be to bootstrap with:

Code:
#!/bin/sh
WINEPREFIX="$HOME/.wine_graveyard_keeper" WINEARCH=win32 wine wineboot
WINEPREFIX="$HOME/.wine_graveyard_keeper" WINEARCH=win32 wine reg add 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation' /v TimeZoneKeyName /t REG_SZ /d 'Coordinated Universal Time' /f
WINEPREFIX="$HOME/.wine_graveyard_keeper" WINEARCH=win32 wine ./setup_graveyard_keeper_1.031_(23600).exe


And execute with:
Code:
#!/bin/sh
cd "$HOME/.wine_graveyard_keeper/drive_c/GOG Games/Graveyard Keeper"
TZ=UTC WINEPREFIX="$HOME/.wine_graveyard_keeper" WINEARCH=win32 wine "./Graveyard Keeper.exe"


By the looks of it you can match your system timezone to the one specified in the registry by looking under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones" for valid dlt entries like how the original post used "Tokyo Standard Time".


Top 
 Post subject: Re: Time zone error
 Post Posted: Tue Sep 11, 2018 5:47 pm 
Offline
Newbie
Newbie

Joined: Tue Sep 11, 2018 4:47 pm
Posts: 2
TL;DR:
Code:
wine reg add 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation' /v TimeZoneKeyName /t REG_SZ /d 'Coordinated Universal Time' /f


Fixed upstream: https://bugs.winehq.org/show_bug.cgi?id=37760


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 4 posts ] 




Board index » WineHQ » Wine Help


Who is online

Users browsing this forum: Google [Bot] and 11 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: