Users browsing this thread: 20 Guest(s)
[TUTORIAL] Making BMS Scripts; Post and get help with your BMS scripts!
(05-06-2017, 04:46 AM)zADAN Wrote:
(05-05-2017, 11:53 PM)ThatTrueStruggle Wrote:
Code:
comtype COMP_UNZIP_DYNAMIC
get ZSIZE long
get NAME basename
string NAME += ".narc"
get ASIZE asize
math ASIZE - 4
clog NAME 4 ASIZE ZSIZE

Here you go. It decompresses the TZIP into NARC files.

Wow! What kind of sorcery was that?  The ".tzip" file was a 644 KB size and the code extracted a few ".narc" files, one of 6 MB.  
Awesome and thanks!  You will be in the credits for this translation.

It's called compression  Tongue  It compressed it pretty well and made the file smaller.

Here you go. I wrote this in about an hour and wasn't too hard. Usage below:
Code:
MTX2TXT -d inputMTX outTXT : This decodes an MTX into a TXT file. Replace inputMTX with the path to the MTX file and outTXT with the name you want to it be.
MTX2TXT -e inputTXT outMTX: This encodes a TXT file into a MTX file. Replace inputTXT with the path to the TXT file and outMTX with the name you want to it be.

When you want to encode a text file, make sure you have the setup like the decoded MTX files (text on new lines for each one)

This was a fun little project and I haven't had so much fun writing something like this in a while. Hope you enjoy!  Big Grin
(I can provide source code to this if you'd like to look at how it works, it's pretty simple)
Reply
Thanked by: zADAN


Messages In This Thread
RE: [Tutorial] Making BMS Scripts - by Saeid0034 - 03-21-2020, 05:17 AM
RE: [Tutorial] Making BMS Scripts - by justdancer - 07-02-2016, 01:53 AM
RE: [Tutorial] Making BMS Scripts - by dionn1993 - 07-10-2019, 12:06 AM
RE: [Tutorial] Making BMS Scripts - by SKYHAMSTER - 08-06-2020, 06:06 AM
RE: [Tutorial] Making BMS Scripts - by Yarcaz - 11-18-2015, 08:19 AM
RE: [Tutorial] Making BMS Scripts - by Shade - 11-18-2015, 05:31 PM
RE: [Tutorial] Making BMS Scripts - by Yarcaz - 11-18-2015, 05:04 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-22-2015, 06:59 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-22-2015, 10:42 PM
RE: [Tutorial] Making BMS Scripts - by TGE - 12-24-2015, 08:14 PM
RE: [Tutorial] Making BMS Scripts - by Hallow - 12-24-2015, 08:57 PM
RE: [Tutorial] Making BMS Scripts - by nobody231 - 12-24-2015, 09:01 PM
RE: [Tutorial] Making BMS Scripts - by TGE - 12-25-2015, 06:36 AM
RE: [TUTORIAL] Making BMS Scripts; Post and get help with your BMS scripts! - by Struggleton! - 05-07-2017, 09:16 PM

Forum Jump: