Jump to content
  • We need you!

    You must register to discover all the features of our community!

Recommended Posts

This feature already was there since beginning, but just for Japan.

PythonSystem.cpp, just remove the preprocessor directive and set the bWindowed to true.

#if defined( LOCALE_SERVICE_WE_JAPAN )
	m_Config.bWindowed			= true;
#else
	m_Config.bWindowed			= false;
#endif

For the music just change the music_volume to 0.0f, you don't have to mute the voice volume.

	m_Config.music_volume		= 1.0f;

Also, maybe I'm wrong, but why you're doing this:

Spoiler
Quote

		if (!stricmp(command, "WIDTH")) {
			if(atoi(value) < 800)
				m_Config.width = 800;
			else
				m_Config.width = atoi(value);
		}
		else if (!stricmp(command, "HEIGHT")) {
			if (atoi(value) < 600)
				m_Config.height = 600;
			else
				m_Config.height = atoi(value);
		}

When you can simply change:

void CPythonSystem::SetDefaultConfig()
{
	[...]
	m_Config.width				= 1024;
	m_Config.height				= 768;
}

To:

	m_Config.width				= 800;
	m_Config.height				= 600;

 

Edited by VegaS™ (see edit history)
Link to post
Posted (edited)

@VegaS™

		if (!stricmp(command, "WIDTH")) {
			if(atoi(value) < 800)
				m_Config.width = 800;
			else
				m_Config.width = atoi(value);
		}
		else if (!stricmp(command, "HEIGHT")) {
			if (atoi(value) < 600)
				m_Config.height = 600;
			else
				m_Config.height = atoi(value);
		}

This is a lock so that the client cannot run at a resolution lower than 800x600. (Lots of people run m2bob in 10x10 so it takes me resources)

 

Function void CPythonSystem::SetDefaultConfig() is responsible for creating the first config when starting the game for the first time. I believe that here should be set according to our preferences.

Edited by Alerin (see edit history)
Link to post
1 hour ago, Alerin said:

Function void CPythonSystem::SetDefaultConfig() is responsible for creating the first config when starting the game for the first time.

  

The function SetDefaultConfig it's called everytime before LoadConfig when the singleton it's initialized.

Yes, first it will load the default values then will try to read the values from metin2.cfg, so if you put specific width/height in the default config everything it's fine for the first run.

 

1 hour ago, Alerin said:

This is a lock so that the client cannot run at a resolution lower than 800x600. (Lots of people run m2bob in 10x10 so it takes me resources)

 

Is impossible for a player to have a resolution lower than 800x600 if he set it from config.exe.

What you did is just for the people who editing metin2.cfg manually, like m2bob does, otherwise has no sense that check inside of the LoadConfig.

We should block the hacks, not doing workaround conditions for "consuming more resources by resolution if the hackers has the resolution < 800x600", just saying. 

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Current Donation Goals

  • Activity

    1. 11

      Mysql56 to Mysql8

    2. 0

      Does anyone have Kami-Sama's Contact?

    3. 1

      [Trailer][1/3]NerviL2 The return of the Legend

    4. 0

      Won " price" change

    5. 10

      Inferna - The new "metin3"?

    6. 6

      We need you!

    7. 2

      Highlight system bug

  • Recently Browsing

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.