Handy Monitor Header

GPC2 script programming for Titan Two. Code examples, questions, requests.

Handy Monitor Header

Postby CelticMagic » Sun Aug 20, 2017 3:34 pm

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.
:)
Attachments
MonitorExample.gpc
Example
(929 Bytes) Downloaded 96 times
Monitor.gph
Header File
(987 Bytes) Downloaded 101 times
User avatar
CelticMagic
Private First Class
Private First Class
 
Posts: 2
Joined: Mon Jul 17, 2017 5:24 pm

Re: Handy Monitor Header

Postby antithesis » Sun Aug 20, 2017 9:20 pm

Lovely jubbly! Tally ho and all that...what?

Thanks my good man, that bothered me too.
Official Australian retailer for Titan One, Titan Two and XIM APEX at Mod Squad
User avatar
antithesis
Colonel
Colonel
 
Posts: 1912
Joined: Sat May 28, 2016 10:45 pm

Re: Handy Monitor Header

Postby J2Kbr » Mon Aug 21, 2017 1:32 pm

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
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Handy Monitor Header

Postby Prototype » Mon Aug 21, 2017 3:23 pm

Nice code, thank you :smile0517:
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! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3252
Joined: Sun Dec 16, 2012 1:43 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 116 guests