Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
python error in main script
%localappdata%\.uoc2
(just paste the string above into the Address Bar of File Explorer and hit ENTER)
Cheers!
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!
%localappdata%\.uoc2
(just paste the string above into the Address Bar of File Explorer and hit ENTER)
Cheers!
PS Developer. I need help finding the file on Macbook Pro. Thanks
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):
4. This puts the log contents in the clipboard, and you can just paste them (CMD-V) here in the reply.
Cheers!
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
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!
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.
1. Open Finder
2. Press CMD-SHIFT-G ("Go to folder")
3. Paste the following into the box and hit RETURN:
bryansk, kasserine_axis, tutorial_95, MJL1
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.