Game will not properly boot (windows)

This post was flagged by the community and is temporarily hidden.

Hard to say. One wild guess is that you have too much logs. Setting log level to error/warn might be an option.

Also try to directly start VCMI_client and check what it writes to console

try different renderer, e.g. software. From the client log:

INFO global [1d60] - Found 5 render drivers
INFO global [1d60] - 	direct3d
INFO global [1d60] - 	direct3d11
INFO global [1d60] - 	opengl (active)
INFO global [1d60] - 	opengles2
INFO global [1d60] - 	software

put it in settings.json - “video” section - “driver” key.

Awesome, changing the renderer seems to have fixed the issue. I originally saw that and wanted to try a different renderer but had no idea how to change it, thanks.

For future people, this file is in:

*\VCMI (branch develop)\config\schemas

Edit it with notepad, under the video section there is “driver” in which you change the “default” value (opengl in this case) to any of the 4 others above. direct3d11 works for me.

Wish there was a toggle in the GUI for this though. But hey, it works.

This post was flagged by the community and is temporarily hidden.

Interestingly, after shutting off my PC and coming back the following day, setting the log level to “verbose” seemed to fix things. No idea if it was just something interfering with it or not. I’ll keep this updated if it breaks again.

Issue came back, set the log level back to trace as verbose was invalid. Seems to work fine on first PC boot, then as the day progresses, i do other things, and come back then it no longer works. Worked fine with the same set of default mods earlier Perhaps something is breaking as the PC stays on for extended periods of time? Hard to say.

Here’s the client command line:

Starting...
VCMI 1.0.0.cedc9a92ede66b3f9fff079022ea287a012330a5 (client)
Creating console and configuring logger: 7 ms
The log file will be saved to "C:\Users\Zeron\Documents\My Games\vcmi\VCMI_Client_log.txt"
        Initialization: 44 ms
        Data loading: 188 ms
        Mod handler: 1 ms
        Mod filesystems: 64 ms
Basic initialization: 298 ms
Initialized logging system based on settings successfully.
[log level] ai => not set
[log level] animation => not set
[log level] bonus => not set
[log level] global => trace
[log level] mod => not set
[log level] network => not set
Loading settings: 306 ms
Found 5 render drivers
        direct3d
        direct3d11 (active)
        opengl
        opengles2
        software
Check display mode: requested 1366 x 768; available up to 2560 x 1440
Set logical rendering resolution to 1366x768
Created renderer direct3d11
        Initializing screen: 128 ms
        Initializing video: 1 ms
Initializing screen and sound handling: 14 ms
[swscaler @ 0606bec0] Warning: data is not aligned! This can lead to a speed loss
                 Bonus type handler: 3 ms
                 General text handler: 6 ms
                 Hero handler: 11 ms
                 Artifact handler: 5 ms
                 Creature handler: 1 ms
                 Town handler: 7 ms
                 Object handler: 14 ms
                 Object types information handler: 1 ms
                 Spell handler: 5 ms
                 Skill handler: 4 ms
                 Terrain view pattern handler: 5 ms
                 Template handler: 1 ms
Loaded (V)ERM interpreter
Loaded Lua interpreter
                 Script handler: 5 ms
                 Battlefields handler: 3 ms
        Initializing handlers: 71 ms
        Initializing content handler: 0 ms
                [824f8374]Original game files
                [606ae3ab]Campaign Heroes
                [2c67fd83]Forge town
                [84ec53cd]Tides of War
                [67515767]VCMI essential files
                [e07eb10e]VCMI extras
                [a0a63822]In The Wake of Gods
                [b932e0ed]Andruids Bonus Icons
                [12c421f2]Default templates
                [8c5ae418]Extra resolutions
                [7b4e220f]VCMI Quick Exchange
                [3a6e3faa]Animated Objects
                [25797289]Animated Trees
                [58096bf0]Battle Decorations
                [a94a6ece]Commanders
                [34c3be3f]No pre-battle music
                [7d843c5d]War Machines on map
                [148db4e2]Stack Artifacts
                [a2c3bed9]Stack Experience
                [7ffb2999]WoG starting screen
                [124df181]Bonus Icons
                [be98cec8]Spell Immunity Bonus Icons
                [7bc1cd04]Analogy
                [38476ab5]Clash of Dragons
                [668e3726]Coldshadow's Fantasy
                [fa862d46]Golden Ring
                [a36cd7fc]HD Mod RMGs
                [10e6f556]Jebus Cross
                [dc7f8ed0]OH3 RMGs
                [6d9eebf1]Upgrade
        Parsing mod data: 482 ms
