Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting Errors, Invalid Code v4.27+ #15

Open
wh0am15533 opened this issue Mar 15, 2023 · 2 comments
Open

Casting Errors, Invalid Code v4.27+ #15

wh0am15533 opened this issue Mar 15, 2023 · 2 comments

Comments

@wh0am15533
Copy link

I get the same thing for v4.27, I've tried the threadsafeinit and still crash. Any more suggestions?? If I use UE4SS if has no problem with anything, same offsets, etc. I've tried it on Shooter game and also a very simple game no obfuscation, etc "The Oregon Trail". No go at all unless I rewrite all the casting.

if I use this to cast it, it's fine,

UEnum* uenum = nullptr;
if (obj != nullptr) {
    uenum = static_cast<UEnum*>(obj);
}

It's the same for UStructs.... So what's up with the DCast fuction? ...and alot of others? I am having to rewrite all your stuff using the same offsets and definitions, but your functions all fail. You sure this works for v4.27+, 4.25 np, but it's crap on 4.27.

for example, using your function to get a FName, failure. If get it myself, it's fine. It all seem's to do with your casting, all your casts specifically fail.

maybe provide more documentation also (versions, toolset, win SDK ver., etc) don't assume everyone is as proficient in C++ as you, Thanks to ChatGPT to help rewrite crap, otherwise it'd be pretty nice if it worked. Also, the AoB scanner sucks, it doesn't want to find crap. I have to hardcode the addresses. Also, not sure why you don't autoscan for stuff like UE4SS and other tools, even the cheat table for UE can autoscan and find addresses/offsets. This is all following your ReadMe instructions. Either you intentionally put false code in the project or this doesn't work at all for v4.27+. For example:

enum_name = enum_name.substr(enum_name.find_last_of(':') + 1);

I'm sure you know there isn't any ':' in the names. Here's a small subset of the real names, so your code with fail everytime especially since you don't implement error checking, because some of the results are actually null, so what give's Bro?:

EnumNameRAW: UpdateSprite
EnumNameRAW: UpdateCharacter Data
EnumNameRAW: UpdateCharacterAnimation
EnumNameRAW: WidgetTree
EnumNameRAW: CanvasPanel_0
EnumNameRAW: CanvasPanelSlot_0
EnumNameRAW: CharacterSequence
EnumNameRAW: /Game/UI/Common/Icons_Atlas_01/T_Common_TickBG_Icon
EnumNameRAW: /Game/UI/GameOver/GameOver_Atlas_01/T_ReachOregon_RankPlate
EnumNameRAW: /Game/UI/GameOver/GameOver_Atlas_01/T_ReachOregon_ProgressBar_BG
EnumNameRAW: /Game/UI/Leaderboards/Backgrounds/T_Leaderboard_Table_Row_Hightlight
EnumNameRAW: /Game/UI/Common/Backgrounds/T_Common_BlackGradient2_BG
EnumNameRAW: /Game/UI/Common/Masks/T_Common_JourneyMask_WhatsNew
EnumNameRAW: /Game/UI/Common/Masks/T_Common_GalleryMask_Model
EnumNameRAW: T_Common_GalleryMask_Model
EnumNameRAW: T_Common_JourneyMask_WhatsNew
EnumNameRAW: T_Common_BlackGradient2_BG
EnumNameRAW: T_Leaderboard_Table_Row_Hightlight

Originally posted by @wh0am15533 in #12 (comment)

@praydog
Copy link
Collaborator

praydog commented Mar 15, 2023

Place a debugger on it.

@angelfor3v3r
Copy link
Contributor

Is there a free game you know of that it isn't working on? I'll download it and give it a shot. You didn't give any information about the actual issue for you when you crash. Also, if it's so "crap" why don't you make a PR and fix it yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants