Dolphin, the GameCube and Wii emulator - Forums

Full Version: [Wii] Super Mario Galaxy
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Hey Nakee included the hack in the SVN
http://code.google.com/p/dolphin-emu/source/detail?r=2949
Maybe they'll look a bit more into Galaxy? I'm gonna report the pull star problemTongue
I think it is possible to improve a bit the "form" to get something that looks more like the establishment of a hack TZP.

But I am not very good so I let the coder to improve the care form.

For the problem of video it just disable the hack while playing, I think it is possible to create a button to activate on the fly.

And thank you nakeee for including my hack in svn is an honor.
New hack :
Code:
Index: Core/DolphinWX/Src/Frame.cpp
===================================================================
--- Core/DolphinWX/Src/Frame.cpp    (revision 2950)
+++ Core/DolphinWX/Src/Frame.cpp    (working copy)
@@ -498,7 +509,7 @@
        UpdateGUI();
    }
#ifdef _WIN32
-    if(event.GetKeyCode() == 'E') // Send this to the video plugin WndProc
+    if(event.GetKeyCode() == 'E','M') // Send this to the video plugin WndProc
    {
        PostMessage((HWND)Core::GetWindowHandle(), WM_KEYDOWN, event.GetKeyCode(), 0);
        event.Skip(); // Don't block the E key
Index: Plugins/Plugin_VideoDX9/Src/VertexManager.cpp
===================================================================
--- Plugins/Plugin_VideoDX9/Src/VertexManager.cpp    (revision 2950)
+++ Plugins/Plugin_VideoDX9/Src/VertexManager.cpp    (working copy)
@@ -235,7 +235,7 @@
        if (numVertices)
        {
            // set global constants
-            VertexShaderManager::SetConstants(false);
+            VertexShaderManager::SetConstants(false,false);
            PixelShaderManager::SetConstants();

            PixelShaderCache::SetShader();
Index: Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp
===================================================================
--- Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp    (revision 2950)
+++ Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp    (working copy)
@@ -355,6 +355,7 @@
    m_SafeTextureCache = new wxCheckBox(m_PageAdvanced, ID_SAFETEXTURECACHE, wxT("Use Safe texture cache"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
    m_ProjectionHax1 = new wxCheckBox(m_PageAdvanced, ID_PROJECTIONHACK1, wxT("ZTP Bloom hack"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
    m_SMGh = new wxCheckBox(m_PageAdvanced, ID_SMGHACK, wxT("Mario Galaxy Hack"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
+    m_SMGh->SetToolTip(wxT("SMG hack for Super Mario Galaxy it will be disable for other game and during SMG ending sequence or movies use the P key to turn this option on or off"));

    // Disabled or enabled
    m_SafeTextureCache->Enable(true);
Index: Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp
===================================================================
--- Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp    (revision 2950)
+++ Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp    (working copy)
@@ -231,6 +231,14 @@
                    g_Config.bEFBCopyDisable ? "off" : "on").c_str(), 5000);
            }
            break;
+        case 'M': // SMGhack hotkey
+            if (true)
+            {
+                g_Config.bSMGhack = !g_Config.bSMGhack;
+                OSD::AddMessage(StringFromFormat("SMGhack was turned %s",
+                    g_Config.bSMGhack ? "on" : "off").c_str(), 5000);
+            }
+            break;        
        }
        g_VideoInitialize.pKeyPress(LOWORD(wParam), GetAsyncKeyState(VK_SHIFT) != 0, GetAsyncKeyState(VK_CONTROL) != 0);
        break;

The new hack can be activated to fly via the "P".
Another special projection hack? Smile Nice job!
It's just an addition to my previous hack you can now activate and deactivate as you want.

The next time I change a bit the way I wrote the hack.

And I look for mariokart wii. But I think it will be harder.

cmccmc

Good job!
SmileSmileSmileSmileSmile
slight change the letter P is already used so I replaced with the letter M.

And I change the part of a hack involving projection.

Code:
Index: Core/DolphinWX/Src/Frame.cpp
===================================================================
--- Core/DolphinWX/Src/Frame.cpp    (revision 2950)
+++ Core/DolphinWX/Src/Frame.cpp    (working copy)
@@ -498,7 +509,7 @@
        UpdateGUI();
    }
#ifdef _WIN32
-    if(event.GetKeyCode() == 'E') // Send this to the video plugin WndProc
+    if(event.GetKeyCode() == 'E','M') // Send this to the video plugin WndProc
    {
        PostMessage((HWND)Core::GetWindowHandle(), WM_KEYDOWN, event.GetKeyCode(), 0);
        event.Skip(); // Don't block the E key
Index: Plugins/Plugin_VideoDX9/Src/VertexManager.cpp
===================================================================
--- Plugins/Plugin_VideoDX9/Src/VertexManager.cpp    (revision 2950)
+++ Plugins/Plugin_VideoDX9/Src/VertexManager.cpp    (working copy)
@@ -235,7 +235,7 @@
        if (numVertices)
        {
            // set global constants
-            VertexShaderManager::SetConstants(false);
+            VertexShaderManager::SetConstants(false,false);
            PixelShaderManager::SetConstants();

            PixelShaderCache::SetShader();
Index: Core/VideoCommon/Src/VertexShaderManager.cpp
===================================================================
--- Core/VideoCommon/Src/VertexShaderManager.cpp    (revision 2950)
+++ Core/VideoCommon/Src/VertexShaderManager.cpp    (working copy)
@@ -255,13 +255,8 @@
             g_fProjectionMatrix[9] = 0.0f;
             g_fProjectionMatrix[10] = xfregs.rawProjection[4];
            
-            if (SMG_hack) {
-                g_fProjectionMatrix[11] = -(0.512505 + xfregs.rawProjection[5]) + (proj_hax_1 ? 0.1f : 0.0f);
-            }
-            else {
-                g_fProjectionMatrix[11] = xfregs.rawProjection[5] + (proj_hax_1 ? 0.1f : 0.0f);
-            }
-
+            g_fProjectionMatrix[11] = (SMG_hack ? -(0.512505f + xfregs.rawProjection[5]) : xfregs.rawProjection[5]) + (proj_hax_1 ? 0.1f : 0.0f);
+  
             g_fProjectionMatrix[12] = 0.0f;
             g_fProjectionMatrix[13] = 0.0f;
             g_fProjectionMatrix[14] = 0.0f;
Index: Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp
===================================================================
--- Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp    (revision 2950)
+++ Plugins/Plugin_VideoOGL/Src/GUI/ConfigDlg.cpp    (working copy)
@@ -355,6 +355,7 @@
    m_SafeTextureCache = new wxCheckBox(m_PageAdvanced, ID_SAFETEXTURECACHE, wxT("Use Safe texture cache"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
    m_ProjectionHax1 = new wxCheckBox(m_PageAdvanced, ID_PROJECTIONHACK1, wxT("ZTP Bloom hack"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
    m_SMGh = new wxCheckBox(m_PageAdvanced, ID_SMGHACK, wxT("Mario Galaxy Hack"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
+    m_SMGh->SetToolTip(wxT("SMG hack for Super Mario Galaxy it will be disable for other game and during SMG ending sequence or movies use the P key to turn this option on or off"));

    // Disabled or enabled
    m_SafeTextureCache->Enable(true);
Index: Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp
===================================================================
--- Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp    (revision 2950)
+++ Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp    (working copy)
@@ -231,6 +231,14 @@
                    g_Config.bEFBCopyDisable ? "off" : "on").c_str(), 5000);
            }
            break;
+        case 'M': // SMGhack hotkey
+            if (true)
+            {
+                g_Config.bSMGhack = !g_Config.bSMGhack;
+                OSD::AddMessage(StringFromFormat("SMGhack was turned %s",
+                    g_Config.bSMGhack ? "on" : "off").c_str(), 5000);
+            }
+            break;        
        }
        g_VideoInitialize.pKeyPress(LOWORD(wParam), GetAsyncKeyState(VK_SHIFT) != 0, GetAsyncKeyState(VK_CONTROL) != 0);
        break;
(04-10-2009, 08:39 PM)gouki Wrote: [ -> ]awesome, the Menus of Dragonball Z Budokai Tenkaichi 3 (Wii) work now !

YAY!!!!

and with "use safe texture cache" enabled this game emulates Perfect!
BRAAVOOO Wink
G R E A T
W O R K ! ! !

VAL532

5 Stars And My Personal Thumbs UP!
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19