CX_Freeze:Python error in main script

Post your technical problems here.
Herrscher5
Cadet
Posts: 2
Joined: Mon Nov 18, 2019 7:12 pm

CX_Freeze:Python error in main script

Unread postby Herrscher5 » Mon Nov 18, 2019 7:22 pm

Hi

while starting the tutorial my game crashes and gives me this crash report attacht to this post.
Also when starting a campaing the screen starts to freeze and overlap with the previous menue.

Thanks for any help in advance
IMG_20191118_201911.jpg
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: CX_Freeze:Python error in main script

Unread postby Tomislav Uzelac » Tue Nov 19, 2019 8:13 pm

Hi, please check that your graphics card drivers are up to date. Sometimes with windows 7 (UI looks like that) the driver can be out of date by a few years. If you need help with updating, please post the make and model of your card here.

Also, if your card is an older model, go to Options/Video and set the video quality preset to "Low".

If the game works on "Low" you can try "Medium" etc.

Cheers!

Herrscher5
Cadet
Posts: 2
Joined: Mon Nov 18, 2019 7:12 pm

Re: CX_Freeze:Python error in main script

Unread postby Herrscher5 » Tue Nov 19, 2019 10:31 pm

Hi thanks for the reply.

I tried changing the resolution in game, when this didnt worked I tried it in Steam before opening the game, there I set the resolution to 800/600. Now im unable to open the game.
As for my graphiqe card, it is an AMD Radeon R9 200 series, witch has the newest driver software (tested by clicking in device management on it and choosing the internet search button)

vonstauffenberg
Newcomer
Posts: 1
Joined: Thu Nov 21, 2019 9:14 pm

Re: CX_Freeze:Python error in main script

Unread postby vonstauffenberg » Thu Nov 21, 2019 9:26 pm

Tomislave, imam isti problem vezano za taj cx_Freeze: Python error in main script. Probao sam sve da to riješim. Grafička mi je Radeon RX 560 i ima zadnji instaliran driver.

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

Unread postby Tomislav Uzelac » Fri Nov 22, 2019 6:28 am

OK, if the drivers are up to date (in both cases) I will need the logs to take a look. THIS TOPIC explains where to find them, please find and post them it's not complicated.

@vonstauffenberg: javite se e-mailom na support at unityofcommand dot net sa istim pitanjem pa ćemo rješavati tim putem. Javni forum bi trebao ostati na engleskom. Molim vas logove u svakom slučaju.

kirkibost
Cadet
Posts: 3
Joined: Wed Nov 27, 2019 5:57 pm

Re: CX_Freeze:Python error in main script

Unread postby kirkibost » Wed Nov 27, 2019 6:02 pm

Hi there I am also getting this error on launch. I have already played 14 hours of the game with no problems and my drivers are up to date. I have uninstalled from Stema and re-installed and verified the files. Hope you can help.

Image

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

Unread postby Tomislav Uzelac » Wed Nov 27, 2019 6:08 pm

@kirkibost: please supply the logs as explained in THIS POST.

One thing you might want to try right away is deleting your settings.yml file. The game will create a new default one when restarting.

Cheers!

kirkibost
Cadet
Posts: 3
Joined: Wed Nov 27, 2019 5:57 pm

Re: CX_Freeze:Python error in main script

Unread postby kirkibost » Fri Nov 29, 2019 1:32 am

Hi, deleting the settings.yml file worked.

Thank you for your help. I'm really enjoying your game.

kirkibost
Cadet
Posts: 3
Joined: Wed Nov 27, 2019 5:57 pm

Re: CX_Freeze:Python error in main script

Unread postby kirkibost » Fri Nov 29, 2019 2:02 am

Hi, just to let you know deleting the settings.yml file worked.

Thank you for your help. I'm really enjoying your game.

Dayvit78
Second Lieutenant
Posts: 7
Joined: Mon Nov 09, 2020 8:04 am

Re: CX_Freeze:Python error in main script

Unread postby Dayvit78 » Thu Nov 19, 2020 5:52 am

Hello,
I have a very similar problem.
I was in the scenario Fall Rot East, around turn 9, and watching the AI resolve its turn.
My computer crashed (first time for this game).
The pop-up was very similar to the OPs one. I deleted settings, and restarted my computer. It didn't work (and now there is no settings file).
I hope you are able to help. Thank you!

Here is the log:
INF 2020-11-19 12:49:25,718 tools.steamworks:71 SteamworksPy loaded for Windows
INF 2020-11-19 12:49:25,718 tools.steamworks:81 Steam is running
INF 2020-11-19 12:49:25,765 tools.steamworks:86 Steamworks initialized!
INF 2020-11-19 12:49:26,034 tools.steam_api:255 Steam user stats and achievements successfully fetched
INF 2020-11-19 12:49:26,034 uoc2.paths:247 STEAM ownership PASS for package dlc1
INF 2020-11-19 12:49:26,034 uoc2.paths:247 STEAM ownership PASS for package base
INF 2020-11-19 12:49:26,042 uoc2.paths:366 Installed packages:
INF 2020-11-19 12:49:26,042 uoc2.paths:368 D:\David Games\steamapps\common\Unity of Command 2\_packages\dlc1
INF 2020-11-19 12:49:26,042 uoc2.paths:368 D:\David Games\steamapps\common\Unity of Command 2\_packages\base
INF 2020-11-19 12:49:26,042 uoc2.main:103 ARGS log: None
INF 2020-11-19 12:49:26,042 uoc2.main:109 Platform: Windows-10-10.0.19041
INF 2020-11-19 12:49:26,069 uoc2.main:123 OpenGL error checking DISABLED
ERR 2020-11-19 12:49:26,304 uoc2-exe:24 Traceback (most recent call last):
ERR 2020-11-19 12:49:26,304 uoc2-exe:24 File "uoc2-exe.py", line 17, in <module>
ERR 2020-11-19 12:49:26,304 uoc2-exe:24 File "E:\code\uoc2\uoc2\main.py", line 138, in main
ERR 2020-11-19 12:49:26,304 uoc2-exe:24 ModuleNotFoundError: No module named 'uoc2.settings'