buggnubg - Bugs: bug #54148, How to display dice after Python's...

 
 

bug #54148: How to display dice after Python's gnubg.navigate command?

Submitted by:  Tom Martin <tom_martin>
Submitted on:  Tue 19 Jun 2018 12:37:03 AM UTC  
 
Originator Name:  Tom Martin Item Group:  Other bug
Category:  Command line interface Release:  1.04-Release
Privacy:  Public Operating System:  All
OS Type:  Any Processor Type:  Any
Severity:  3 - Normal Open/Closed:  Open
Assigned to:  None Priority:  5 - Normal
Status:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 24 Jun 2018 06:03:30 PM UTC, comment #1: 

If anyone decides to look at this, could you also please verify that navigate doesn't allow you to advance to a specific move in a new game?  I've tried a few things but I think if I advance the game index I can't also specify the action index.  So I'm doing it in separate calls which naturally flashes the initial position for a moment.

BTW, the reason I mentioned gnubg.nextturn is to suggest a possible solution.  If navigate is unable to display dice and "next roll" is too hard to change, you might gut the nextturn logic and simply have it show the dice.  It's not that klugy since "next roll" first displays the dice and only shows the move after a second call. 

Tom Martin <tom_martin>
Tue 19 Jun 2018 12:37:03 AM UTC, original submission:  

My last post about Python described the features that I plan to automate, basically providing a stream of decisions that have been marked with comments.  There's a lot to be done to do that well, so the first module I'll create handles only saved positions.  After that I'll handle saved matches/sessions.

In anticipation of that second script, there's one thing that would make it better - the ability to display the dice after gnubg.navigate is used.  Currently you need to navigate to either the previous or following action and issue a "next (or previous) rolled" command.  But this causes the intermediate position to momentarily display and so is a bit distracting.  Ideally the navigate command should show the dice roll or there would be some secondary command that would display them.  The "next|previous roll" command is a logical choice since "roll" is not synonymous with "rolled" and typically splits a turn into two parts - with and without the dice displayed.  But it doesn't help in this case.  Once I navigate to a position, I can find no way to display the dice.  I even tried "gnubg.nextturn ()" but that seems to do nothing at all now.  I can use "next marked" initially but the idea is to only display actions that contain a comment, so that results in uncommented actions being briefly shown. 

I doubt if anyone is interested in maintaining Python calls but this might be a simple change and the benefit may be substantial since it will provide a more professional appearance to the display of saved matches.

Tom Martin <tom_martin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tom_martin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5