My map editor crashes.

This forum is currently in read-only mode.
From the Asset Store
Two types of minimap: "full map" and "player is the center" (square map and radial map)
  • Hi.

    I wanted to made a game with different levels, so

    i needed to create an editor first,

    but everytime i run it, it crashes.

    <img src="smileys/smiley19.gif" border="0" align="middle" />

    It is a 480x320 window, the layer is 8192x8192

    (32 (one block)* 256 (- i wanted to have a big maps))

    Is problem here?

    It is too big?

    uloz.to/xBptFXg/cw-lvl-edit-cap -is the .cap

    --> password is "construct"

    (I'm sorry if someone had the same problem before)

    (sry for my english - i'm not a native speaker)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It is crashing because your array is sized 8192 x 8192 which apparently takes up 1gb of memory.

    I changed it to 256 x 256 because that is the amount of tiles you want in your map. Also, 8192 x 8192 = 67,108,864 objects!

    After making the change your program starts again.

  • Ok, but 256x256(px) is small - it is 8x8 blocks isn't it?

    (perhaps i dont understood what you wanted to say me)

    EDIT: ok, i have it now, thanks a lot.

    (before i didn't seened the word array <img src="smileys/smiley1.gif" border="0" align="middle" /> )

    Now everythinkgs is like i needed to be.

  • If your array must be 8192x8192 you might consider using other data storage such as .INIs or Hashtables so that empty cells are not accounted for.

  • Or you can stream portions of the map. Eg: each map is a folder of text files numbered 0 to max like an array, then each segment you are in you load the text file on-the-fly to prepare the next area, maybe have 3 edges loaded at once so the player can always walk into another one without noticing.

  • It is really good idea jayjay, thanks.

    maybe i will use it in the future, but now, i think, that

    256x256 is large enought. <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)