| Blockland Forums > Modification Help |
| Special untriggered input event simply does not work |
| << < (3/4) > >> |
| Uristqwerty:
Are you sure that there are no errors, and that the file that code is in is run? Everything seems to work for everyone else... |
| Bauklotz:
Is this for my new problem, or the old problem with registering the event? |
| Bauklotz:
bumpage.net |
| Bauklotz:
Anyone? Repost of problem --- Quote from: Bauklotz on November 19, 2010, 02:50:15 PM ---Okay, that is fixed. But another problem: packaging addEvent doesn't seem to work. --- Code: ---package BB_specialEvents { function fxDTSBrick::addEvent(%this,%enabled,%delay,%input,%target,%output,%a,%b,%c,%d,%e,%f,%g,%h,%i,%j) { %input_ui = $InputEvent_NamefxDTSBrick_[%input]; %output_ui = $OutputEvent_NameScriptObject_[%output]; if($EVENTDEBUG) { announce(%this @ "::addEvent - "@%inputui@" -> (?) -> "@%output_ui); } Parent::addEvent(%this,%enabled,%delay,%input,%target,%output,%a,%b,%c,%d,%e,%f,%g,%h,%i,%j); if(%input_ui $= "Special" && $BB::EVT::EXIST[%output_ui] && isFunction($BB::EVT::FUNC[%output_ui])) { call($BB::EVT::FUNC[%output_ui],%this,trim(%a TAB %b TAB %c TAB %d TAB %e TAB %f TAB %g TAB %h TAB %i TAB %j)); } } }; activatePackage(BB_specialEvents); --- End code --- (sorry for bad identation, copied directly from Torsion) Even though $EVENTDEBUG is set to 1 (true), and I add a event to a brick and press send, nothing is "announced". --- End quote --- |
| Xalos:
--- Quote from: Uristqwerty on November 20, 2010, 01:33:21 PM ---Are you sure that there are no errors, and that the file that code is in is run? Everything seems to work for everyone else... --- End quote --- |
| Navigation |
| Message Index |
| Next page |
| Previous page |