GLBasic forum

Main forum => GLBasic - en => Topic started by: Moru on 2008-Feb-05

Title: Mappy loader
Post by: Moru on 2008-Feb-05
Has anyone made a loader for the mappy format FMP?

Program and documentation here:
http://www.tilemap.co.uk/mappy.php

If not I guess I'm starting on it when I have some time :-)
Title: Mappy loader
Post by: Schranz0r on 2008-Feb-05
No, not yet ;)
Title: Mappy loader
Post by: Kitty Hello on 2008-Feb-06
See the showroom, BubmleBee has written an import filter for another map editor.
Title: Mappy loader
Post by: Moru on 2008-Feb-06
Yeah but I like Mappy better and have already old maps in that format so mabe others have use for a real loader too. The format is not XML but has support for a lot more fun things at the moment.
Title: Mappy loader
Post by: D2O on 2008-Feb-06
Hi Moru, simple way is, export as TXT an you can load with little Parser (?).
MID$()
Replace$()
...
..
-------------------------

If I don't have to work on the weekend, I look whether I can write lader a converter for it
Title: Mappy loader
Post by: Moru on 2008-Feb-06
that is boring, I want to read the full format, at least as much as I understand so far :-)
Title: Mappy loader
Post by: Kitty Hello on 2008-Feb-06
Do it. There's some who will surely assist you plus it's a great project others want to use as well.
Make a clever and descriptive TYPE for the level data, then read it.
Title: Mappy loader
Post by: Moru on 2008-Feb-06
I had a few hours last night while our baby was sleeping so basics are there. I'm just missing a nice way of loading signed short ints :-) Writnig with one hand as my daughter is only happy when on the arm :-)
Title: Mappy loader
Post by: Schranz0r on 2008-Feb-06
why short?
GLBasic use only INT 32Bit
Title: Mappy loader
Post by: Moru on 2008-Feb-06
I'm reading a binary format, doesn't matter what GL basic uses or not uses, I need to read the format as it is saved.
Title: Mappy loader
Post by: Kitty Hello on 2008-Feb-07
PeeJay had a solution for this.
Something like:
if ushort > 32767 THEN ushort = ushort-65536

...I'm not 100% sure, though.