[CF-Devel] Plugin drop hook error

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Sun Oct 26 11:52:50 CST 2003


On Sat, 2003-10-25 at 23:59, Mark Wedel wrote:
>
     
      Todd Mitchell wrote:
     
     >
     
      > Whenever I drop an object that has a python script hooked to the drop
     
     >
     
      > event I get a segmentaiton fault here:
     
     >
     
      > 
     
     >
     
      > in fix_player (op = 0xbffffaac) at living.c 795
     
     >
     
      > 
     
     >
     
      > if(!QUERY_FLAG (&op->arch->clone, FLAG_FLYING))
     
     >
     
     
     >
     
        As is usual in my requests, please provide an example of the broken object, 
     
     >
     
      and script as applicable.
     
     
Well any object hooked to 'drop' calling any script will do it.  Here is
a map and a simple test script.  It doesn't matter if you have event
options or do anything in the script or not - it is the drop hook itself
that is broken as far as I can tell.
-------------- next part --------------
arch map
name plugintest
msg
Creator: CF Java Map Editor
Date:    10/26/2003
endmsg
width 10
height 10
end
arch flagstone
end
arch flagstone
y 1
end
arch flagstone
y 2
end
arch flagstone
y 3
end
arch flagstone
y 4
end
arch flagstone
y 5
end
arch flagstone
y 6
end
arch flagstone
y 7
end
arch flagstone
y 8
end
arch flagstone
y 9
end
arch flagstone
x 1
end
arch flagstone
x 1
y 1
end
arch helmet
event_drop_plugin Python
event_drop /python/droptest.py
x 1
y 1
end
arch flagstone
x 1
y 2
end
arch flagstone
x 1
y 3
end
arch flagstone
x 1
y 4
end
arch flagstone
x 1
y 5
end
arch flagstone
x 1
y 6
end
arch flagstone
x 1
y 7
end
arch flagstone
x 1
y 8
end
arch flagstone
x 1
y 9
end
arch flagstone
x 2
end
arch flagstone
x 2
y 1
end
arch flagstone
x 2
y 2
end
arch flagstone
x 2
y 3
end
arch flagstone
x 2
y 4
end
arch flagstone
x 2
y 5
end
arch flagstone
x 2
y 6
end
arch flagstone
x 2
y 7
end
arch flagstone
x 2
y 8
end
arch flagstone
x 2
y 9
end
arch flagstone
x 3
end
arch flagstone
x 3
y 1
end
arch bolt_silk
event_drop_plugin Python
event_drop /python/droptest.py
event_drop_options foo
x 3
y 1
end
arch flagstone
x 3
y 2
end
arch flagstone
x 3
y 3
end
arch flagstone
x 3
y 4
end
arch flagstone
x 3
y 5
end
arch flagstone
x 3
y 6
end
arch flagstone
x 3
y 7
end
arch flagstone
x 3
y 8
end
arch flagstone
x 3
y 9
end
arch flagstone
x 4
end
arch flagstone
x 4
y 1
end
arch flagstone
x 4
y 2
end
arch flagstone
x 4
y 3
end
arch flagstone
x 4
y 4
end
arch flagstone
x 4
y 5
end
arch flagstone
x 4
y 6
end
arch flagstone
x 4
y 7
end
arch flagstone
x 4
y 8
end
arch flagstone
x 4
y 9
end
arch flagstone
x 5
end
arch flagstone
x 5
y 1
end
arch flagstone
x 5
y 2
end
arch flagstone
x 5
y 3
end
arch flagstone
x 5
y 4
end
arch flagstone
x 5
y 5
end
arch flagstone
x 5
y 6
end
arch flagstone
x 5
y 7
end
arch flagstone
x 5
y 8
end
arch flagstone
x 5
y 9
end
arch flagstone
x 6
end
arch flagstone
x 6
y 1
end
arch flagstone
x 6
y 2
end
arch flagstone
x 6
y 3
end
arch flagstone
x 6
y 4
end
arch flagstone
x 6
y 5
end
arch flagstone
x 6
y 6
end
arch flagstone
x 6
y 7
end
arch flagstone
x 6
y 8
end
arch flagstone
x 6
y 9
end
arch flagstone
x 7
end
arch flagstone
x 7
y 1
end
arch flagstone
x 7
y 2
end
arch flagstone
x 7
y 3
end
arch flagstone
x 7
y 4
end
arch flagstone
x 7
y 5
end
arch flagstone
x 7
y 6
end
arch flagstone
x 7
y 7
end
arch flagstone
x 7
y 8
end
arch flagstone
x 7
y 9
end
arch flagstone
x 8
end
arch flagstone
x 8
y 1
end
arch flagstone
x 8
y 2
end
arch flagstone
x 8
y 3
end
arch flagstone
x 8
y 4
end
arch flagstone
x 8
y 5
end
arch flagstone
x 8
y 6
end
arch flagstone
x 8
y 7
end
arch flagstone
x 8
y 8
end
arch flagstone
x 8
y 9
end
arch flagstone
x 9
end
arch flagstone
x 9
y 1
end
arch flagstone
x 9
y 2
end
arch flagstone
x 9
y 3
end
arch flagstone
x 9
y 4
end
arch flagstone
x 9
y 5
end
arch flagstone
x 9
y 6
end
arch flagstone
x 9
y 7
end
arch flagstone
x 9
y 8
end
arch flagstone
x 9
y 9
end
-------------- next part --------------
A non-text attachment was scrubbed...
Name: droptest.py
Type: text/x-python
Size: 360 bytes
Desc: not available
Url : 
     
     http://shadowknight.real-time.com/pipermail/crossfire/attachments/20031026/c2488cf0/droptest.py
     
     
-------------- next part --------------
_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list