Unity of Command II

Unity of Command II

View Stats:
 This topic has been pinned, so it's probably important
tomislav.uzelac  [developer] May 8, 2020 @ 3:32am
Help: Troubleshooting and Crashes
If you're having a problem or a crash, please take a look at the answers to some of the more common issues below.

If you can't find a solution for you issue here, please go to the Technical Support sub-forum and make a report. We are monitoring that sub-forum, and you're sure to get a response.

The game won't start at all
If the game won't run at all, your antivirus software might be blocking it. Try adding an exception for uoc2.exe in your antivirus software.

When I click my units I can't see the orange movement outline
We've seen this issue pop up with certain GPU models. The workaround is as follows:
  • Go to Options/Video
  • Set the Video Quality Preset to "Custom"
  • Set Smoothing to either FXAA or "Off"

The game is 1600x900 in full-screen but my native resolution is 1920x1080
It is possible that you have enabled the "Make everything bigger" setting in Windows. Try enabling Ignore System UI Scaling in Options and then restarting the game.

The game doesn't start/black screen/has sound only
Please make sure your graphics card drivers are up to date.

In particular, we often get these issues with AMD/ATI cards which are no longer supported by the manufacturer[www.amd.com]. If you are running an older ATI card, please go to this site and see if you are able to update your drivers:
https://www.amd.com/en/support/kb/faq/gpu-131

Nvidia GPUs on macOS will only work with the "Old GPU Shader Fix" mod. Please subscribe to this and restart the game. This mod can possibly help with other GPUs that experience crashes - please report any successes on the mod page, thx!
https://steamcommunity.com/sharedfiles/filedetails/?id=2453801273
I cannot click the Start Scenario button on the campaign screen (can also affect other buttons on the right-hand side of the screen)
Solution 1: disable tips in XBox Game Bar.
Win+G -> Settings (gear icon) -> uncheck "Show tips when I start a game".

Solution 2: in Options/Controls, uncheck "use system mouse".

I cannot click on scenarios on the right side the campaign screen because they are hidden by the scenario description

You can use the CTRL+1 hotkey to cycle through the scenarios instead of clicking on them.

I have red dots all over the screen with on an AMD GP
Please check anisotropic / morphological filtering in Radeon Software for UoC II settings and turn it off.

The game crashes on starting a new campaign or continuing an existing one
Razer Cortex in-Game Overlay can cause this crash. FPS, Play-Time, and Local Time cause the game to crash to desktop. Try turning it off.
Last edited by tomislav.uzelac; Jun 28, 2022 @ 6:04am
< >
Showing 1-15 of 106 comments
Bush_Camper Apr 21, 2021 @ 1:04pm 
dlc barbarossa crashes after first three scenarios @conference
python error in main script
Last edited by Bush_Camper; Apr 21, 2021 @ 1:15pm
tomislav.uzelac  [developer] Apr 21, 2021 @ 2:08pm 
Hi, please email your log.txt and barbarossa.usg to support at unityofcommand dot net. The files are located in this folder:

%localappdata%\.uoc2
(just paste the string above into the Address Bar of File Explorer and hit ENTER)

Cheers!
blaharw Jun 15, 2021 @ 11:45am 
Game crashes after I try to run the senerio in the tutorial
tomislav.uzelac  [developer] Jun 15, 2021 @ 12:49pm 
@blaharw: most likely, your graphics card driver is out of date. Please make sure your graphics card drivers are up to date and try again.

If it still crashes, please email your log.txt to support at unityofcommand dot net. The file is located in this folder:

%localappdata%\.uoc2
(just paste the string above into the Address Bar of File Explorer and hit ENTER)

Cheers!
goofey Jun 21, 2021 @ 4:47pm 
When I try to use the editor, the game crashes. Says something about UOC2 error.
Last edited by goofey; Jun 21, 2021 @ 4:52pm
tomislav.uzelac  [developer] Jun 22, 2021 @ 2:12am 
@goofey: please email your log.txt to support at unityofcommand dot net. The file is located in this folder:

%localappdata%\.uoc2
(just paste the string above into the Address Bar of File Explorer and hit ENTER)

Cheers!
goofey Jun 22, 2021 @ 5:59pm 
No idea how to find that log text file. Can you advise? This is a macbook.

PS Developer. I need help finding the file on Macbook Pro. Thanks
Last edited by goofey; Jun 23, 2021 @ 7:06am
tomislav.uzelac  [developer] Jun 23, 2021 @ 8:53am 
@goofey: please do the steps described below.

1. Start the game. Start the scenario editor. (I assume the game crashes at this point)

2. Start Terminal (in Finder, open the /Applications/Utilities folder, then double-click Terminal)

3. In Terminal, type (or paste, CMD-V) the following and hit RETURN (or ENTER):
cat ~/Documents/.uoc2/log.txt | pbcopy

4. This puts the log contents in the clipboard, and you can just paste them (CMD-V) here in the reply.

Cheers!
goofey Jun 23, 2021 @ 9:29am 
INF 2021-06-23 12:27:34,432 tools.steamworks:66 SteamworksPy loaded for Mac
INF 2021-06-23 12:27:34,432 tools.steamworks:81 Steam is running
INF 2021-06-23 12:27:34,470 tools.steamworks:86 Steamworks initialized!
INF 2021-06-23 12:27:34,696 tools.steam_api:272 Steam user stats and achievements successfully fetched
INF 2021-06-23 12:27:34,696 uoc2.paths:263 STEAM ownership PASS for package dlc2
INF 2021-06-23 12:27:34,697 uoc2.paths:263 STEAM ownership PASS for package dlc1
INF 2021-06-23 12:27:34,697 uoc2.paths:263 STEAM ownership PASS for package base
INF 2021-06-23 12:27:34,700 uoc2.paths:382 Installed packages:
INF 2021-06-23 12:27:34,700 uoc2.paths:384 /Users/goofeyfoot/Documents/.uoc2/_packages/bryansk\data\scenarios
INF 2021-06-23 12:27:34,700 uoc2.paths:384 /Users/goofeyfoot/Documents/.uoc2/_packages/kasserine_axis\data\scenarios
INF 2021-06-23 12:27:34,701 uoc2.paths:384 /Users/goofeyfoot/Documents/.uoc2/_packages/tutorial_95\data\scenarios
INF 2021-06-23 12:27:34,701 uoc2.paths:384 /Users/goofeyfoot/Documents/.uoc2/_packages/MJL1
INF 2021-06-23 12:27:34,701 uoc2.paths:384 /Users/goofeyfoot/Library/Application Support/Steam/steamapps/common/Unity of Command 2/_packages/dlc2
INF 2021-06-23 12:27:34,701 uoc2.paths:384 /Users/goofeyfoot/Library/Application Support/Steam/steamapps/common/Unity of Command 2/_packages/dlc1
INF 2021-06-23 12:27:34,701 uoc2.paths:384 /Users/goofeyfoot/Library/Application Support/Steam/steamapps/common/Unity of Command 2/_packages/base
INF 2021-06-23 12:27:34,701 uoc2.main:109 ARGS log: None
INF 2021-06-23 12:27:34,717 uoc2.main:115 Platform: macOS-10.15.7-x86_64-i386-64bit
INF 2021-06-23 12:27:34,724 uoc2.main:122 Mac model: MacBookPro16,1
INF 2021-06-23 12:27:34,726 uoc2.main:136 OpenGL error checking DISABLED
INF 2021-06-23 12:27:34,754 uoc2.settings:217 Initializing settings
INF 2021-06-23 12:27:35,901 uoc2.init:57 SDL version: 2.0.12
INF 2021-06-23 12:27:35,901 uoc2.init:60 SDL_TTF version: 2.0.15
INF 2021-06-23 12:27:35,901 uoc2.init:63 SDL_Mixer version: 2.0.4
INF 2021-06-23 12:27:35,901 uoc2.init:66 SDL_Image version: 2.0.5
INF 2021-06-23 12:27:35,901 uoc2.init:77 Video driver 0: cocoa [Current]
INF 2021-06-23 12:27:35,901 uoc2.init:77 Video driver 1: dummy
INF 2021-06-23 12:27:35,989 uoc2.init:93 Audio driver: coreaudio
INF 2021-06-23 12:27:35,989 uoc2.init:98 16 audio channels alocated
INF 2021-06-23 12:27:37,073 uoc2.init:121 Display 0: 1344x840 (0, 0, 1344, 840) [Current]
INF 2021-06-23 12:27:37,095 OpenGL.acceleratesupport:13 OpenGL_accelerate module loaded
INF 2021-06-23 12:27:37,109 OpenGL.arrays.arraydatatype:280 Using accelerated ArrayDatatype
INF 2021-06-23 12:27:37,291 uoc2.init:177 OpenGL version: 4.1 INTEL-14.7.8
INF 2021-06-23 12:27:37,291 uoc2.init:180 Shading language version: 4.10
INF 2021-06-23 12:27:37,291 uoc2.init:183 GL renderer: Intel(R) UHD Graphics 630
INF 2021-06-23 12:27:37,296 uoc2.init:186 GL_MAX_TEXTURE_IMAGE_UNITS: 16
INF 2021-06-23 12:27:37,297 uoc2.init:189 GL_MAX_TEXTURE_SIZE: 16384
INF 2021-06-23 12:27:37,298 uoc2.init:192 GL_ARB_gpu_shader5: True
INF 2021-06-23 12:27:37,298 uoc2.init:195 GL_EXT_texture_filter_anisotropic: True
INF 2021-06-23 12:27:37,298 uoc2.init:199 GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT: 16.0
INF 2021-06-23 12:27:37,299 uoc2.init:212 OpenGL context: 3.3
INF 2021-06-23 12:27:37,299 uoc2.init:216 Double-buffered: True
INF 2021-06-23 12:27:37,299 uoc2.init:220 Accelerated: True
INF 2021-06-23 12:27:37,324 engine.gl.textures:155 Initializing ground textures
INF 2021-06-23 12:27:38,929 engine.gl.atlases:87 Loading atlases
INF 2021-06-23 12:27:39,535 uoc2.sounds:35 Loading sounds
INF 2021-06-23 12:27:39,598 uoc2.music:48 Loading music
INF 2021-06-23 12:27:39,622 engine.gl.shader_manager:46 Initializing shader groups
INF 2021-06-23 12:27:39,703 engine.gl.model_manager:75 Loading models
INF 2021-06-23 12:27:40,563 engine.gl.renderer2d:447 Initializing Renderer2D
INF 2021-06-23 12:27:40,570 tools.localization:93 Loading locale
INF 2021-06-23 12:27:41,103 engine.ui.tooltips:202 Loading tooltips
INF 2021-06-23 12:27:41,656 uoc2.music:123 playing main_screen: 0. Privates And Peers.ogg
WAR 2021-06-23 12:27:44,826 uoc2.sounds:154 Missing sound unhover
INF 2021-06-23 12:27:51,484 uoc2.scenario_editor.ctrl:76 Loading campaign: None
INF 2021-06-23 12:27:51,484 tools.steam_api:209 Shutting down Steam
ERR 2021-06-23 12:27:51,485 uoc2-exe:24 Traceback (most recent call last):
ERR 2021-06-23 12:27:51,485 uoc2-exe:24 File "/Users/goofeyfoot/Library/Application Support/Steam/steamapps/common/Unity of Command 2/UOC2.app/Contents/Resources/uoc2-exe.py", line 17, in <module>
ERR 2021-06-23 12:27:51,485 uoc2-exe:24 File "uoc2/main.pyc", line 311, in main
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "engine/ui/system.pyc", line 685, in main_loop
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "engine/ui/system.pyc", line 1062, in _run_coroutines_and_signals
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "tools/coroutine.pyc", line 75, in switch
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "uoc2/main_screen/ctrl.pyc", line 1797, in _cr_setup_world
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "uoc2/scenario_editor/ctrl.pyc", line 77, in cr_setup
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "uoc2/state/campaign/campaign_doc.pyc", line 108, in load
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "uoc2/state/campaign/campaign_doc.pyc", line 705, in _get_read_serialization
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "tools/serialization.pyc", line 38, in read_serialization
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 File "genericpath.pyc", line 42, in isdir
ERR 2021-06-23 12:27:51,486 uoc2-exe:24 TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
tomislav.uzelac  [developer] Jun 23, 2021 @ 10:10am 
One of the user scenarios in /Users/goofeyfoot/Documents/.uoc2/_packages/ seems to be corrupt. This could be due to an editor bug, or manual editing gone wrong, who knows.

You should go to that folder, and move all of its subfolders to a different folder. Restart the game after that to check that it doesn't crash anymore.

You can then add the user scenarios back, folder by folder, until you see which crashes. Please zip that one up and send it to support at unityofcommand dot net.

Cheers!
goofey Jun 23, 2021 @ 1:23pm 
This is a new computrer for me so bear with me. There is no file by that name, at least that I can see. Thanks. Michael

PS And by the way i don't think there should be any user scenarios since I don't even know how to do that.
Last edited by goofey; Jun 23, 2021 @ 2:02pm
tomislav.uzelac  [developer] Jun 23, 2021 @ 2:00pm 
@goofey: how to get to the folder:

1. Open Finder

2. Press CMD-SHIFT-G ("Go to folder")

3. Paste the following into the box and hit RETURN:
/Users/goofeyfoot/Documents/.uoc2/_packages/
goofey Jun 23, 2021 @ 2:03pm 
Yes but that folder is totally empty, from what I can see.
tomislav.uzelac  [developer] Jun 23, 2021 @ 2:26pm 
@goofey: the log tells me that the game found 4 user-edited scenarios in that folder:
bryansk, kasserine_axis, tutorial_95, MJL1
goofey Jun 23, 2021 @ 2:36pm 
Here is what happened.

Apple for some reason had the files hidden or invisible.
I figured out how to make them show.
To be thorough, I DELETED every UOC file and also uninstalled the entire program.
Then I reinstalled.
I verified that deleted files were still GONE after the install
Then I attempted the scenario editor and got the exact same crash. I picked one of the battles to edit. Call it X.
I went back in the documents folder and a new X folder had been created, apparently during the crash.
< >
Showing 1-15 of 106 comments
Per page: 1530 50