mxyconverter error
3 posts
• Page 1 of 1
mxyconverter error
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:
I got it to compile by removing the 0x64, 0x00 repeats, but then it just doesn't work.
- 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.
-
Dexti - Master Sergeant
- Posts: 28
- Joined: Mon Dec 05, 2016 1:54 pm
Re: mxyconverter error
- 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
-
Sillyasskid - Captain
- Posts: 574
- Joined: Sat May 14, 2016 3:07 am
Re: mxyconverter error
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
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 74 guests