[Tutorial] enable Windows Mode

Results 1 to 18 of 18
  1. #1
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    [Tutorial] enable Windows Mode

    *** Back up first ***

    # Vars.h
    change to
    Code:
    REG_VAR_C( r_overall_quality		, 2			, 1, 5, VF_SAVE | VF_CONSTRAINT );
    REG_VAR( r_fullscreen			, true			, VF_SAVE );		// fullscreen mode
    REG_VAR( r_fullscreen_load		, true			, 0 );		// this value will hold r_fullscreen after loading ini file
    REG_VAR( r_apex_enabled			, false			, VF_SAVE );

    # FrontEndWarZ.cpp
    change to
    Code:
    	var[27].SetNumber( g_toggle_crouch->GetBool());
    	var[28].SetNumber( r_fullscreen->GetInt()); // Fullscreen
    	var[29].SetNumber( r_vsync_enabled->GetInt()+1);
    next 2
    Code:
    	// get options
    	g_tps_camera_mode->SetInt(0);
    	g_enable_voice_commands			->SetBool(true);
    
    	int old_fullscreen = r_fullscreen->GetInt();
    	r_fullscreen->SetBool(true);
    next 3
    Code:
    	r_width->SetInt( width );
    	r_height->SetInt( height );
    
    	int old_fullscreen = r_fullscreen->GetInt();
    	r_fullscreen->SetInt( (int)args[21].GetNumber() );

    # HUDPause.cpp
    change to
    Code:
    	var[27].SetNumber( g_toggle_crouch->GetBool());
    	var[28].SetNumber( r_fullscreen->GetInt());
    	var[29].SetNumber( r_vsync_enabled->GetInt()+1);
    
    	gfxMovie.Invoke("_root.api.setOptions", var, 30);
    
    	// add player info

    # Main.cpp
    change to
    Code:
    		r_width->SetInt( 1024 );
    		r_height->SetInt( 768 );
    		r_bpp->SetInt( 32 );
    		r_fullscreen->SetBool( false );
    next 2
    Code:
    		r_out_of_vmem_encountered->SetInt( 0 );
    		r_width->SetInt( 800 );
    		r_height->SetInt( 600 );
    		r_fullscreen->SetInt( 0 );
    		r_texture_quality->SetInt( 1 );
    next 3
    Code:
    	r_fullscreen_load->SetInt(r_fullscreen->GetInt());
    /*#ifdef FINAL_BUILD
    	r_force_aspect->SetFloat( 16.f / 9.f );
    #endif*/

    # r3dRender.CPP
    change to
    Code:
    	if(Flags & R3DSetMode_Windowed)
    		isWindowed = 1;
    	else 
    		isWindowed = 0;
    >> Compile Eclipse Studio C:\WarZ\src\EclipseStudio with FINAL build ***

    ALL Credit to >> Mr. 佳 吴 (wujia360)
    Last edited by GigaToni; 06-10-14 at 09:16 AM. Reason: xx


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

    Re: How to enable "Windows Mode" (fix fullscreen)

    What Source?

  3. #3
    Member crysis55 is offline
    MemberRank
    Apr 2013 Join Date
    RussiaLocation
    80Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    Quote Originally Posted by fdrgamer View Post
    What Source?
    I think this for Aomsin source

  4. #4
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    DNC or Aomsin

  5. #5
    Account Upgraded | Title Enabled! KlausVander is offline
    MemberRank
    May 2013 Join Date
    BrasilLocation
    240Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    Don't work, crash here.
    Last edited by KlausVander; 31-12-13 at 05:40 PM.

  6. #6
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    var[28].SetNumber( r_fullscreen->GetBool());

    and
    void FrontendWarZ::eventOptionsControlsApply
    r3d_assert(args);
    r3d_assert(argCount == 8);

  7. #7
    Apprentice wujia360 is offline
    MemberRank
    Oct 2013 Join Date
    22Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    var[28].SetString( "LOCKED"); // Fullscreen
    var[28].SetNumber( r_fullscreen->GetInt());

    var[28].SetNumber(1);
    var[28].SetNumber( r_fullscreen->GetInt());

    if(Flags & R3DSetMode_Windowed)
    isWindowed = 0;
    if(Flags & R3DSetMode_Windowed)
    isWindowed = 1;

  8. #8
    Account Upgraded | Title Enabled! KlausVander is offline
    MemberRank
    May 2013 Join Date
    BrasilLocation
    240Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    Please test you codes until post here, if you do that, you can only use Windows Mode and Fullscreen is disable

  9. #9
    Valued Member Bambo1421 is offline
    MemberRank
    May 2013 Join Date
    145Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    disable window mode would be better, cause most hacks works with window mode

  10. #10
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    Code:
    	if( !r3dRenderer->SetMode( r_width->GetInt(), r_height->GetInt(), r_bpp->GetInt(), Flags, 0 /*R3D_PATH_DX9*/) )
    	{
    		bool failed = true ;
    		if( ! ( Flags & R3DSetMode_Windowed ) )
    		{
    			r3dOutToLog("SetMode failed, trying to set windowed flag and trying again\n");
    			Flags |= R3DSetMode_Windowed;
    			if( r3dRenderer->SetMode( r_width->GetInt(), r_height->GetInt(), r_bpp->GetInt(), Flags, 0 /*R3D_PATH_DX9*/) )
    			{
    				failed = false ;
    			}
    		}
    
    		if( failed )
    		{
    			r3dError("Failed to init D3D Device!\n");
    			r3dRenderer->Close();
    			exit( 0 );
    		}
    	}
    - - - Updated - - -

    C:\WarZ\src\EclipseStudio\Sources\Main.cpp (3 hits)
    Line 138: Flags |= R3DSetMode_Windowed;
    Line 176: if( ! ( Flags & R3DSetMode_Windowed ) )
    Line 179: Flags |= R3DSetMode_Windowed;

  11. #11
    Account Upgraded | Title Enabled! KlausVander is offline
    MemberRank
    May 2013 Join Date
    BrasilLocation
    240Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    Working.

  12. #12
    Enthusiast Ronnyxx99 is offline
    MemberRank
    Jul 2014 Join Date
    GERLocation
    39Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    Quote Originally Posted by wujia360 View Post
    var[28].SetString( "LOCKED"); // Fullscreen
    var[28].SetNumber( r_fullscreen->GetInt());

    var[28].SetNumber(1);
    var[28].SetNumber( r_fullscreen->GetInt());

    if(Flags & R3DSetMode_Windowed)
    isWindowed = 0;
    if(Flags & R3DSetMode_Windowed)
    isWindowed = 1;

    Is this Only Fullscreen working on new DNC realease?

  13. #13
    Proficient Member JohnzBallad is offline
    MemberRank
    Jan 2014 Join Date
    Rio de JaneiroLocation
    175Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    My problem with this is, I am using Community Edition SRC, and I can't change the Window Mode in the game. To change it, I need to go to the documents settings folder and change a phrase (r_fullscreen 0 to r_fullscreen 1).

    This tutorial will be fixing this problem?

  14. #14
    Enthusiast Ronnyxx99 is offline
    MemberRank
    Jul 2014 Join Date
    GERLocation
    39Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    Quote Originally Posted by JohnzBallad View Post
    My problem with this is, I am using Community Edition SRC, and I can't change the Window Mode in the game. To change it, I need to go to the documents settings folder and change a phrase (r_fullscreen 0 to r_fullscreen 1).

    This tutorial will be fixing this problem?
    yes for me it does , with this tutorial

  15. #15
    Proficient Member JohnzBallad is offline
    MemberRank
    Jan 2014 Join Date
    Rio de JaneiroLocation
    175Posts

    Re: How to enable "Windows Mode" (fix fullscreen)

    Quote Originally Posted by Ronnyxx99 View Post
    yes for me it does , with this tutorial
    Thanks, which source do you use? Should it work on Community Edition? (DNC 2014)

  16. #16
    Custom Title Enabled GigaToni is offline
    MemberRank
    Aug 2009 Join Date
    GER / FRLocation
    2,329Posts

    Re: [Tutorial] enable Windows Mode

    Of course it does. It's made because of it. It is the only one who (Author of RZ:CE) disabled the window mode

  17. #17
    Proficient Member JohnzBallad is offline
    MemberRank
    Jan 2014 Join Date
    Rio de JaneiroLocation
    175Posts

    Re: [Tutorial] enable Windows Mode

    Quote Originally Posted by GigaToni View Post
    Of course it does. It's made because of it. It is the only one who (Author of RZ:CE) disabled the window mode
    Actually my windows mode is working, i can't change to fullscreen IN THE GAME.

  18. #18
    Proficient Member rollwow is offline
    MemberRank
    Sep 2013 Join Date
    LisbonLocation
    153Posts

    Re: [Tutorial] enable Windows Mode

    Yes, this tutorial work for DNC Community Edition.



Advertisement