Basic Questions and Answers Thread

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

  1. TheJeli

    TheJeli Umm... Member

    Joined:
    Jun 20, 2011
    Messages:
    245
    Location:
    West London
    I've recently downloaded the dome of SADX PC, I then downloaded SADXTweaker to edit it.


    When I open windows like the action switch, I get this



    Code:
    
    See the end of this message for details on invoking
    
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    
    System.ArgumentOutOfRangeException: InvalidArgument=Value of '143' is not valid for 'SelectedIndex'.
    
    Parameter name: SelectedIndex
    
       at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
    
       at ActionSwitch.ActionSwitch.ActionSwitch_VisibleChanged(Object sender, EventArgs e) in C:UsersMikeDocumentsVisual Studio 2008ProjectsSADXTweakerActionSwitchActionSwitch.vb:line 56
    
       at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
    
       at System.Windows.Forms.Form.OnVisibleChanged(EventArgs e)
    
       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    
       at SADXTweaker.MainForm.ShowWindow(Form& window) in C:UsersMikeDocumentsVisual Studio 2008ProjectsSADXTweakerSADXTweakerMainForm.vb:line 90
    
       at SADXTweaker.MainForm.WindowItem_Click(ToolStripItem sender, EventArgs e) in C:UsersMikeDocumentsVisual Studio 2008ProjectsSADXTweakerSADXTweakerMainForm.vb:line 159
    
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    
       at System.Windows.Forms.Control.WndProc(Message& m)
    
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    
    ************** Loaded Assemblies **************
    
    mscorlib
    
    	Assembly Version: 2.0.0.0
    
    	Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
    
    	CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    
    ----------------------------------------
    
    SADXTweaker
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/SADXTweaker.exe
    
    ----------------------------------------
    
    Microsoft.VisualBasic
    
    	Assembly Version: 8.0.0.0
    
    	Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
    
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    
    ----------------------------------------
    
    System
    
    	Assembly Version: 2.0.0.0
    
    	Win32 Version: 2.0.50727.5453 (Win7SP1GDR.050727-5400)
    
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    
    ----------------------------------------
    
    System.Windows.Forms
    
    	Assembly Version: 2.0.0.0
    
    	Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    
    ----------------------------------------
    
    System.Drawing
    
    	Assembly Version: 2.0.0.0
    
    	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    
    ----------------------------------------
    
    System.Runtime.Remoting
    
    	Assembly Version: 2.0.0.0
    
    	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    
    ----------------------------------------
    
    PluginSystem
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/PluginSystem.DLL
    
    ----------------------------------------
    
    System.Configuration
    
    	Assembly Version: 2.0.0.0
    
    	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    
    ----------------------------------------
    
    System.Xml
    
    	Assembly Version: 2.0.0.0
    
    	Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    
    	CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    
    ----------------------------------------
    
    ActionSwitch
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/ActionSwitch.dll
    
    ----------------------------------------
    
    AnimationSwitch
    
    	Assembly Version: 0.0.0.0
    
    	Win32 Version: 0.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/AnimationSwitch.dll
    
    ----------------------------------------
    
    BGEdit
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/BGEdit.dll
    
    ----------------------------------------
    
    CharSwitch
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/CharSwitch.dll
    
    ----------------------------------------
    
    CharTexList
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/CharTexList.dll
    
    ----------------------------------------
    
    CodeSwitch
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/CodeSwitch.dll
    
    ----------------------------------------
    
    LvlTexList
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/LvlTexList.dll
    
    ----------------------------------------
    
    MusicEdit
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/MusicEdit.dll
    
    ----------------------------------------
    
    ObjectEdit
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/ObjectEdit.dll
    
    ----------------------------------------
    
    ObjTexList
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/ObjTexList.dll
    
    ----------------------------------------
    
    PhysicsEditor
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/PhysicsEditor.dll
    
    ----------------------------------------
    
    ResEdit
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/ResEdit.dll
    
    ----------------------------------------
    
    TextEdit
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/TextEdit.dll
    
    ----------------------------------------
    
    TrialListEdit
    
    	Assembly Version: 1.0.0.0
    
    	Win32 Version: 1.0.0.0
    
    	CodeBase: file:///C:/Users/Charlie/Saved%20Games/SADX/Plugins/TrialListEdit.dll
    
    ----------------------------------------
    
    ************** JIT Debugging **************
    
    To enable just-in-time (JIT) debugging, the .config file for this
    
    application or computer (machine.config) must have the
    
    jitDebugging value set in the system.windows.forms section.
    
    The application must also be compiled with debugging
    
    enabled.
    
    For example:
    
    <configuration>
    
    	<system.windows.forms jitDebugging="true" />
    
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    
    will be sent to the JIT debugger registered on the computer
    
    rather than be handled by this dialog box.
    
    
    
    
    http://www.youtube.com/watch?v=Sqv2fRj7jT0


    (sorry for wall of text)

    [/CODE]
     
    Last edited by a moderator: Feb 21, 2012
  2. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    SADXTweaker only works on the full version.
     
    Last edited by a moderator: Feb 21, 2012
  3. CrashSG32

    CrashSG32 Classy and I know it Member

    Joined:
    Jan 21, 2012
    Messages:
    54
    Location:
    Australia
    Hai guys,


    In my hack of Sonic 2, I need Sonic to use Super Sonic's yellow pallette, I edited the asm file, and Sonic was using SS's pallette.


    The problem now though, is how can I change Super Sonic's pallette but have Sonic keep the normal Super Sonic pallette?
     
  4. Kensou

    Kensou Well-Known Member Member

    Joined:
    Aug 19, 2010
    Messages:
    59
    I don't understand what do you want :S
     
  5. TheJeli

    TheJeli Umm... Member

    Joined:
    Jun 20, 2011
    Messages:
    245
    Location:
    West London
    Do any of the hacking programs work with the trial? Like SADXsndsharp or SADXMDL?
     
  6. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    Anything that doesn't edit the EXE file will work (such as SADXsndSharp and PVMEdit/Puyo Tools).


    Edit: I suppose SADXMDL might work if you found the addresses for the models in the trial.
     
    Last edited by a moderator: Feb 24, 2012
  7. CrashSG32

    CrashSG32 Classy and I know it Member

    Joined:
    Jan 21, 2012
    Messages:
    54
    Location:
    Australia
    I'll explain:


    In my Sonic 2 hack, I need Normal Sonic to use Super Sonic's palette (ie. Blue Sonic needs to use Super Sonic's Yellow pallette).


    I edited the ASM, and Normal Sonic now uses Super Sonic's Palette.


    But now I need to change Super Sonic's palette, but have Normal Blue Sonic keep Super Sonic's yellow palette.


    So: Normal Sonic: SS's Yellow Palette.


    Super Sonic: A different palette (probably Red/Pink).


    How could I do that? I can't figure out a way, it usually results in glitched colours by swapping palette bin files.
     
  8. rika_chou

    rika_chou Adopt Member

    Joined:
    Aug 11, 2007
    Messages:
    689
    ...Why don't you just edit Sonic's palette?
     
  9. CrashSG32

    CrashSG32 Classy and I know it Member

    Joined:
    Jan 21, 2012
    Messages:
    54
    Location:
    Australia
    ^ I guess that would make sense... and be easier. ^.^
     
  10. Crash

    Crash Well-Known Member Member

    Joined:
    Jul 15, 2010
    Messages:
    302
    Location:
    Australia
    Can someone help me convert this macro from flamewing's smps2asm so it works with asm68k? This code works correctly with the AS compiler but I guess the operators or whatever are different in asm68k so it outputs the wrong TL's and fucks up the instruments.




    ; Voices - Total Level


    smpsVcTotalLevel macro op1,op2,op3,op4


    vcTL1 set op1


    vcTL2 set op2


    vcTL3 set op3


    vcTL4 set op4


    dc.b (vcUnusedBits<<6)+(vcFeedback<<3)+vcAlgorithm


    ; 0 1 2 3 4 5 6 7


    ;%1000,%1000,%1000,%1000,%1010,%1110,%1110,%1111


    vcTLMask4 set ((vcAlgorithm==7)<<7)


    vcTLMask3 set ((vcAlgorithm>=4)<<7)


    vcTLMask2 set ((vcAlgorithm>=5)<<7)


    vcTLMask1 set $80


    dc.b (vcDT4<<4)+vcCF4 ,(vcDT3<<4)+vcCF3 ,(vcDT2<<4)+vcCF2 ,(vcDT1<<4)+vcCF1


    dc.b (vcRS4<<6)+vcAR4 ,(vcRS3<<6)+vcAR3 ,(vcRS2<<6)+vcAR2 ,(vcRS1<<6)+vcAR1


    dc.b (vcAM4<<5)+vcD1R4,(vcAM3<<5)+vcD1R3,(vcAM2<<5)+vcD1R2,(vcAM1<<5)+vcD1R1


    dc.b vcD2R4 ,vcD2R3 ,vcD2R2 ,vcD2R1


    dc.b (vcDL4<<4)+vcRR4 ,(vcDL3<<4)+vcRR3 ,(vcDL2<<4)+vcRR2 ,(vcDL1<<4)+vcRR1


    dc.b vcTL4|vcTLMask4 ,vcTL3|vcTLMask3 ,vcTL2|vcTLMask2 ,vcTL1|vcTLMask1


    endm



    Edit: Don't worry, fixed it
     
    Last edited by a moderator: Feb 26, 2012
  11. Pokepunch

    Pokepunch That guy who posts on occasion Member

    Joined:
    Aug 7, 2009
    Messages:
    270
    Location:
    UK
    So is there an easy way to add DAC samples to Sonic 1?
     
  12. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    http://sonicresearch.org/forums/index.php?showtopic=2981


    Just for you =)
     
  13. Pokepunch

    Pokepunch That guy who posts on occasion Member

    Joined:
    Aug 7, 2009
    Messages:
    270
    Location:
    UK
  14. CrashSG32

    CrashSG32 Classy and I know it Member

    Joined:
    Jan 21, 2012
    Messages:
    54
    Location:
    Australia
    Could someone tell me how to change the Sonic art on the title screen? (In Sonic 2)


    And please tell me it's not SonMapEd, I already looked and it's gonna take ages to change each individual piece >.<
     
  15. Kensou

    Kensou Well-Known Member Member

    Joined:
    Aug 19, 2010
    Messages:
    59
    What? is not as difficult as you think. You don't have to change each indivudal piece. Just create your art and your own pieces for your art.
     
  16. Ravenfreak

    Ravenfreak Still hacking the 8-bit titles Member

    Joined:
    Feb 10, 2010
    Messages:
    410
    Location:
    O'Fallon, MO
    It'd probably be much easier if you used PlaneED to edit the title screen. You can find the link here:


    http://info.sonicretro.org/PlaneED


    It'll also help you edit the level select screen (if you wanted to.) :V However read the wiki page I linked here carefully on how to run the program, as it will terminate immediately if something is missing and or wrong. (Such as a incorrect project file.)
     
  17. rika_chou

    rika_chou Adopt Member

    Joined:
    Aug 11, 2007
    Messages:
    689
    The title screen uses sprites, right? So PlaneED is not going to work.


    SonMapEd is the way to go. You Still will need to draw the new art and turn it into tiles though.
     
  18. CrashSG32

    CrashSG32 Classy and I know it Member

    Joined:
    Jan 21, 2012
    Messages:
    54
    Location:
    Australia
    I tried planeED, but I have no clue what I'm doing, and I can't find a guide or figure it out. Too complicated at the moment.


    As for SonMapEd: I'm not entirely sure as to how I go about changing each piece. I mean just look at this: [​IMG]


    Any help?
     
  19. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    Last edited by a moderator: Feb 29, 2012
  20. CrashSG32

    CrashSG32 Classy and I know it Member

    Joined:
    Jan 21, 2012
    Messages:
    54
    Location:
    Australia
    I've read through part 1 of that guide, but not part 2 so i'll read through that.

    How do I do that?