#392

Solved

Table group card scripts fail when card is over 1000 distance in x or y

Reported by Divided By zer0 on OCTGN · 21/05/2011 17:35:11

Assigned to:
jods
Priority:
Normal
Status:
Solved
Category:
Game scripts
Version:
0.9.*
Issue type:
Bug

If a card moves in x or y distance over 1000 px, then all card scripts will fail, as for some reason. Move the card back into the 1000×1000 area, and the scripts will work again.

Easy way to test this, create a new card action and function like this:

def test2(card, x, y): # Testing function.
   notify("x = {} y = {}".format(x,y))   

Then start dragging the card until it crosses the 1000 distance on x. The function will then stop working.

For some reason, using the same script as a default action (i.e. double-click on the card) will still work, because using the default action on a card, always returns 0,0 for x and y. It seems that x,y variables are not passed to python when using double-clicks so it uses whatever the script defines during the function definition.

Attachments

No attachment has been uploaded, yet.


Loading comments...