XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed Sep 20, 2017 11:52 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: bms variable length strings
PostPosted: Fri May 13, 2016 2:14 am 
Offline
ultra-n00b

Joined: Wed Oct 01, 2014 7:24 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time

I've went through only one mrmouse youtube video so far, the one for etherlords.

Trying to do something similar with another file format, the file seems to be a sequence of null terminated 16-bit (utf-16le) characters, preceded and followed by other data that I haven't figured out. Can I use bms language to handle that?

I see I can set a variable to a string read from the current position in a file, but how do I then write that into an output file? Log/CLog want an explicit length. Is there a way to log the contents of a variable?

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: bms variable length strings
PostPosted: Sat May 14, 2016 2:21 pm 
Offline
Moderator

Joined: Mon Jul 05, 2010 8:55 pm
Posts: 586
Has thanked: 19 times
Have thanks: 215 times
Create a memory file, write the variable to that memory file then log it to a text file.

_________________
Click the thanks button if I helped!


Top
 Profile  
 
 Post subject: Re: bms variable length strings
PostPosted: Sat May 28, 2016 4:20 am 
Offline
ultra-n00b

Joined: Wed Oct 01, 2014 7:24 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
Ah. I see memory files in quickbms syntax. I was first trying multiex syntax. Quickbms has strlen and the unicode type reads the text without needing to specify the length. So, I don't think I need the memory file. But, thanks for leading me to quickbms.



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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group