#4419: Script assert on placing an oil drum.
--------------------------------------+-------------------------
        Reporter:  NoQ                |      Owner:  Per
            Type:  bug                |     Status:  new
        Priority:  normal             |  Milestone:  unspecified
       Component:  JavaScript Issues  |    Version:  git/master
Operating System:  GNU/Linux 64bit    |
--------------------------------------+-------------------------
 A bug in my code (most certainly), but i couldn't understand this
 instantly, and it's hard to reproduce, so i'd leave a ticket for myself to
 have a look later.

 I've just seen the following assert triggered:

 {{{
 error   |12:17:43: [js_addFeature:1629] Building feature on tile already
 occupied
 error   |12:17:43: [callFunction:186] 0 : placeOilDrum() at
 multiplay/skirmish/rules.js:418
 error   |12:17:43: [callFunction:186] 1 : <global>() at -1
 info    |12:17:43: [callFunction:189] Uncaught exception calling function
 "placeOilDrum" at line 418: ReferenceError: map_coord(psFeat->pos.x) != x
 || map_coord(psFeat->pos.y) != y failed in js_addFeature at line 1629
 info    |12:17:43: [callFunction:189] Assert in Warzone: qtscript.cpp:189
 (false), last script event: 'N/A'
 }}}

 That's pretty strange, as the javascript code explicitly checks (with
 `enumRange()`) that there are no objects owned by `ALL_PLAYERS` within 2
 tiles radius before placing the oil drum.

--
Ticket URL: <http://developer.wz2100.net/ticket/4419>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to