Author Topic: Map Converter  (Read 8855 times)

0 Members and 1 Guest are viewing this topic.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Map Converter
« on: March 20, 2010, 12:15:57 am »
Hello Omnimaga Community,

I have spent the past couple of weeks working on six seperate programs that will make converting maps easy/easier than before (hopefully). This program gives you the options for both going to a string and going from a string:
To String:
-String►Matrix
-String►List
-String►Pic
From String:
-Matrix►String
-List►String
-Pic►String
With just a couple runs of the program you can easily convert from one data type to another.

What I have done is tried to make this as user friendly as possible. Though currently it will only do two character maps (meaning you can only have to types of characters on the map (usually a wall and a walking area)). Hopefully I can figure out a good way to include more but ya, until then it is only two. I also hope to add a feature that allows you to choose the numbers for your list/matrix (currently walls are represented as "0" and spaces as "1").

I hope someone finds this useful in it's current state.

For use:
W - Width of the map.
H - Height of the map.
Spaces: - What your floor/walkable character is.
Choose a Wall: - Choose what you want your wall character to be (a.k.a. the character you wouldn't be able to move through in the game).
« Last Edit: May 24, 2010, 04:17:24 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline trevmeister66

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1009
  • Rating: +14/-5
    • View Profile
Re: Map Converter
« Reply #1 on: March 20, 2010, 12:19:40 am »
Mmm I think Calculator Projects and Ideas would be a better location, so maybe a mod or DJ can move it when they see this, unless this is the correct location, then I apologize.

To show a screenie, you will have to upload it to a file hosting site (preferably video file hosting) and then copy the link and put it in your post.
Projects:    nameless RPG: 1.0%  |  Reverse Snake v1.5: 100%  |  Secret Project: 5%  |  DUNGEON: 70%

My MW2 Blog <-- Please visit :)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Map Converter
« Reply #2 on: March 20, 2010, 12:23:28 am »
Well I considered that area but I didn't really consider this a project that would really go there. I could be wrong though.

And ya, that's what I figured, but the file kept uploading wrong onto photobucket so I could try a different hosting site (any suggestions?).

Edit: Thanks for moving this, Eeems! :)
« Last Edit: March 20, 2010, 12:24:47 am by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Map Converter
« Reply #3 on: March 20, 2010, 12:33:08 am »
Wow nice to see you're working on this :)

For uploading an image, click Reply, then below the text form, click "Additional Options" and it should reveal an upload form below. There you can upload many types of files.

Otherwise, Imageshack.us and Mediafire.com is a good option.

Btw how will any format > pic work?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Map Converter
« Reply #4 on: March 20, 2010, 01:09:43 am »
Wow nice to see you're working on this :)

For uploading an image, click Reply, then below the text form, click "Additional Options" and it should reveal an upload form below. There you can upload many types of files.

Otherwise, Imageshack.us and Mediafire.com is a good option.

Btw how will any format > pic work?

Ya, I kinda spaced just using a different thread :P, but I wanted it all together so I'll upload it with this one and then edit the first one when I get things figured out.

As for the string/matrix/list►pic thing. It only supports going from a string to pic right now. But if you run the program a couple of times you can get any map into a string and then use that string to convert to a pic. I'm not sure if I will make conversions for all data types to the others because that could get really big in file size. But if people don't mind that and want it I can make the other conversions.

Please give me feedback and suggestions of what you would like and such.

By the way, I'm aware I made mistakes in making the .gif file. I haven't used WabbitEmu long so that is why :P
« Last Edit: March 20, 2010, 01:17:16 am by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Map Converter
« Reply #5 on: March 20, 2010, 01:16:47 am »
that's pretty nice, so for strings I assume you will eventually have to specify which character is the floor, right, so it knows which character will be a white pixel?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Map Converter
« Reply #6 on: March 20, 2010, 01:18:42 am »
That is what the section that says "Spaces:" is. You type in what your floor/walkable character is.

Edit: I modified the original post to show what each enterable section is for.
« Last Edit: March 20, 2010, 01:22:41 am by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Map Converter
« Reply #7 on: March 20, 2010, 02:05:26 am »
aaah ok, didn't notice that part x.x
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Map Converter
« Reply #8 on: March 20, 2010, 02:08:56 am »
It's fine, no worries :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Map Converter
« Reply #9 on: March 20, 2010, 02:37:45 pm »
Nice!  I'm glad you decided to release info on this! ;D
When are you going to release the programs?  Oh, and you added the ')'s to the For loops, right. :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Map Converter
« Reply #10 on: March 20, 2010, 02:45:27 pm »
I hate that For() glitch x.x
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Map Converter
« Reply #11 on: March 20, 2010, 03:32:15 pm »
Well I'm not sure if I will release all six individual programs. They are all in the CNVRT program that is in the first post though. And ya I did do that haha, thanks again for helping with that.
« Last Edit: March 20, 2010, 04:24:32 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Map Converter
« Reply #12 on: March 20, 2010, 11:22:17 pm »
Seems like a good deal to me (providing the final version is not too massive with all 6 programs in one. Otherwise, I would suggest both a 1-file version and one with separate files, so people can keep the less used ones archived or delete them)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Map Converter
« Reply #13 on: March 21, 2010, 12:08:34 am »
Well with the name it is 1430 bytes. I don't know if that is to big or not :P
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Map Converter
« Reply #14 on: March 21, 2010, 12:16:18 am »
Nope that's pretty small actually. I was more worried about something like 7-9 KB. I remember it was hectic to use Nitacku grayscale ditherer and Lolje map editor due to them taking too much RAM before. I had to archive/unarchive/garbage collect almost everytime I debugged/added stuff
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)