Personal request to everyone - please publish in GPC

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

Re: Personal request to everyone - please publish in GPC

Postby UK_Wildcats » Fri Mar 08, 2019 7:48 pm

Naoki95957 wrote:Okay, well I guess this goes back to Wildcats' point

If you are using my point, then you are in trouble. LOL
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Personal request to everyone - please publish in GPC

Postby thedude » Wed Jul 31, 2019 10:39 pm

Published my mappings and script for Virpil control and throttle.
Working, but there are bugs which I am trying to fix, but just recently started programing for this device.
Any contributions are welcome.
https://www.consoletuner.com/greslib/?0&F&0&0&&VmlycGls

Question: an I update my contributions to a newer version, or is it going to be a new one every time I publish?
User avatar
thedude
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Wed Apr 10, 2019 8:09 pm

Re: Personal request to everyone - please publish in GPC

Postby Mad » Wed Jul 31, 2019 11:27 pm

When you go to publish make sure "Replace existing published work" is ticked to update :smile0517:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Personal request to everyone - please publish in GPC

Postby thedude » Thu Aug 01, 2019 7:48 pm

Mad wrote:When you go to publish make sure "Replace existing published work" is ticked to update :smile0517:


I don't seen this option.
I am using GTuner IV 1.2
User avatar
thedude
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Wed Apr 10, 2019 8:09 pm

Re: Personal request to everyone - please publish in GPC

Postby Mad » Thu Aug 01, 2019 9:17 pm

Have you renamed/moved the file since the first upload?
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Personal request to everyone - please publish in GPC

Postby thedude » Sat Aug 03, 2019 6:54 pm

Mad wrote:Have you renamed/moved the file since the first upload?


Yep, that was it.
Sorted, thanks.
User avatar
thedude
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Wed Apr 10, 2019 8:09 pm

Re: Personal request to everyone - please publish in GPC

Postby SirBrass » Fri Dec 18, 2020 8:56 pm

I've no problem publishing in GPC, but it seems that it published as GBC by default. How do I fix that when uploading updates? I'd like for folks to look at my code and give feedback.
User avatar
SirBrass
First Sergeant
First Sergeant
 
Posts: 55
Joined: Sat Dec 05, 2020 3:47 am

Re: Personal request to everyone - please publish in GPC

Postby Mad » Fri Dec 18, 2020 9:11 pm

SirBrass wrote:I've no problem publishing in GPC, but it seems that it published as GBC by default. How do I fix that when uploading updates? I'd like for folks to look at my code and give feedback.

"Publish as GPC Bytecode" is the top checkbox when publishing, and it disabled by default. You can republish and uncheck this option.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Personal request to everyone - please publish in GPC

Postby Scoonix » Sat Jun 26, 2021 1:41 pm

For computer vision tutorial please use this link:

https://www.consoletuner.com/wiki/index ... ter_vision

If at least there would be a starting basic sample that we could easily understand, users could play with it, understand it and share informations/discoveries ,contribute more to the community. But it seems that this part of gtuner is kept "secret".
Sorry, that's my feeling about how this new feature is handled. I understand it's time consuming to make tuto, examples, etc... but just the basic would allow us (ok me) to explore this feature.

Yes, there is a tuto in the forum to install all required things, but I couldn't find any basic example (and if there is and I just couldn't find it, I'm really sorry... really). That's a domain I'm really interested in and getting a starting point would help me share scripts, basic example with other users.

Kind regards to all.
User avatar
Scoonix
Staff Sergeant
Staff Sergeant
 
Posts: 14
Joined: Sun Jul 26, 2020 2:51 pm

Re: Personal request to everyone - please publish in GPC

Postby Mad » Sat Jun 26, 2021 9:36 pm

Scoonix wrote:Sorry, that's my feeling about how this new feature is handled. I understand it's time consuming to make tuto, examples, etc... but just the basic would allow us (ok me) to explore this feature.

gvc_ready and gcv_read: https://www.consoletuner.com/wiki/index ... _functions

Empty GCV script:
Code: Select all
import os
import cv2
import gtuner
 
class GCVWorker:
    def __init__(self, width, height):
        os.chdir(os.path.dirname(__file__))
        if width != 1920 or height != 1080:
            print("WARNING: This GCV script is optimized for 1920x1080 resolution")
        self.gcvdata = bytearray([0xFF, 0xFF, 0xFF, 0xFF, 0xFF])
 
    def __del__(self):
        del self.gcvdata
 
    def process(self, frame):
        return (frame, None)

It's no secret, you'll find all the CV tutorials you need with a quick google search. :smile0517:
For questions and code related help, the CV channel on Discord is pretty good for that.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

PreviousNext

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 45 guests