GCMD
4 posts
• Page 1 of 1
Re: GCMD
Currently there are two available commands:
1) Refresh the Interactive Configuration interface, to be used when the script makes changes on the settings and is needed reflect the changes on the Interactive Configuration interface.
2) The second and last is also related with the Interactive Configuration interface and allows use pre-formatted strings to make changes in the settings, as the following:
The string representing the configuration is the pmem array in hex format, example:
GIVICFG:000000000100000000FFE2FC18
Is possible change only specifics byte(s) by providing the byte offset (similarly as suggested by you)
GIVICFG:#10:FFFFFF
This will set 3 bytes to 255 starting from position 16. The other bytes are not changed.
GIVICFG:#10:FFFFFF#02:010203040506070809
Here we are doing same as previously and also setting 9 bytes from position 2 with values 1, 2, 3, 4, 5, 6, 7, 8, 9.
If the configuration string does not specify a byte offset (like first example), the byte offset is assumed to be 0 and the configuration array is set to 0 before apply the values from the configuration string.
Updating the Interactive configuration is also possible via script with GCMD:InteractiveConfiguration.GIVICFG, example:
1) Refresh the Interactive Configuration interface, to be used when the script makes changes on the settings and is needed reflect the changes on the Interactive Configuration interface.
- Code: Select all
printf("GCMD:InteractiveConfiguration.Refresh");
2) The second and last is also related with the Interactive Configuration interface and allows use pre-formatted strings to make changes in the settings, as the following:
The string representing the configuration is the pmem array in hex format, example:
GIVICFG:000000000100000000FFE2FC18
Is possible change only specifics byte(s) by providing the byte offset (similarly as suggested by you)
GIVICFG:#10:FFFFFF
This will set 3 bytes to 255 starting from position 16. The other bytes are not changed.
GIVICFG:#10:FFFFFF#02:010203040506070809
Here we are doing same as previously and also setting 9 bytes from position 2 with values 1, 2, 3, 4, 5, 6, 7, 8, 9.
If the configuration string does not specify a byte offset (like first example), the byte offset is assumed to be 0 and the configuration array is set to 0 before apply the values from the configuration string.
Updating the Interactive configuration is also possible via script with GCMD:InteractiveConfiguration.GIVICFG, example:
- Code: Select all
printf("GCMD:InteractiveConfiguration.GIVICFG:0000000001FF9C0000FFE2FC18");
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: GCMD
PoshLemur wrote:Thanks for the detailed posting! I can definitely see how that would be useful. Are there any plans to add more control over Gtuner from within GPC script?
yes, definitively. We have one request on GitHub:
https://github.com/J2Kbr/GtunerIV/issues/220
and we are always open for new suggestions.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 81 guests