Borg for 320 is running.

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • APWhite
    replied
    Originally posted by Magnate
    It occurs to me that the borg could be really useful for testing the staging branch (and indeed other dev branches). Can you give a brief description of what it logs, if anything? For testing purposes it would be good to focus on the game commands the borg executes, rather than the decision-making. But it would be helpful if the borg logged when it made use of o_ptr->known_flags etc. as this would help with bug-hunting.
    As far as logging, the borg has an option called borg_verbose which has him record a lot of information in the log; things like creating monsters, tracking movements of monsters and stuff like that. Most of it is designed for him reporting on his internal thought process.

    He does log his commands and all his key-presses.

    If you need him to give reports on flags, that is not hard to do. He knows the o_ptr->flags, but he is not allowed to use that information until the object is ID'd. The borg will keep a separate struct (borg_item) and will copy all the flags from o_ptr to borg_item. When he needs to think about those flags, he will do so by looking at borg_item.

    If you needed him to stop when a certain item is found or a certain event occurs, he can be programmed to do that.

    I am not opposed to having my code put up into a repository so long as only skilled people are modify it. The borg is really complex and tinkering in one area of the code, can have some bad side effects.

    If you have a specific concern, let me know and I can describe how the borg could help.

    By the way, the borg is crashing in resurrect_borg() with:
    Code:
        /* Clear the inventory */
        for (i = 0; i < ALL_INVEN_TOTAL; i++)
        {
    		object_wipe(&p_ptr->inventory[i]);
        }
    The error is:
    Code:
    Unhandled exception at 0x0055ebdf in Angband.exe: 0xC0000005: Access violation writing location 0x00000000.
    It appears that the borg is not being given access to p_ptr->inventory. If you can take a look at it, I'd appreciate it. This routine is critical to getting the screensaver up to date. Picture of the error and call stack below.
    APWhite


    Leave a comment:


  • Magnate
    replied
    Originally posted by APWhite
    I got it. I just bracketed this error and the automatic savefile with #ifndef ALLOW_BORG

    I do have some changes to the game code to help the borg. They are all marked. Search for apw in the game files included with the borg. There will be a few more as soon as I can figure out why the screensaver is freaky.
    It occurs to me that the borg could be really useful for testing the staging branch (and indeed other dev branches). Can you give a brief description of what it logs, if anything? For testing purposes it would be good to focus on the game commands the borg executes, rather than the decision-making. But it would be helpful if the borg logged when it made use of o_ptr->known_flags etc. as this would help with bug-hunting.

    Leave a comment:


  • APWhite
    replied
    Originally posted by d_m
    This is fixed in HEAD.

    If you want I can probably find the diff for you, I think it's a small change.
    I got it. I just bracketed this error and the automatic savefile with #ifndef ALLOW_BORG

    I do have some changes to the game code to help the borg. They are all marked. Search for apw in the game files included with the borg. There will be a few more as soon as I can figure out why the screensaver is freaky.

    Leave a comment:


  • flechette
    replied
    This news makes me immensely happy.

    Leave a comment:


  • d_m
    replied
    Originally posted by APWhite
    Another issue is with the game giving the message "Type '?' for help." whenever the ESC or Space is hit. The borg uses ESC and Space a lot for clearing messages and catching up. So it would be nice if the game did not give this report for those two keys.
    This is fixed in HEAD.

    If you want I can probably find the diff for you, I think it's a small change.

    Leave a comment:


  • APWhite
    started a topic Borg for 320 is running.

    Borg for 320 is running.

    The borg for 320 is running. I have to play test it for a while. There are some subtle changes in the game code that are causing problems. But they are being hammered out.

    There are still some problems with the screensaver. But I will get to it.

    Another issue is with the game giving the message "Type '?' for help." whenever the ESC or Space is hit. The borg uses ESC and Space a lot for clearing messages and catching up. So it would be nice if the game did not give this report for those two keys.

    Andrew

    Last edited by APWhite; January 9, 2011, 05:34.
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