Finding maps and tables in Universal Patcher

They go by many names, P01, P59, VPW, '0411 etc . Circa 1999 to 2006. All VPW OBD2 PCMs.
Posts: 135
Joined: Sat Dec 18, 2021 8:15 am
Location: New Jersey, USA

Finding maps and tables in Universal Patcher

Postby darkman5001 » Fri May 20, 2022 9:23 pm

Greetings. I've been playing around alot lately in Universal Patcher with separating the different elements on the GM flash such as engine diags, calibration, etc and it seems to me that everything needed to find dtc and calibration mapping is already part of the program. I am trying to learn what exactly is needed in order to take a flash bin and make it so the Universal Patcher can use it to make changes. I know my way around the program pretty well. I am semi-familiar with Excel as well. I know there is no instructions for Universal Patcher so I really don't know the ins and outs of how it all works but very interested in learning. Thank you in advance guys. This forum is absolutely great.

Posts: 135
Joined: Sat Dec 18, 2021 8:15 am
Location: New Jersey, USA

Re: Finding maps and tables in Universal Patcher

Postby darkman5001 » Sun May 22, 2022 2:06 am

Any input guys???

Posts: 202
Joined: Fri Jul 30, 2021 5:49 pm

Re: Finding maps and tables in Universal Patcher

Postby Cincinnatus » Sun May 22, 2022 6:32 am

I've used patcher to turn off vats for a swap. Tuning I expect you would have to use tunerpro.

Site Admin
User avatar
Posts: 7204
Joined: Sat Feb 28, 2009 8:34 pm

Re: Finding maps and tables in Universal Patcher

Postby antus » Sun May 22, 2022 9:29 am

Do you want to understand how to use it? Or how it finds tables? For finding stuff look in the XML files in the source code here: https://github.com/joukoy/UniversalPatc ... er/Patches It means the developers have found those tables or patches in multiple bins, mapped out what to search for to locate them in other bins, and mapped out a formula for the task in XML. To extend this to a new pcm it'd mean manually finding the tables first time, then coming up with similar recipes and defining them in XML.
Have you read the FAQ? For lots of information and links to significant threads see here: viewtopic.php?f=7&t=1396

User avatar
Posts: 375
Joined: Tue Dec 17, 2019 3:27 am

Re: Finding maps and tables in Universal Patcher

Postby joukoy » Sun May 22, 2022 4:30 pm

TableSeek-*.xml files are used for finding tables
https://github.com/joukoy/UniversalPatc ... aster/XML/
You can edit them using
Patcher -> Settings -> Tableseek

For example, searchstr: 42 43 16 39 @ @ @ @ 78 30
Search this byte sequence. When found, read bytes in "@ @ @ @" and use as table address.

Or you can use static definitions, just add tables in Tuner, Advanced-mode.
Just realized, you can't start new list of tables, need old list and modify it. I need to add button/menu for adding new table...

Posts: 135
Joined: Sat Dec 18, 2021 8:15 am
Location: New Jersey, USA

Re: Finding maps and tables in Universal Patcher

Postby darkman5001 » Mon May 23, 2022 9:16 am

Thanks for the responses, guys. I am going to play around with it some more. I figured out how to separate the bins into segments but after that I didn't know how to use the files generated. I have been looking around a lot in the XML folder trying to put the pieces together on how it works. I also was able to figure out how to find the start address and end address for each segment, so I am getting somewhere, I guess. Still, some of the columns in the different XML file I am trying to figure out what they mean. I have made copies of xml files for other pcms for other pcms and then change the data within the cells as I figure it out more.

Posts: 135
Joined: Sat Dec 18, 2021 8:15 am
Location: New Jersey, USA

Re: Finding maps and tables in Universal Patcher

Postby darkman5001 » Mon May 23, 2022 9:15 pm

When I try making some changes to certain files, I get this error message most of the time.

Index was outside the bounds of the array.


What does this mean and how do I fix it?

User avatar
Posts: 1786
Joined: Sat Dec 15, 2018 7:38 am

Re: Finding maps and tables in Universal Patcher

Postby Gampy » Mon May 23, 2022 11:18 pm

I doubt anyone can help you without seeing what you are doing ... You'll need to show the xml.

An array out of bounds is just that ... accessing an array out of it's bounds.
Let us say you have an array of memory cells, cell_0, cell_1, cell_2, cell_3, cell_4 ... that array is sizeof 5.

The error is from trying to access a value that is outside of the 0-4 range of that array.

Catchum drift ??
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!

Posts: 135
Joined: Sat Dec 18, 2021 8:15 am
Location: New Jersey, USA

Re: Finding maps and tables in Universal Patcher

Postby darkman5001 » Tue May 24, 2022 2:19 am

Gampy wrote:I doubt anyone can help you without seeing what you are doing ... You'll need to show the xml.

An array out of bounds is just that ... accessing an array out of it's bounds.
Let us say you have an array of memory cells, cell_0, cell_1, cell_2, cell_3, cell_4 ... that array is sizeof 5.

The error is from trying to access a value that is outside of the 0-4 range of that array.

Catchum drift ??



Unterstood. I'll have to go through these config files again.

User avatar
Posts: 1786
Joined: Sat Dec 15, 2018 7:38 am

Re: Finding maps and tables in Universal Patcher

Postby Gampy » Tue May 24, 2022 2:46 am

Most typically this error is do to, to many elements for the array.

Check lengths, counts, etc...
Intelligence is in the details!

It is easier not to learn bad habits, then it is to break them!

If I was here to win a popularity contest, their would be no point, so I wouldn't be here!

Next

Return to GM LS1 512Kbyte and 1Mbyte

Who is online

Users browsing this forum: limescale and 2 guests