dukaibalu1 39 Posted February 6, 2015 Share Posted February 6, 2015 (edited) Hello everyone, Today i tried to increase the maximum gold limit. The edited gamefile worked fine and the limit is increased (serverside). The problem is the Clientside part. I've managed to fix the packets but it does not show the amount of Gold Ingame in the Inventory. I hope that someone can help me. Navicat 5,000,000,000 gold... Ingame 705,032,704. This is problem! Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Author Share Posted February 7, 2015 up Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 7, 2015 Share Posted February 7, 2015 up you need change int/long on binnary to long long / long long int Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Author Share Posted February 7, 2015 But where do you edit it? Which file? Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 7, 2015 Share Posted February 7, 2015 But where do you edit it? Which file? userinterface pythonplayermodule.cpp try change this PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Author Share Posted February 7, 2015 But where do you edit it? Which file? userinterface pythonplayermodule.cpp try change this PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } Not Work PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 7, 2015 Share Posted February 7, 2015 But where do you edit it? Which file? userinterface pythonplayermodule.cpp try change this PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } Not Work PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } try PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } here you have litle help https://docs.python.org/2/c-api/arg.html Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Author Share Posted February 7, 2015 (edited) Bug Navicat in gold table 5,000,000,000 yang Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Author Share Posted February 7, 2015 (edited) PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 7, 2015 Share Posted February 7, 2015 (edited) PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } you need to change on clientside int to unsigned long long' or maybe you have long long int on serverfiles try change gold 500.000.000.000 to 5.000.000.000 Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Author Share Posted February 7, 2015 Serverside long long Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 7, 2015 Share Posted February 7, 2015 Serverside long long source game you have long long int? Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Author Share Posted February 7, 2015 Serverside long long source game you have long long int? long long yang_max = 200000000000LL; Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Author Share Posted February 7, 2015 (edited) before: after: Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 8, 2015 Author Share Posted February 8, 2015 up Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 8, 2015 Author Share Posted February 8, 2015 Up Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now