- Katılım
- 29 Nis 2019
- Konular
- 6
- Mesajlar
- 49
- Online süresi
- 1mo 3d
- Reaksiyon Skoru
- 35
- Altın Konu
- 0
- TM Yaşı
- 7 Yıl 1 Ay 8 Gün
- Başarım Puanı
- 75
- MmoLira
- 8,708
- DevLira
- 15
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
Is there any possibility to save the setting in the metin2.cfg file so the option remains saved when you re-open the client?
- Katılım
- 16 Şub 2015
- Konular
- 144
- Mesajlar
- 1,791
- Çözüm
- 86
- Online süresi
- 2mo 3d
- Reaksiyon Skoru
- 1,669
- Altın Konu
- 36
- TM Yaşı
- 11 Yıl 3 Ay 22 Gün
- Başarım Puanı
- 234
- MmoLira
- 438
- DevLira
- 15
You have to connect the settings with another client file, for example metin2.cfg and make the system read them from there, then you will always have them saved. Try to use source, there is a tutorial for fog setting ~ on/off type and adapt it to your needs.Is there any possibility to save the setting in the metin2.cfg file so the option remains saved when you re-open the client?
- Katılım
- 29 Nis 2019
- Konular
- 6
- Mesajlar
- 49
- Online süresi
- 1mo 3d
- Reaksiyon Skoru
- 35
- Altın Konu
- 0
- TM Yaşı
- 7 Yıl 1 Ay 8 Gün
- Başarım Puanı
- 75
- MmoLira
- 8,708
- DevLira
- 15
I solved. @EmreAkca06AnK y ou can update the github with this update:You have to connect the settings with another client file, for example Metin2.cfg and make the system read them from there, then you will always have them saved. Try to use source, there is a tutorial for fog setting ~ on/off type and adapt it to your needs.
PythonSystem.cpp search:
Add:m_Config.bShowSalesText = true;
Search:m_Config.bGUIMode = true;
void CPythonSystem::SetShowSalesTextFlag(int iFlag)
{
m_Config.bShowSalesText = iFlag == 1 ? true : false;
}
Add:
void CPythonSystem::SetGUIMode(int iFlag)
{
m_Config.bGUIMode = iFlag == 1 ? true : false;
}
bool CPythonSystem::IsGUIMode()
{
return m_Config.bGUIMode;
}
Search:
Add:else if (!stricmp(command, "SHOW_MONEY_TEXT"))
m_Config.bShowMoneyText = atoi(value) == 1 ? true : false;
else if (!stricmp(command, "GUI_MODE_ON"))
m_Config.bGUIMode = atoi(value) == 1 ? true : false;
Search:
if (m_Config.bShowSalesText == 0)
fprintf(fp, "SHOW_SALESTTEXT %d\n", m_Config.bShowSalesText);
Add:
fprintf(fp, "GUI_MODE_ON %d\n", m_Config.bGUIMode);
Open PythonSystem.h and search:
Add:bool bShowMoneyText;
bool bGUIMode;
Sarch:
Add:void SetShowSalesTextFlag(int iFlag);
void SetGUIMode(int iFlag);
bool IsGUIMode();
Open PythonSystemModule.cpp and search:
Add:PyObject * systemSetShadowLevel(PyObject * poSelf, PyObject * poArgs)
{
int level;
if (!PyTuple_GetInteger(poArgs, 0, &level))
return Py_BuildException();
if (level > 0)
CPythonSystem::Instance().SetShadowLevel(level);
return Py_BuildNone();
}
Search:PyObject* systemSetGUIMode(PyObject* poSelf, PyObject* poArgs)
{
int iFlag;
if (!PyTuple_GetInteger(poArgs, 0, &iFlag))
return Py_BuildException();
CPythonSystem::Instance().SetGUIMode(iFlag);
return Py_BuildNone();
}
PyObject* systemIsGUIMode(PyObject* poSelf, PyObject* poArgs)
{
return Py_BuildValue("i", CPythonSystem::Instance().IsGUIMode());
}
Add:{ "GetShadowLevel", systemGetShadowLevel, METH_VAARGS },
{ "SetShadowLevel", systemSetShadowLevel, METH_VAARGS },
{ "SetGUIMode", systemSetGUIMode, METH_VAARGS },
{ "IsGUIMode", systemIsGUIMode, METH_VAARRGS },
Compile binary and open interfacemodule.py, search for x2:
replace both with:constInfo.AUTO_HIDE_OPTION == False:
systemSetting.IsGUIMode()
Open uisystemoption.py and search for(in class OptionDialog):
Add after:self.__Load()
self.RefreshGUIMode()
search for
anddef __OnClickAutoHideModeOnButton
replace these 2 defs with:def __OnClickAutoHideModeOffButton
def __OnClickAutoHideModeOnButton(self):
systemSetting.SetGUIMode(True)
self.RefreshGUIMode()
def __OnClickAutoHideModeOffButton(self):
systemSetting.SetGUIMode(False)
self.RefreshGUIMode()
def RefreshGUIMode(self):
if systemSetting.IsGUIMode():
self.autoHideModeButtonList[0].Down()
self.autoHideModeButtonList[1].SetUp()
else:
self.autoHideModeButtonList[0].SetUp()
self.autoHideModeButtonList[1].Down()
Search for:
Replace with:if app.__BL_WINDOW_AUTO_HIDE__:
self.autoHideModeButtonList[0].SAFE_SetEvent(self.__OnClickAutoHideModeOnButton)
self.autoHideModeButtonList[1].SAFE_SetEvent(self.__OnClickAutoHideModeOffButton)
self.__ClickRadioButton(self.autoHideModeButtonList, 1)
if app.__BL_WINDOW_AUTO_HIDE__:
self.autoHideModeButtonList[0].SAFE_SetEvent(self.__OnClickAutoHideModeOnButton)
self.autoHideModeButtonList[1].SAFE_SetEvent(self.__OnClickAutoHideModeOffButton)
And done.
Now the setting will be saved in metin2.cfg and it will save after re-opening the client.- Katılım
- 16 Şub 2015
- Konular
- 144
- Mesajlar
- 1,791
- Çözüm
- 86
- Online süresi
- 2mo 3d
- Reaksiyon Skoru
- 1,669
- Altın Konu
- 36
- TM Yaşı
- 11 Yıl 3 Ay 22 Gün
- Başarım Puanı
- 234
- MmoLira
- 438
- DevLira
- 15
I will add after checkingI solved. @EmreAkca06AnK y ou can update the github with this update:
PythonSystem.cpp search:
Add:
Search:
Add:
Search:
Add:
Search:
Add:
Open PythonSystem.h and search:
Add:
Sarch:
Add:
Open PythonSystemModule.cpp and search:
Add:
Search:
Add:
Compile binary and open interfacemodule.py, search for x2:
replace both with:
Open uisystemoption.py and search for(in class OptionDialog):
Add after:
search for
and
replace these 2 defs with:
Search for:
Replace with:
And done.Now the setting will be saved in metin2.cfg and it will save after re-opening the client.
good luck to your hands









