Page 1 of 1

Python clickable doesn't give hotspot

PostPosted: Sat Jun 21, 2008 5:48 pm
by Paradox
I'm having a horrible issue with one of my clickable objects, and I have no idea what could be wrong at this point.

I have a number of clickable objects that use responders or sittingmods, and they all work with no problems, but when I try to make it fire a PythonFileMod rather than a responder, it stops working altogether. I have no hotspot in-game, even though the regions, scripts, and everything seem to be exported correctly in the PRP.

My AlcScript looks like this:
Code: Select all
410RgnDevice:
    type: region
    region:
        type: logic
    physical:
        physlogic: detect

410Device:
    type: object
    visual:
        drawable: 0
        criteria: 0
        drawflags: 0
        icicle: 0x80000
        visregions:
          - svinvert:410BuildingVis
    physical:
        physlogic: detect
        pinned: true
    logic:
        actions:
          - type: pythonfile
            name: 410DeviceGUI
            pythonfile:
                file: "xDialogToggle"
                parameters:
                  - type: activator
                    ref: logicmod:410Device
                  - type: Skip
                  - type: Skip
                  - type: string
                    value: "410GUI"
        modifiers:
          - name: 410Device
            cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: 410RgnDevice
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
              - type: facing
                satisfied: true
                directional: true
                tolerance: 0.9
            actions:
              - type: pythonfile
                ref: pyfilemod:410DeviceGUI


As far as I can tell, everything should be working, I've compared the exported objects with some of the ones in other Ages, and they all look like they should work. Does anyone see any issues that would stop the hotspot from appearing?

Re: Python clickable doesn't give hotspot

PostPosted: Sun Jun 22, 2008 11:53 pm
by D'Lanor
All I can think of is the facing condition. I know it does not combine well with sittingmods but I don't see a problem for the responder. :?

Re: Python clickable doesn't give hotspot

PostPosted: Mon Jun 23, 2008 12:32 am
by Paradox
Even without the facing conditional, it's unclickable.

I'm beginning to question the region itself.