GPC2 Language Reference

Tutorials, How-tos and FAQs for the Titan Two device.

Re: GPC2 Language Reference

Postby bonefisher » Sat Dec 03, 2016 4:00 am

Only thing about the link is I don't really sign up to things but that's just me.
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: GPC2 Language Reference

Postby J2Kbr » Sat Dec 03, 2016 7:53 am

pablogroup wrote:I was actually thinking if there were some way to link to scripts (https://github.com/J2Kbr/GtunerIV/issues/85), we could add links to scripts that make good use of particular functions.

With the web interface, yes, add links to script is just an matter of copy-and-paste! :)
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: GPC2 Language Reference

Postby pablosscripts » Sat Dec 03, 2016 9:43 am

Oh so there will be a web interface coming? Sweet!
Setup: XIM Apex, T2, K780 keyboard, G Pro Wireless mouse, SteelSeries 4HD pad, DXRacer armrest, LucidSound LS30 headset, Netduma router, Ubiquiti UniFi AP LR

My R6 script: https://youtu.be/x-9NtxyySVM
User avatar
pablosscripts
Brigadier General
Brigadier General
 
Posts: 1976
Joined: Tue Nov 24, 2015 6:27 am

Re: GPC2 Language Reference

Postby pablosscripts » Sat Dec 03, 2016 9:58 am

I'm testing the printf() function, and added this to my init section:

printf("test");

But it didn't display anything in the compile window. What am I doing wrong?
Setup: XIM Apex, T2, K780 keyboard, G Pro Wireless mouse, SteelSeries 4HD pad, DXRacer armrest, LucidSound LS30 headset, Netduma router, Ubiquiti UniFi AP LR

My R6 script: https://youtu.be/x-9NtxyySVM
User avatar
pablosscripts
Brigadier General
Brigadier General
 
Posts: 1976
Joined: Tue Nov 24, 2015 6:27 am

Re: GPC2 Language Reference

Postby J2Kbr » Sat Dec 03, 2016 10:15 am

pablogroup wrote:Oh so there will be a web interface coming? Sweet!

yes, definitively.

pablogroup wrote:I'm testing the printf() function, and added this to my init section: printf("test"); But it didn't display anything in the compile window. What am I doing wrong?

you are doing right:
Code: Select all
init {
    printf("test");
}


the message is show in the output panel:
printf test.png
printf test.png (7 KiB) Viewed 5288 times
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: GPC2 Language Reference

Postby pablosscripts » Sat Dec 03, 2016 11:01 am

Ok thanks, it's definitely not working for me. Is this only working on an unreleased version of Gtuner IV?
Setup: XIM Apex, T2, K780 keyboard, G Pro Wireless mouse, SteelSeries 4HD pad, DXRacer armrest, LucidSound LS30 headset, Netduma router, Ubiquiti UniFi AP LR

My R6 script: https://youtu.be/x-9NtxyySVM
User avatar
pablosscripts
Brigadier General
Brigadier General
 
Posts: 1976
Joined: Tue Nov 24, 2015 6:27 am

Re: GPC2 Language Reference

Postby J2Kbr » Sat Dec 03, 2016 11:38 am

pablogroup wrote:Ok thanks, it's definitely not working for me. Is this only working on an unreleased version of Gtuner IV?

actually this should work with the latest beta version available for download. Have you checked on win and mac versions? I tested on win, perhaps it is an bug on mac port.
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: GPC2 Language Reference

Postby pablosscripts » Sat Dec 03, 2016 11:41 am

Yup I'm on Mac, but I just checked on my PC and it's the same:

Image
Setup: XIM Apex, T2, K780 keyboard, G Pro Wireless mouse, SteelSeries 4HD pad, DXRacer armrest, LucidSound LS30 headset, Netduma router, Ubiquiti UniFi AP LR

My R6 script: https://youtu.be/x-9NtxyySVM
User avatar
pablosscripts
Brigadier General
Brigadier General
 
Posts: 1976
Joined: Tue Nov 24, 2015 6:27 am

Re: GPC2 Language Reference

Postby Scachi » Sat Dec 03, 2016 12:39 pm

It doesn't print anything when compiling.
It needs to be run to output something with printf.
J2Kbr did compile & run it with "Test and Debug", it looks like you just compiled it.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: GPC2 Language Reference

Postby J2Kbr » Sat Dec 03, 2016 12:45 pm

Scachi wrote:It doesn't print anything when compiling.
It needs to be run to output something with printf.
J2Kbr did compile & run it with "Test and Debug", it looks like you just compiled it.

+1
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

PreviousNext

Return to Tutorials and FAQs

Who is online

Users browsing this forum: No registered users and 46 guests