Strange problem after uploading map

Strange problem after uploading map

Postby TheAncientGoat » 01 Feb 2010, 21:15

I got this error after uploading a map (it worked perfectly before, I didn't touch the mapscript)

http://pastebin.com/m3699e98

here's the activity:

http://www.syntensity.com:8888/tracker/ ... 06a766c20/

Might be one of those funny dependency errors again, but the errorlog is wierd..
User avatar
TheAncientGoat
Community Moderator
 
Posts: 518
Joined: 27 Dec 2009, 19:06

Re: Strange problem after uploading map

Postby kripken » 01 Feb 2010, 21:29

When run in DEBUG, the output is as follows:

{l Code}: {l Select All Code}
[[DEBUG]] - SE: setupExtent:
[[DEBUG]] - setupExtent: 136,  3 : 512.000000,512.000000,512.000000 : 0,0,0,0
   [[DEBUG]] - C registerLogicEntity: 136
      [[DEBUG]] - C registerLogicEntity completes
[[DEBUG]] - SE: Flush:
[[DEBUG]] - Flushing Queued SV changes for 136
[[DEBUG]] - (A) Flushing queued SV change: attr1 - 26465 (real: 26465)
[[DEBUG]] - Translated value: attr1 = 26465 (number) : 26465, null
[[DEBUG]] - value._class: undefined
[[DEBUG]] - Retrieving protocol ID for WorldMarker/attr1
[[DEBUG]] - (B) Flushing of attr1 - ok
[[DEBUG]] - (A) Flushing queued SV change: position - NaN,0,2.74 (real: NaN,0,2.74)
[[DEBUG]] - Translated value: position = NaN,0,2.74 (object) : [NaN, 0, 2.74], null
[[DEBUG]] - value._class: undefined
[[DEBUG]] - CAPI.setExtentO: NaN,0,2.74
[[ERROR]] - isNAN failed on argument 1 in "__script__setExtentO_raw"[[ERROR]] - <<SCRIPT>> Assertion error on:  false
[[ERROR]] - stack:
((ERROR)) - Error
    at eval at <anonymous> (unknown source)
    at unknown source
    at [object Object].cSetter (src/javascript/intensity/CAPIExtras.js:41:6)
    at [object Object].<anonymous> (Library.include: library/1_3/Variables.js:649:10)
    at [object Object]._emit [as emit] (src/javascript/Signals.js:136:31)
    at [object Object]._setStateDatum (Library.include: library/1_3/LogicEntity.js:583:6)
    at [object Object].<anonymous> (Library.include: library/1_3/Variables.js:428:6)
    at [object Object].<anonymous> (src/javascript/MochiKit.js:526:19)
    at [object Object].<anonymous> (Library.include: library/1_3/LogicEntity.js:671:11)
    at src/javascript/MochiKit.js:526:19
[[ERROR]] - V8 exception:
[[ERROR]] -             : [object Object]
[[ERROR]] - Message: Get: Uncaught #<an AssertionError>
[[ERROR]] - Message: GetSourceLine: alse '); log(ERROR, 'stack:'); log(ERROR, (new Error).stack); throw new Assert
[[ERROR]] - Message: GetScriptResourceName: undefined
[[ERROR]] - Message: GetLineNumber: 1
[[ERROR]] - No stack trace available in C++ handler (see above for possible in-script stack trace)
[[DEBUG]] - Sending a message of type PersonalServerMessage (1001)
terminate called after throwing an instance of 'ScriptException'
  what():  std::exception

That is more clear than the previous output (without DEBUG). So, there is a NaN in a position. Looking in the entities.json, it is on entity 136. (How it got there I can't tell.)

Simplest solution: Run the client, login to the master, but not to a server, edit the entities.json (can just remove that entire line with entity 136, or fix the position, as you wish), and do /upload_asset.
User avatar
kripken
Syntensity Moderator
 
Posts: 52
Joined: 12 Jan 2010, 13:45

Re: Strange problem after uploading map

Postby TheAncientGoat » 02 Feb 2010, 09:32

Ah, ok, I figured it out. I did /newmap 4, making the map smaller than the space between 2 of the entities originally, thing is, I crashed under similar circumstances before this, and I fixed up the entities.json file, but the map kept on crashing, and you said it was a dependency error when I came running, so I didn't think the entities would be the problem this time round..
User avatar
TheAncientGoat
Community Moderator
 
Posts: 518
Joined: 27 Dec 2009, 19:06

Who is online

Users browsing this forum: No registered users and 1 guest