Python clickable doesn't give hotspot

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Python clickable doesn't give hotspot

Postby Paradox » Sat Jun 21, 2008 5:48 pm

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?
Paradox
 
Posts: 1290
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Python clickable doesn't give hotspot

Postby D'Lanor » Sun Jun 22, 2008 11:53 pm

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. :?
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Python clickable doesn't give hotspot

Postby Paradox » Mon Jun 23, 2008 12:32 am

Even without the facing conditional, it's unclickable.

I'm beginning to question the region itself.
Paradox
 
Posts: 1290
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron