2D Level Editor released

Hey Folks,

i finally released the level editor for my 2D RPG Engine. It is written in C++ and Objective C. The rendering engine is OpenGL (nearly the same as in the 2D RPG Engine) but the interface is 100% Cocoa.

Interested? Visit: https://github.com/MarkusPfundstein/2D-Engine-Level-Editor and clone!

Peace

  1. September 17, 2012 at 3:38 pm

    I am having a few issues with getting the source to run. I am getting EXE_BAD_ACCESS on line 189 of tilewindow.m

    Any ideas?

    Thanks

    Jonathan

    2012-09-17 16:33:02.988 Engine2DEditor[2747:303] MainMenu loaded
    2012-09-17 16:33:02.990 Engine2DEditor[2747:303] ToolWindow initialized
    2012-09-17 16:33:02.993 Engine2DEditor[2747:303] TileWindow initialized
    2012-09-17 16:33:02.994 Engine2DEditor[2747:303] MainWindow initialized
    Worldmap with Name: /Users/Pegasus/Library/Developer/Xcode/DerivedData/Engine2DEditor-fsqwvbmbcifaevaxpgjxebtbhoqg/Build/Products/Debug/Engine2DEditor.app/Contents/Resources/init_map.txt opened
    woods1.png
    ObjectToLoad: woods1obj.png
    10
    10
    Texture woods1.png loaded!
    Texture woods1obj.png loaded!
    2012-09-17 16:33:04.345 Engine2DEditor[2747:303] Communicator alloc
    2012-09-17 16:33:04.345 Engine2DEditor[2747:303] MSG REC: woods1.png
    2012-09-17 16:33:04.535 Engine2DEditor[2747:303] MSG REC: woods1obj.png

    • September 18, 2012 at 9:57 am

      Hi,
      do you mean here:
      [tiles[counter].image lockFocus];

      [loadedTileset drawInRect:NSMakeRect(-(j*TILE_SIZE),-(i*TILE_SIZE),TILE_SIZE*numImages,TILE_SIZE*numImages) fromRect:NSZeroRect
      operation:NSCompositeCopy fraction:1.0f];

      [tiles[counter].image unlockFocus];

      Can you post the stacktrace please?

      and please a dump of init_map.txt

      I also see that

      int counter;

      is not initialized to 0. This could cause the crash (and is most likely causing it) Could you please do this and try again?

      Groetjes

  2. September 18, 2012 at 11:02 am

    Yes it crashes on [tiles[counter].image unlockFocus];

    I will get the stacktrace and changes made and upload them in a moment

  3. September 18, 2012 at 11:04 am

    Fixed. Initialising counter to 0 worked. Thank you so much for your help and amazing code

    • September 18, 2012 at 11:05 am

      You welcome 🙂 Would be nice to keep me posted about what ure doing 🙂

      • September 18, 2012 at 11:06 am

        I definitely will do. Work is hectic so i havent really done much with it since i first downloaded it but i would love to use it to create a nice Norsk Mythology game.

        Thanks again and i will keep in touch

      • September 18, 2012 at 11:08 am

        yeah, i know that “work/time/family” problem! thats why i am not so active into game dev anymore.. sure a shame 😦

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: