wait () command in Titan Two...

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

wait () command in Titan Two...

Postby antithesis » Fri Aug 19, 2016 10:34 pm

Titan One's wait command peaks at 4000 ms. They can be stacked, but at the expense of bytecode.

What will be the limit on wait (or the equivalent command) on Titan Two?
Last edited by antithesis on Sat Aug 20, 2016 9:00 am, edited 1 time in total.
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: wait () command in Titan Two...

Postby bonefisher » Fri Aug 19, 2016 10:44 pm

Seen the info around here somewhere but can't find it. I believe there is no limit what was said. Take a look it is in here somewhere!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: wait () command in Titan Two...

Postby Vendetta » Sat Aug 20, 2016 9:08 pm

He states it here; http://www.consoletuner.com/forum/viewtopic.php?f=23&t=3417&p=27135&hilit=4000ms#p27135

"Titan Two is not limited to the 4000ms maximum for time measures
    Playstation PS4, Astro A50 Gen 3, Elgato Game Capture HD60 S
    2x Benq 27” Gaming Monitors, Netduma R1 Gaming Router
    Titan One/Two Controller Input Device, Battle Beaver PS4 Controller, SCUF Infinity4PS Controller
User avatar
Vendetta
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 226
Joined: Fri Jul 31, 2015 8:40 pm

Re: wait () command in Titan Two...

Postby J2Kbr » Mon Aug 22, 2016 10:08 am

correct, the wait statement, on the new scripting language, can go from 1ms to 32767ms. A wide range that can cover any requirements.
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: wait () command in Titan Two...

Postby antithesis » Mon Aug 22, 2016 10:26 am

J2Kbr wrote:correct, the wait statement, on the new scripting language, can go from 1ms to 32767ms. A wide range that can cover any requirements.


Thanks for the confirmation, I can definitely use 30 secs of that :smile0204:

Does it also apply to get_ptime () ?

Here's the reason I'm curious - viewtopic.php?f=6&t=4422&p=33034#p33034

To get this snippet to work, get_ptime (15000) would need to be possible. The follow-up event_press (CROUCH) could happen anywhere from 5 seconds to 15 seconds later, depending on manual or automatic respawn (Destiny sometimes checks for an available respawn location).
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: wait () command in Titan Two...

Postby pablosscripts » Tue Aug 23, 2016 5:17 am

I was actually just about to ask this question. 32767ms is heaps!
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: wait () command in Titan Two...

Postby J2Kbr » Tue Aug 23, 2016 9:08 am

antithesis wrote:
J2Kbr wrote:Does it also apply to get_ptime () ?

Not exactly. the equivalent to get_ptime on Titan Two is time_actived(), it returns a 32-bit unsigned int, which can measure the "activated time" from 0 to 4294967295ms, or 49 days. :whistling:

Also, we have - for Titan Two - a new function called time_resting(), which measures for how long a button is in the resting position - here it can track up to 49 days too.
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: wait () command in Titan Two...

Postby The_Rabid_Taco » Tue Aug 23, 2016 1:43 pm

49 days! Holy poop on a stick! Now that is tracking! Oh, I can already see the new scripts, left to run for days on end, except my playstation is never left alone for that long. LOL
User avatar
The_Rabid_Taco
Major
Major
 
Posts: 1066
Joined: Wed Mar 16, 2016 6:04 pm
Location: Pensacola, FL

Re: wait () command in Titan Two...

Postby antithesis » Tue Aug 23, 2016 11:57 pm

J2Kbr wrote:
antithesis wrote:
J2Kbr wrote:Does it also apply to get_ptime () ?

Not exactly. the equivalent to get_ptime on Titan Two is time_actived(), it returns a 32-bit unsigned int, which can measure the "activated time" from 0 to 4294967295ms, or 49 days. :whistling:

Also, we have - for Titan Two - a new function called time_resting(), which measures for how long a button is in the resting position - here it can track up to 49 days too.

I think 49 days should cover it...just :shocked:
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: wait () command in Titan Two...

Postby bonefisher » Wed Aug 24, 2016 12:00 am

Man I really needed 50 days out of this.....lol! :a1chill_angry1:
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Next

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 156 guests