no original data in loadMod(neutral) at index 9
Data in resource is invalid!
At /types/gold/templates/zmithr/animation
         Error: Def file "objects/zmithr.def" was not found

                [FAIL] Original game files
                [SKIP] Campaign Heroes
                [SKIP] Forge town
                [DONE] Tides of War
                [SKIP] VCMI essential files
                [DONE] VCMI extras
Wrong Limiter will be ignored: The 'ONLY_ENEMY_ARMY' effectRange is only compatible with the 'OPPOSITE_SIDE' limiter.
Wrong Limiter will be ignored: The 'ONLY_ENEMY_ARMY' effectRange is only compatible with the 'OPPOSITE_SIDE' limiter.
                [DONE] In The Wake of Gods
                [DONE] Andruids Bonus Icons
                [SKIP] Default templates
                [DONE] Extra resolutions
                [SKIP] VCMI Quick Exchange
                [SKIP] Animated Objects
                [SKIP] Animated Trees
                [SKIP] Battle Decorations
                [DONE] Commanders
                [SKIP] No pre-battle music
                [SKIP] War Machines on map
                [SKIP] Stack Artifacts
                [DONE] Stack Experience
                [SKIP] WoG starting screen
                [SKIP] Bonus Icons
                [DONE] Spell Immunity Bonus Icons
                [SKIP] Analogy
                [SKIP] Clash of Dragons
                [SKIP] Coldshadow's Fantasy
                [DONE] Golden Ring
                [DONE] HD Mod RMGs
                [SKIP] Jebus Cross
                [DONE] OH3 RMGs
                [SKIP] Upgrade
        Loading mod data: 462 ms
        Resolving identifiers: 16 ms
No templates found for 38:1
No templates found for 79:7
No templates found for 90:1
No templates found for 100:1
No templates found for 103:1
No templates found for 113:1
No templates found for 172:0
No templates found for 186:0
No templates found for 189:0
Failed to resolve identifier wog+:redDragonClone of type creature from mod core
Identifier redDragonClone has been resolved as wog:redDragonClone instead of wog+:redDragonClone
Failed to resolve identifier wog+:redDragonClone of type creature from mod core
Identifier redDragonClone has been resolved as wog:redDragonClone instead of wog+:redDragonClone
Failed to resolve identifier wog+:redDragonClone of type creature from mod core
Identifier redDragonClone has been resolved as wog:redDragonClone instead of wog+:redDragonClone
Failed to resolve identifier wog+:redDragonClone of type creature from mod core
Identifier redDragonClone has been resolved as wog:redDragonClone instead of wog+:redDragonClone
        Handlers post-load finalization: 33 ms
        All game content loaded in 993 ms
Initializing VCMI_Lib: 1068 ms

The client log is so long now i can’t even post it to pastebin, so i’ll need to use a drive link.

https://drive.google.com/file/d/1JjFKyjp2bwsHRLGlLsKNXg9IX6TQws1A/view?usp=sharing

To fix Failed to resolve identifier wog+:redDragonClone of type creature from mod core warning, go to arrowTrigger.json file and change line:

"id":"wog+:redDragonClone",
at
"id":"wake-of-gods:redDragonClone",

Changed

"id":"wog+:redDragonClone",

to

