ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Jun 21, 2018 8:23 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: findloc question
PostPosted: Tue Jan 16, 2018 6:02 am 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 147
I have a script like this
get TXT_SIZE asize
for i = 0
savepos TMP
if TMP >= TXT_SIZE
break
endif
get INPUT line
string ELEMENTS S INPUT NAME CRC ZSIZE HASH1 SIZE HASH2
#print "%NAME%"
string HEX p= "%08x" NAME
print "%HEX%"
set TMP string "$"
string TMP += HEX
set VAR long TMP
print "%VAR%"
next i

How would I use findloc on the VAR variable
is there a way to convert a string to c notation or a int to c notation?
a different example might be
get TEST long
findloc OFFSET binary TEST


Top
   
 Post subject: Re: findloc question
PostPosted: Tue Jan 16, 2018 6:22 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 502
chrrox wrote:
How would I use findloc on the VAR variable...
a different example might be
get TEST long
findloc OFFSET binary TEST

i asked this same question here once and i believe you would use this :)
Code:
get TEST long
findloc OFFSET long TEST


some examples
viewtopic.php?p=21917#p21917

_________________
Quickbms.com link thread
Search bms scripts


Top
   
 Post subject: Re: findloc question
PostPosted: Tue Jan 16, 2018 12:56 pm 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 147
This worked for my file here thanks :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited