Basic Questions and Answers Thread

Discussion in 'Discussion & Q&A' started by Malevolence, Jul 7, 2009.

  1. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    So many things can cause illegal instructions, we can't tell without seeing the changes made to the code.

    edit: you may also want to check the PLCs if you modified them, especially the number of art files if you removed one.
     
    Last edited by a moderator: Apr 11, 2013
  2. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    I have totally fucked up, I made the bin files open with a program on accident and now I can't build any of my disassembles, on every one I get a message saying that "the system cannot find the path specified" how do I keep the bin files from opening in a program? Or is this not the reason for the issue?
     
  3. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    I don't think that's the problem. The assembler doesn't give a shit about what's supposed to open your files when you double click them, it follows the path, reads the data and copy it, that's it.

    Is the error message specifically telling the path to bin files is wrong? All your bin files? Some may have been moved, renamed or deleted, or the folders renamed/moved etc.
     
  4. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    I have other disassembles in my computer that I have not touched in months and the same thing happens. This all started happening after I made bin files open with a program that's why I believe it is the issue, also the .bin no longer shows up in the name of the files.


    Edit: Which could be making the assembler think no files are present to start building from.
     
    Last edited by a moderator: Apr 12, 2013
  5. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    I also doubt the visibility of the extensions in explorer is related. The extensions are there, whether they're visible or not is merely a gui setting (unless they've been removed of course).

    What's exactly the error message?
     
  6. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    The system cannot find the path specified.
     
  7. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    A screenshot would help. The way you tell it there's no way to know what the error message is about, there's no context. It could be your assembler's path or a file's path.
     
  8. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Thats all it says and press any key to ignore warnings, a screenshot wouldnt help.

    The system cannot find the path specified.

    (ignore the warnings) [GF64]
    Press any key to continue . . .
     
    Last edited by a moderator: Apr 13, 2013
  9. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    You know, just from the look of it one could tell you if it's an error message from the assembler or from the system.

    From the error message alone, it looks like a system issue, most likely the assembler's executable or another required file isn't where it should be. But since you're telling it won't find you .bin files it's hard to tell.

    Do you have that error message after using a .bat file? If so the content of that .bat file would help. Some files from your disassembly's directory may have been moved or erased.
     
    Last edited by a moderator: Apr 13, 2013
  10. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Is this what you are talking about?

    echo.
    echo (ignore the warnings) [GF64]
    pause

    REM // done -- pause if we seem to have failed, then exit
    IF NOT EXIST s2.p goto LABLPAUSE
    IF EXIST s2built.bin exit /b
    :LABLPAUSE

    pause


    exit /b

    :LABLERROR1
    echo Failed to build because write access to s2.h was denied.
    pause


    exit /b

    :LABLERROR2
    echo Failed to build because write access to s2.p was denied.
    pause


    exit /b

    :LABLERROR3
    echo Failed to build because write access to s2built.bin was denied.
    pause
     
  11. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Is that all?

    Because many things seem to be missing from that .bat file, there's not even a single line to actually launch the assembler.
     
  12. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Sorry just wanted to know if I was getting what you were talking about right this is the whole thing.

    @ECHO OFF

    REM // make sure we can write to the file s2built.bin
    REM // also make a backup to s2built.prev.bin
    IF NOT EXIST s2built.bin goto LABLNOCOPY
    IF EXIST s2built.prev.bin
     del s2built.prev.bin
    IF EXIST s2built.prev.bin goto LABLNOCOPY
    move /Y s2built.bin s2built.prev.bin
    IF EXIST s2built.bin goto LABLERROR3
    REM IF EXIST s2built.prev.bin copy /Y s2built.prev.bin s2built.bin
    :LABLNOCOPY

    REM // delete some intermediate assembler output just in case
    IF EXIST s2.p del s2.p
    IF EXIST s2.p goto LABLERROR2
    IF EXIST s2.h del s2.h
    IF EXIST s2.h goto LABLERROR1

    REM // clear the output window
    cls


    REM // run the assembler
    REM // -xx shows the most detailed error output
    REM // -c outputs a shared file (s2.h)
    REM // -A gives us a small speedup
    set AS_MSGPATH=win32/msg
    set USEANSI=n
    "win32/asw" -xx -c -A s2.asm

    REM // combine the assembler output into a rom
    IF EXIST s2.p "win32/s2p2bin" s2.p s2built.bin s2.h

    REM // fix some pointers and things that are impossible to fix from the assembler without un-splitting their data
    IF EXIST s2built.bin "win32/fixpointer" s2.h s2built.bin   off_3A294 MapRUnc_Sonic $2D 0 4   word_728C_user Obj5F_MapUnc_7240 2 2 1 

    REM REM // fix the rom header (checksum)
    IF EXIST s2built.bin "win32/fixheader" s2built.bin


    echo.
    echo (ignore the warnings) [GF64]
    pause

    REM // done -- pause if we seem to have failed, then exit
    IF NOT EXIST s2.p goto LABLPAUSE
    IF EXIST s2built.bin exit /b
    :LABLPAUSE

    pause


    exit /b

    :LABLERROR1
    echo Failed to build because write access to s2.h was denied.
    pause


    exit /b

    :LABLERROR2
    echo Failed to build because write access to s2.p was denied.
    pause


    exit /b

    :LABLERROR3
    echo Failed to build because write access to s2built.bin was denied.
    pause
     
  13. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Well then, in your disassembly's folder, open the "win32" folder and see if you have asw.exe, fixpointer.exe, fixheader.exe, s2p2bin.exe, and all the other things visible in the command lines.
     
    Last edited by a moderator: Apr 13, 2013
  14. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Sent my dis. to Alriightyman and it works fine for him.
     
  15. Alriightyman

    Alriightyman I'm back! Member

    Joined:
    Oct 3, 2007
    Messages:
    156
    Location:
    USA
    Yes, but there are a few warning messages:

    Code:
     135286 lines source file
     235882 lines incl. macro expansions
          4 passes
          0 errors
          0 warnings
    
    s2p2bin.exe: generating s2built.bin from s2.p ... done.
    warning: off_3A294 not found in s2.h
    warning: MapRUnc_Sonic not found in s2.h
    warning: word_728C_user not found in s2.h
    warning: Obj5F_MapUnc_7240 not found in s2.h
    
    (ignore the warnings) [GF64]
    Press any key to continue . . .
    
     
    Last edited by a moderator: Apr 13, 2013
  16. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Maybe your antivirus is blocking it or something like that, you could add your disassembly's folder to its white list. :/
     
  17. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    If all else fails, download TeamViewer and let someone else look at your computer.


    No, not me. I don't hack Sonic 2.
     
  18. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Well, I hack Sonic 2, and I know you probably won't let me do squat, but I might find out something no one else does.
     
  19. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Guess I will have to do that since my Antispyware doenst detect any threats in the folder.

    Edit: or have any quarentined items from the folder.
     
    Last edited by a moderator: Apr 13, 2013
  20. SuperEgg

    SuperEgg I'm a guy that knows that you know that I know Member

    Joined:
    Oct 17, 2009
    Messages:
    Location:
    THE BEST GOD DAMN STATE OF TEXAS
    So, I know this is a generalized question. How does one port S2B songs to S2F?