Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Log to screen or file Basic module

Author
Message
MobileCreator
13
Years of Service
User Offline
Joined: 1st Jun 2011
Location: Ottawa - Canada
Posted: 3rd Oct 2011 00:04 Edited at: 3rd Oct 2011 03:33
I believe 100% of the people here use print statement on screen and/or file to debug their Basic games.

I've came up with a module that allows you to show the logs on screen, keeping only the 10 most recent messages, add timestamp to the message and optionally save to a log file.

See the comments at the beginning to know what global variables you have to create on your main.agc file.

Here is the log.agc file:



I hope it will be useful to someone else. Suggestions to improve it is also welcome.

This image shows how the messages are displayed.



(*) I'd forgotten the font file I used. Now it is attached here...

Cheers


Paulo Garcia

----------
Paulo
http://www.mobilecreators.com

Attachments

Login to view attachments
MobileCreator
13
Years of Service
User Offline
Joined: 1st Jun 2011
Location: Ottawa - Canada
Posted: 10th Oct 2011 21:43
Hi folks, I've added this free code to the CodeBase.

In case you don't know (I didn't), under "My account" there is a link called "Code Base" where you can add your contribution on browser for other free resources made by the community. As I write this there are 5 entries for AGK.

Cheers

----------
Paulo
http://www.mobilecreators.com
Davee
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: North West of England
Posted: 11th Oct 2011 00:29
Thanks for that, I was going to suggest adding to the codebase.

Of all the things I've lost, it's my... my... oh darn it.

Login to post a reply

Server time is: 2024-11-22 02:22:43
Your offset time is: 2024-11-22 02:22:43