7Soul's Forum Posts

  • Just replaced the INI with an Array and it only takes 9 seconds to load now, thx for the help!

  • Its basicaly this:

    <img src="http://i.imgur.com/tKxlC.jpg" border="0" />

    At the start of the frame I start loop X, and it starts loop Y. Then I select a tile by comparing its X and Y to the current Loop Index. Then I compare the array value, if its 1 or greater, the tile is visible, if its 0 the tile is invisible

    • this takes roughly 12 seconds

    Then I have this:

    <img src="http://i.imgur.com/nEiC0.jpg" border="0" />

    If the value is 2,3,4 or higher, it means there's an object to be loaded

    • now it takes 36 seconds :/
  • I'm making a level editor that saves each block value to an .ini file. It takes roughly 25 seconds to load a level 100x100 blocks. I'm using 2 loops to read the ini, one for the X and one for the Y

    How can I speed it up? Would an array be faster?

  • Would be nice to have the command "Change collision mode" for tile object, since it can be set to solid, so I could change the collision mode from "bounding box" to "none" and vice versa

  • This doesnt work

  • How do I download this?

  • Maybe put all the objects of layout 1 in a family and move that family?

  • Oh my god! I fixed it!

    Now check out how this obscure bug happened:

    I thought "there may be a line of code that is causing this bug" so I started deleting all event groups one by one. Delete one, test, CTRL+Z to get it back in place, move to the next one

    Then I deleted a group called "Tower behavior" and the bug disappeared!

    Inside it I did the same thing, deleting blocks of events until I found the one event that was bugging. Take a look at it:

    <img src="http://i52.tinypic.com/2ljru52.png">

    For some reason, at some point, construct changed this:

    <img src="http://i52.tinypic.com/21jq2xd.png">

    Into that. Its the same as if I went into each event and changed the drop down options to "Use Expression"

    Why the hell this happened? I don't know. It's a weird bug that construct caused for some obscure reason, maybe when saving, I don't know.

    Thanks to everyone who helped me find this bug!!

  • [quote:211zsraf]Well looks like something with layout 3 is interfering with your event sheet Input.

    Event sheet input is only 1 event that sets the keys using the InputSystem object

    <img src="http://i54.tinypic.com/19xem8.png">

    [quote:211zsraf]Might try pasting event 112 in the sheet, or a screen shot of it, and any events that might be related to it in layout 3 as well.

    Here's line 112 of layout 3:

    <img src="http://i51.tinypic.com/2ytxrv6.png">

    "radar" is a family where all objects are sprites using grid movement (24 sprites)

    It basicaly tells it to move all the time to the left with speed 2

    If I toggle it, the error become this:

    ---------------------------
    Runtime error
    ---------------------------
    A crash inside a plugin's non-event code has been intercepted!  This may be a bug in the plugin, or a problem in Construct.  The application has exited.  Available details of the location of the problem are below (this may be approximate).
    
    Plugin: GridMovement.csx
    Object name: Movement_151_17
    Instance: 4 (of 4)
    [/code:211zsraf]
    
    [quote:211zsraf]My guess is its something to do with the attribute solid, since gridmovement is designed to avoid solids. Like if your trying to do some sort of ai with the object, and the includes telling it to go into a solid that could cause an issue.
    
    There's 1 object using Grid Movement that collides with solid, and it is controled by the player
    
    [quote:211zsraf]Are you using the OR condition at all in layout 3?
    
    Yes, I'm using it on 2 events. Deleted them but nothing changed
  • [quote:2468h59x]Ok,are you using transitions?

    No

    [quote:2468h59x]Then if that's not it have you ran the debugger?

    I used the debugger now, when I get to layout 3 I get this error:

    ---------------------------
    Runtime error
    ---------------------------
    A crash inside a plugin's action has been intercepted!  This may be a bug in the plugin, or a problem in Construct.  The application has exited.  Available details of the location of the problem are below (this may be approximate).
    
    Plugin: GridMovement.csx
    Object name: Movement_151_17
    Event 112 in event sheet 'Input'
    Action: 1
    Instance: 4 (of 4)
    [/code:2468h59x]
  • ---------------------------
    Runtime error
    ---------------------------
    An unexpected error occurred and the application was terminated.
    
    You may be able to find out more information about the crash by Debugging, and attempting to reproduce the bug.[/code:1c064lbn]
    
    Then I get "Temp3.exe stopped working"
    
    [quote:1c064lbn]Also can you run the game from different layouts, or is just on the layout the object is on?
    
    The crash happens on the 3rd Layout, but doesn't matter wich layout has the last object. Like, if the crash happens, then I delete an object from Layout 3, and insert a new one on Layout 1, the crash still happens when I get to layout 3. Even if I switch the order of the Layouts, the crash still happens on the same layout (it's the one that has most of the objects btw)
    
    If I start the test right at layout 3, I get a crash
    If I start at 1 and go to 2 and then 3, crash
    If I start at 1 and go to 3, crash
    
    [quote:1c064lbn]Whats is the last object, and have you tried other objects?
    
    Tryed Sprite, INI, Text and TiledBackground and all cause the crash
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • bump

  • You can use Audacity to record the song and export as other format. Like, hit the record button on Audacity, the play button on Music Maker and let it record

  • Btw, tried updating to CC1.2 but the bug is still there

  • 5.21m textures

    11mb targets

    16.21mb total

    Approx 2513 MB texture memory remaining

    , says the F7 button