Jump to content
Rolling Thunder Forums

DELS


RTGPete

Recommended Posts

I received a note from a player noting that he issued a DELS order to delete a single standing order, and it worked--but the standing order ran that turn anyway. This raises an interesting sequencing issue that I'll take a look at. You already know that standing orders are loaded first, before anything is processed...this is what causes the DELS conflict. Here's my response to his note:

 

Ah - this is interesting.  I'll need to post a note on the board about it - the problem is that standing orders are loaded and appended to the end of your submitted orders at the beginning of processing.  Then newly-issued standing orders are executed by way of storing them in your permanent standing order list.  That list has already been loaded for processing on the turn being run, so newly-issued standing orders are not run as standing orders (they are processed once as issued, wherever in the turn they were entered, but not again as standing orders--so they get run once and not twice that turn).  The kicker here is that deleting them comes after the fact--your standing orders have already been loaded and are regular orders at that instant (loading them is the first thing that happens in the turn).  Your standing order was deleted, but it had already been loaded as a regular order.  To make it work as you expected (an entirely reasonable expectation, I might add) I'll have to look at the code and pre-scan your orders queue for any DELS orders....remember the ones that will be ordered deleted (but aren't actually deleted yet, because it's still at the beginning of the turn and no orders have actually been run yet, never mind the actual DELS order) and then not ever load the ones that (assuming the DELS order works as expected) were about to be loaded.  I'm not sure if this explanation makes any sense <grin> but I'll look into it.

 

I'll check into the code and see what I can do....presuming that your DELS order was written correctly and will work as expected when it is processed later on in the turn cycle :lol: then I can probably put in a prescan to exclude DELS standing orders from being loaded at the beginning of a turn cycle (before the DELS order actually ever hits the process hopper, in a sort of weird time-space continuum kind of thing... :rolleyes: ) This would make DELS orders timely for the turn they are issued, both to delete the standing order forever (sending it into a terrible black hole) and making it go away instantly that turn, before the DELS order is even processed (the black hole has reach! :oops: ).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...