Possible interactive preset config based on a string of #?

GPC2 script programming for Titan Two. Code examples, questions, requests.

Re: Possible interactive preset config based on a string of

Postby Scachi » Fri Mar 09, 2018 5:47 pm

NitemareMarauder wrote:Would it also be possible to allow in script code to modify the preset code? My idea stems from picking a weapon name and stance name with two comboboxes and then using those two conditions to set the options based on a database of preset codes for example weapon1 and stance1 is preset1, weapon1 and stance2 is preset2 etc. So i guess that also means this preset code option has to have configurable variables for which bytes/bits are going to be the ones set by the preset code.

Good idea, maybe it is possible to implement with a printf command like the GCMD for refreshing the interactive configuration window.

So when I want to update the byteoffsets 1,2 and 5 I can do something like #1:14#2:33#5:2
printf("GCMD:IC.Set:#1:14#2:33#5:2");

Where
#1:14 = 1: is the byteoffset
#1:14 = 14: is the value for the byteoffset
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Possible interactive preset config based on a string of

Postby Scachi » Wed Mar 14, 2018 1:13 am

I have created something like that for a personal script, settings multiple value of Interactive Configuration controls with a single string according to a combobox selection.
It is added to the Online Resource, some more info here: viewtopic.php?f=23&t=8228&p=60067#p60067
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Possible interactive preset config based on a string of

Postby J2Kbr » Wed Mar 14, 2018 10:23 am

Scachi wrote:I have created something like that for a personal script, settings multiple value of Interactive Configuration controls with a single string according to a combobox selection.
It is added to the Online Resource, some more info here: viewtopic.php?f=23&t=8228&p=60067#p60067

:joia: :joia: :smile0517:
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Previous

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 56 guests