Jump to content

kjmoknjkoj

Inactive Member
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by kjmoknjkoj

  1. Ey!

    I was adding Lycan to my server and i encounter with some bugs i cant even fix yet.


    Red possession works good, no problem. Blue possession did too, it applies attributes to party aswell but no effect and no buff shower in buffs.

    Bleeding effect, have the same problem. It seems to do dmg but no buff shower at top and no effects on player. Any solution?

     

    Im having another problem with 173 skill. When im killing mobs, for some reason, this happens: (it just only happens when killing)

     

  2. Ey!

    I was implementing Lykan to my server files and everything seems to be normal, i can create a character, i can play with it, move like normal but for some reason, im getting a problem with other accounts.

    With some accounts i had, when i trying to connect im getting crash:

    This is what im getting from syssr. Im getting "Empire Limit sent!" then crash. It seems to be the problem.

    Spoiler

    Sep  3 21:19:14 :: SYSTEM: new connection from [IP] fd: 19 handshake 311059083 output input_len 0, ptr 0x2aacb600
    Sep  3 21:19:14 :: Handshake: lower than zero -20
    Sep  3 21:19:15 :: Handshake: client_time 0 server_time 58000
    Sep  3 21:19:15 :: LOGIN_BY_KEY: adri key 1160254024
    Sep  3 21:19:15 :: LoginSuccess
    Sep  3 21:19:15 ::     player(Adriee).job(4)
    Sep  3 21:19:15 ::     player(Buenorro).job(5)
    Sep  3 21:19:15 ::     player(Pitus1).job(1)
    Sep  3 21:19:15 ::     player().job(0)
    Sep  3 21:19:15 ::     player().job(0)


    Sep  3 21:19:15 :: Empire Limit sent!


    Sep  3 21:19:15 :: success to IP:13033
    Sep  3 21:19:15 :: success to IP:13031
    Sep  3 21:19:15 :: success to IP:13031
    Sep  3 21:19:15 :: InputDB::login_success: adri
    Sep  3 21:19:16 :: SYSTEM: closing socket. DESC #19

    I was checking "ClientManager.cpp" but everything seems to be normal. DB files too. Is something about tables in mysql or something? idk

    From game sysrr, im getting this one:

    Spoiler

    Unknown packet header: 67, last: 253 32

    But i check packet.h from game and server and seems to be the same.

    Is any way to maybe fix this problem?

  3. 8 minutes ago, WeedHex said:

    game.py find for:

    net.SendEmoticon(int(num)-1)

    You can play there to reproduce sounds with:

    snd.PlaySound("sound/ui/*.wav")

     

    I think you'll need extra work to prevent things like "spam of key" etc.

    (Nice idea btw)

    Nice one and really fast response, im gonna try it. Anyways, just an example: If i want to add to (fish) command one, cuz is not in a press key number, how should it be code?

  4. Ey. I was trying to compile in Freebsd 9.2 and im getting this error at compiling /game/src:

    Spoiler

    linking ../game_r40250....
    OBJDIR/char_skill.o: In function `CHARACTER::ComputeSkill(unsigned int, CHARACTER*, unsigned char)':
    /usr/src/Source/game/src/char_skill.cpp:2045: undefined reference to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
    /usr/src/Source/game/src/char_skill.cpp:2105: undefined reference to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
    /usr/src/Source/game/src/char_skill.cpp:2106: undefined reference to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
    /usr/src/Source/game/src/char_skill.cpp:2113: undefined reference to `CPoly::GetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /usr/src/Source/game/src/char_skill.cpp:2113: undefined reference to `CPoly::GetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /usr/src/Source/game/src/char_skill.cpp:2170: undefined reference to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
    /usr/src/Source/game/src/char_skill.cpp:2201: undefined reference to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
    /usr/src/Source/game/src/char_skill.cpp:2230: undefined reference to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
    /usr/src/Source/game/src/char_skill.cpp:2282: undefined reference to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
    /usr/src/Source/game/src/char_skill.cpp:2394: undefined reference to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)'
    OBJDIR/char_skill.o:/usr/src/Source/game/src/char_skill.cpp:2264: more undefined references to `CPoly::SetVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)' follow
    collect2: error: ld returned 1 exit status
    gmake: *** [../game_r40250] Error 1

    any solution?¿

  5. HI, im trying to implement this system,

    but im getting these errors in putty:
     

    Spoiler

    char.cpp:7797: error: ISO C++ forbids declaration of 'size' with no type
    char.cpp:7800: warning: suggest parentheses around assignment used as truth value
    char.cpp:7801: error: 'class std::vector<CItem*, std::allocator<CItem*> >' has no member named 'emplace_back'
    char.cpp:7808: error: expected primary-expression before '[' token
    char.cpp:7808: error: expected primary-expression before 'const'
    char.cpp:7808: error: expected primary-expression before 'const'
    char.cpp:7818: error: a function-definition is not allowed here before ':' token
    char.cpp:7831: error: expected primary-expression at end of input
    char.cpp:7831: error: expected `;' at end of input
    char.cpp:7831: error: expected primary-expression at end of input
    char.cpp:7831: error: expected `)' at end of input
    char.cpp:7831: error: expected statement at end of input
    char.cpp:7831: error: expected `}' at end of input

    gmake: *** [Makefile:136: OBJDIR/char.o] Error 1
    gmake: *** Waiting for unfinished jobs....

    this is my actual makefile (i added -std c++14 as some1 told in comments, but not sure if i have to put it there)
     

    Spoiler

    PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

    GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
    BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
    SVN_VERSION = 40250

    CC = g++

    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = OBJDIR
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

    # Standard Setting
    LIBS = -pthread -lm -lmd
    # Removed -fno-rtti
    CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ -std=c++14


    ifeq ($(GCC_VERSION), 4)
    CFLAGS += -mtune=i686 -fstack-protector-all
    else
    CFLAGS += -mcpu=i686
    endif

    # boost
    #INCDIR += -I../../../Extern/include/boost
    INCDIR += -I/usr/local/include/boost

    # DevIL
    INCDIR += -I../../libdevil
    LIBDIR += -L../../libdevil
    LIBS += -lIL -lpng -ltiff -lmng -llcms -ljpeg
    LIBDIR += -L/usr/local/lib/mysql

    # MySQL
    #ifeq ($(BSD_VERSION), 7)
    INCDIR += -I../../libmysql/7.x-5.1.35
    LIBDIR += -L../../libmysql/7.x-5.1.35
    #else
    #INCDIR += -I../../libmysql/5.x-5.1.35
    #LIBDIR += -L../../libmysql/5.x-5.1.35
    #endif

    LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz

    # Miscellaneous external libraries
    INCDIR += -I../../../Extern/include
    LIBDIR += -L../../../Extern/lib
    LIBS += -lcryptopp -lgtest

    # HackShield
    INCDIR += -I../../libhackshield/include
    LIBDIR += -L../../libhackshield/lib
    LIBS += -lanticpxsvr

    # XTrap
    INCDIR += -I../../libxtrap/include

    # openssl
    #INCDIR += -I/usr/include
    #LIBS += -lssl
    #LIBS += /usr/lib/libssl.a
    LIBS += -lssl

    # Project Library
    INCDIR += -I../../liblua/include
    INCDIR += -I/usr/local/include
    INCDIR += -I../../libserverkey
    LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib -L../../libserverkey
    LIBDIR += -L/usr/local/lib
    LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame -lserverkey
    USE_STACKTRACE = 0
    ifeq ($(USE_STACKTRACE), 1)
    LIBS += /usr/local/lib/libexecinfo.a
    endif

    TARGET  = $(BINDIR)/game_$(SVN_VERSION)_$(PLATFORM)

    CFILE    = minilzo.c

    CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp\
              arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp\
              char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp\
              char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp\
              cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp\
              desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp\
              entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp\
              guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp\
              input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp\
              item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp\
              locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp\
              messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp\
              party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp\
              questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp\
              questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp\
              questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp\
              questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp\
              questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp\
              refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp\
              skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp\
              wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp\
              BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp\
              HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp\
              SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp\
              auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp\
              buff_on_attributes.cpp check_server.cpp dragon_soul_table.cpp DragonSoul.cpp\
              group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp\
              shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp RedProtect.cpp itemblock.cpp\
              offline_shop.cpp offlineshop_manager.cpp offlineshop_config.cpp


    COBJS    = $(CFILE:%.c=$(OBJDIR)/%.o)
    CPPOBJS    = $(CPPFILE:%.cpp=$(OBJDIR)/%.o)

    MAINOBJ = $(OBJDIR)/main.o
    MAINCPP = main.cpp

    TESTOBJ = $(OBJDIR)/test.o
    TESTCPP = test.cpp
    TEST_TARGET = $(BINDIR)/test

    default: $(TARGET) $(TEST_TARGET)

    $(OBJDIR)/minilzo.o: minilzo.c
        @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
        @echo compile $<

    $(OBJDIR)/version.o: version.cpp
        @$(CC) $(CFLAGS) -D__USER__=\"$(USER)\" -D__HOSTNAME__=\"$(HOSTNAME)\" -D__PWD__=\"$(PWD)\" -D__P4_VERSION__=\"$(P4_VERSION)\" -c $< -o $@
        @echo compile $<

    $(OBJDIR)/%.o: %.cpp
        @echo compile $<
        @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

    limit_time:
        @echo update limit time
        @python update_limit_time.py

    $(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
        @echo linking $(TARGET)....
        @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)

    $(TEST_TARGET): $(TESTCPP) $(CPPOBJS) $(COBJS) $(TESTOBJ)
        @echo linking $(TEST_TARGET)
        @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(TESTOBJ) $(LIBS) -o ../test

    clean:
        @rm -f $(COBJS) $(CPPOBJS)
        @rm -f $(BINDIR)/game_r* $(BINDIR)/conv

    tag:
        ctags *.cpp *.h *.c

    dep:
        makedepend -f Depend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) $(TESTCPP) 2> /dev/null > Depend

    sinclude Depend

    i insert the code as it seems in files, so dont really know what is the problem. Ty in advance

     

     

     

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