[TUTORIAL] Adding options in FrontEnd.swf

Results 1 to 23 of 23
  1. #1
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    [TUTORIAL] Adding options in FrontEnd.swf

    IncreaseFPS- FrontEnd.swf
    Credits: - [LCCB]


    Image :
    Spoiler:

    Custom :

    Other :

    //////////////////////////////




    Download the file :


    IncreaseFPS & FastLoad - FrontEnd.swf 28.8 MB
    https://mega.nz/#!dIBlXTSD!Ixo9PS9a5...JbfwVb68Mk_sU8




    Warning!!
    In my case, in my code, I put on Increase FPS being active in the OPTIONS only if the quality is in CUSTOM !!!!
    -=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-
    -=--=--=--=--=--=--=-Tutorial=--=--=--=--=--=--=--=--=-
    -=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-


    In C:\WarZ\bin\Data\LangPack\NameLang.lang


    Search
    $FR_optTexturesQual


    Add
    $FR_optIncreaseFPS=INCREASE FPS


    Search
    $FR_optAudio=AUDIO


    Add
    $FR_optEXTRA=EXTRAS


    -=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-
    -=--=--=--=--=--=--=--=Next step-=--=--=--=--=--=-
    -=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-


    Client code - EclipseStudio [WarZ.sln]


    Search


    Code:
        void FrontendWarZ::eventOptionsApply(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
        {
    Search this
    Code:
        int old_increase = r_increase_fps_player->GetInt(); // INCREASE FPS
            r_increase_fps_player ->SetInt(0);
    Change to
    Code:
        int old_increase = r_increase_fps_player->GetInt(); // INCREASE FPS
            r_increase_fps_player            ->SetInt((int)args[23].GetNumber()-1);

    Search
    Code:
        gfxMovie.Invoke("_root.api.setOptions", var, 30);

    and


    Code:
        Scaleform::GFx::Value var[30];



    and change to
    Code:
        gfxMovie.Invoke("_root.api.setOptions", var, 31);
    and
    Code:
        Scaleform::GFx::Value var[31];

    There are two of these, do not forget, change the 2 as will adding new functions.


    ------------------------------------------------------------------------------------------------------


    Now to add these options in FrontEnd.swf




    You must have the .fla files [Need Adobe Flash CS6]




    In C:\WarZ\menu\src\classes\warz\frontend\Frontend.as




    Search
    Code:
        public var Opt_MeshT :Number;



    Add
    Code:
        public var Opt_IncreaseFPS :Number; // Increase FPS - [LCCB]



    Search
    Code:
        Opt_MeshT=meshT;



    Add
    Code:
        Opt_IncreaseFPS=increaseFPS; // Increase FPS - [LCCB]



    Search
    Code:
        fullscreen:Number, vsync:Number



    Add
    Code:
        , increaseFPS:Number)



    Ready, next file
    in classes\warz\frontend\FrontendDebug.as




    Search and add more two number [Exemple ,2,1]
    Code:
        api.setOptions(1, 1, 0.95, 0.25, 0.1, 0.2, 0.3, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.5, 1, 0, 0, 1, 2, 1);



    Ready, next file
    in classes\warz\frontend\OptionsGeneral.as




    Search
    Code:
        public var Opt_MeshT :Object;



    Add
    Code:
        public var Opt_IncreaseFPS :Object; // Increase FPS - [LCCB]



    Search
    Code:
        Opt_MeshT = new Object();



    Add
    Code:
        Opt_IncreaseFPS = new Object(); // Increase FPS - [LCCB]



    Search
    Code:
        Opt_Fullscreen.myValue,    Opt_VSync.myValue+1



    Add
    Code:
        , Opt_IncreaseFPS.myValue+1



    Search
    Code:
        Opt_MeshT.myValue = api.Opt_MeshT-1;



    Add
    Code:
        Opt_IncreaseFPS.myValue = api.Opt_IncreaseFPS-1; // Increase FPS - [LCCB]



    Search
    Code:
                OptionsGeneralClip.OptStat22.Name.text = "$FR_optTexturesQual";        
                OptionsGeneralClip.OptStat22.Value.Text.text = arLMH[Opt_MeshT.myValue];
    //            OptionsGeneralClip.OptStat22.Value.gotoAndPlay("start");
                OptionsGeneralClip.OptStat22.ArrowLeft.Btn.addEventListener(MouseEvent.MOUSE_OVER, arrowRollOverFn);
                OptionsGeneralClip.OptStat22.ArrowLeft.Btn.addEventListener(MouseEvent.MOUSE_OUT, arrowRollOutFn);
                OptionsGeneralClip.OptStat22.ArrowLeft.Btn.addEventListener(MouseEvent.CLICK, arrowPressFn);
                OptionsGeneralClip.OptStat22.ArrowRight.Btn.addEventListener(MouseEvent.MOUSE_OVER, arrowRollOverFn);
                OptionsGeneralClip.OptStat22.ArrowRight.Btn.addEventListener(MouseEvent.MOUSE_OUT, arrowRollOutFn);
                OptionsGeneralClip.OptStat22.ArrowRight.Btn.addEventListener(MouseEvent.CLICK, arrowPressFn);
                OptionsGeneralClip.OptStat22.ArrowLeft.ActionFunction = function() { me.onArrowClick(-1, me.Opt_MeshT, me.arLMH, this); }
                OptionsGeneralClip.OptStat22.ArrowRight.ActionFunction = function() { me.onArrowClick(+1, me.Opt_MeshT, me.arLMH, this); }



    Add
    Code:
                OptionsGeneralClip.OptStat23.Name.text = "$FR_optIncreaseFPS";
                OptionsGeneralClip.OptStat23.Value.Text.text = arNY[Opt_IncreaseFPS.myValue];
    //            OptionsGeneralClip.OptStat32.Value.gotoAndPlay("start");
                OptionsGeneralClip.OptStat23.ArrowLeft.Btn.addEventListener(MouseEvent.MOUSE_OVER, arrowRollOverFn);
                OptionsGeneralClip.OptStat23.ArrowLeft.Btn.addEventListener(MouseEvent.MOUSE_OUT, arrowRollOutFn);
                OptionsGeneralClip.OptStat23.ArrowLeft.Btn.addEventListener(MouseEvent.CLICK, arrowPressFn);
                OptionsGeneralClip.OptStat23.ArrowRight.Btn.addEventListener(MouseEvent.MOUSE_OVER, arrowRollOverFn);
                OptionsGeneralClip.OptStat23.ArrowRight.Btn.addEventListener(MouseEvent.MOUSE_OUT, arrowRollOutFn);
                OptionsGeneralClip.OptStat23.ArrowRight.Btn.addEventListener(MouseEvent.CLICK, arrowPressFn);
                OptionsGeneralClip.OptStat23.ArrowLeft.ActionFunction = function() { me.onArrowClick(-1, me.Opt_IncreaseFPS, me.arNY, this); }
                OptionsGeneralClip.OptStat23.ArrowRight.ActionFunction = function() { me.onArrowClick(+1, me.Opt_IncreaseFPS, me.arNY, this); }



    Search
    Code:
                    OptionsGeneralClip.OptStat22.alpha = 1;
                    OptionsGeneralClip.OptStat22.State = "none";
                    OptionsGeneralClip.OptStat22.ArrowRight.useHandCursor = OptionsGeneralClip.OptStat22.ArrowLeft.useHandCursor = true;



    Add
    Code:
                    // Increase FPS - [LCCB]
                    OptionsGeneralClip.OptStat23.alpha = 1;
                    OptionsGeneralClip.OptStat23.State = "none";
                    OptionsGeneralClip.OptStat23.ArrowRight.useHandCursor = OptionsGeneralClip.OptStat23.ArrowLeft.useHandCursor = true;



    Search
    Code:
                    OptionsGeneralClip.OptStat22.alpha = 0.5;
                    OptionsGeneralClip.OptStat22.State = "disabled";
                    OptionsGeneralClip.OptStat22.ArrowRight.useHandCursor = OptionsGeneralClip.OptStat22.ArrowLeft.useHandCursor = false;



    Add
    Code:
                    // Increase FPS  - [LCCB]
                    OptionsGeneralClip.OptStat23.alpha = 0.5;
                    OptionsGeneralClip.OptStat23.State = "disabled";
                    OptionsGeneralClip.OptStat23.ArrowRight.useHandCursor = OptionsGeneralClip.OptStat23.ArrowLeft.useHandCursor = false;

    Next file
    In C:\WarZ\menu\src\classes\warz\events\FrontEndEvents.as
    Search
    Code:
        fullscreen:Number, vsync:Number

    Add
    Code:
        , increaseFPS:Number

    Search
    Code:
        PostProc, MeshT, fullscreen, vsync

    Add
    Code:
        , increaseFPS

    the same for other options, by just adding more numbers
    Okay, so now add the code in the client, this is easy.

    - - - Updated - - -

    Last edited by LukasCCB; 30-11-15 at 03:12 PM. Reason: gif how to add in Interface options.


  2. #2
    Enthusiast THEX3T4R is offline
    MemberRank
    Aug 2015 Join Date
    TurkeyLocation
    43Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Good code @lucasccb thx :)

  3. #3
    Enthusiast Cinx is offline
    MemberRank
    Aug 2015 Join Date
    36Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Or you could just edit the frontend in flash like the proper way.

  4. #4
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    #update

    How to add in Interface options.

    (sorry bad quality)

  5. #5
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    894Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    How to export .SWF after edit .fla ?

  6. #6
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Quote Originally Posted by Oosmar02 View Post
    How to export .SWF after edit .fla ?
    I did not quite understand your question.


    My Flash CS6 expired time of use. :{

  7. #7
    Valued Member erickstyle is offline
    MemberRank
    Sep 2008 Join Date
    Santo André, BLocation
    104Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf


  8. #8
    failed in javascript ItzFdr is offline
    MemberRank
    May 2013 Join Date
    BrasilLocation
    293Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Quote Originally Posted by Oosmar02 View Post
    How to export .SWF after edit .fla ?
    Just go to file and them publish.
    Not so hard..

  9. #9
    Account Upgraded | Title Enabled! Oosmar02 is offline
    MemberRank
    Sep 2013 Join Date
    FranceLocation
    894Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    What your source use beaceause not have code increase fps

  10. #10
    Member arnoza085 is offline
    MemberRank
    Dec 2014 Join Date
    Thailand <3Location
    57Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Quote Originally Posted by erickstyle View Post
    Can i use Adobe Flash Professional CC ? I don't have cs6.

  11. #11
    Valued Member erickstyle is offline
    MemberRank
    Sep 2008 Join Date
    Santo André, BLocation
    104Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Quote Originally Posted by arnoza085 View Post
    Can i use Adobe Flash Professional CC ? I don't have cs6.
    i use CC

  12. #12
    Member arnoza085 is offline
    MemberRank
    Dec 2014 Join Date
    Thailand <3Location
    57Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Quote Originally Posted by erickstyle View Post
    i use CC
    Thanks , do you have flash src for Untouch src ? or how to decompile it (SWF) . I get src form YURI but it can't work perfectly in v3 src.

    Sorry for my bad Eng.

  13. #13
    Valued Member erickstyle is offline
    MemberRank
    Sep 2008 Join Date
    Santo André, BLocation
    104Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Quote Originally Posted by arnoza085 View Post
    Thanks , do you have flash src for Untouch src ? or how to decompile it (SWF) . I get src form YURI but it can't work perfectly in v3 src.

    Sorry for my bad Eng.
    im use fla source from Yuri and codex source.. work perfect

  14. #14
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    @
    arnoza085

    work v3 yes

  15. #15
    Enthusiast McGrumpy is offline
    MemberRank
    Aug 2015 Join Date
    39Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    when i try to find this cmd " int old_increase = r_increase_fps_player->GetInt(); // INCREASE FPS
    r_increase_fps_player ->SetInt(0);"
    i can't find it on my src can you maybe help me =D

  16. #16
    DeadZone The Unknown is offline
    MemberRank
    Feb 2014 Join Date
    CanadaLocation
    442Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Quote Originally Posted by McGrumpy View Post
    when i try to find this cmd " int old_increase = r_increase_fps_player->GetInt(); // INCREASE FPS
    r_increase_fps_player ->SetInt(0);"
    i can't find it on my src can you maybe help me =D
    Try pasting bits of the code, not the whole code. Every emulator has a slightly different source (Not those copy-paste codex ones).

    Like this;

    Code:
     r_increase_fps_player 


    or

    Code:
         int old_increase = r 


    Good luck:)

  17. #17
    Enthusiast McGrumpy is offline
    MemberRank
    Aug 2015 Join Date
    39Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    can't find it

  18. #18
    Account Upgraded | Title Enabled! GetRektBambi is offline
    MemberRank
    Oct 2015 Join Date
    268Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Search r_limit_fps maybe...

  19. #19
    Valued Member AimZMMo is offline
    MemberRank
    Feb 2016 Join Date
    FranceLocation
    102Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Someone know how fix that little error
    Screenshot by Lightshot
    UNDEFINED and if I click on the arrow I have YES \ NON and UNDEFINED never comeback until I press reset.
    If I select DISABLE GRASS : YES, when I go in game, no grass (so that button works) but if I set it to NO, grass doesnt come back, I have to reset my graph to have my grass back.
    Last edited by AimZMMo; 14-03-16 at 12:12 AM.

  20. #20
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    @AimZMMo
    You need config in source client (.sln)

  21. #21
    Valued Member AimZMMo is offline
    MemberRank
    Feb 2016 Join Date
    FranceLocation
    102Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    @lujasccb But these fonctions are already coded (overz) on the src.

  22. #22
    Account Upgraded | Title Enabled! GetRektBambi is offline
    MemberRank
    Oct 2015 Join Date
    268Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Best thing for you to do. Find a button that works and trace every step it makes, I mean every.. While you trace read and try and understand how it works.


    you have a lot of posts aimz and I have supported you a lot in pm, but you really need to try and understand this stuff for yourself, having someone else do everything for you is lazy and you will never learn.

  23. #23
    Apprentice Nicez Buttowski is offline
    MemberRank
    Aug 2015 Join Date
    11Posts

    Re: [TUTORIAL] Adding options in FrontEnd.swf

    Don't know if I would remove the. SWF editing in a CS5.5. mention of fla?



Advertisement