Jump to content

Traceur3RUN

Inactive Member
  • Posts

    408
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Traceur3RUN

  1. hi dev i try change unsigned32 to unsigned64 on client and binnary i change.i work it 2days but i don't know what i doing bad

     

    binnary:

    PyObject * playerGetEXP(PyObject* poSelf, PyObject* poArgs)
    {
    	long long dwEXP = CPythonPlayer::Instance().GetStatus(POINT_EXP);
    	return Py_BuildValue("K", dwEXP);
    } 

    client: 

    taskbar.py

    	## Gauge
    	def RefreshStatus(self):
    		curHP = player.GetStatus(player.HP)
    		maxHP = player.GetStatus(player.MAX_HP)
    		curSP = player.GetStatus(player.SP)
    		maxSP = player.GetStatus(player.MAX_SP)
    		curEXP = unsigned64(player.GetStatus(player.EXP))
    		nextEXP = unsigned64(player.GetStatus(player.NEXT_EXP))
    		recoveryHP = player.GetStatus(player.HP_RECOVERY)
    		recoverySP = player.GetStatus(player.SP_RECOVERY)
    		
    		self.RefreshStamina()
    
    		self.SetHP(curHP, recoveryHP, maxHP)
    		self.SetSP(curSP, recoverySP, maxSP)
    		self.SetExperience(curEXP, nextEXP)
    

    uicharacter.py

    try:
    			self.GetChild("Level_Value").SetText(str(player.GetStatus(player.LEVEL)))
    			self.GetChild("Exp_Value").SetText(str(unsigned64(player.GetEXP())))
                            self.GetChild("RestExp_Value").SetText(str(unsigned64(player.GetStatus(player.NEXT_EXP)) - unsigned64(player.GetStatus(player.EXP)))) 

    0209 19:07:22967 :: NameError
    0209 19:07:22968 :: global name 'unsigned64' is not defined

    0209 19:33:22827 :: global name 'unsigned64_t' is not defined

    0209 19:35:23706 :: global name 'uint64' is not defined

  2.  

     

    Explication: You implemented wrong things under /data/monster folder or MySQL mob_proto.

    How to test if this is the problem?: Remove values from 'folder' column in MySQL of the latest mobs/monsters/npcs you added by yourself and the latest folders in data/monster and test if it works.

     

    not every error with fdwatch can be fixed by adding/removing things from mob_proto table

     

    @Asta: post ch1 (core1) syserr + syslog & do a core debugg with gdb and post result here

     

    from db conf.txt

    TABLE_POSTFIX= "" 

    change to 

    TABLE_POSTFIX = " "

     

    SYSERR: Feb  8 01:42:49 :: Load:  DirectQuery failed(SELECT login FROM block_exception)

    add id to mysql tables block_exception sometjing 1 or what you want

  3.  

    Have

    return PyLong_FromUnsignedLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD));

     
     
    when i give gold, gold not add(only show text gold added) 
    when i pickup gold, gold not add(same, only show text)
     
    in navicat not add when i pickup or give gold as GM
     
    when i add gold via navicat in player gold column
     
    Gold in game i see
    bud when i add 3kkk in game i see only 2.147.483.647 ? where is problem..

     

    int = 2147483648

    you something not change 

  4. Hi, in binary i muset change GetElk but change to? i dont know to what :D

    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
    {
    	return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
    }
    

    change to?

    please help :P

    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)

    {

        return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));

    }

  5.  

    56b4888546.jpg

     

    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

  6.  

     

    try 

     

    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
    {
    return Py_BuildValue("ll", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
     
    return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD));
    }

     

     

    https://metin2.download/picture/0tQxtLcr58a67bjF51CgJQAmUY5GFpPP/.jpg

     

    Not Fix.

     

    try

    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)

    {

    return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));

    }

  7.  

     

    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

  8.  

    7600  1  I    0:01.26 ./db      -------------   database core is ok

    7603  1  I    0:00.15 ./game  -------------   i supose is auth core and this is ok too

    7606  1  I    0:07.95 ./game  -------------   ch1 core 1 is ok

    7609  1  I    0:06.32 ./game  -------------   ch1 core 2 is ok

    7612  1  I    0:03.73 ./game  -------------   ch99 is ok too

     

    so there is nothing wrong with your server

     

    okay thanks man : )

    the database update these strange characters when loading a proto item

    I thought there is something wrong

     

    you give syslog from logs.

    why not sysser from auth db channel?

  9.  

    lol i say i need public ip no local computer.... 

    no need any fix to 192.168.xxxx omg

     

    you have to use it and make your internal IP (192.168.1.35) as DMZ

    http://www.tp-link.us/article/?faqid=28

     

    I have never tried that at all but at least that is what I know.

     

    hmm so why when i put to game 28k BIND_IP: (public ip) i dont have this message" socket_tcp_bind: tcp_socket: Can't assign requested

    address???

     

    i dont have dmz on my internet

  10.  

     

    up

    1.

    cd /usr/src/mainline/Srcs/Server/libsql

    gmake clean

    gmake -j20

    2.go to /usr/src/mainline/Srcs/Server/db/src

    -open makefile

     

    search LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

    change to

    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib -L/usr/local/lib/mysql

     

    all do what you say but don`t compile, now so:

     

    root@BddAdsa:/usr/src/mainline/Srcs/Server/db/src # gmake clean
    p4: not found
    p4: not found
    root@BddAdsa:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    p4: not found
    p4: not found
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    Cache.cpp:365:7: warning: no newline at end of file
    compile ClientManagerPlayer.cpp
    In file included from ClientManager.cpp:6:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile ClientManagerLogin.cpp
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile ClientManagerGuild.cpp
    compile GuildManager.cpp
    compile HB.cpp
    compile PrivManager.cpp
    In file included from ClientManagerBoot.cpp:8compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    :
    ProtoReader.h:36:7: warning: no newline at end of file
    compile ClientManagerEventFlag.cpp
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(char*)':
    ClientManagerPlayer.cpp:433: warning: address of local variable 'command' returned
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    p4: not found
    ItemAwardManager.cpp:129:2: warning: no newline at end of file
    compile AuctionManager.cpp
    compile ProtoReader.cpp
    compile version.cpp
    AuctionManager.cpp:719:7:compile CsvReader.cpp
     warning: no newline at end of file
    In file included from ProtoReader.cpp:4:
    ProtoReader.h:36:7: warning: no newline at end of file
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402: warning: statement has no effect
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:703: warning: unused variable 'testValue'
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72: warning: left-hand operand of comma has no effect
    CsvReader.cpp:72: warning: right-hand operand of comma has no effect
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90: warning: left-hand operand of comma has no effect
    CsvReader.cpp:90: warning: right-hand operand of comma has no effect
    ProtoReader.cpp: In function 'std::string* StringSplit(std::string, std::string)':
    ProtoReader.cpp:33: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Item_Type_Value(std::string)':
    ProtoReader.cpp:87: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Item_SubType_Value(int, std::string)':
    ProtoReader.cpp:204: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp:207: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Item_AntiFlag_Value(std::string)':
    ProtoReader.cpp:250: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Item_Flag_Value(std::string)':
    ProtoReader.cpp:279: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Item_WearFlag_Value(std::string)':
    ProtoReader.cpp:307: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Item_Immune_Value(std::string)':
    ProtoReader.cpp:333: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Item_LimitType_Value(std::string)':
    ProtoReader.cpp:361: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Item_ApplyType_Value(std::string)':
    ProtoReader.cpp:400: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Mob_Rank_Value(std::string)':
    ProtoReader.cpp:426: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Mob_Type_Value(std::string)':
    ProtoReader.cpp:448: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Mob_BattleType_Value(std::string)':
    ProtoReader.cpp:469: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Mob_Size_Value(std::string)':
    ProtoReader.cpp:490: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Mob_AIFlag_Value(std::string)':
    ProtoReader.cpp:512: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Mob_RaceFlag_Value(std::string)':
    ProtoReader.cpp:537: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'int get_Mob_ImmuneFlag_Value(std::string)':
    ProtoReader.cpp:561: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp: In function 'bool Set_Proto_Item_Table(TItemTable*, cCsvTable&, std::map<int, const char*, std::less<int>, std::allocator<std::pair<const int, const char*> > >&)':
    ProtoReader.cpp:696: warning: comparison between signed and unsigned integer expressions
    ProtoReader.cpp:757: warning: comparison between signed and unsigned integer expressions
    p4: not found
    linking ...
     

     

    where you have error?  i don't see

  11.  

     

    wtf?

     

    BIND_IP: 192.168.1.35

    that is what you need to do.

     

    DO NOT CHANGE WHAT I DID !!!

     

    I have already connected with TV and fixed it but I'm sure that he changed it

    lol i say i need public ip no local computer.... 

    no need any fix to 192.168.xxxx omg 

     

    want to connect to the server from another computer?
     
    You open the PC server? To use the computer as a host?

     

    yes 

  12.  

     

    if you look at it not a firewall on your router ?

    if i have blocked game 28k dont run too BIND_IP: (public ip) but game 28k work fine i say up post

     

    First check you in start.sh not put another IP, ip The conflict that enter the home at the BIND_IP
     
    Secondly, once post a picture from FreeBSD network configuration.

     

    now look maybe you now understand....

     

    game28k: BIND_IP(PUBLIC IP) work fine                               (sorry i dont look on first me post and i fixed game 28k work fine BIND_IP: (public ip)

    game 40k my own: BIND_IP (PUBLIC IP) socket_tcp_bind: tcp_socket: Can't assign requested address

    this problem is on source i know...

     

     

    sh start.sh here are you

    #!/bin/sh
    
    echo -e "033[31m  
    Ile Channeli Uruchomic ? n 
    1 -	(1)	Channeln  "
    
    read traceur
    case $traceur in 
    
    	1*)
    		echo -e "033[31m Start Baza Danych ..033[0m"
    		cd logowanie/db && ./db &
    		sleep 2
    		echo -e "033[31m Start Logowanie.033[0m"
    		cd logowanie/auth && ./auth &
    		sleep 2
    		echo -e "033[31m Start Channel 1.033[0m"
    		cd ./channel/ch1 && ./game &
    		cd ..
    		esac
    
    
  13.  

     

     

    not solved... 

    you fix nothing working i see it on clean config.cpp too work on 192.168.xxx

    i need fix to BIND_IP: (PUBLIC IP) 

     

     

    Reboot, on 02 Jan 2015 - 19:24, said:

    show me a photo print of FreeBSD network configuration. 

     network configuration is okey i test on game 28k and work fine.....

    lol man all of the posters here asked you about the problem you just say "is okay i tested it"

     

    at least show us photos to help you otherwise try on your own

     

    i test it not work .......  <_<  i put BIND_IP: (public ip) and have socket_tcp_bind: tcp_socket: Can't assign requested address if you want i can give you tv and you see..... if you dont believe  -_-

     

    up i have modem not router...

     

    Man, sorry to say you're wrong? Not to offend you?
     
    I told you that BIND_IP correct solution.
     
    Add me on skype and I show you, it works.

     

    okey. with BIND_IP: 192.168.xxx work but not work 100% public ip

×
×
  • 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.