ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Dec 13, 2018 9:12 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Dec 06, 2018 8:26 am 

Joined: Sun Jul 10, 2016 11:07 am
Posts: 69
just a quick and noob question.

when I write the code like this which just gets the hex number of files and put it on a memory file to be made as text I always get a 0x0 at the end of the converted decimal number.

Image

Code:
log MEMORY_FILE 0 0
get FILENUM long
put FILENUM string MEMORY_FILE
get SIZE ASIZE MEMORY_FILE2
log test.txt 0 SIZE MEMORY_FILE2



I plan on getting the value of the number of files, the value of dialog id convert it to decimal and also rip some text strings to the output file.


I'm trying to do something like this as the output file

10 <--- file number
01 Hello there. <--- dialog ID and text
02 I'm a noob\natdoing this thing. <--- dialog ID and text
03 thanks for the help.


Top
   
PostPosted: Thu Dec 06, 2018 11:19 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9473
I think you want to use "line" instead of "string".

put FILENUM line MEMORY_FILE

While for the strings try:

string TMP p "%02d %s" ID STRING
put TMP line MEMORY_FILE


Top
   
PostPosted: Fri Dec 07, 2018 4:16 am 

Joined: Sun Jul 10, 2016 11:07 am
Posts: 69
thanks!

put FILENUM line MEMORY_FILE

works great!


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