How to make a splash screen for flyff (no GG use)

Results 1 to 1 of 1
  1. #1
    French Dev jtb1 is offline
    MemberRank
    Apr 2010 Join Date
    France/GermanyLocation
    278Posts

    thumbs up How to make a splash screen for flyff (no GG use)

    hello all ,

    I past my tutoriel here , just for fun ? :p <3

    You want make this without GameGuard ?



    Humm okey listen :)

    Go to the (city XD ) : \8_Neuz\Neuz.cpp

    after :
    Code:
    #include "ClientMsg.h"
    add :
    Code:
    #ifdef __LOADER_SPLASH
    
    #include "loadersplash.h" // Hey mon chou <3
    
    SPLASHLOAD NeuzLoad;
    
    #endif

    Find:
    Code:
    void CNeuzApp::WaitLoading()
    
    {
    
        OutputDebugString("WaitLoading start\n");
    Add :
    Code:
    #ifdef __LOADER_SPLASH
    
        NeuzLoad.Load(m_hInstance,ID_PRELOADER);
    
        NeuzLoad.Active(); // like splash :p
    
    #endif
    Find after:
    Code:
    void CNeuzApp::BeginLoadThread()
    
    {
    
        CResFile::ScanResource( "" );
    Remplace By
    Code:
    void CNeuzApp::BeginLoadThread()
    
    {
    
    #ifdef __LOADER_SPLASH
    
    ShowWindow( m_hWnd, SW_HIDE ); // Et hop tu te casse <3
    
    #endif
    
    CResFile::ScanResource( "" );

    Find :
    Code:
    #ifdef    __PROF
    
        SetFrameSkip( FALSE );
    
    #endif
    
        m_texQuestEmoticon.LoadScript( m_pd3dDevice, MakePath( DIR_ICON, "icon_QuestEmoticon.inc" ) );
    
        m_TexturePackPVP.LoadScript( m_pd3dDevice, MakePath( DIR_SFX, "CountFight.inc" ) );
    
    #if __VER >= 15 // __BS_CHANGING_ENVIR
    
        TexturePool::Get()->Init( m_pd3dDevice );
    
    #endif    //__BS_CHANGING_ENVIR
    Add:
    Code:
    #ifdef __LOADER_SPLASH
    
        ShowWindow( m_hWnd, SW_SHOW ); // reviens mon pti coeur <3
    
        if(NeuzLoad.SHOW)
    
            NeuzLoad.exit(); // now c'est bon tu peu aller dormir :3
    
    #endif
    Now the neuz call the splash if you want custom the splash NOT TOUCH the neuz ...

    Create loadersplash.h

    Past in loadersplash.h

    Code:
    //////////////////////////////////////////////////////////////////////
    
    //                                                                    //
    
    // loadersplash.h , Affichage du splatch pour flyff                    //
    
    //                                                                    //
    
    //////////////////////////////////////////////////////////////////////
    
    #if !defined(AFX_FLYFF_SPLASH)
    
    #define AFX_FLYFF_SPLASH
    
    #if _MSC_VER > 1000
    
    #pragma once
    
    #endif // _MSC_VER > 1000
    
    // bon sa devrais tourner , cherche pas je rox le boeuf bourée xD
    
    #ifdef __LOADER_SPLASH
    
    class SPLASHLOAD
    
    {
    
    public:
    
        void exit();
    
        void Active();
    
        void Load(HINSTANCE hInstance,int resid);
    
        BOOL SHOW;
    
        SPLASHLOAD();
    
        virtual ~SPLASHLOAD();
    
    private:
    
        UINT TimerID;
    
        HWND hParentWindow;
    
        HWND hSplashWnd;
    
    };
    
    #endif
    
    #endif // !defined(AFX_FLYFF_SPLASH)
    Create loadersplash.cpp

    past in loadersplash.cpp

    Code:
    //////////////////////////////////////////////////////////////////////
    
    //                                                                    //
    
    // loadersplash.cpp , Affichage du splatch pour flyff                //
    
    //                                                                    //
    
    //////////////////////////////////////////////////////////////////////
    
    #include "stdafx.h"    // Prérequis
    
    #include "windows.h"    // Vu que on Cheat par windows
    
    #include "loadersplash.h"    // on appel notre .h
    
    //////////////////////////////////////////////////////////////////////
    
    // Construction/Destruction
    
    //////////////////////////////////////////////////////////////////////
    
    #ifdef __LOADER_SPLASH
    
    SPLASHLOAD::SPLASHLOAD()
    
    {
    
    }
    
    SPLASHLOAD::~SPLASHLOAD()
    
    {
    
    DestroyWindow(hSplashWnd);
    
    }
    
    void SPLASHLOAD::Load(HINSTANCE hInstance,int resid)
    
    {
    
    hSplashWnd=CreateWindowEx(WS_EX_CLIENTEDGE,"STATIC","Chargement en Cours",
    
        WS_POPUP|WS_DLGFRAME|SS_BITMAP,301,301,550,300,NULL,NULL,hInstance,NULL); // 550 = länge , 300 = breite , in german for german :p
    
    SendMessage(hSplashWnd,STM_SETIMAGE,IMAGE_BITMAP,(LPARAM)LoadBitmap(hInstance,MAKEINTRESOURCE(resid)));
    
    // on utilisera une fenetre avec du BMP en fond vu que je suis un gros faignant pour vous expliquer comment mettre une lib
    
    this->SHOW = FALSE;
    
    }
    
    void SPLASHLOAD::Active()
    
    {
    
      int x,y;
    
      int tx,ty;
    
      HDWP windefer;
    
      RECT rect;
    
      GetClientRect(hSplashWnd,&rect);
    
      x=rect.right;y=rect.bottom;
    
      POINT Ecran = {GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN)} ;
    
      // on prend la taille de l'ecran - la fenaitre pour centrer
    
      tx = ((Ecran.x/2)-(x/2)); // Taille de ecran divisée par 2 moins taille de image divisée par 2 =  center
    
      ty = ((Ecran.y/2)-(y/2));
    
      windefer=BeginDeferWindowPos(1);
    
      DeferWindowPos(windefer,hSplashWnd,HWND_NOTOPMOST,tx,ty,50,50,SWP_NOSIZE|SWP_SHOWWINDOW|SWP_NOZORDER);
    
      EndDeferWindowPos(windefer);
    
      ShowWindow(hSplashWnd,SW_SHOWNORMAL);
    
      UpdateWindow(hSplashWnd);
    
      this->SHOW = TRUE;
    
    }
    
    void SPLASHLOAD::exit()
    
    {
    
      ShowWindow(hSplashWnd,SW_HIDE);
    
    // si ta eu le courage de lire , c'est moi qui est pré-ecrit le discours de karles pour le cadeau :3 Oui moi :p
    
    // Pourquoi sa te choque que moi , davedevils puis écrire des chose censée ?
    
      this->SHOW = FALSE;
    
    }
    
    #endif
    Paste the cpp and h in /8_Neuz/

    Now , Go to : \8_Neuz\Resource.h

    find :
    #define IDM_TOGGLEALLHITS 40013
    add:
    #define ID_PRELOADER 40020
    Open with NOTPAD++ the file \8_Neuz\WinMain.rc

    Find :
    IDI_MAIN_ICON ICON "Resource\\main_ico.ico"
    add:
    ID_PRELOADER BITMAP "Resource\\Preloader.bmp"
    Add your splash in : \8_Neuz\Resource\Preloader.bmp

    (Splash for test : Multiupload.nl)


    go to \8_Neuz\VersionCommon.h

    add :
    #define __LOADER_SPLASH // splash for neuz by davedevils /jtb1
    In Neuz.sln in visual studio 2003 , right click

    Add -> Add existing Item

    add : loadersplash.cpp et loadersplash.h

    Now Build and try ;)

    Now you have this :


    Credit :
    99% Dave devil's / jtb1
    1% Gala-lab For flyff




Advertisement