Text Editor Problems

Discussion in 'Discussion and Q&A Archive' started by Hwd405, Sep 17, 2011.

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

    Hwd405 Newcomer In Limbo

    Joined:
    Sep 13, 2011
    Messages:
    19
    Today, I tried to use the Sonic 2 Text Code Generator, made by Selbi. However, I keep getting the following error when building:



    Code:
    
    > > >s2.asm(25801): error: symbol undefined
    
    > > > Off_TitleCardLetters
    
    > > >  move.b Off_TitleCardLetters(pc,d0.w),d0
    
    > > >s2.asm(25801): error: addressing mode not allowed here
    
    > > >  move.b Off_TitleCardLetters(pc,d0.w),d0
    
    > > >s2.asm(25802): error: symbol undefined
    
    > > > TitleCardLetters
    
    > > >  lea TitleCardLetters(pc),a0
    
    > > >s2.asm(25802): error: addressing mode not allowed here
    
    > > >  lea TitleCardLetters(pc),a0
    
    > > >s2.asm(50536): error: addressing mode not allowed on 68000
    
    > > >  lea byte_28726(pc,d1.w),a1
    
    > > >s2.asm(50536): error: addressing mode not allowed here
    
    > > >  lea byte_28726(pc,d1.w),a1
    [/CODE]


    The error shows up in S2.log. Can anyone tell what I am doing wrong? S2.asm has already been patched, but I'm guessing there's still something that needs to be changed. If it helps, I had to patch it manually, because the program wouldn't patch it itself. I am also using the S2svn disassembly.
     
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,430
    Location:
    Northern Germany
    I can tell you excactly what you are doing wrong: You are using the SVN disassembly. As much as I hate to say this, my only works with Xenowhirl's 2007 disassembly, because that version is much more used and also liked.


    So, there isn't much you can do if you don't know how this system works. If you didn't do much to your hack yet, you could switch to the older disassembly. Otherwise, you have to figure out yourself how the text system works.


    Sorry for the inconvenience.
     
  3. Hwd405

    Hwd405 Newcomer In Limbo

    Joined:
    Sep 13, 2011
    Messages:
    19
    Don't worry. I couldn't get much else to work so I haven't got very much done yet. Thanks for the help (and the program)!


    EDIT: Can anyone help me with ANOTHER problem? Basically, every time I try to add:



    Code:
    include "TitleCards_Setup.asm"
    [/CODE]

    It won't build. But, If I don't add that, when I do build, I get this:


    [​IMG]


    Note that the above image is supposed to say 'Metal Garden Zone', and not 'Meral Dahien Zone'.
     
    Last edited by a moderator: Sep 17, 2011
  4. rika_chou

    rika_chou Adopt Member

    Joined:
    Aug 11, 2007
    Messages:
    689
    What error do you get when it fails to build?


    From that shot it looks like you have the mappings right, you just need to adjust what letters are loaded.
     
  5. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England



    Make sure you have "TitleCards_Setup.asm" in the disassembly folder but NO subfolders. If you do have it in a subfolder, make sure you put that in the asm, for example:





    Code:
    include "whateveryoursubfolderis/TitleCards_Setup.asm"


    Basically, the error is just saying it can't find "TitleCards_Setup.asm".

    [/CODE]
     
    Last edited by a moderator: Sep 18, 2011
  6. Hwd405

    Hwd405 Newcomer In Limbo

    Joined:
    Sep 13, 2011
    Messages:
    19
    TitleCards_Setup.asm is definitely in the correct place. I Just don't know where to add



    Code:
    include "TitleCards_Setup.asm"
    I've tried several placements, and each one has a different error. The most recent placement I tried was to remove byte:15820 and word:15832 and place this in:





    Code:
    
    ; unknown
    
    include "TitleCards_Setup.asm"

    But, I got this error:



    [/CODE]
    Code:
    
    Assembling s2.asm
    
    PASS 1
    
    s2.macrosetup.asm(201)
    
    TitleCards_Maps.asm(313)
    
    > > >s2.asm(26428): error: undefined attribute
    
    > > > include         "TitleCards_Setup.asm"
    
    s2.soundriver.asm(2807)
    
    s2.asm(87739)
    So, here's the byte:15820 before I changed it:



    Code:
    
    ; unknown
    
    byte_15820:
    
    dc.b   0,  0,  0,  0,$10,$10,$98,$20,$2C,  0,$3C,$46,$58,$68,$A8,$7A
    
    dc.b $8A,  0 ; 16
    
    ; unknown
    
    word_15832:
    
    dc.w $2A06,$3804,    4,$2604, $C04,$1804,$1C02,$FFFF
    
    dc.w $2A06,$4004,$3804,$3004,$2604,$1C02,$3C04,$FFFF; 8
    
    dc.w $1804,$1C02,$2604,$4004,$3004,$FFFF,$1804,$1C02; 16
    
    dc.w  $C04,$3004,    4,$2604, $804,$FFFF,$1C02,$2604; 24
    
    dc.w  $804,    4,$FFFF,$2A06,$5604,$3C04,$4004,$1C02; 32
    
    dc.w  $804,    4,$4804,$FFFF, $804,    4,$3C04,$1C02; 40
    
    dc.w $1404,$1804,$4004,$FFFF, $804,$1804,$2A06,$1C02; 48
    
    dc.w  4,$2604,$3004,$4004,$FFFF,    4,$3404,$4404; 56
    
    dc.w $4004,$1C02, $804,$3804,$FFFF,$3C04,$2204,$5604; 64
    
    dc.w  $804,$1804,    4,$FFFF,$4C06,$1C02,$1404,$1004; 72
    
    dc.w $3804,$4004,$3C04,$FFFF, $C04,    4,$4004,$1804; 80
    
    dc.w $1404,$FFFF ; 88
    
    
    Exactly what bit am I supposed to replace with

    Code:
    
    include "TitleCards_Setup.asm"
    
    
     
  7. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    I don't think you're meant to replace anything, and you should be able to put the command anywhere, close to the titlecard object is a good place though.


    You did leave a space before the word include right?


    So not:


    include


    you want


    <space>include


    If that doesn't work, I have no idea
     
    Last edited by a moderator: Sep 18, 2011
  8. Hwd405

    Hwd405 Newcomer In Limbo

    Joined:
    Sep 13, 2011
    Messages:
    19
    Thanks, I'll give it a try.


    EDIT: Thanks for the help everyone! I don't know what I was doing wrong, but I think what I was doing in the SVN hack was what I was supposed to do, I seem to remember trying what I did before... Basically, the answer was right in front of my eyes the whole time, I'll try to pay more attention next time.
     
    Last edited by a moderator: Sep 19, 2011
  9. AURORA☆FIELDS

    AURORA☆FIELDS so uh yes Exiled

    Joined:
    Oct 7, 2011
    Messages:
    759
    HELP!


    ESE2 gives out code line like this :



    Code:
    
    								    &#254;  &#254;&#238; &#238;&#238; &#237;&#221;&#222; &#237;&#208; &#221;  &#208; &#237;  &#255;&#224; &#255;  &#255;&#255; &#255;&#255; &#255;&#255;&#255;&#255;&#255;&#255;&#238;&#239;&#255;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#237;&#238;&#238;&#208;&#238;&#238;					   &#255; &#255;&#238;&#255;&#238;&#238;&#255;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;""&#238;&#226;/&#255;&#238;/&#255;&#255;&#255;&#255;&#255;/&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#240;&#255;&#255;&#255; &#238;&#239;&#240; &#238;&#238;  &#238;&#224;  &#238;   &#224;  &#208;  &#222;   &#238;  &#238;  &#238;						&#238;&#224;  &#238;&#238;&#238; &#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;///&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#252;&#255;&#255;&#255;&#204;&#255;&#255;&#240;&#204;&#255;&#255; &#255;&#240;  &#254;   &#224;	&#221;&#221; &#238;&#237;&#221; &#238;&#238;&#221;&#238;&#238;&#237;&#222;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#239;&#238;&#238;&#238;&#255;&#238;&#238;&#239;&#255;				            &#224;  
    
    &#238;&#238;
    
    &#255;&#255;&#253; &#255;&#252;&#205;&#208;&#254;&#204;&#205;&#221;&#236;&#204;&#204;&#221;&#204;&#204;&#204;&#221;&#204;&#204;&#204;&#205;&#204;&#204;&#204;&#255;&#204;&#204;&#204;&#239;&#204;&#204;&#204;&#207;&#204;&#204;&#206; &#204;&#204;&#206;&#221;&#220;&#204;&#204;&#221;&#221;&#221;&#220;&#221;&#221;&#221;&#221;&#221;&#221;&#221;&#221;&#221;&#221;&#221;&#237;&#237;&#222;&#237; &#238;&#224; &#239;&#224; 3&#255; 3&#254; 3D&#224; 4D				      &#255;  &#255;  &#255;&#255; &#255;&#255; /&#255;&#255;&#255;&#255;&#255;/&#255;&#255;&#255;""&#242;&#255;&#239;&#255;&#255;&#242;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#222;&#238;&#238;&#238;&#222;&#238;&#238;&#238;&#222;&#222;&#255;"&#239;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#238;&#254;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#206;&#238;&#238;&#238;	 &#254;&#237;&#220;&#255;&#254;&#237;&#255;&#255;&#255;&#254;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255; &#255;&#242;"&#205;&#242;"&#204;&#221;&#238;&#238;&#205;&#221;&#238;&#237;&#205;&#223;&#238;&#220;&#221;&#239;&#238;&#220;&#221;&#239;&#237;&#205;&#221;&#255;&#237;&#205;&#222;&#255;&#220;&#221;&#222;&#255;&#242;"/&#255;/&#255;"&#255;&#255;&#242;"/&#255;&#254;&#238;&#237;&#238;&#238;&#238;&#239;&#238;&#238;&#238;&#239;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;&#238;		&#221;&#221;&#220;&#192;&#237;&#221;&#221;&#221;&#254;&#237;&#221;&#221;&#255;&#254;&#237;&#221;&#255;&#255;&#254;&#237;&#255;&#255;&#240; &#255;&#240;  &#254;		&#221;&#223; &#221;&#221;&#253;&#208;&#221;&#255;-&#221;&#223;&#255;&#221;&#221;&#255;&#242;&#221;&#221;&#255;&#253;&#221;&#221;&#255;,&#205;&#221;&#255;  &#255;   &#240;   &#240; &#222;&#238; &#222;&#238;&#239;&#222;&#238;&#255;&#255;&#238;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#255;&#239;&#238;  &#224;			   &#221;&#221;&#220;&#192;&#221;&#221;&#221;&#221;&#221;&#221;&#221;&#220;&#220;							   &#208;   &#221;   &#221;&#208;  &#221;&#221;  &#205;&#221;&#208;  &#205;		 &#255;   &#255;&#255;  &#255;&#255;&#242; &#255;&#255;&#255;&#242;&#255;&#255;&#255;&#255;&#255;&#242;&#242;""&#255;&#255;&#238;&#238; &#204;&#204;   &#204;   				&#221;&#221;			  &#238;&#224; &#238;&#208; &#238;  &#224;  &#208;  											 &#238;&#238;  &#254;&#238; &#254;&#238; &#239;&#254;&#239; &#255;&#254;&#255;&#255;&#255;&#255;&#239;&#255;&#255;&#255;&#255;&#255;&#255; &#242;&#255;&#255; &#222;&#242;/
    
    &#238;&#242;  &#238;&#238;  &#238;  
    
    &#238;   &#222;   &#238;&#238;&#255;&#255;&#238;&#255;&#255;&#254;&#239;&#255;&#255;&#240;&#255;&#255;&#255;&#224;&#255;&#255;&#254; &#255;&#255;&#240; &#255;&#255;&#224; &#255;&#255;  &#255;&#254;  &#255;   "   "   &#224;   &#224;   &#237;   &#238;	&#211;4&#228;
    
    D&#212;  DE &#211;D&#229;
    
    D&#213;  DU &#211;E&#245;
    
    E&#229;  UU &#244;U&#245; U&#229;
    
    
    But text code generator gives like this:





    Code:
    
    Date: dc.b '(C)SEGA 1991.APR' ; Release date
    
    Title_Local: dc.b 'SONIC THE			   HEDGEHOG				' ; Domestic name
    
    Title_Int: dc.b 'SONIC THE			   HEDGEHOG				' ; International name
    
    
    So what i should do for it?

    [/CODE]
     
    Last edited by a moderator: Oct 8, 2011
  10. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,430
    Location:
    Northern Germany
    There is your problem. ESE2 only modifies ROMs directly, whilst my program is only meant to be used with split disassemblies.
     
  11. AURORA☆FIELDS

    AURORA☆FIELDS so uh yes Exiled

    Joined:
    Oct 7, 2011
    Messages:
    759
    could you put link for me?
     
  12. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,430
    Location:
    Northern Germany
    How about no? Google is your friend.
     
  13. AURORA☆FIELDS

    AURORA☆FIELDS so uh yes Exiled

    Joined:
    Oct 7, 2011
    Messages:
    759
    Well, Google is not so good anymore, because there is so much spam pages (Meaning of there are ''Search results for ____, No results found'' or ''Sing in before downloading'')


    'So its very hard to fing right one...


    But I'll try anyway <_<
     
  14. AURORA☆FIELDS

    AURORA☆FIELDS so uh yes Exiled

    Joined:
    Oct 7, 2011
    Messages:
    759
    I need help with you tool...


    I cant open it <_<
     
  15. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,430
    Location:
    Northern Germany
    What's the error message?
     
  16. AURORA☆FIELDS

    AURORA☆FIELDS so uh yes Exiled

    Joined:
    Oct 7, 2011
    Messages:
    759
    There is no, its just does nothing...


    [i may need x86 version]
     
  17. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    If you have 64bit, that maybe your problem. You may beed 32bit, this is what I had to do when I had disasm problems using 64bit.
     
    Last edited by a moderator: Oct 10, 2011
  18. AURORA☆FIELDS

    AURORA☆FIELDS so uh yes Exiled

    Joined:
    Oct 7, 2011
    Messages:
    759
    Hmmm... Then that is problem...


    Cant really make my PC to 32 bit machine <_< <_< <_<


    Well, have to find other way...


    (does not understand hex <_< )
     
  19. Crash

    Crash Well-Known Member Member

    Joined:
    Jul 15, 2010
    Messages:
    302
    Location:
    Australia
    If there's an option then just get the 32 bit version of whatever the hell it is you're trying to download, it should work regardless of what processor you have.
     
  20. AURORA☆FIELDS

    AURORA☆FIELDS so uh yes Exiled

    Joined:
    Oct 7, 2011
    Messages:
    759
    There was no....


    Finded it from sonic retro
     
Thread Status:
Not open for further replies.