![]() |
ffxiv_task_ vs onupdate handler. - Printable Version +- MMOMinion (https://www.mmominion.com) +-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87) +--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90) +---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104) +---- Thread: ffxiv_task_ vs onupdate handler. (/showthread.php?tid=5258) Pages:
1
2
|
RE: ffxiv_task_ vs onupdate handler. - Wirlo - 12-14-2014 does this still work ? im trying to add a cne to an existing task. it works fine adding it into the tasks init function but not from the module init function. was the code removed that checked the superclass for more cnes ? Code: function wim.ModuleInit() RE: ffxiv_task_ vs onupdate handler. - Ace - 12-14-2014 ffxiv_task_assist.add vs ffxiv_task_assist:add RE: ffxiv_task_ vs onupdate handler. - Wirlo - 12-14-2014 (12-14-2014, 05:41 PM)Ace Wrote: ffxiv_task_assist.add vs ffxiv_task_assist:add i had it ffxiv_task_assist:add Code: function wim.ModuleInit() it is added. but its never checked or used? im guessing this is where it checks the cne list: Code: function ml_cne_hub.eval_elements(elementList) i dont know Lua at all but it looks to me this function is called once only with the instanced version of the object. Code: function ml_task:Process() in this thread a dev said he added specific code. i dont see it ? Is there a new way to do it ? EDIT: btw i used to add it like this Code: init_ntcne = false and then add it to that. but i would much rather have the solution the dev mentioned in this thread RE: ffxiv_task_ vs onupdate handler. - Ace - 12-14-2014 Are you making sure that your module.def has FFXIVMINION as a dependency? It sounds like your module is loading before the FFXIVMINION, because if you look at ffxiv_task_assist, it has something like 8 or 9 process elements. RE: ffxiv_task_ vs onupdate handler. - Wirlo - 12-14-2014 (12-14-2014, 07:38 PM)Ace Wrote: Are you making sure that your module.def has FFXIVMINION as a dependency? It sounds like your module is loading before the FFXIVMINION, because if you look at ffxiv_task_assist, it has something like 8 or 9 process elements. i want to put cne into a task. i can only put it in there, once the task is instantiated. the tasks are coded into an array as class files. a)bot gets initiated b)the modules get initiated << here i want to add cne c)bot starts running / bot sets the mode / instantiates the task << here only can i add cne and so as a workaround the dev said "instead of adding it to the instance you can add it to the class file and the code now looks there for cne's too" so yes the class file has 0 elements <<< im adding my cne here. and the instantiated object has 9 or so <<< cant add it here cause it doesnt exist on mudule init. RE: ffxiv_task_ vs onupdate handler. - Ace - 12-14-2014 For what you're trying to do, you need to override the ffxiv_task_assist:Init() function with a copy of your own in your module, with your cne added. When your module gets loaded, the modified version of the function in your module will be the Init() that gets run. RE: ffxiv_task_ vs onupdate handler. - Wirlo - 12-14-2014 (12-14-2014, 09:41 PM)Ace Wrote: For what you're trying to do, you need to override the ffxiv_task_assist:Init() function with a copy of your own in your module, with your cne added. if they change that function, i would have to reflect that in my copy. i dont like that. i rather add it at runtime then. RE: ffxiv_task_ vs onupdate handler. - Ace - 12-15-2014 It is what it is. :) |