Layman's guide on how to build Interactive Config UI's
Re: Layman's guide on how to build Interactive Config UI's
xXSkyWalkerXx_1 wrote:And how do I know what's the value of "byteoffset" and "bitsize"?
bitsize depends on the variable type/value range you want to be able to use, use the "limits" header from PoshLemur to see the ranges/limits.
bitsizes:
char/int8:1
in16:2
int32:4
(fix16:2)
fix32:4
Byteoffset is up to you, but depends on the bitsize of other entries . Overlapping values will result in strange behavior on read/write/usage.
Example:
byteoffset=0
bitsize=16 (for uint16, int16, fix16)
will use byteoffset 0 & 1
so your next available one is byteoffset 2
To check for errors/overlapping areas you can use the tool IC-Bytetable:
https://github.com/J2Kbr/GtunerIV/issue ... -257504902
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Layman's guide on how to build Interactive Config UI's
Would like to save 3 loadouts in Modern Warefare. Can someone post an example on how to use the config control in an IC? It's nowhere in the forums, and no examples.
- Code: Select all
/*
<cfgdesc>
[Example Info Section A]
group = false
control = info
color = #ff0000
shortdesc = <font color=#000000>PRIMARY Color:</font> <font color="red"> Red</font> <br/> This is a new line.
[Example Config Section]
group = false
control = config
color = #ff0000
shortdesc = This is an example config section
default = 0
byteoffset = 0
bitsize = 8
item = Example Config 1
item = Example Config 2
item = Example Config 3
</cfgdesc>
*/
-
deadbotempire - Corporal
- Posts: 4
- Joined: Fri May 03, 2019 6:33 am
Re: Layman's guide on how to build Interactive Config UI's
deadbotempire wrote:Would like to save 3 loadouts in Modern Warefare. Can someone post an example on how to use the config control in an IC? It's nowhere in the forums, and no examples.
https://www.consoletuner.com/wiki/index ... n#examples
Search in the Online Resource for “Configuration Descriptor” to get an example by J2kbr that contains all available controls including code to read the settings from the IC into variables.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Who is online
Users browsing this forum: No registered users and 26 guests