Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2019-10-28 09:19:11

MadDog
New member
Registered: 2019-10-28
Post 1/2

Question about hacktools algorithm

Hello everyone !

2 years ago I made an evolution editor for the first gen of pokemon(french only). Im a big noob so i think the algorithm i did is very simple and inneficient.

I made a combobox and i added manually all the pokémon, then when you select a pokemon on the combobox it does something like this :


if (cb1.SelectedItem == "Bulbasaur")
{
if (gameCode == "YEL")
{
selectedPkm = "3ba06";
pkmLevel = "3ba07";

It looks like this for yellow version for exemple ! 3ba06 being the offset where the pokemon evos data is located and 3ba07 the lvl. Its VERY long to add manually all offset for both Yellow and blue/red


But by looking at equivalent hacktools i saw that some of them get the pokemon list directly from the pointersn how are they able to do that ?

Can someone post a really short exemple ? Like a hacktools that only show the pokemon list by reading it from a pointer so i can understand ?


thanks :)

Offline

#2 2019-10-28 11:38:48

Rangi
Member
Registered: 2016-05-09
Post 912/921

Re: Question about hacktools algorithm

This looks like Visual Basic or VBScript? Use SelectedIndex, not SelectedItem, and use that as the index into an array of pointers for the evo data, and another of pointers for the levels. Just search for "vbscript arrays", there are various tutorials.

Offline

#3 2019-10-28 11:51:09

MadDog
New member
Registered: 2019-10-28
Post 2/2

Re: Question about hacktools algorithm

Rangi wrote:

This looks like Visual Basic or VBScript? Use SelectedIndex, not SelectedItem, and use that as the index into an array of pointers for the evo data, and another of pointers for the levels. Just search for "vbscript arrays", there are various tutorials.


Hey ! Thanks for your reply :)

It's C#, I will look for pointers array thanks :)

Offline

Board footer

Powered by FluxBB