Shop OBEX P1 Docs P2 Docs Learn Events
Bug in map2spin.exe (Andre!) — Parallax Forums

Bug in map2spin.exe (Andre!)

tpw_mantpw_man Posts: 276
edited 2008-10-06 16:53 in Propeller 1
NOTE: This is mostly for Andre.

I recently was using map2spin.exe, and all of a sudden it kept on giving that feared 'Sorry, but this application has encountered a problem and needs to close' message. It stops at the _tile_bitmaps LONG line, which makes me think maybe the image was invalid. I did create the images in a Macintosh image editor called Pixen. I then exported it as a bitmap, opened it in Paint, saved it as a jpeg, and saved the jpeg to a bitmap, which makes one think it should clear up any compatibility issues. It crashes at the memcpy() in the Extract_Bitmap function. I am not fluent in C or C++, so any help identifying the problem, in either my data or the program would be appreciated.

Attached are the two culprit files, ran with no flags whatsoever.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!


Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
tongue.gif

Comments

  • BaggersBaggers Posts: 3,019
    edited 2008-09-25 18:17
    Hi tpw_man, I'm guessing Andre' is busy, either on holidays, or some other such thing, so thought I'd jump in for you.
    What is it exactly you want? do you want the something that converts that map file into a spin data file that you can cut and paste into your project file?
    if so, let me know and I'll knock a quick app up for you?
    or is it the BMP you need converting?

    Baggers.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • tpw_mantpw_man Posts: 276
    edited 2008-09-25 20:38
    I think I want something that converts the bitmap to a valid one for map2spin. Another thing is that Mappy seems to insert an extra color block, throwing everything off... But thanks for replying!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1011, so be surprised!


    Advertisement sponsored by dfletch:
    Come and join us on the Propeller IRC channel for fast and easy help!
    Channel: #propeller
    Server: irc.freenode.net or freenode.net
    If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
    tongue.gif
  • BaggersBaggers Posts: 3,019
    edited 2008-09-25 21:33
    Just looking at the bmp you have done, it's using 5 colours you have 2 Whites in there, I've re-organised the colours etc, and remapped the image to the new palette, so try this bmp, if not, I'll write a converter for you, ( if you let me know what format you need it in. )

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
  • tpw_mantpw_man Posts: 276
    edited 2008-09-25 22:37
    Your bitmap is unclickable...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1011, so be surprised!


    Advertisement sponsored by dfletch:
    Come and join us on the Propeller IRC channel for fast and easy help!
    Channel: #propeller
    Server: irc.freenode.net or freenode.net
    If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
    tongue.gif
  • BaggersBaggers Posts: 3,019
    edited 2008-09-26 07:16
    try this [noparse]:)[/noparse]

    edit: checked it this time, downloaded and upzipped the file and opened it·[noparse]:)[/noparse] as for the initial bmp, don't know why that didn't work [noparse]:([/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite



    Post Edited (Baggers) : 9/26/2008 7:32:54 AM GMT
  • BaggersBaggers Posts: 3,019
    edited 2008-09-27 20:01
    have you tried it yet? if so, did it work? or not?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • tpw_mantpw_man Posts: 276
    edited 2008-09-27 20:05
    It worked and did not crash, but gave out garbage and nothing like the actual image sad.gif I think I am done with Mappy.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1011, so be surprised!


    Advertisement sponsored by dfletch:
    Come and join us on the Propeller IRC channel for fast and easy help!
    Channel: #propeller
    Server: irc.freenode.net or freenode.net
    If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
    tongue.gif
  • BaggersBaggers Posts: 3,019
    edited 2008-09-28 08:39
    strange, ok, do you have another app that grabs the images?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • tpw_mantpw_man Posts: 276
    edited 2008-09-28 14:22
    No, but I will take pics and post them up for you to see.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1011, so be surprised!


    Advertisement sponsored by dfletch:
    Come and join us on the Propeller IRC channel for fast and easy help!
    Channel: #propeller
    Server: irc.freenode.net or freenode.net
    If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
    tongue.gif
  • BaggersBaggers Posts: 3,019
    edited 2008-09-28 14:57
    sure [noparse]:D[/noparse] thanks
    do you want an app making up?
    if so, let me know what format you need them in, ie what tv driver are you using?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • tpw_mantpw_man Posts: 276
    edited 2008-09-28 15:03
    I am using HEL 4.0. I will be able to get you the pics in about 3 hrs. I am actually at church right now :P

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1011, so be surprised!


    Advertisement sponsored by dfletch:
    Come and join us on the Propeller IRC channel for fast and easy help!
    Channel: #propeller
    Server: irc.freenode.net or freenode.net
    If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
    tongue.gif
  • BaggersBaggers Posts: 3,019
    edited 2008-09-28 15:05
    Ok, no worries [noparse]:)[/noparse]
    Will have a look again later ;P

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • tpw_mantpw_man Posts: 276
    edited 2008-09-28 18:44
    Here you go. Unfortunately map2spin died again, because I wanted to create another map :P The little checkerboard in the output is a sprite controlled by the NES controller.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I am 1011, so be surprised!


    Advertisement sponsored by dfletch:
    Come and join us on the Propeller IRC channel for fast and easy help!
    Channel: #propeller
    Server: irc.freenode.net or freenode.net
    If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
    tongue.gif
    648 x 487 - 15K
    3264 x 2448 - 616K
  • BaggersBaggers Posts: 3,019
    edited 2008-09-28 19:09
    Hi tpw_man,
    That's very strange, if you want, you can zip up the project and PM it to me, and I'll fix it for you? if you want that is.

    Baggers.

    PS. Also, on a side note, you do realise by using the HEL drivers you won't be able to release source code for the HEL drivers for this game.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
  • BaggersBaggers Posts: 3,019
    edited 2008-10-06 16:53
    tpw_man, do you require any more help on this issue? or did you get it working?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

    ·
Sign In or Register to comment.