"id":"wake-of-gods:redDragonClone",

No dice.

Starting...
VCMI 1.0.0.cedc9a92ede66b3f9fff079022ea287a012330a5 (client)
Creating console and configuring logger: 8 ms
The log file will be saved to "C:\Users\Zeron\Documents\My Games\vcmi\VCMI_Client_log.txt"
        Initialization: 46 ms
        Data loading: 188 ms
        Mod handler: 1 ms
        Mod filesystems: 65 ms
Basic initialization: 301 ms
Initialized logging system based on settings successfully.
[log level] ai => not set
[log level] animation => not set
[log level] bonus => not set
[log level] global => trace
[log level] mod => not set
[log level] network => not set
Loading settings: 310 ms
Found 5 render drivers
        direct3d
        direct3d11 (active)
        opengl
        opengles2
        software
Check display mode: requested 1366 x 768; available up to 2560 x 1440
Set logical rendering resolution to 1366x768
Created renderer direct3d11
        Initializing screen: 118 ms
        Initializing video: 1 ms
Initializing screen and sound handling: 13 ms
[swscaler @ 062478c0] Warning: data is not aligned! This can lead to a speed loss
                 Bonus type handler: 3 ms
                 General text handler: 5 ms
                 Hero handler: 5 ms
                 Artifact handler: 0 ms
                 Creature handler: 2 ms
                 Town handler: 2 ms
                 Object handler: 1 ms
                 Object types information handler: 1 ms
                 Spell handler: 1 ms
                 Skill handler: 2 ms
                 Terrain view pattern handler: 3 ms
                 Template handler: 1 ms
Loaded (V)ERM interpreter
Loaded Lua interpreter
                 Script handler: 4 ms
                 Battlefields handler: 4 ms
        Initializing handlers: 35 ms
        Initializing content handler: 0 ms
                [dfa5e1b4]Original game files
                [606ae3ab]Campaign Heroes
                [2c67fd83]Forge town
                [84ec53cd]Tides of War
                [67515767]VCMI essential files
                [e07eb10e]VCMI extras
                [dc14e9a8]In The Wake of Gods
                [b932e0ed]Andruids Bonus Icons
                [12c421f2]Default templates
                [8c5ae418]Extra resolutions
                [7b4e220f]VCMI Quick Exchange
                [3a6e3faa]Animated Objects
                [25797289]Animated Trees
                [58096bf0]Battle Decorations
                [a94a6ece]Commanders
                [34c3be3f]No pre-battle music
                [7d843c5d]War Machines on map
                [148db4e2]Stack Artifacts
                [a2c3bed9]Stack Experience
                [7ffb2999]WoG starting screen
                [124df181]Bonus Icons
                [be98cec8]Spell Immunity Bonus Icons
                [7bc1cd04]Analogy
                [38476ab5]Clash of Dragons
                [668e3726]Coldshadow's Fantasy
                [fa862d46]Golden Ring
                [a36cd7fc]HD Mod RMGs
                [10e6f556]Jebus Cross
                [dc7f8ed0]OH3 RMGs
                [6d9eebf1]Upgrade
        Parsing mod data: 491 ms
no original data in loadMod(neutral) at index 9
Data in resource is invalid!
At /types/gold/templates/zmithr/animation
         Error: Def file "objects/zmithr.def" was not found

                [FAIL] Original game files
                [SKIP] Campaign Heroes
                [SKIP] Forge town
                [DONE] Tides of War
                [SKIP] VCMI essential files
                [DONE] VCMI extras
Wrong Limiter will be ignored: The 'ONLY_ENEMY_ARMY' effectRange is only compatible with the 'OPPOSITE_SIDE' limiter.
Wrong Limiter will be ignored: The 'ONLY_ENEMY_ARMY' effectRange is only compatible with the 'OPPOSITE_SIDE' limiter.
                [DONE] In The Wake of Gods
                [DONE] Andruids Bonus Icons
                [SKIP] Default templates
                [DONE] Extra resolutions
                [SKIP] VCMI Quick Exchange
                [SKIP] Animated Objects
                [SKIP] Animated Trees
                [SKIP] Battle Decorations
                [DONE] Commanders
                [SKIP] No pre-battle music
                [SKIP] War Machines on map
                [SKIP] Stack Artifacts
                [DONE] Stack Experience
                [SKIP] WoG starting screen
                [SKIP] Bonus Icons
                [DONE] Spell Immunity Bonus Icons
                [SKIP] Analogy
                [SKIP] Clash of Dragons
                [SKIP] Coldshadow's Fantasy
                [DONE] Golden Ring
                [DONE] HD Mod RMGs
                [SKIP] Jebus Cross
                [DONE] OH3 RMGs
                [SKIP] Upgrade
        Loading mod data: 462 ms
        Resolving identifiers: 17 ms
No templates found for 38:1
No templates found for 79:7
No templates found for 90:1
No templates found for 100:1
No templates found for 103:1
No templates found for 113:1
No templates found for 172:0
No templates found for 186:0
No templates found for 189:0
Failed to resolve identifier wake-of-gods:redDragonClone of type creature from mod core
Identifier redDragonClone has been resolved as wog:redDragonClone instead of wake-of-gods:redDragonClone
Failed to resolve identifier wake-of-gods:redDragonClone of type creature from mod core
Identifier redDragonClone has been resolved as wog:redDragonClone instead of wake-of-gods:redDragonClone
Failed to resolve identifier wake-of-gods:redDragonClone of type creature from mod core
Identifier redDragonClone has been resolved as wog:redDragonClone instead of wake-of-gods:redDragonClone
Failed to resolve identifier wake-of-gods:redDragonClone of type creature from mod core
Identifier redDragonClone has been resolved as wog:redDragonClone instead of wake-of-gods:redDragonClone
        Handlers post-load finalization: 39 ms
        All game content loaded in 1009 ms
Initializing VCMI_Lib: 1046 ms

I’d suggest to disable all mods (VCMI extras can be kept) first and see if game loads/works

Again as stated earlier in the thread, doing what you say is hit or miss. Just disabling mods won’t work as i’ve tried it multiple times. Disabling mods and then restarting the PC sometimes works, but then later on will stop working for unknown reasons.

then probably your best bet is to build from source and debug in your VM. Could be some weird SDL issue for example.

that’s incorrect location btw. I was referring to user settings stored in Documents\My Games\vcmi\config\settings.json

and to start from scratch, you should delete Documents\My Games\vcmi directory.

How would i go about building from source and/or changing video from the docs settings? All i see in the default settings file prior to launching for the first time is:

{
	"video" : {
		"displayIndex" : 0
	}
}

That’s largely why i went the base folder route as it wasn’t clear.

After nuking everything it seems temporarily fixed, but as soon as i add some default mods i’m sure it’ll break again. The settings.json also now looks like this after first boot(with nothing but essentials):

{
}

The weird part is often times i can add default mods one by one(launching after each to see what might be problematic) and they work perfectly fine. Then some hours later it’ll just mysteriously stop working.

most of the important settings can be configured through launcher directly, you’d rarely need to edit the json manually.

the config\schemas\settings.json is a JSON schema for validation, it also contains default settings. That’s why user settings file is empty at first (default values aren’t written there).

essentials are always enabled, you can’t disable them. VCMI Extras are recommended to install (e.g. for large resolutions). You could start only with these and see if something breaks again.

It unfortunately does break even with only the essentials. One day it’ll work fine, another day it’ll produce the same black screen behavior. Even at completely default settings.

and nothing special in the client log, right?

I’ve posted the client log several times throughout this thread, and i couldn’t make much of it. Generally nothing glaring that i could see, unfortunately.

Guess i’ll just need to throw in the towel and hope maybe in the future things will change. Thanks, though.

well, this would be a better option :slight_smile: