Page 1 of 1
COM for win crash on startup
Posted: Fri Oct 08, 2021 7:11 pm
by masaykh
I have COM 1.02.01 Steam version.
Got update a few days ago.
Now when i try to launch COM i get error as can be seen on attached picture

- Screenshot 2021-10-08 221103.png (11.63 KiB) Viewed 2752 times
Please help

Re: COM for win crash on startup
Posted: Sat Oct 09, 2021 5:27 pm
by Seravy
Looks like it doesn't register the end of the file for some reason.
I've had this problem reported once from a user two versions ago but I changed the type of the string variable used and it fixed it for them so in theory it has to be a different problem this time. Unfortunately this depends on OS or OS settings so I can't reproduce it myself.
When starting the game, a log.txt file should be generated with the size of the .CAS files. Does it have these numbers?
Code: Select all
Loading Script :Master
Detected size =12752
Loading Script :AISSPell
Detected size =9457
Loading Script :AICustomWizard
Detected size =1903
Loading Script :AIRes
Detected size =10311
Loading Script :AIRace
Detected size =895
Loading Script :AIPeOb
Detected size =3902
Loading Script :TreaSpell
Detected size =344
Loading Script :SpellCracksCall
Detected size =356
Loading Script :SpellMysticSurge
Detected size =2305
Loading Script :EcoSkill
Detected size =810
Loading Script :EcoUnrest
Detected size =1472
Loading Script :EcoGold
Detected size =1851
Loading Script :EcoProd
Detected size =1628
Loading Script :EcoPower
Detected size =3150
Loading Script :EcoRes
Detected size =1511
Loading Script :EcoFood
Detected size =1008
Loading Script :EcoMaxPop
Detected size =658
Loading Script :EcoGrowth
Detected size =2765
Loading Script :Settler
Detected size =1501
Loading Script :CreateUnit
Detected size =1041
Loading Script :AIProd
Detected size =6588
Loading Script :AIBuilding
Detected size =7469
Loading Script :AIPreHousing
Detected size =428
Loading Script :FortLig
Detected size =446
Re: COM for win crash on startup
Posted: Sun Oct 10, 2021 9:29 am
by masaykh
Yes, and the sizes are the same as in your message.
Files sizes in Data directory matches detected sizes
I tried to change master.cas manually and the error place is moving with file change
I have windows 10 X64 Eng 21H1
Re: COM for win crash on startup
Posted: Tue Oct 19, 2021 3:19 am
by Seravy
I did find a few remaining variable declarations that use the same string type that caused issues like this in the past for another user.
I've replaced them for the next update. Let's hope that will solve the problem. If it doesn't, let me know.
Until then, a possible workaround might be adding the command "HALT" at the end of every script file.
Re: COM for win crash on startup
Posted: Tue Oct 19, 2021 10:40 am
by masaykh
I confirm that adding "HALT" as last word in the file master.cas resolves issue