← Back to team overview

mudlet-makers team mailing list archive

Re: [Bug 897908] [NEW] Button scripts are run at start

 

This isn't a bug as it's a necessary workaround until buttons are 
finally scriptable (=lots of work to add the backbone code).
Until then the scripts are being run on startup to enable people to set 
persistent options via menus and 2 state buttons. This cannot be changed 
as it's a pre 1.0 feature.

Am 29.11.2011 23:42, schrieb Vadim Peretokin:
> Public bug reported:
>
> Button scripts are loaded and run at start:
>
> *** starting new session ***
> [ERROR:] object:<Keep aiming>  function:<Action2>
>           <[string "function Action2()..."]:3: attempt to index global 'vs' (a nil value)>
> [ERROR:] object:<event handler function>  function:<svo_events>
>           <attempt to call a nil value>
> [ERROR:] object:<Load spidershot>  function:<Action8>
>           <[string "function Action8()..."]:2: attempt to call global 'sendAll' (a nil value)>
> [ERROR:] object:<event handler function>  function:<svo_events>
>           <attempt to call a nil value>
> [ERROR:] object:<Load dart>  function:<Action9>
>           <[string "function Action9()..."]:2: attempt to call global 'sendAll' (a nil value)>
> [ERROR:] object:<WindowResizeEvent>  function:<handleWindowResizeEvent>
>           <attempt to call a nil value>
>
> While they should be just run.
>
> ** Affects: mudlet
>       Importance: Undecided
>           Status: New
>

-- 
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/897908

Title:
  Button scripts are run at start

Status in Mudlet the MUD client:
  New

Bug description:
  Button scripts are loaded and run at start:

  *** starting new session ***
  [ERROR:] object:<Keep aiming> function:<Action2>
           <[string "function Action2()..."]:3: attempt to index global 'vs' (a nil value)>
  [ERROR:] object:<event handler function> function:<svo_events>
           <attempt to call a nil value>
  [ERROR:] object:<Load spidershot> function:<Action8>
           <[string "function Action8()..."]:2: attempt to call global 'sendAll' (a nil value)>
  [ERROR:] object:<event handler function> function:<svo_events>
           <attempt to call a nil value>
  [ERROR:] object:<Load dart> function:<Action9>
           <[string "function Action9()..."]:2: attempt to call global 'sendAll' (a nil value)>
  [ERROR:] object:<WindowResizeEvent> function:<handleWindowResizeEvent>
           <attempt to call a nil value>

  While they should be just run.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/897908/+subscriptions


References