Jump to content

mk8

Inactive Member
  • Posts

    11
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by mk8

  1. Sup everybody!

    I am kinda new to questing and I have a few question and I'd glad if you can help me out! :)

    1. is it possible to i.e add something to the gmlist for like 1 month and then automatically remove this person?
    2. how can I add individual bonuses to a player? i.e he fullfils my quest and then I want to give him a bonus as long as he is in the gmlist

    Thanks for your help!

  2. So I re-compiled my source and uploaded to my server, but afterwards the server won't start - it may not find the cube nor connect to the database. May anybody help me out?

    This is the error from my database syserr:

    SYSERR: Dec 17 18:50:22 :: socket_connect: HOST localhost:15001, could not connect.
    SYSERR: Dec 17 18:55:04 :: pid_init: 
    Start of pid: 1171
    
    SYSERR: Dec 17 18:55:04 :: ChildLoop: AsyncSQL: query failed: Unknown column 'name' in 'field list' (query: SELECT name, text FROM string errno: 1054)
    SYSERR: Dec 17 18:55:04 :: socket_connect: HOST localhost:15001, could not connect.
    SYSERR: Dec 17 20:07:34 :: pid_init: 
    Start of pid: 1428

    and thats my auth syserr:

    Dec 17 20:07:34 :: CLIENT_DESC [db_clientdesc] trying DBPacket() while not connected
    Dec 17 20:07:34 :: Cube_Init locale/germany/cube.txt

    Thanks in advance!

     

    When I only run ./database I get these errors:

    Could not load mob_names.txt
    Could not load mob_proto.txt.

     

  3. 48 minutes ago, 127.0.0.1 said:

    Damn, I forgot that they were added when it was implemented in C ++ 11.

    Then, make files as they were before. and run only gmake dep command.

    To work as I told you above, you compiler need to support C ++ 11.

    Fixed it myself, I had to upload the include folder to /usr/include.

    Well, after I compiled everything my server won't start... syslog says:
     

    SYSERR: Dec 16 19:28:02 :: Start: TABLE_POSTFIX not configured use default
    SYSERR: Dec 16 19:28:07 :: socket_connect: HOST localhost:15001, could not connect.

    • Love 1
  4. 10 minutes ago, 127.0.0.1 said:

    Open db/src/stdafx.h and add :

    
    #include <unordered_map>
    #include <unordered_set>

    Then open ClientManager.h and replace all

    
    boost::unordered_map
    boost::unordered_set

    with

    
    std::unordered_map
    std::unordered_set

    Then go to db/src directory and run this command 

    
    gmake dep

     

    Then compile again :)

     

    Back intro the past ,  STL was too immature and bloated. But that was >10 years ago.  Now we should use STL where is possile , also STL is now much faster than boost :)

    Thanks for the info! :) kinda weird, that the one who created the source didn't changed that much tbh.

    Now I get this error:

    Compile Database...
    compile Config.cpp
    In file included from Config.cpp:1:
    stdafx.h:19:25: error: unordered_map: No such file or directory
    stdafx.h:20:25: error: unordered_set: No such file or directory
    Makefile:56: recipe for target '.obj/Config.o' failed
    gmake: *** [.obj/Config.o] Error 1
     

  5. 1 minute ago, 127.0.0.1 said:

    Add full log, that does not help me at all.
     

    Compile Database...
    compile Config.cpp
    compile NetBase.cpp
    In file included from NetBase.cpp:4:
    ClientManager.h:5:35: error: boost/unordered_map.hpp: No such file or directory
    ClientManager.h:6:35: error: boost/unordered_set.hpp: No such file or directory
    In file included from NetBase.cpp:4:
    ClientManager.h:35: error: 'boost' has not been declared
    ClientManager.h:35: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:35: error: typedef name may not be a nested-name-specifier
    ClientManager.h:35: error: expected ';' before '<' token
    ClientManager.h:36: error: 'boost' has not been declared
    ClientManager.h:36: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:36: error: typedef name may not be a nested-name-specifier
    ClientManager.h:36: error: expected ';' before '<' token
    ClientManager.h:37: error: 'boost' has not been declared
    ClientManager.h:37: error: ISO C++ forbids declaration of 'unordered_set' with no type
    ClientManager.h:37: error: typedef name may not be a nested-name-specifier
    ClientManager.h:37: error: expected ';' before '<' token
    ClientManager.h:38: error: 'boost' has not been declared
    ClientManager.h:38: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:38: error: typedef name may not be a nested-name-specifier
    ClientManager.h:38: error: expected ';' before '<' token
    ClientManager.h:39: error: 'boost' has not been declared
    ClientManager.h:39: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:39: error: typedef name may not be a nested-name-specifier
    ClientManager.h:39: error: expected ';' before '<' token
    ClientManager.h:40: error: 'boost' has not been declared
    ClientManager.h:40: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:40: error: typedef name may not be a nested-name-specifier
    ClientManager.h:40: error: expected ';' before '<' token
    ClientManager.h:120: error: ISO C++ forbids declaration of 'TItemCacheSet' with no type
    ClientManager.h:120: error: expected ';' before '*' token
    ClientManager.h:397: error: 'boost' has not been declared
    ClientManager.h:397: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:397: error: typedef name may not be a nested-name-specifier
    ClientManager.h:397: error: expected ';' before '<' token
    ClientManager.h:398: error: 'TLoginDataByLoginKey' does not name a type
    ClientManager.h:401: error: 'boost' has not been declared
    ClientManager.h:401: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:401: error: typedef name may not be a nested-name-specifier
    ClientManager.h:401: error: expected ';' before '<' token
    ClientManager.h:402: error: 'TLoginDataByLogin' does not name a type
    ClientManager.h:405: error: 'boost' has not been declared
    ClientManager.h:405: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:405: error: typedef name may not be a nested-name-specifier
    ClientManager.h:405: error: expected ';' before '<' token
    ClientManager.h:406: error: 'TLoginDataByAID' does not name a type
    ClientManager.h:409: error: 'boost' has not been declared
    ClientManager.h:409: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:409: error: typedef name may not be a nested-name-specifier
    ClientManager.h:409: error: expected ';' before '<' token
    ClientManager.h:410: error: 'TLogonAccountMap' does not name a type
    ClientManager.h:440: error: 'TPlayerTableCacheMap' does not name a type
    ClientManager.h:442: error: 'TItemCacheMap' does not name a type
    ClientManager.h:443: error: 'TItemCacheSetPtrMap' does not name a type
    ClientManager.h:447: error: 'TItemPriceListCacheMap' does not name a type
    ClientManager.h:450: error: 'TChannelStatusMap' does not name a type
    ClientManager.h:519: error: 'boost' has not been declared
    ClientManager.h:519: error: ISO C++ forbids declaration of 'unordered_map' with no type
    ClientManager.h:519: error: typedef name may not be a nested-name-specifier
    ClientManager.h:519: error: expected ';' before '<' token
    ClientManager.h:520: error: 'TLogoutPlayerMap' does not name a type
    Makefile:56: recipe for target '.obj/NetBase.o' failed
    gmake: *** [.obj/NetBase.o] Error 1
    Build Done.

     

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