Layman's guide on how to build Interactive Config UI's

Tutorials, How-tos and FAQs for the Titan Two device.

Re: Layman's guide on how to build Interactive Config UI's

Postby Scachi » Sat Oct 06, 2018 8:01 pm

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
User avatar
Scachi
Brigadier General
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

Postby deadbotempire » Sat Feb 06, 2021 11:59 pm

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>
*/

 
User avatar
deadbotempire
Corporal
Corporal
 
Posts: 4
Joined: Fri May 03, 2019 6:33 am

Re: Layman's guide on how to build Interactive Config UI's

Postby Mad » Sun Feb 07, 2021 12:57 am

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 (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Layman's guide on how to build Interactive Config UI's

Postby deadbotempire » Tue Feb 09, 2021 5:25 pm

Found it. :smile0517:
User avatar
deadbotempire
Corporal
Corporal
 
Posts: 4
Joined: Fri May 03, 2019 6:33 am

Previous

Return to Tutorials and FAQs

Who is online

Users browsing this forum: No registered users and 22 guests