Unknown crash, also crashes debugger (screenshot, code)

This forum is currently in read-only mode.
From the Asset Store
5 levels with simple coding Source-code (.c3p) + HTML5 Exported
  • Hello! I am slowly going insane.

    Here is some code:

    ms = []
    for i,m in enumerate(skeleton): 
       ms.append({'x':0, 'y':0, 'mid':m.Value('mid')})
    theserver.SendToAll({'action':'updatemonsters', 'monsters':ms})[/code:1tzmwvuw]
    
    Here's what the debugger spits out when this code is run:
    
    <img src="http://i.imgur.com/wjC6w.png">
    
    mid is a valid private variable of the skeleton type. The server code never gets executed, but in any case it works (if you simply remove the 'mid' entry from the dictionary, this code executes fine).
    
    I'm really going mad, because the networking code was enough of a hack as-is. Then I had the horror of using SOL.<sprite> to get object handles. And now this. GAH.
    
    EDIT - Incidentally, there is no Event 0 in Layout 1, and this is happening in Layout 3 which makes me think the error message is just a default and I've managed to make something really bad happen.
  • Make sure to post what's version are you using? always everyone ask like that

  • Thanks, Vagnok. It's 0.99.97

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Skeleton is a sprite right? Be sure that the private variable is named 'mid' and not 'Mid', the name is case sensitive.

  • skeleton is indeed a sprite, and the variable name is all lowercase.

  • What is the value of 'mid'? If it is a construct array value like "Sprite.XY" or "{1,2,3}" it will crash. Using types like that haven't been handled in construct's python integration yet.

    If that still isn't the issue then maybe post a cap.

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