Page 1 of 2

CX_Freeze:Python error in main script

Posted: Mon Nov 18, 2019 7:22 pm
by Herrscher5
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

Re: CX_Freeze:Python error in main script

Posted: Tue Nov 19, 2019 8:13 pm
by Tomislav Uzelac
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!

Re: CX_Freeze:Python error in main script

Posted: Tue Nov 19, 2019 10:31 pm
by Herrscher5
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)

Re: CX_Freeze:Python error in main script

Posted: Thu Nov 21, 2019 9:26 pm
by vonstauffenberg
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.

Re: CX_Freeze:Python error in main script

Posted: Fri Nov 22, 2019 6:28 am
by Tomislav Uzelac
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.

Re: CX_Freeze:Python error in main script

Posted: Wed Nov 27, 2019 6:02 pm
by kirkibost
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

Re: CX_Freeze:Python error in main script

Posted: Wed Nov 27, 2019 6:08 pm
by Tomislav Uzelac
@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!

Re: CX_Freeze:Python error in main script

Posted: Fri Nov 29, 2019 1:32 am
by kirkibost
Hi, deleting the settings.yml file worked.

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

Re: CX_Freeze:Python error in main script

Posted: Fri Nov 29, 2019 2:02 am
by kirkibost
Hi, just to let you know deleting the settings.yml file worked.

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

Re: CX_Freeze:Python error in main script

Posted: Thu Nov 19, 2020 5:52 am
by Dayvit78
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'