Product Chat / Date error when saving game (please put this on git-hub)

Author
Message
Wolf
Forum Support
16
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 1st Feb 2020 16:51
Hey gang!

I am currently alpha testing a game and ran into a major problem that can be quite frustrating for people intending to sell their game.
So here goes: You know how you can see your date and time at the lower right corner of your screen? Well GG does save the date and time of a saved game if you make a game save (that was not the most eloquent way to put it, but I am sure you follow)

Now, in windows you can have your date displayed in various formats. For the EU it would be 01/20/2020 and for the US: 01 - FEB - 20. However, it seems to be the case that if the game creator has a different format set up than the player, the game crashes while saving with the error you see in the attached images.

Now I dont have a git-hub account, as a non-coder I dont have much to contribute. but I am sure someone who is active on there could put that on there! Thank you!



-Wolf

Attachments

Login to view attachments
Corno_1
GameGuru Tool Maker
13
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 1st Feb 2020 17:21
Done
https://github.com/TheGameCreators/GameGuruRepo/issues/678
Ebe Editor Free - Build your own EBE structures with easy and without editing any text files
Thread and Download
PM
Wolf
Forum Support
16
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 1st Feb 2020 19:20
Thank you Corno!

It did however turn out that it still crashes with this error in level 2 of the game (not level 1) so I am now at a loss at what causes this.
I will test it further but maybe some of you code savvy folks have some insight.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 1st Feb 2020 19:54


Quote: "If you call date without any arguments, it uses the %c format, that is, complete date and time information in a reasonable format."


It looks like os.date() must be provided with some sort of args before be called, in order to cover different date formats.
There is a table values here.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 2nd Feb 2020 22:17
@ Wolf
Meantime why you don't try with names, rather than date.

Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

Attachments

Login to view attachments
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 3rd Feb 2020 22:06
Strange issue...?
Did it work with the date- 3com?
PM

Login to post a reply

Server time is: 2024-10-07 00:35:32
Your offset time is: 2024-10-07 00:35:32