I've added a couple of bitmap images (textblitter fonts) under the binary data in the Elements List in MMF2, but how do I access them or any binary data file? And are they included in a compiled executable?
I've wondered twice but I've never properly asked
Been messing around with it all day. So it turns out if you add a binary file that yes, it gets added to the .exe but it's just accessing that file thats proving problematic now. I've read the MMF readme and had a play around with location functions myself but I just can't get access.
Suppose you added "D:\font.bmp" to the binary data list. First you have to extract the binary data e.g.:
+Start of frame
-Extract binary file "D:\font.bmp" (it's under Special Conditions - Binary Files)
(the game extracts it to a temporary folder)
Then you're able to use it as an external file. To get the pathname of the extracted external file you use BinFileTempName$()
e.g.:
+Start of frame
-Load image BinFileTempName$("D:\font.bmp")
They are, when I was testing around with it before I found the temp folder it made. As soon as its closed all contents are removed. I guess it depends if you want people prying around in your files.