Handy Monitor Header
4 posts
• Page 1 of 1
Handy Monitor Header
Hi
Im just getting into programming the T2 (ex T1 user) and was getting a bit frustrated with the printf hang thing when I wanted to see real time data whilst debugging. So I threw together a little monitor subroutine that does not use fprint until it really has to ie the data has changed and throttles back the refresh rate to let you read it. I prefer using integers so that is how I wrote it but you could easily tweak it to use floats. I've found it very handy hope it helps you guys.
See the example script - its dead easy.
Best
Graham
PS As Im in the UK if anyone says 'Awesome' - Ill feel sad.
Jolly good would be nice.
Im just getting into programming the T2 (ex T1 user) and was getting a bit frustrated with the printf hang thing when I wanted to see real time data whilst debugging. So I threw together a little monitor subroutine that does not use fprint until it really has to ie the data has changed and throttles back the refresh rate to let you read it. I prefer using integers so that is how I wrote it but you could easily tweak it to use floats. I've found it very handy hope it helps you guys.
See the example script - its dead easy.
Best
Graham
PS As Im in the UK if anyone says 'Awesome' - Ill feel sad.
Jolly good would be nice.
- Attachments
-
- MonitorExample.gpc
- Example
- (929 Bytes) Downloaded 96 times
-
- Monitor.gph
- Header File
- (987 Bytes) Downloaded 101 times
-
CelticMagic - Private First Class
- Posts: 2
- Joined: Mon Jul 17, 2017 5:24 pm
Re: Handy Monitor Header
Lovely jubbly! Tally ho and all that...what?
Thanks my good man, that bothered me too.
Thanks my good man, that bothered me too.
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
Re: Handy Monitor Header
Hi Graham, Really nice header!! if possible, please also publish in the Gtuner's Online Resources. This will be great addition. Thanks.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Handy Monitor Header
Nice code, thank you
This code deserve to be in the Gtuner's Online Resources!
This code deserve to be in the Gtuner's Online Resources!
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3252
- Joined: Sun Dec 16, 2012 1:43 pm
4 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 116 guests