CX_Freeze:Python error in main script problem

Post your technical problems here.
Karoch
Cadet
Posts: 2
Joined: Fri Feb 21, 2020 7:32 pm

CX_Freeze:Python error in main script problem

Unread postby Karoch » Fri Feb 21, 2020 7:53 pm

Hello, can someone help me with this problem? Every time I log in to the game, after 15 seconds, I get an error that is specified in the title of the post. (settings.yml tried to delete, does not help)

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

Re: CX_Freeze:Python error in main script problem

Unread postby Tomislav Uzelac » Fri Feb 21, 2020 10:07 pm

Hi, please attach log.txt and clog.txt files - they are in the same folder as settings.yml.

Cheers!

Karoch
Cadet
Posts: 2
Joined: Fri Feb 21, 2020 7:32 pm

Re: CX_Freeze:Python error in main script problem

Unread postby Karoch » Sat Feb 22, 2020 5:23 am

INF 2020-02-21 22:09:45,376 tools.steamworks:71 SteamworksPy loaded for Windows
INF 2020-02-21 22:09:45,379 tools.steamworks:81 Steam is running
INF 2020-02-21 22:09:45,455 tools.steamworks:86 Steamworks initialized!
INF 2020-02-21 22:09:46,352 tools.steam_api:224 Steam user stats and achievements successfully fetched
INF 2020-02-21 22:09:46,562 uoc2.paths:321 Installed packages:
INF 2020-02-21 22:09:46,563 uoc2.paths:323 C:\Program Files (x86)\Steam\steamapps\common\Unity of Command 2\_packages\base
INF 2020-02-21 22:09:46,568 uoc2.main:102 ARGS log: None
INF 2020-02-21 22:09:46,594 uoc2.main:108 Platform: Windows-8.1-6.3.9600
INF 2020-02-21 22:09:46,603 uoc2.main:122 OpenGL error checking DISABLED
INF 2020-02-21 22:09:47,878 uoc2.settings:210 Initializing settings
WAR 2020-02-21 22:09:47,880 uoc2.settings:216 Settings not found: C:\Users\Валентина\AppData\Local\.uoc2\settings.yml
INF 2020-02-21 22:09:49,373 uoc2.init:56 SDL version: 2.0.10
INF 2020-02-21 22:09:49,375 uoc2.init:59 SDL_TTF version: 2.0.15
INF 2020-02-21 22:09:49,376 uoc2.init:62 SDL_Mixer version: 2.0.4
INF 2020-02-21 22:09:49,377 uoc2.init:65 SDL_Image version: 2.0.5
INF 2020-02-21 22:09:49,379 uoc2.init:76 Video driver 0: windows [Current]
INF 2020-02-21 22:09:49,380 uoc2.init:76 Video driver 1: dummy
INF 2020-02-21 22:09:49,653 uoc2.init:92 Audio driver: wasapi
INF 2020-02-21 22:09:49,654 uoc2.init:97 16 audio channels alocated
INF 2020-02-21 22:09:52,616 uoc2.init:119 Display 0: 1366x768 (0, 0, 1366, 768) [Current]
INF 2020-02-21 22:09:52,692 OpenGL.acceleratesupport:13 OpenGL_accelerate module loaded
INF 2020-02-21 22:09:52,738 OpenGL.arrays.arraydatatype:277 Using accelerated ArrayDatatype
INF 2020-02-21 22:09:54,496 uoc2.init:175 OpenGL version: 3.3.12820 Core Profile Context 13.352.1013.1001
INF 2020-02-21 22:09:54,531 uoc2.init:178 GL_MAX_TEXTURE_IMAGE_UNITS: 32
INF 2020-02-21 22:09:54,532 uoc2.init:181 GL_MAX_TEXTURE_SIZE: 16384
INF 2020-02-21 22:09:54,681 uoc2.init:184 GL_ARB_gpu_shader5: True
INF 2020-02-21 22:09:54,683 uoc2.init:187 GL_EXT_texture_filter_anisotropic: True
INF 2020-02-21 22:09:54,685 uoc2.init:191 GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT: 16.0
INF 2020-02-21 22:09:54,687 uoc2.init:203 OpenGL context: 3.3
INF 2020-02-21 22:09:54,688 uoc2.init:207 Double-buffered: True
INF 2020-02-21 22:09:54,689 uoc2.init:211 Accelerated: True
INF 2020-02-21 22:09:54,860 uoc2.init:131 Displaying splash screen
INF 2020-02-21 22:09:55,257 engine.gl.textures:154 Initializing ground textures
INF 2020-02-21 22:10:00,941 engine.gl.atlases:86 Loading atlases
INF 2020-02-21 22:10:03,988 uoc2.sounds:35 Loading sounds
INF 2020-02-21 22:10:04,518 uoc2.music:47 Loading music
INF 2020-02-21 22:10:04,677 engine.gl.shader_manager:46 Initializing shader groups
INF 2020-02-21 22:10:06,544 engine.gl.model_manager:69 Loading models
INF 2020-02-21 22:10:11,162 engine.gl.renderer2d:462 Initializing Renderer2D
INF 2020-02-21 22:10:11,863 tools.localization:93 Loading locale
INF 2020-02-21 22:10:17,501 engine.ui.tooltips:202 Loading tooltips
INF 2020-02-21 22:10:24,269 uoc2.music:113 playing main_screen: 0. Privates And Peers.ogg
WAR 2020-02-21 22:10:27,830 uoc2.sounds:154 Missing sound unhover
INF 2020-02-21 22:10:33,992 uoc2.game_world.ctrl:196 GameWorldCtrl.cr_setup: new standalone game tutorial_1
INF 2020-02-21 22:10:34,259 uoc2.state.gamelike.gamelike:86 Loading map C:\Program Files (x86)\Steam\steamapps\common\Unity of Command 2\_packages\base\data\maps\louisiana
INF 2020-02-21 22:10:38,903 uoc2.common.world_view:96 tiles_to_load: ((0, 0), (9, 10))
INF 2020-02-21 22:10:38,905 uoc2.common.cache:50 Loading map cache C:\Program Files (x86)\Steam\steamapps\common\Unity of Command 2\_packages\base\data\maps\louisiana\__cache
INF 2020-02-21 22:10:48,236 uoc2.common.cache:189 Preloading map cache took: 9.29s
INF 2020-02-21 22:10:57,130 engine.gl.renderer3d:211 Renderer3D._init_framebuffers
INF 2020-02-21 22:10:57,222 tools.steam_api:165 Shutting down Steam
ERR 2020-02-21 22:10:57,228 uoc2-exe:24 Traceback (most recent call last):
ERR 2020-02-21 22:10:57,229 uoc2-exe:24 File "uoc2-exe.py", line 17, in <module>
ERR 2020-02-21 22:10:57,230 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\uoc2\main.py", line 286, in main
ERR 2020-02-21 22:10:57,232 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\engine\ui\system.py", line 652, in main_loop
ERR 2020-02-21 22:10:57,233 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\engine\ui\system.py", line 1028, in _run_coroutines_and_signals
ERR 2020-02-21 22:10:57,234 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\tools\coroutine.py", line 75, in switch
ERR 2020-02-21 22:10:57,235 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\uoc2\main_screen\ctrl.py", line 1625, in _cr_setup_world
ERR 2020-02-21 22:10:57,236 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\uoc2\game_world\ctrl.py", line 234, in cr_setup
ERR 2020-02-21 22:10:57,237 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\engine\gl\renderer3d.py", line 163, in __init__
ERR 2020-02-21 22:10:57,238 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\engine\gl\renderer3d.py", line 296, in _init_framebuffers
ERR 2020-02-21 22:10:57,239 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\engine\gl\framebuffer.py", line 37, in __init__
ERR 2020-02-21 22:10:57,240 uoc2-exe:24 File "C:\Users\Jure\Documents\uoc2\engine\gl\framebuffer.py", line 63, in _check_status
ERR 2020-02-21 22:10:57,242 uoc2-exe:24 RuntimeError: GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER

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

Re: CX_Freeze:Python error in main script problem

Unread postby Tomislav Uzelac » Sat Feb 22, 2020 7:45 am

You need to update your graphics driver, the currently installed version (13.352.1013.1001) is from 2015.

We have seen this problem repeatedly for older AMD/ATI cards. Please go to this site and see if you can update your drivers:
https://www.amd.com/en/support/kb/faq/gpu-131