S2 Building Issues

Discussion in 'Discussion and Q&A Archive' started by Spanner, May 3, 2008.

Thread Status:
Not open for further replies.
  1. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Alright, I've been trying to get the Knuckles object from puto's s2k upmem disassembly, I had to fix some branching issues due to using AS but after that I ended up with tons of these errors:


    [​IMG]


    819 errors, 13 warnings.


    So I don't know what the fuck is going on, I tried looking at the Macro Assembler AS's topic at Retro & mentioned about similar stuff, I tried that but it just gave me more errors.


    Anybody able to tell me how to fix this issue? The object was saved in Obj4D.
     
  2. Sephiroth

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    Don't add Knuckles. =P


    What I see is that you basically copy-pasted didn't you?


    That has nothing to do with it of course.


    It is probably (not that I know, I use S1) because you are using Obj4D, and not something like Obj01 or something, like Tails and Sonic.
     
  3. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    Well, the errors you've posted sound like errors occurring as a result of previous errors. Could you post the first few errors that are output? It's quite likely the real cause lies there.


    EDIT: It looks like the errors are the first few which occur, although that might be happening due to buffer overflows in the terminal window. In build.bat, change


    "win32/asw" -xx -c -A s2.asm


    to


    "win32/asw" -xx -c -A -E error.log s2.asm


    and then upload error.log somewhere
     
    Last edited by a moderator: May 3, 2008
  4. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Oh, thanks for telling me how to output an error log.


    Here it is, 81KB of errors.
     
  5. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    All right, the underlying error is that no label with the name SK_Map_Knuckles exists, probably because you didn't put it in yet. Adjust2PArtPointer2_Useless also probably doesn't exist, replace all instances with just Adjust2PArtPointer2. It's hard to tell whether all the other errors are caused by this one or actually genuine errors, but some of them seem genuine so I guess fix those two and post the new error log.
     
  6. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Sorry for bumping, finally got to getting the plcs, mappings & the Knuckles art as well.


    Here is the new error log, I just don't understand them & why they're having a hissy fit.


    756 errors, 13 warnings. :p
     
    Last edited by a moderator: May 25, 2008
  7. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    You don't have a label named Adjust2PArtPointer2_Useless in your disassembly. Replace all instances of it with Adjust2PArtPointer2, that should get rid of at least some of the errors.
     
  8. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Last edited by a moderator: May 25, 2008
  9. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    It's saying that most of them labels do not exist. And the rest are pretty much not aligned.
     
  10. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    They're all fixed, I have the object in now, I'm currently looking into getting him in as a player, other than that this problem is solved.
     
  11. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    Was I right?
     
Thread Status:
Not open for further replies.