Interactive Configuration ... lost in bytespace ? Helpertool

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

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby Scachi » Tue Jul 31, 2018 11:42 am

prototype wrote:Yes it's very good! Great work, thank you Scachi.
Very useful to find some mistakes like that:
PMem-usage.PNG

I am glad that you like it.
It took a couple of tries go get to a result that was easy enough to spot the important information in and still was easy enough to merge it somehow into the existing program. :wink:
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby Prototype » Tue Jul 31, 2018 12:13 pm

I am glad you did it and the look is great to organize all mods :joia:
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3251
Joined: Sun Dec 16, 2012 1:43 pm

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby Scachi » Tue Jul 31, 2018 4:38 pm

Small update - Additional Features 1.6.1 :
Filehistory for up to 5 last loaded files with right click (context menu) on "File" button.
For that and future additions the program now uses a "bt-ic.ini" file that it creates where the program is located.
The reload icon is now animated for a short time after clicking in it as it was hard to see if the button does anything at all.
The icons and animation files are now included in the .exe and gets unpacked into the dir the ic-bytetable.exe is located on the first run.

Going back to gaming and gpc scripting now ;-)
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby UK_Wildcats » Tue Jul 31, 2018 4:59 pm

I have been making changes to my script and wanted to add some more, so I decided to run your tool again to see what available memory slots that I have.

When I run my WW2 script, I get and error message:

Line 9914 (File .....) Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.

I tried it on a smaller script and it worked. Have you ever encountered this?
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby Scachi » Tue Jul 31, 2018 5:07 pm

Can you pm me the script just for debugging purposes ? I'll delete it afterwards.
The lines between the <cfgdesc> and </cfgdesc> might be enough for me to fix my program.
I think I have no sane checking of bits and bytes used at the moment.
If one sets an ic entry byteoffset > 127 or bit > 7 it mail fail.

I'll add some checking to prevent array limits caused crashes with the next update.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby Scachi » Wed Aug 01, 2018 11:43 am

UK_Wildcats_Fans wrote:I have been making changes to my script and wanted to add some more, so I decided to run your tool again to see what available memory slots that I have.

When I run my WW2 script, I get and error message:

Line 9914 (File .....) Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.

I tried it on a smaller script and it worked. Have you ever encountered this?


I have done some testing with randomly created interactive configuration files,
I got quite a lot of the error you have reported. Thank you for reporting that.

I hope I have fixed now all array related problems in the new version 1.6.2
You can grab it from github and give it a try if you like.
https://github.com/J2Kbr/GtunerIV/issue ... -409021681
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby Scachi » Thu Aug 02, 2018 2:19 pm

Scachi wrote:
UK_Wildcats_Fans wrote:I have been making changes to my script and wanted to add some more, so I decided to run your tool again to see what available memory slots that I have.

When I run my WW2 script, I get and error message:

Line 9914 (File .....) Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.

I tried it on a smaller script and it worked. Have you ever encountered this?


I have done some testing with randomly created interactive configuration files,
I got quite a lot of the error you have reported. Thank you for reporting that.

I hope I have fixed now all array related problems in the new version 1.6.2
You can grab it from github and give it a try if you like.
https://github.com/J2Kbr/GtunerIV/issue ... -409021681


New Version 1.6.3 , changed two things:
The Escape key no longer closes the main window, it will only close the PMEM-Usage window if it has focus when you press Escape.
The PMEM-Usage window gets placed right of the main window when it is opened for the first time when the desktop has enough space left for it to fit.
https://github.com/J2Kbr/GtunerIV/issue ... -409021681
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby Scachi » Thu Aug 02, 2018 8:38 pm

New Version 1.6.4 , fixes another possible cause for a crash - Thanks to UK_Wildcats_Fans for reporting it
https://github.com/J2Kbr/GtunerIV/issue ... -409021681
Last edited by Scachi on Fri Aug 03, 2018 2:40 pm, edited 1 time in total.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby UK_Wildcats » Fri Aug 03, 2018 2:27 pm

Great job figuring this out. Without your tool, I would have been able to identif that I had two problems in my script.

1. I am calling an illegal bitoffset because of my operator error (see below code)
2. I was using the same pmem address (90) for two items.

Code: Select all
[AUTO SPRINT TOGGLE]
group        = true
shortdesc    = Enable or disable the AUTO SPRINT toggles.  You will likley need to disable this toggle when using hold breath with snipers.
byteoffset    = 2
bitsize        = 1
bitoffset    = 90
control        = checkbox
default        = 1
item        = Enable Auto Sprint Toogle


J2Kbr - Shouldn't #1 above be caught when compiling the code? This is a fantastic tool that would awesome to have as part of the Gtuner assuming you can work out something with Scachi.
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Interactive Configuration ... lost in bytespace ? Helper

Postby Scachi » Sun Aug 05, 2018 3:09 pm

New Version 1.6.5:
Checks for all required fields for each control type
Right-click context menu entry to calculate byte/bitsize of selected or checked items
Messageboxes have topmost bit set
PMEM-Usage gui gets the height of the main windows when it gets placed right of the main window

https://github.com/J2Kbr/GtunerIV/issue ... -410526558
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

PreviousNext

Return to Tutorials and FAQs

Who is online

Users browsing this forum: No registered users and 36 guests