Some problems with Custom Game Script file

Technical support requests for Capitalism Lab
Post Reply
foxtrotf
Level 2 user
Posts: 26
Joined: Tue Jun 23, 2020 1:30 pm
Has thanked: 2 times

Some problems with Custom Game Script file

Post by foxtrotf »

Hello! After some update, may be half a year ago, or so. I started to facing some strange errors when creating New Custom Game with script files. Sometimes I'm using my custom files for this.
It was working fine without any error, but after update it started to throw errors. It took me a while to figure out that file encoding is the problem. So if the script file is saved using anything else than ANSI, game will throw error. For example same script file saved with UTF-8 will throw error and same file saved with ANSI will not.
You could take for example default predefined script file e.g. (autosave every 10 days) and save it using UTF-8, and on some circumstances it will even disappear from the "LOAD FILE" dialog window.
Could you please suggest me, is this problem on my end, OS or may be locale settings or it's game problem?
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9356
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 17 times
Been thanked: 48 times

Re: Some problems with Custom Game Script file

Post by David »

You could take for example default predefined script file e.g. (autosave every 10 days) and save it using UTF-8, and on some circumstances it will even disappear from the "LOAD FILE" dialog window.
I opened autosave every 10 days.txt and it is using UTF-8 already - see attached.

Please provide your script file and we will look into it.
Attachments
utf.jpg
utf.jpg (61.81 KiB) Viewed 615 times
foxtrotf
Level 2 user
Posts: 26
Joined: Tue Jun 23, 2020 1:30 pm
Has thanked: 2 times

Re: Some problems with Custom Game Script file

Post by foxtrotf »

Hello David, thank you for the reply.
Yep, can confirm. This is my bad, my excuses, two of mine text processing app, including Notepad displayed me, that it is UTF-8, but instead they saved to UTF-8-BOM. And I have no clues why.
Post Reply