Page 1 of 2

Wasteland 3

Posted: Sat Aug 29, 2020 12:46 pm
by Csimbi
I had a first stab at this game, the [Link] to be specific.
I don't know what the devs were smoking, but the code looks like a shitty, unoptimized debug release.
It runs fine, but there's a massive amount of CPU time spent on stack resets in just about every call(!).
I am pretty sure it would run far better without it.
That's that.

The game is disappointing so far, WL2 was superior.
Combat, character management, skill use, just about everything got a downgrade :-(

I built a few scripts based on the first fight (where the game starts) and I put them in a table.
More testing is required.
The table is signed to avoid CE prompt for the auto-attach script.
The table comes with these scripts:
- main script
- character hack script.
- reputation grabber script.

The main script gives you:
- God mode; no comments
- Infinite Ammo; no comments
- Infinite AP; no comments
- Infinite Precision Strikes; no comments
- XP Gain mod; scales the XP you gain.
- Attack Range mod; scales the distance you can shoot to.
- Pointer to Money; no comments
Player test is included using fixed offsets for now, if it crashes, it's because the code has changed.

The character hack script gives you a bunch of controls as you flip from page to page or character to character:
- Zero all; use this once you have spent the amount you want, this will reset all unspent points of a single character to zero on the next flip.
- Attribute points; grants specified number on the next flip.
- Skill points; grants specified number on the next flip.
- Perk points; grants specified number on the next flip.
Same principle applies for the fixed offsets.

The reputation script exposes a few global variables.
Open character sheet and flip to the Reputation sheet, that should populate it all.
Then, ALT+Tab to CE and edit the values to your liking while you are still on the Reputation sheet.
It seems most go from -50 to 50.
Notes:
- the game seems to shuffle global variables around a lot, so these are short-lived pointers.
- using a fixed offset because a "good" AOB signature could not be found. Meaning it won't work on the GOG release once an update drops.
- global vars are based on hashes, so if the hashes change, the script will need updating, too.

Notes:
If, for some reason the script does not enable for the first time, tap it again.
CE mono attach seems dodgy at times.

I will do some playing and see if there's anything else worth hacking.
Zoom controls are screwed up, don't bother with higher zoom ranges (float 0 to 1 -> value points to predefined curve).
Run speed (float 6, fixed) is hackable, but makes little sense without zoom.

Enjoy!

Update #1
- Added Attack Range Mod
- Added Reputation grabber script

Update #2
- Reputation grabber script no longer enables on wrong signature.

Update #3
- Updated Reputation grabber script with additional factions, courtesy of Zanzer.

Update #4
- Updated table for Steam; here.

Re: Wasteland 3

Posted: Sun Aug 30, 2020 9:19 am
by FlipFloppy
Thank you for the table, Csimbi. Table works real nice.

Just a heads-up. Game crashes when table active and transiting from local map to world map. Disable table prevents crash. Table can be re-enabled when in local map again.

Re: Wasteland 3

Posted: Sun Aug 30, 2020 9:44 am
by hgooob2000
Csimbi wrote:
Sat Aug 29, 2020 12:46 pm
.
thank you very much but Can you pls add one for #Reputation

Re: Wasteland 3

Posted: Sun Aug 30, 2020 11:06 am
by Csimbi
FlipFloppy wrote:
Sun Aug 30, 2020 9:19 am
Thank you for the table, Csimbi. Table works real nice.

Just a heads-up. Game crashes when table active and transiting from local map to world map. Disable table prevents crash. Table can be re-enabled when in local map again.
I guess one of the pointer becomes invalid.
You can tell I am still on the first map ;-)
Thanks, I'll add some exception handling next time.

Posted update #1.

Re: Wasteland 3

Posted: Sun Aug 30, 2020 12:52 pm
by nillmand2
am I doing something wrong, but all the rep stuff dont update and just stay as ??

Re: Wasteland 3

Posted: Sun Aug 30, 2020 1:06 pm
by gos061
nillmand2 wrote:
Sun Aug 30, 2020 12:52 pm
am I doing something wrong, but all the rep stuff dont update and just stay as ??
me too, not just you; I tink maybe he use GOG not steam?

Re: Wasteland 3

Posted: Sun Aug 30, 2020 1:59 pm
by Csimbi
gos061 wrote:
Sun Aug 30, 2020 1:06 pm
nillmand2 wrote:
Sun Aug 30, 2020 12:52 pm
am I doing something wrong, but all the rep stuff dont update and just stay as ??
me too, not just you; I tink maybe he use GOG not steam?
Yep, GOG.com only, says so on the top.

Re: Wasteland 3

Posted: Sun Aug 30, 2020 2:03 pm
by gos061
Csimbi wrote:
Sun Aug 30, 2020 1:59 pm
gos061 wrote:
Sun Aug 30, 2020 1:06 pm
nillmand2 wrote:
Sun Aug 30, 2020 12:52 pm
am I doing something wrong, but all the rep stuff dont update and just stay as ??
me too, not just you; I tink maybe he use GOG not steam?
Yep, GOG.com only, says so on the top.
thanks for answer us

Re: Wasteland 3

Posted: Sun Aug 30, 2020 2:55 pm
by RedKaezar
I'm on Steam, main script works (AP/Precision Strikes does. Did not activate the rest). Did not try character scripts.

Re: Wasteland 3

Posted: Mon Aug 31, 2020 1:41 am
by Twinky-Bong
Hi Csimbi, thanks for your table!

A question, will you add the other factions to the reputation cheat?

Re: Wasteland 3

Posted: Mon Aug 31, 2020 7:54 am
by Csimbi
Twinky-Bong wrote:
Mon Aug 31, 2020 1:41 am
Hi Csimbi, thanks for your table!

A question, will you add the other factions to the reputation cheat?
I guess so, but I guess I have not met them yet.
If you have the hash, it's easy-peasy.

If someone can find out the hash algorithm (using the strings and the hashes in my script), you can use this script to grab just about any global variable.

Re: Wasteland 3

Posted: Mon Aug 31, 2020 9:24 am
by pgain2004
the reputation cheat is not working on my 1.01 version (GoG)

Re: Wasteland 3

Posted: Mon Aug 31, 2020 10:51 am
by Csimbi
pgain2004 wrote:
Mon Aug 31, 2020 9:24 am
the reputation cheat is not working on my 1.01 version (GoG)
Read much?
Csimbi wrote:
Sat Aug 29, 2020 12:46 pm
- using a fixed offset because a "good" AOB signature could not be found. Meaning it won't work on the GOG release once an update drops.

Re: Wasteland 3

Posted: Mon Aug 31, 2020 12:18 pm
by Zanzer
Does this help? :)


Code: Select all

local address = getAddress("GlobalVariables.instance")
local method = getAddress("GlobalVariables.GetVariableNames")
local variables = executeCodeEx(0, nil, method, address, 0)
local dictionary = readPointer(variables + 0x10)
local entries = readPointer(dictionary + 0x18)
io.output("F:/Wasteland3.txt")
local index = 0
while index < 3971 do
  local hash = readQword(entries + (index * 0x18) + 0x20)
  local item = readPointer(entries + (index * 0x18) + 0x28)
  local value = readString(item + 0x14, 256, true)
  index = index + 1
  io.write(string.format("%016X %s\n",hash,value))
end
io.close()
print("done")

Re: Wasteland 3

Posted: Mon Aug 31, 2020 1:44 pm
by Csimbi
Zanzer wrote:
Mon Aug 31, 2020 12:18 pm
Does this help? :)
It does, indeed, thanks!
I added the few missing ones, will be posting it soon.