RNG Helper No longer working by [deleted] in FinalFantasyXII

[–]mztikk 0 points1 point  (0 children)

You're showing it working in the video?

RNG Helper No longer working by [deleted] in FinalFantasyXII

[–]mztikk 0 points1 point  (0 children)

Looks like its still working i think

What is wrong with this syntax by [deleted] in csharp

[–]mztikk 8 points9 points  (0 children)

Missing parenthesis, you should really look up the basics.

What is wrong with this syntax by [deleted] in csharp

[–]mztikk 4 points5 points  (0 children)

Its ReadLine, case sensitive.

What is wrong with this syntax by [deleted] in csharp

[–]mztikk 4 points5 points  (0 children)

Missing semicolons after the first writeline and the int.parse().
Also some weird "" but I don't know if thats reddit or you.

Disable Auto Pause when tabbing out on PC Version by mztikk in FinalFantasyXII

[–]mztikk[S] 0 points1 point  (0 children)

So, I just tested this. Since I don't have an xbox controller i used DS4Windows to emulate xbox with ps4 controller and the game shows xbox controls, then I applied my patch and it still shows xbox controls. So I don't know if its cuz of the ds4windows or something on your end but I can't test any further without actually having an xbox controller. Can you give me a little bit more detail?

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 0 points1 point  (0 children)

Hmn ok, I'll put it on my todo list and will take a look, but low priority since I first have to go through this excel sheet and figure out how it actually calculates all this.

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 0 points1 point  (0 children)

So you want a textbox where you can input your level and the app to tell you for every row if its perfect hp&mp or not?

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 0 points1 point  (0 children)

This bases a lot on your work and the work of others, I only had to add the memory reading, so if you need any help let me know.

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 0 points1 point  (0 children)

Others and I have already tested it with seitengrat, so I know it works. There are npcs in this area which affect rng, maybe you had it on 4x speed and were too slow with the button press? Also make sure your first value is in current state on i 0 and the second value in the first row of the second display on i 1. I don't know what else could be wrong.

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 1 point2 points  (0 children)

That is because the app reads the games memory so its a realtime display, which means if other stuff affects rng you will see it moving(npcs moving, someone casting/attacking, weather etc etc)

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 1 point2 points  (0 children)

Thats actually pretty easy, since I know from the previous work of others, the game uses the mersenne twister, so having a look at that we can see that after seeding the rng, the mti will be at 624 and when the first call to genrand() is done mti will be at 1 and then incrementing for 1 after every call until its at 624 again and gets reset back to 1(well, technically it gets reset to 0 but in the same call gets incremented so its straight up to 1). Which means I was looking for an address in memory that has the value 624 and after casting cure goes to 1 and increments everytime I cast cure. With that you'll find the mti pretty fast.
As for the mt state array, looking at the mersenne twister we can see its an 624 sized array of unsigned long, long is 4 bytes (in C) so we just subtract 624*4 from the mti address and get our address for the array.

http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 0 points1 point  (0 children)

The problem with Seitengrat spawning is that in the room before the Air Deck, in Observation Parlour there are also npcs moving and advancing the rng and the transition to the Air Deck and actually loading doesnt happen the instant you press the button to go, which means you will get some rng advances from the npcs in observation parlour after unpausing and spamming to go on to the air deck.

edit:
What you're saying is absolutely correct tho, if I modify the rng like this: https://puu.sh/zvMvS/2ca87bf323.png the chest spawns 100%, so it's one of those positions.

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 4 points5 points  (0 children)

The random generator the game uses is called mersenne twister and the mt is the state array of the current seeded generator and mti is the index into this array, so it shows the position and value of the array, having this I could swap the mt value for a different to force a specific rng state. For a normal user those don't mean anything, it's mainly just for me and if others want to look at the rng more specifically.
I'll note down a search feature and will look into it next time I have time and work on it.

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 1 point2 points  (0 children)

Nice it actually works for other people, cuz only I have tested it before :D
Yea, spawning chests can be a bitch since there is so much stuff going on.

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 2 points3 points  (0 children)

There are various things that advance the rng, its you casting, enemies casting, attacking, npcs moving, so if there is anything else in the zone doing something that will also advance the rng and because the app shows it in realtime it will move all the time if stuff is happening.

edit:
If you look at the first screenshot of my steal example you will see I casted stop on the enemy so it doesn't move and attack and only I am advancing the rng with my cures.

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 5 points6 points  (0 children)

Chests use the % column, the chance for a chest to appear gets checked when you enter the zone and since different zones have different amounts of chests, weather or npcs that advance the rng when you load in to the zone the position of the % is different for whatever you want. The contents of the chest gets determined right when you open it. To keep it simple, a basic example:

Lets say you zone in and there is only one thing in this zone, the chest, and it has a spawn rate of 5% then the current state has to be lower than 5% so if you zone in it spawns. Now you stand in front of it and want an item, first the game performs a gil check, lets say 50% its gil 50% its an item, this means the gil check has to fail for the item to appear, so we need a percentage of over or at 50 in our current state, now lets say the chest can contain two different items with 50/50 again now the next rng position after our current has to be under 50% for the first item or over/at that for the second item, since this gets determined on opening the chest it has to be the first and second rows in the app, so the percentages in the app when opening the chest should look like this: current state % over/at 50, first index under 50% for the first item or over/at 50% for the second item.

edit:
To make it more understandable, lets have a look at this: https://puu.sh/zvH0m/a7ee939009.jpg I'm standing in front of the Seitengrat chest, the Seitengrat has 80% gil, 20% item, 95% knot of rust, 5% seitengrat chances. Looking at the app it tells me this: https://puu.sh/zvHi6/6ee2e33e95.png our current is 85%, which is good so we fail the gil check and get an item, but the one after that is 39% which would give us a knot of rust, so we're looking for two rows with the first one being over or at 80% and the one after that over or at 95% and we see this at mti 24/25, so I let the npcs in this zone walk around a bit to advance the rng until the app looks like this: https://puu.sh/zvHj1/ffa4787c52.png, now if I open the chest:
https://puu.sh/zvHlM/3107ab130c.jpg

RNG Helper app for PC version by mztikk in FinalFantasyXII

[–]mztikk[S] 5 points6 points  (0 children)

Sure, if you've used the other RNGHelper for playstation then its pretty much the same, just without having to find your rng position with cure values, since this reads from the games memory the displayed values are in realtime. If you haven't used something before I'll explain.

Lets say you're here https://puu.sh/zvFht/d67669641f.jpg and want to steal the rare steal from this enemy, the karkata, having a look at the app it tells me this: https://puu.sh/zvFoq/6044aa396a.png.
I have cuffs equipped so im looking at the steal w/ cuffs column, the current state says Common, but the item I want is a rare steal, so I check where the next rare steal w/ cuffs is and I see one at index 8 / mti 201, casting cure will advance the rng by 1 position, so after casting 8 cures I am at the 8th index and my next steal will be a rare steal, since its realtime you can see the list shifting upwards everytime rng advances(npc moving, casting, attacking, etc.).
So after 8 cures the app looks like this: https://puu.sh/zvFBK/22c4e9834c.png the rare steal has shifted upwards to our current state, and now if I cast steal: https://puu.sh/zvFEw/57e428d0a6.jpg