Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help: How to fix <<15:offset too big>> error

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
themandem
Cheater
Reputation: 0

Joined: 06 Dec 2019
Posts: 41

PostPosted: Sat Oct 09, 2021 8:24 am    Post subject: Help: How to fix <<15:offset too big>> error Reply with quote

First the game was crashing because of this far jump issue (14 byte jump) (Final Fantasy XV is a 64 bit game). So i adjusted the code, now that's why there is lot of opcodes in originalcode. That fixed the crash, but then I was getting this error "<<Failure allocating memory near 1484257CF>>" so then I removed the 3rd alloc parameter. Now that that's done. As soon as I removed the 3rd alloc parameter, i'm now getting this "<<15:offset too big>>" error. How can I fix this? Dark Byte xD helpppp. Btw where it says line 15:offset too big, line 15 in this case is this
Code:
xorps xmm0,[ffxv_s.exe+3085C00]


Here's the script:


Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(floatVal)

newmem:
push rbx
mov rbx,[floatVal]
mov [rax],rbx
pop rbx

originalcode:
movss xmm0,[rax]
cmp byte ptr [rbx+00000084],00
je ffxv_s.exe+83857E3
xorps xmm0,[ffxv_s.exe+3085C00]

exit:
jmp returnhere

floatVal:
  dd (float)200

"ffxv_s.exe"+83857CF:
jmp far newmem
nop 6
returnhere:

[DISABLE]
dealloc(newmem)
"ffxv_s.exe"+83857CF:
movss xmm0,[rax]
cmp byte ptr [rbx+00000084],00
//Alt: db F3 0F 10 00 80 BB 84 00 00 00 00 74 07 0F


Last edited by themandem on Sat Oct 09, 2021 11:58 am; edited 3 times in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25811
Location: The netherlands

PostPosted: Sat Oct 09, 2021 11:01 am    Post subject: Reply with quote

you can't do
Code:

xorps xmm0,[ffxv_s.exe+3085C00]

in a far code block

replace it with
Code:

push rax
mov rax,ffxv_s.exe+3085C00
xorpd xmm0,[rax]
pop rax

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4709

PostPosted: Sat Oct 09, 2021 11:20 am    Post subject: Reply with quote

You could also just allocate newmem near ffxv_s.exe to allow for RIP-relative addressing. No 14-byte jump needed, no indirect addressing modes...
Code:
alloc(newmem,2048,"ffxv_s.exe"+83857CF)

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25811
Location: The netherlands

PostPosted: Sat Oct 09, 2021 11:30 am    Post subject: Reply with quote

i heard ffxv has no free memory nearby so that will fail
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
themandem
Cheater
Reputation: 0

Joined: 06 Dec 2019
Posts: 41

PostPosted: Sat Oct 09, 2021 11:41 am    Post subject: Reply with quote

Dark Byte wrote:
you can't do
Code:

xorps xmm0,[ffxv_s.exe+3085C00]

in a far code block

replace it with
Code:

push rax
mov rax,ffxv_s.exe+3085C00
xorpd xmm0,[rax]
pop rax

Thank you bud, the error is gone after I do what you say! Smile yay, fixed


ParkourPenguin wrote:
You could also just allocate newmem near ffxv_s.exe to allow for RIP-relative addressing. No 14-byte jump needed, no indirect addressing modes...
Code:
alloc(newmem,2048,"ffxv_s.exe"+83857CF)

I tried that with the far jmp, but get another error (different error) when trying to activate script. this is the error:
Code:
<<Failure allocating memory near 1484257CF>>

I think if I try that without the far jmp, this error goes away, but it crashes regardless because game keeps doing this far jmp thingy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites