Skip to content

⚠ Bug at Tools -> Make opcodes.txt #187

Closed

Description

@MatiDragon-YT

Executing the option does not update the opcodes.txt file.

Activity

  1. changed the title [-]Bug at Tools -> Make opcodes.txt[/-] [+]⚠ Bug at Tools -> Make opcodes.txt[/+] on Mar 13, 2022
  2. x87 commented on Sep 2, 2022

    @x87
    Collaborator

    Can you try running make_opcodes directly?
    https://github.com/sannybuilder/make_opcodes

    this is what Sanny Builder uses. Does this tool work for you?

  3. MatiDragon-YT commented on Sep 2, 2022

    @MatiDragon-YT
    MemberAuthor

    It does not work.
    I've tried running it from the Git Bash terminal and from PowerShell, with the repository instructions and nothing happens

  4. x87 commented on Sep 2, 2022

    @x87
    Collaborator

    Maybe it is sensitive to the file names? Can you try running it from another directory?
    Also try running as admin.

    If you can share a video of you running it, it may help me to suggest further steps.

  5. MatiDragon-YT commented on Sep 6, 2022

    @MatiDragon-YT
    MemberAuthor

    Sorry for the delay in responding.

    I just tested it on two different terminals (GitBash and PowerShell) and at first neither worked with a cleo script source code. Then I tried it with the code that is generated by decompiling the main.scm of SA, and there if it worked, although I do not know well... I would say that in part... hahaha

    Also I just noticed that there is no documentation about this tool in the CHM, it would be good to indicate that the tool cannot generate a complete list, if there are KEYWORDS or CLASSES in it.

    But anyway, the tool still does not generate the list of opcodes if I run it from the IDE.

    bandicam.2022-09-06.11-14-39-165.mp4
  6. x87 commented on Sep 6, 2022

    @x87
    Collaborator

    it would be good to indicate that the tool cannot generate a complete list, if there are KEYWORDS or CLASSES in it.

    it needs keywords list and/or classes.db to identify that a word is a keyword or a class (e.g. wait 0). Use --keywords and --classes params to provide those files to the tool.

    make_opcodes.exe script.txt --output opcodes.txt --keywords ..\data\sa\keywords.txt --classes ..\data\sa\classes.db 
    

    But anyway, the tool still does not generate the list of opcodes if I run it from the IDE.

    do you see anything at all? flashing window, running process, any files generated (even empty). Do you run Sanny as admin?

  7. MatiDragon-YT commented on Sep 6, 2022

    @MatiDragon-YT
    MemberAuthor

    do you see anything at all? flashing window, running process, any files generated (even empty). Do you run Sanny as admin?

    Without running it as administrator, nothing comes out. Only SB freezes for a short moment.
    And running as administrator, the Windows window appears, that a file is being copied, but when checking the opcodes file, it is not updated, and if I delete it, it is not created.

  8. added
    type:bug
    priority:p3
    and removed on Sep 7, 2022
  9. x87 commented on Sep 7, 2022

    @x87
    Collaborator

    Thanks for helping me to triage this issue. I think I found the root cause. Please stay tuned, should be resolved with the next update.

  10. added this to the Next milestone on Sep 7, 2022
  11. x87 commented on Sep 8, 2022

    @x87
    Collaborator

    @MatiDragon-YT please check version 3.8.2 and confirm the fix

  12. MatiDragon-YT commented on Sep 9, 2022

    @MatiDragon-YT
    MemberAuthor

    @x87 It works very well 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p3scope:IDEtype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions