? Map to DATA ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Map to DATA

Submitted
Updated
Author
kitesinpowerlines
Public Key
LDEXW3Z4
Min. Compat.
New 3DS
Version
2.0
Rating
2 votes
Description If you use the default Smile Tool map editor, you'll know it saves large files. This program aims to take all or individual map layers and export them into PRG3 as DATA instructions with the "WriteMap" function and redraw the entire map with that DATA in the "DrawMap" function. This saves more space than saves from the Smile Tool and produces the same results. All layer data can be exported into a single file as well. This tool is intended to be used to reduce the file size from existing DAT files produced by the Smile Tool map editor. I may or may not create a map editor with these functions integrated in the future. Instructions Copy either your map DAT:SC_ files into this program folder or copy READMAP into your own program. Run the READMAP program. Choose one of the following:
  1. This option is best for converting individual layers. Choosing this option will give you a drop down to select a single file. Only SC_ saves are compatible.
  2. This option allows you to input the name of your map and convert all layers simultaneously (if SC_ saves exist). You must exclude the file type and layer number part of the file name. As an example, only input the bold: DAT:SC_TESTMAP_L0
Choose whether or not you want to test the output of the map data (this dialog box still prompts, even if you've input the file name incorrectly, this may be corrected in a minor update in the future) Manually save the generated code in PRG3 and copy into your program folder if necessary. Copy the "DrawMap" and/or "Test" function into your program. DrawMap LabelNameString$, Layer number, 64 You may edit this program into a FOR loop to draw multiple layers simultaneously or use included function Test LabelNameString$, 1'if global variable SIZE%=64 There are included map files for testing if you wish to use them.
Notes

Revisions

Version 2.0

  1. Changed the WriteMap function to export tile data, x and y location so that empty spaces are not exported
  2. Changed the DrawMap function to accommodate the WriteMap function
  3. Added the option to input the map name to convert all layers simultaneously

Version 1.0

  1. Initial release
Categories
Keywords
15 Comment(s) IAmRalsei IAmRalsei Forum Leader Hidden Achievements First Year My account is over 1 year old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength This doesn't work for me. i tried to convert a file with no water tiles in it but it got changed to ONLY be water tiles. kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website I will look into it kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website I didn't realize this before, but the "WriteMap" function also exports empty spaces which can significantly increases the size of the file. I will experiment with exporting tile data, x location, y location for all used space. If this method further reduces the file size from the exported example map, I will make this update before the map editor update. random_god random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies Wow... 27 minutes ago... this is completely irrelevant. random_god random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies When I looked at the third picture, I though "INSTANT GAME INSPIRATION!" Cool. kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website Wait did someone else release something like this because I missed it GreedyGoat8 GreedyGoat8 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Block I didn't change my avatar for 30 days. Website Disguised Hidden Website It was definitely 43 minutes ago. This is a smart concept. It could save a lot of room and memory. It will be cool when you implement a map editor. kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website Yes. I am currently looking at other map editor code to learn more about creating one myself. But it’s going to be a while before it is complete, so in the meantime, existing map editors will have to be used and the manual process from the listed steps followed. It is inconvenient but I’ve gotten some use of these functions in their current state and figured someone else may too. IAmRalsei IAmRalsei Forum Leader Hidden Achievements First Year My account is over 1 year old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Hopefully you aren't planning on stealing my up to this point unannounced game, Arctic Adventure because I've decided to revive it after my 3DS Data was essentially wiped (only got as far as the title screen anyway) In fact, i'm calling creative commons right now (Just kidding, someone's probably used the name Arctic Adventure before) GreedyGoat8 GreedyGoat8 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Block I didn't change my avatar for 30 days. Website Disguised Hidden Website Coo, coo. Woah. Toad we posted at the same time. IAmRalsei IAmRalsei Forum Leader Hidden Achievements First Year My account is over 1 year old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Cool, cool. kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website Lol no worries, the sample map included is actually from an RPG I’m working on and the image here just shows the top left corner of the continent (however, you can see the whole continent in the example file provided) IAmRalsei IAmRalsei Forum Leader Hidden Achievements First Year My account is over 1 year old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength I was actually talking to random_guy. kitesinpowerlines kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website Well this is awkward random_god random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies Nah, I'm working on Ruebled. I will probably add an arctic part of the world map. I might be an idiot and make the overworld maps huge. Yes, I said maps, I'm planning on having 3 overworlds split into sections. The amount of sections in each overworld will be a perfect square (4,9,16,ect.) so that the overworld will be a square (duh.) I should probably be saying this in my thread. I'll copy it to the thread.