Scenario editor crashes

Post your technical problems here.
korkikorkota
Second Lieutenant
Posts: 6
Joined: Wed Apr 22, 2020 7:02 pm

Scenario editor crashes

Unread postby korkikorkota » Tue Jun 23, 2020 8:25 am

I almost finished creating scenario but for some reason the editor crashes. I have this problem only with this scenario. here is log:

INF 2020-06-23 12:20:26,483 tools.steamworks:71 SteamworksPy loaded for Windows
INF 2020-06-23 12:20:26,484 tools.steamworks:81 Steam is running
INF 2020-06-23 12:20:26,518 tools.steamworks:86 Steamworks initialized!
INF 2020-06-23 12:20:26,902 tools.steam_api:236 Steam user stats and achievements successfully fetched
INF 2020-06-23 12:20:26,933 uoc2.paths:328 Installed packages:
INF 2020-06-23 12:20:26,933 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\1
INF 2020-06-23 12:20:26,933 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\afr
INF 2020-06-23 12:20:26,933 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Berlin
INF 2020-06-23 12:20:26,933 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\bud3
INF 2020-06-23 12:20:26,934 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\dragoon
INF 2020-06-23 12:20:26,934 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\kasserine_axis
INF 2020-06-23 12:20:26,934 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\konrad
INF 2020-06-23 12:20:26,934 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\oran
INF 2020-06-23 12:20:26,934 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\overlord
INF 2020-06-23 12:20:26,934 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Poland
INF 2020-06-23 12:20:26,934 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\race_for_berlin
INF 2020-06-23 12:20:26,934 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\rom
INF 2020-06-23 12:20:26,935 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Run_for_Tunnis
INF 2020-06-23 12:20:26,935 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Spring
INF 2020-06-23 12:20:26,935 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\spring2
INF 2020-06-23 12:20:26,935 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\tns
INF 2020-06-23 12:20:26,935 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\tunis
INF 2020-06-23 12:20:26,935 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\unthinkable
INF 2020-06-23 12:20:26,936 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\wadi_akarit
INF 2020-06-23 12:20:26,936 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Warsaw
INF 2020-06-23 12:20:26,936 uoc2.paths:330 D:\Games\stm\steamapps\common\Unity of Command 2\_packages\base
INF 2020-06-23 12:20:26,937 uoc2.main:102 ARGS log: None
INF 2020-06-23 12:20:26,940 uoc2.main:108 Platform: Windows-10-10.0.16299
INF 2020-06-23 12:20:26,943 uoc2.main:122 OpenGL error checking DISABLED
INF 2020-06-23 12:20:27,026 uoc2.settings:212 Initializing settings
INF 2020-06-23 12:20:27,218 uoc2.init:56 SDL version: 2.0.12
INF 2020-06-23 12:20:27,218 uoc2.init:59 SDL_TTF version: 2.0.15
INF 2020-06-23 12:20:27,218 uoc2.init:62 SDL_Mixer version: 2.0.4
INF 2020-06-23 12:20:27,219 uoc2.init:65 SDL_Image version: 2.0.5
INF 2020-06-23 12:20:27,219 uoc2.init:76 Video driver 0: windows [Current]
INF 2020-06-23 12:20:27,219 uoc2.init:76 Video driver 1: dummy
INF 2020-06-23 12:20:27,271 uoc2.init:92 Audio driver: wasapi
INF 2020-06-23 12:20:27,272 uoc2.init:97 16 audio channels alocated
INF 2020-06-23 12:20:27,822 uoc2.init:119 Display 0: 1920x1080 (0, 0, 1920, 1080) [Current]
INF 2020-06-23 12:20:27,839 OpenGL.acceleratesupport:13 OpenGL_accelerate module loaded
INF 2020-06-23 12:20:27,848 OpenGL.arrays.arraydatatype:280 Using accelerated ArrayDatatype
INF 2020-06-23 12:20:28,073 uoc2.init:175 OpenGL version: 3.3.13587 Core Profile Context 20.4.1 26.20.15029.20013
INF 2020-06-23 12:20:28,080 uoc2.init:178 GL_MAX_TEXTURE_IMAGE_UNITS: 32
INF 2020-06-23 12:20:28,080 uoc2.init:181 GL_MAX_TEXTURE_SIZE: 16384
INF 2020-06-23 12:20:28,083 uoc2.init:184 GL_ARB_gpu_shader5: True
INF 2020-06-23 12:20:28,083 uoc2.init:187 GL_EXT_texture_filter_anisotropic: True
INF 2020-06-23 12:20:28,083 uoc2.init:191 GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT: 16.0
INF 2020-06-23 12:20:28,084 uoc2.init:203 OpenGL context: 3.3
INF 2020-06-23 12:20:28,084 uoc2.init:207 Double-buffered: True
INF 2020-06-23 12:20:28,084 uoc2.init:211 Accelerated: True
INF 2020-06-23 12:20:28,231 uoc2.init:131 Displaying splash screen
INF 2020-06-23 12:20:28,313 engine.gl.textures:154 Initializing ground textures
INF 2020-06-23 12:20:30,806 engine.gl.atlases:87 Loading atlases
INF 2020-06-23 12:20:31,747 uoc2.sounds:35 Loading sounds
INF 2020-06-23 12:20:32,021 uoc2.music:47 Loading music
INF 2020-06-23 12:20:32,067 engine.gl.shader_manager:46 Initializing shader groups
INF 2020-06-23 12:20:32,196 engine.gl.model_manager:69 Loading models
INF 2020-06-23 12:20:33,214 engine.gl.renderer2d:447 Initializing Renderer2D
INF 2020-06-23 12:20:33,223 tools.localization:93 Loading locale
INF 2020-06-23 12:20:33,855 engine.ui.tooltips:202 Loading tooltips
WAR 2020-06-23 12:20:36,157 uoc2.sounds:154 Missing sound unhover
INF 2020-06-23 12:20:42,896 uoc2.scenario_editor.ctrl:65 Loading campaign: C:\Users\User\AppData\Local\.uoc2\_packages\spring2\data\scenarios\spring2.usc
INF 2020-06-23 12:20:42,901 uoc2.scenario_editor.ctrl:77 Loading first scenario (standalone): spring2
INF 2020-06-23 12:20:42,914 uoc2.state.gamelike.gamelike:86 Loading map D:\Games\stm\steamapps\common\Unity of Command 2\_packages\base\data\maps\europe_10
INF 2020-06-23 12:20:43,157 tools.steam_api:177 Shutting down Steam
ERR 2020-06-23 12:20:43,158 uoc2-exe:24 Traceback (most recent call last):
ERR 2020-06-23 12:20:43,158 uoc2-exe:24 File "uoc2-exe.py", line 17, in <module>
ERR 2020-06-23 12:20:43,158 uoc2-exe:24 File "E:\code\uoc2\uoc2\main.py", line 292, in main
ERR 2020-06-23 12:20:43,158 uoc2-exe:24 File "E:\code\uoc2\engine\ui\system.py", line 652, in main_loop
ERR 2020-06-23 12:20:43,158 uoc2-exe:24 File "E:\code\uoc2\engine\ui\system.py", line 1028, in _run_coroutines_and_signals
ERR 2020-06-23 12:20:43,158 uoc2-exe:24 File "E:\code\uoc2\tools\coroutine.py", line 75, in switch
ERR 2020-06-23 12:20:43,159 uoc2-exe:24 File "E:\code\uoc2\uoc2\main_screen\ctrl.py", line 1753, in _cr_setup_world
ERR 2020-06-23 12:20:43,159 uoc2-exe:24 File "E:\code\uoc2\uoc2\scenario_editor\ctrl.py", line 79, in cr_setup
ERR 2020-06-23 12:20:43,159 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\campaign\campaign_doc.py", line 283, in load_scenario
ERR 2020-06-23 12:20:43,159 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\scenario\scenario.py", line 112, in _load
ERR 2020-06-23 12:20:43,159 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\scenario\scenario.py", line 76, in __init__
ERR 2020-06-23 12:20:43,159 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\gamelike\gamelike.py", line 167, in __init__
ERR 2020-06-23 12:20:43,159 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\gamelike\gamelike.py", line 215, in _load_entities
ERR 2020-06-23 12:20:43,159 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\entities\entity.py", line 35, in load
ERR 2020-06-23 12:20:43,160 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\entities\hq.py", line 71, in __init__
ERR 2020-06-23 12:20:43,160 uoc2-exe:24 AttributeError: 'NoneType' object has no attribute 'name_brief'
You do not have the required permissions to view the files attached to this post.

User avatar
Tomislav Uzelac
2x2 Games
Posts: 2211
Joined: Mon Apr 04, 2011 11:24 pm
Location: Zagreb, Croatia

Re: Scenario editor crashes

Unread postby Tomislav Uzelac » Thu Jun 25, 2020 5:57 am

Hi, it seems like you're missing an HQ somewhere.

Please zip up your usc and post it here and we'll take a look.

Cheers!

korkikorkota
Second Lieutenant
Posts: 6
Joined: Wed Apr 22, 2020 7:02 pm

Re: Scenario editor crashes

Unread postby korkikorkota » Sun Jun 28, 2020 11:47 am

I recreated the same scenario and I got the same problem. the issue occurs after I start naming soviet units. here is the log. also Could you tell me which USC files you mean and where are they located? Thanks.

INF 2020-06-28 15:06:41,570 tools.steamworks:71 SteamworksPy loaded for Windows
INF 2020-06-28 15:06:41,570 tools.steamworks:81 Steam is running
INF 2020-06-28 15:06:41,605 tools.steamworks:86 Steamworks initialized!
INF 2020-06-28 15:06:41,969 tools.steam_api:236 Steam user stats and achievements successfully fetched
INF 2020-06-28 15:06:42,001 uoc2.paths:328 Installed packages:
INF 2020-06-28 15:06:42,001 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\1
INF 2020-06-28 15:06:42,001 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\afr
INF 2020-06-28 15:06:42,001 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Berlin
INF 2020-06-28 15:06:42,001 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\bud3
INF 2020-06-28 15:06:42,001 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\dragoon
INF 2020-06-28 15:06:42,002 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\kasserine_axis
INF 2020-06-28 15:06:42,002 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\konrad
INF 2020-06-28 15:06:42,002 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\oran
INF 2020-06-28 15:06:42,002 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\overlord
INF 2020-06-28 15:06:42,002 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Poland
INF 2020-06-28 15:06:42,002 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\race_for_berlin
INF 2020-06-28 15:06:42,002 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\rom
INF 2020-06-28 15:06:42,002 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Run_for_Tunnis
INF 2020-06-28 15:06:42,003 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Spring
INF 2020-06-28 15:06:42,003 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\spring2
INF 2020-06-28 15:06:42,003 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Spring_aw
INF 2020-06-28 15:06:42,003 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\tns
INF 2020-06-28 15:06:42,003 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\tunis
INF 2020-06-28 15:06:42,003 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\unthinkable
INF 2020-06-28 15:06:42,003 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\wadi_akarit
INF 2020-06-28 15:06:42,004 uoc2.paths:330 C:\Users\User\AppData\Local\.uoc2\_packages\Warsaw
INF 2020-06-28 15:06:42,004 uoc2.paths:330 D:\Games\stm\steamapps\common\Unity of Command 2\_packages\base
INF 2020-06-28 15:06:42,005 uoc2.main:102 ARGS log: None
INF 2020-06-28 15:06:42,009 uoc2.main:108 Platform: Windows-10-10.0.16299
INF 2020-06-28 15:06:42,011 uoc2.main:122 OpenGL error checking DISABLED
INF 2020-06-28 15:06:42,095 uoc2.settings:212 Initializing settings
INF 2020-06-28 15:06:42,288 uoc2.init:56 SDL version: 2.0.12
INF 2020-06-28 15:06:42,289 uoc2.init:59 SDL_TTF version: 2.0.15
INF 2020-06-28 15:06:42,289 uoc2.init:62 SDL_Mixer version: 2.0.4
INF 2020-06-28 15:06:42,289 uoc2.init:65 SDL_Image version: 2.0.5
INF 2020-06-28 15:06:42,289 uoc2.init:76 Video driver 0: windows [Current]
INF 2020-06-28 15:06:42,289 uoc2.init:76 Video driver 1: dummy
INF 2020-06-28 15:06:42,383 uoc2.init:92 Audio driver: wasapi
INF 2020-06-28 15:06:42,383 uoc2.init:97 16 audio channels alocated
INF 2020-06-28 15:06:42,913 uoc2.init:119 Display 0: 1920x1080 (0, 0, 1920, 1080) [Current]
INF 2020-06-28 15:06:42,980 OpenGL.acceleratesupport:13 OpenGL_accelerate module loaded
INF 2020-06-28 15:06:43,015 OpenGL.arrays.arraydatatype:280 Using accelerated ArrayDatatype
INF 2020-06-28 15:06:43,427 uoc2.init:175 OpenGL version: 3.3.13587 Core Profile Context 20.4.1 26.20.15029.20013
INF 2020-06-28 15:06:43,443 uoc2.init:178 GL_MAX_TEXTURE_IMAGE_UNITS: 32
INF 2020-06-28 15:06:43,443 uoc2.init:181 GL_MAX_TEXTURE_SIZE: 16384
INF 2020-06-28 15:06:43,446 uoc2.init:184 GL_ARB_gpu_shader5: True
INF 2020-06-28 15:06:43,446 uoc2.init:187 GL_EXT_texture_filter_anisotropic: True
INF 2020-06-28 15:06:43,447 uoc2.init:191 GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT: 16.0
INF 2020-06-28 15:06:43,447 uoc2.init:203 OpenGL context: 3.3
INF 2020-06-28 15:06:43,447 uoc2.init:207 Double-buffered: True
INF 2020-06-28 15:06:43,447 uoc2.init:211 Accelerated: True
INF 2020-06-28 15:06:43,701 uoc2.init:131 Displaying splash screen
INF 2020-06-28 15:06:43,784 engine.gl.textures:154 Initializing ground textures
INF 2020-06-28 15:06:47,636 engine.gl.atlases:87 Loading atlases
INF 2020-06-28 15:06:48,572 uoc2.sounds:35 Loading sounds
INF 2020-06-28 15:06:48,847 uoc2.music:47 Loading music
INF 2020-06-28 15:06:48,896 engine.gl.shader_manager:46 Initializing shader groups
INF 2020-06-28 15:06:49,030 engine.gl.model_manager:69 Loading models
INF 2020-06-28 15:06:50,093 engine.gl.renderer2d:447 Initializing Renderer2D
INF 2020-06-28 15:06:50,210 tools.localization:93 Loading locale
INF 2020-06-28 15:06:50,815 engine.ui.tooltips:202 Loading tooltips
INF 2020-06-28 15:06:51,879 uoc2.music:113 playing main_screen: 0. Privates And Peers.ogg
WAR 2020-06-28 15:09:45,505 uoc2.sounds:154 Missing sound unhover
INF 2020-06-28 15:09:52,444 uoc2.music:113 playing main_screen: 0. Privates And Peers.ogg
INF 2020-06-28 15:10:21,607 uoc2.game_world.ctrl:201 GameWorldCtrl.cr_setup: new standalone game konrad_konrad
INF 2020-06-28 15:10:21,651 uoc2.state.gamelike.gamelike:86 Loading map D:\Games\stm\steamapps\common\Unity of Command 2\_packages\base\data\maps\europe_10
INF 2020-06-28 15:10:23,021 uoc2.common.world_view:96 tiles_to_load: ((24, 24), (34, 34))
INF 2020-06-28 15:10:23,021 uoc2.common.cache:50 Loading map cache D:\Games\stm\steamapps\common\Unity of Command 2\_packages\base\data\maps\europe_10\__cache
INF 2020-06-28 15:10:24,805 uoc2.common.cache:189 Preloading map cache took: 1.70s
INF 2020-06-28 15:10:27,367 engine.gl.renderer3d:211 Renderer3D._init_framebuffers
INF 2020-06-28 15:10:36,408 uoc2.common.world_view:990 Weather update took 4.69s
INF 2020-06-28 15:10:36,413 uoc2.game_world.ctrl:434 Entering deployment ctrl state
INF 2020-06-28 15:10:37,699 engine.gl.atlases:268 Defragging atlas: scratch
INF 2020-06-28 15:10:37,718 engine.gl.atlases:268 Defragging atlas: pass_2d_1
INF 2020-06-28 15:10:37,724 engine.gl.renderer3d:211 Renderer3D._init_framebuffers
INF 2020-06-28 15:10:39,114 uoc2.music:96 fading out music
INF 2020-06-28 15:10:39,457 uoc2.music:113 playing game_phasing: 0. Catchplay.ogg
INF 2020-06-28 15:11:54,083 engine.gl.atlases:268 Defragging atlas: pass_2d_1
INF 2020-06-28 15:11:55,177 uoc2.music:96 fading out music
INF 2020-06-28 15:11:55,503 uoc2.music:113 playing main_screen: 0. Privates And Peers.ogg
INF 2020-06-28 15:12:04,762 uoc2.scenario_editor.ctrl:65 Loading campaign: C:\Users\User\AppData\Local\.uoc2\_packages\Spring_aw\data\scenarios\Spring_aw.usc
INF 2020-06-28 15:12:04,775 uoc2.scenario_editor.ctrl:77 Loading first scenario (standalone): Spring_aw
INF 2020-06-28 15:12:04,789 uoc2.state.gamelike.gamelike:86 Loading map D:\Games\stm\steamapps\common\Unity of Command 2\_packages\base\data\maps\europe_10
INF 2020-06-28 15:12:05,086 uoc2.common.world_view:96 tiles_to_load: ((23, 25), (34, 35))
INF 2020-06-28 15:12:05,087 uoc2.common.cache:50 Loading map cache D:\Games\stm\steamapps\common\Unity of Command 2\_packages\base\data\maps\europe_10\__cache
INF 2020-06-28 15:12:06,812 uoc2.common.cache:189 Preloading map cache took: 1.64s
INF 2020-06-28 15:12:09,355 engine.gl.renderer3d:211 Renderer3D._init_framebuffers
INF 2020-06-28 15:12:12,706 engine.gl.renderer3d:211 Renderer3D._init_framebuffers
INF 2020-06-28 15:12:12,808 uoc2.music:96 fading out music
INF 2020-06-28 15:12:32,673 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_10_Inf_dot__Div_dot_=10 Inf. Div.
INF 2020-06-28 15:13:19,104 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_8th_Replacment_Div_dot_=8th Replacment Div.
INF 2020-06-28 15:13:32,517 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_20_Inf_dot__Div_dot_=20 Inf. Div.
INF 2020-06-28 15:13:35,002 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:15:42,263 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:17:11,354 uoc2.scenario_editor.edit_ctrl:1568 New string id_objective_name_brief_Soviet_Bridgehead_2=Soviet Bridgehead 2
INF 2020-06-28 15:19:58,992 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_80_GRD=80 GRD
INF 2020-06-28 15:20:27,186 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_84_RD=84 RD
INF 2020-06-28 15:21:21,708 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_56_GTC=56 GTC
INF 2020-06-28 15:22:55,870 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_7_GRD=7 GRD
INF 2020-06-28 15:23:01,692 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_26_GRD=26 GRD
INF 2020-06-28 15:23:07,448 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_19_RD=19 RD
INF 2020-06-28 15:23:28,736 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_36_RD=36 RD
INF 2020-06-28 15:25:17,529 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_68_GD=68 GD
INF 2020-06-28 15:25:29,175 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_155_GRD=155 GRD
INF 2020-06-28 15:26:06,295 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_18_GTB=18 GTB
INF 2020-06-28 15:26:17,857 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_18_GTC=18 GTC
INF 2020-06-28 15:26:41,629 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:28:17,409 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_73_RD=73 RD
INF 2020-06-28 15:28:37,931 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_113_RD=113 RD
INF 2020-06-28 15:28:50,160 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_51_CD=51 CD
INF 2020-06-28 15:29:00,405 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_33_CD=33 CD
INF 2020-06-28 15:29:37,996 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_8_Replacment_Div_dot_=8 Replacment Div.
INF 2020-06-28 15:29:41,481 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:29:52,507 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_2_Arm_dot__Div_dot_=2 Arm. Div.
INF 2020-06-28 15:30:13,445 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:31:59,919 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_17_GTC=17 GTC
INF 2020-06-28 15:33:48,780 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_42_GTD=42 GTD
INF 2020-06-28 15:35:22,940 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_22_GTC=22 GTC
INF 2020-06-28 15:35:25,158 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:36:35,964 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_14_RD=14 RD
INF 2020-06-28 15:36:47,343 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_210_RD=210 RD
INF 2020-06-28 15:36:58,270 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_15_RD=15 RD
INF 2020-06-28 15:37:19,692 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_67_RD=67 RD
INF 2020-06-28 15:37:25,481 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_16_RD=16 RD
INF 2020-06-28 15:37:31,937 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_11_RD=11 RD
INF 2020-06-28 15:37:39,529 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_198_RD=198 RD
INF 2020-06-28 15:38:01,201 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_48_RC=48 RC
INF 2020-06-28 15:38:21,137 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_111_RD=111 RD
INF 2020-06-28 15:38:23,890 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:38:38,238 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_254_RD=254 RD
INF 2020-06-28 15:38:57,190 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_42_GTC=42 GTC
INF 2020-06-28 15:39:03,129 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_75_GTC=75 GTC
INF 2020-06-28 15:39:04,096 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:39:16,727 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:40:27,564 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_180_GRD=180 GRD
INF 2020-06-28 15:41:23,220 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_41_TC=41 TC
INF 2020-06-28 15:41:51,283 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_112_GRD=112 GRD
INF 2020-06-28 15:42:27,385 uoc2.scenario_editor.edit_ctrl:1568 New string id_unit_name_brief_123_GRC=123 GRC
INF 2020-06-28 15:42:29,153 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:42:34,780 uoc2.scenario_editor.ctrl:214 Saving scenario
INF 2020-06-28 15:42:35,968 uoc2.music:113 playing main_screen: 0. Privates And Peers.ogg
INF 2020-06-28 15:42:54,583 uoc2.game_world.ctrl:201 GameWorldCtrl.cr_setup: new standalone game Spring_aw_Spring_aw
INF 2020-06-28 15:42:54,614 uoc2.state.gamelike.gamelike:86 Loading map D:\Games\stm\steamapps\common\Unity of Command 2\_packages\base\data\maps\europe_10
INF 2020-06-28 15:42:54,711 tools.steam_api:177 Shutting down Steam
ERR 2020-06-28 15:42:54,713 uoc2-exe:24 Traceback (most recent call last):
ERR 2020-06-28 15:42:54,713 uoc2-exe:24 File "uoc2-exe.py", line 17, in <module>
ERR 2020-06-28 15:42:54,713 uoc2-exe:24 File "E:\code\uoc2\uoc2\main.py", line 292, in main
ERR 2020-06-28 15:42:54,713 uoc2-exe:24 File "E:\code\uoc2\engine\ui\system.py", line 652, in main_loop
ERR 2020-06-28 15:42:54,713 uoc2-exe:24 File "E:\code\uoc2\engine\ui\system.py", line 1028, in _run_coroutines_and_signals
ERR 2020-06-28 15:42:54,714 uoc2-exe:24 File "E:\code\uoc2\tools\coroutine.py", line 75, in switch
ERR 2020-06-28 15:42:54,714 uoc2-exe:24 File "E:\code\uoc2\uoc2\main_screen\ctrl.py", line 775, in _cr_new_game
ERR 2020-06-28 15:42:54,714 uoc2-exe:24 File "E:\code\uoc2\uoc2\main_screen\ctrl.py", line 1753, in _cr_setup_world
ERR 2020-06-28 15:42:54,714 uoc2-exe:24 File "E:\code\uoc2\uoc2\game_world\ctrl.py", line 210, in cr_setup
ERR 2020-06-28 15:42:54,714 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\campaign\campaign.py", line 1183, in play_game
ERR 2020-06-28 15:42:54,714 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\game\game.py", line 183, in new
ERR 2020-06-28 15:42:54,714 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\game\game.py", line 136, in __init__
ERR 2020-06-28 15:42:54,715 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\gamelike\gamelike.py", line 167, in __init__
ERR 2020-06-28 15:42:54,715 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\gamelike\gamelike.py", line 218, in _load_entities
ERR 2020-06-28 15:42:54,715 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\entities\unit.py", line 167, in load
ERR 2020-06-28 15:42:54,715 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\entities\entity.py", line 35, in load
ERR 2020-06-28 15:42:54,715 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\entities\unit.py", line 79, in __init__
ERR 2020-06-28 15:42:54,715 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\campaign\campaign_doc.py", line 560, in get_doc_unit
ERR 2020-06-28 15:42:54,715 uoc2-exe:24 File "E:\code\uoc2\uoc2\state\campaign\campaign_doc.py", line 550, in get_upgraded_unit_type
ERR 2020-06-28 15:42:54,716 uoc2-exe:24 AttributeError: 'NoneType' object has no attribute 'type'

User avatar
Tomislav Uzelac
2x2 Games
Posts: 2211
Joined: Mon Apr 04, 2011 11:24 pm
Location: Zagreb, Croatia

Re: Scenario editor crashes

Unread postby Tomislav Uzelac » Mon Jun 29, 2020 8:41 am

Hi, please zip up the following folder and post it here:

Code: Select all

C:\Users\User\AppData\Local\.uoc2\_packages\Spring_aw

(this contains the .usc folder I mentioned before, but now I think we want the whole package).

Cheers!

korkikorkota
Second Lieutenant
Posts: 6
Joined: Wed Apr 22, 2020 7:02 pm

Re: Scenario editor crashes

Unread postby korkikorkota » Mon Jun 29, 2020 10:42 am

Here is the whole package. I am sending two packages. "normal" one is before naming soviet units. everything is working fine in this version. The broken version is the one when the editor crashes. Otherwise those two versions are almost identical. Additional in "normal" version there is a strange bug, as you will see there are Croatian as well as Hungarian units in the scenario. However, when I try to reorganize Hungarian infantry units it indicates that the unit has Croatian infantry steps and vise versa, Croatian one has Hungarian infantry steps. I am also sometimes able to add Croatian infantry steps to Hungarian armored unit.

http://www.mediafire.com/file/b7x2ommxg ... w.rar/file

http://www.mediafire.com/file/0dprnxyat ... l.rar/file

korkikorkota
Second Lieutenant
Posts: 6
Joined: Wed Apr 22, 2020 7:02 pm

Re: Scenario editor crashes

Unread postby korkikorkota » Sat Jul 04, 2020 9:35 am

For some reason I managed to rename soviet units. However, now I can not add briefing. I am also making other scenario and problem is the same there game crashes after naming soviet units.

User avatar
Tomislav Uzelac
2x2 Games
Posts: 2211
Joined: Mon Apr 04, 2011 11:24 pm
Location: Zagreb, Croatia

Re: Scenario editor crashes

Unread postby Tomislav Uzelac » Wed Jul 15, 2020 12:57 pm

Hi, sorry for the late reply.

Re: unit names, it is illegal to have two units with the same name. That's why it's not possible to add a new unit in the scenario editor, if there is already an existing unit with the same name.

It's possible, however, to rename a unit to the name of an alredy existing unit. I am now fixing this, and I am also making sure that the game does not crash when it runs into duplicate unit names. This will be live in the next update, whenever that goes live on Steam.

In the meantime, here is a workaround:
  • open the file units.yml in the folder _packages\Spring_aw\data\scenarios\Spring_aw.usc
  • locate duplicate name strings (in this case it is: id_unit_name_brief_18_GTC)
  • change the duplicate string into something else, e.g. "18 GTC NOT" like I did
  • you can now load the scenario in the scenario editor, so go there and rename the units as you'd like

Here is the duplicate tank unit in the scenario you posted:

uoc2_screenshot.png

Anyway, hope this helps.

Cheers!
You do not have the required permissions to view the files attached to this post.