mxyconverter error

Gtuner IV general support. Operation, questions, updates, feature request.

mxyconverter error

Postby Dexti » Wed Mar 29, 2017 6:17 pm

So I'm trying to load my own mxyconverter configuration in gpc by alt+clicking from the input translator and pasting it in the code, but it gives me an "GPC error: test.gpc(40): Illegal operation 'mxyconverter'." I tried loading the example configuration given in the documentation and it loads fine. I only replaced the configuration and it gives an error. Here's the code I'm trying to load:
Code: Select all
 init {
 const uint8 mxyconfig[] = {0xFF, 0x00, 0x0F, 0x01, 0x8F, 0x1A, 0x80, 0x1A,
                    0x80, 0x00, 0x2F, 0x00, 0x00, 0x2E, 0x99, 0x38,
                        0x91, 0x3E, 0x59, 0x64, 0x00, 0x64, 0x00, 0x64,
                    0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64,
                    0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64,
                    0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64,
                    0x00, 0x64, 0x00, 0x64, 0x00};
    mxyconverter(mxyconfig);
}


I got it to compile by removing the 0x64, 0x00 repeats, but then it just doesn't work.
User avatar
Dexti
Master Sergeant
Master Sergeant
 
Posts: 28
Joined: Mon Dec 05, 2016 1:54 pm

Re: mxyconverter error

Postby Sillyasskid » Wed Mar 29, 2017 9:20 pm

Code: Select all
#include <mouse.gph>
init {
    const uint8 mxyconfig[] = {
        0xFF, 0x00, 0x0F, 0x01, 0x8F, 0x1A, 0x80, 0x1A, 0x80, 0x00, 0x2F, 0x00,
        0x00, 0x2E, 0x99, 0x38, 0x91, 0x3E, 0x59, 0x64/*0x00, 0x64, 0x00, 0x64,
        0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64, 0x00, 0x64,
        0x00, 0x64, 0x00, 0x64, 0x00*/

    };
mxyconverter(mxyconfig);
}


see if this works. I'm not sure what this curve is suppose to produce.
So I would not be able to know if it actually works.

This might be relevant, make sure you don't already have an input translator config already running, because it wont load in this case.

mxyconverter() fails to load an new configuration if there is an Input Translator with Mouse XY Converter already loaded by the user.

https://www.consoletuner.com/wiki/index ... yconverter
User avatar
Sillyasskid
Captain
Captain
 
Posts: 574
Joined: Sat May 14, 2016 3:07 am

Re: mxyconverter error

Postby J2Kbr » Thu Mar 30, 2017 2:33 pm

There is a bug on the GPC compiler, in the validation routine of the mxyconfig data structure. It already fixed. The update should be released this week/weekend. thanks for reporting.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 74 guests