Important information: this site is currently scheduled to go offline indefinitely by end of the year.

bms variable length strings

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
cheyrn
ultra-n00b
Posts: 6
Joined: Wed Oct 01, 2014 7:24 pm

bms variable length strings

Post by cheyrn »

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?
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 496 times

Re: bms variable length strings

Post by Gh0stBlade »

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!
cheyrn
ultra-n00b
Posts: 6
Joined: Wed Oct 01, 2014 7:24 pm

Re: bms variable length strings

Post by cheyrn »

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.
Post Reply