Reply
 
Thread Tools Display Modes
Unread 01-29-12, 09:21 PM   #1
Myrroddin
Endless Captain
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 50
Answered here.
Myrroddin is offline   Reply With Quote
Unread 01-30-12, 12:26 PM   #2
algritz
Claw of Regulos
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 11
Quote:
Originally Posted by Myrroddin View Post
Answered here.
Saw the reply, thanks !
algritz is offline   Reply With Quote
Unread 02-10-12, 12:21 PM   #3
Zoc
Bomani Harbinger
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 6
I'm not able to post on Rift forums (Rift Lite, etc. - willing to change that very soon).

Code:
local queueStatus = false
local function QueueStatus()
    queueStatus = Inspect.Queue.Status("global")
    if queueStatus then return end -- global queue is still backlogged, var is true so exit out
    
    queueStatus = false
end

table.insert(Event.Queue.Status, {QueueStatus, "MyAddon", "Queue Status"})

local commandOne = false
local commandTwo = false
local commandThree = false
function MyAddon:DoCommands()
    if not commandOne and not queueStatus then
        command.blah1
        commandOne = true
    elseif not commandTwo and not queueStatus then
        command.blah2
        commandTwo = true
    elseif not commandThree and not queueStatus then
        command.blah3
        commandThree = true
    end
    
    commandOne, commandTwo, commandThree = false, false, false
end
I'm not able to understand the concept post. I can't find anything related to "Event.Queue.Status", which appears here:
Code:
table.insert(Event.Queue.Status, {QueueStatus, "MyAddon", "Queue Status"})
Anytime I try to run DoCommands(), it never goes past the first step.

What I'm willing to do is, wait until a Command.Item.Move() is complete, then run 2 functions.

Ideas how I can do that ?

Thanks in advance!
Zoc is offline   Reply With Quote
Unread 02-10-12, 02:27 PM   #4
algritz
Claw of Regulos
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 11
Quote:
Originally Posted by Zoc View Post
I'm not able to understand the concept post. I can't find anything related to "Event.Queue.Status", which appears here:
Code:
table.insert(Event.Queue.Status, {QueueStatus, "MyAddon", "Queue Status"})
Anytime I try to run DoCommands(), it never goes past the first step.

What I'm willing to do is, wait until a Command.Item.Move() is complete, then run 2 functions.

Ideas how I can do that ?

Thanks in advance!
Look at this thread, it helped me a LOT.

http://forums.riftgame.com/beta-addo...low-error.html

I ended up combining both a "Queue" and a "thread" manager.
algritz is offline   Reply With Quote
Unread 02-11-12, 03:51 AM   #5
Zoc
Bomani Harbinger
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 6
Thank you!

With the info in the post you provided me, I created the LibCoroutine.

It's very early and the code can be considered Alpha quality. It's included with zBag (Alpha4), in case you want to take a look on how I implemented it.

Suggestions / improvements are welcome
Zoc is offline   Reply With Quote
Unread 02-12-12, 07:08 AM   #6
algritz
Claw of Regulos
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 11
Quote:
Originally Posted by Zoc View Post
Thank you!

With the info in the post you provided me, I created the LibCoroutine.

It's very early and the code can be considered Alpha quality. It's included with zBag (Alpha4), in case you want to take a look on how I implemented it.

Suggestions / improvements are welcome
Glad I could help !

I'll have a look at your library. Not sure I'll implement it for my add-on since I've already done this part, but maybe for my next project
algritz is offline   Reply With Quote
Unread 02-12-12, 12:41 PM   #7
Zoc
Bomani Harbinger
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 6
Talking

Quote:
Originally Posted by algritz View Post
Glad I could help !

I'll have a look at your library. Not sure I'll implement it for my add-on since I've already done this part, but maybe for my next project
Thanks!

I've uploaded it here: http://www.riftui.com/downloads/info...Coroutine.html

It doesn't support Queue, like you used on your project ( I still need to study that part ), but in case you need it in your next project and want to improve the library, you're more than welcome to do so
Zoc is offline   Reply With Quote
Reply

Go BackRiftui » AddOns, Layouts and Macros » Help/Support » How do you "wait" without crashing the game client.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off