Jump to content
TrinityCore

LordPsyan

Members
  • Posts

    216
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by LordPsyan

  1. I know this is an older posting, but I am experiencing a similar problem. after a server restart, it takes 20-40 minutes before it allows me to log in, even though both worldserver and bnetserver look fine. if I have patience and wait long enough, it does log in and from that point continues to allow logging in. I also experience the problem with "could not bind to port" for awhile after a server shutdown. that releases after awhile. This is quite annoying, as a server restart means for at least 30 minutes the server is down. not enough time to watch a movie, but longer than I need to eat a meal :)

  2. On 1/6/2018 at 7:35 PM, LordPsyan said:

    This has probably been mentioned, but I was forced to upgrade to Debian 9. I do like the error messages giving more details and suggestions when compiling, but I am having serious linking issues with boost, zlib, etc. Here is my error:

     

    [ 38%] Linking CXX executable authserver
    CMakeFiles/authserver.dir/Main.cpp.o: In function `GetConsoleArguments(int, char**, boost::filesystem::path&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
    /opt/TrinityCore/src/server/authserver/Main.cpp:305: undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'

    ...

    Seen so many similar errors mentioned, and no fixes. If I find a fix, I will post it.

    I said I would post my fix. It was not fun, nor quick...

     

    I had to remove boost, and compile from source. here are the steps I took: (works for Debian and Ubuntu. Don't forget sudo in Ubuntu)

     

    1. apt-get remove libboost-all-dev --purge (I like to purge all files.)
    2. cd /opt (this is where I store my files. place them wherever you want)
    3. download boost source latest from sourceforge: SourceForge Boost files
    4. 7za boost-1_66_0.7z (or whatever version is latest)
    5. cd boost-1_66_0
    6. ./bootstrap.sh
    7. ./b2
    8. ./b2 install

     

    This fixed my problem, and I could compile. I hope this helps. b2 takes forever to run. by default, is should install boost to /usr/local/include/boost

     

    - LordPsyan

  3. This has probably been mentioned, but I was forced to upgrade to Debian 9. I do like the error messages giving more details and suggestions when compiling, but I am having serious linking issues with boost, zlib, etc. Here is my error:

     

    [ 38%] Linking CXX executable authserver
    CMakeFiles/authserver.dir/Main.cpp.o: In function `GetConsoleArguments(int, char**, boost::filesystem::path&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
    /opt/TrinityCore/src/server/authserver/Main.cpp:305: undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
    CMakeFiles/authserver.dir/Main.cpp.o: In function `basic_command_line_parser':
    /usr/local/include/boost/program_options/detail/parsers.hpp:40: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
    CMakeFiles/authserver.dir/Main.cpp.o: In function `boost::program_options::typed_value<boost::filesystem::path, char>::name[abi:cxx11]() const':
    /usr/local/include/boost/program_options/detail/value_semantic.hpp:18: undefined reference to `boost::program_options::arg[abi:cxx11]'
    CMakeFiles/authserver.dir/Main.cpp.o: In function `void boost::program_options::validate<boost::filesystem::path, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, boost::filesystem::path*, long)':
    /usr/local/include/boost/program_options/detail/value_semantic.hpp:92: undefined reference to `boost::program_options::invalid_option_value::invalid_option_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    CMakeFiles/authserver.dir/Main.cpp.o: In function `validation_error':
    /usr/local/include/boost/program_options/errors.hpp:373: undefined reference to `boost::program_options::validation_error::get_template[abi:cxx11](boost::program_options::validation_error::kind_t)'
    /usr/local/include/boost/program_options/errors.hpp:373: undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
    /usr/local/include/boost/program_options/errors.hpp:373: undefined reference to `boost::program_options::validation_error::get_template[abi:cxx11](boost::program_options::validation_error::kind_t)'
    /usr/local/include/boost/program_options/errors.hpp:373: undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
    CMakeFiles/authserver.dir/Main.cpp.o: In function `std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > boost::program_options::to_internal<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)':
    /usr/local/include/boost/program_options/detail/convert.hpp:79: undefined reference to `boost::program_options::to_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost15program_options11typed_valueINS_10filesystem4pathEcEE[_ZTVN5boost15program_options11typed_valueINS_10filesystem4pathEcEE]+0x40): undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const'
    CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE]+0x38): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
    CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE]+0x30): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
    CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x30): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
    CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE]+0x38): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
    CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[_ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE]+0x30): undefined reference to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
    CMakeFiles/authserver.dir/Main.cpp.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x30): more undefined references to `boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' follow
    ../../common/libcommon.a(StartProcess.cpp.o): In function `operator()':
    /opt/TrinityCore/src/common/Utilities/StartProcess.cpp:83: undefined reference to `boost::iostreams::file_descriptor_source::file_descriptor_source(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
    /opt/TrinityCore/src/common/Utilities/StartProcess.cpp:83: undefined reference to `boost::iostreams::file_descriptor_source::file_descriptor_source(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    src/server/authserver/CMakeFiles/authserver.dir/build.make:207: recipe for target 'src/server/authserver/authserver' failed
    make[2]: *** [src/server/authserver/authserver] Error 1
    CMakeFiles/Makefile2:1291: recipe for target 'src/server/authserver/CMakeFiles/authserver.dir/all' failed
    make[1]: *** [src/server/authserver/CMakeFiles/authserver.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2

     

    Seen so many similar errors mentioned, and no fixes. If I find a fix, I will post it.

  4. You can get bots easily. http://git.realmsofwarcraft.com

     

    I know, I charge for access, but it's a one time fee of $10 because the server it runs on is a dedicated server and it costs me to rent it. But it is lifetime access.

     

    @gerripeach I could not get that code to work. item not declared, auraeffect not declared. Guess not placing it properly, but I fixed my issue with the spell not counting all the way down to 0. Still am unable to get another spell cast when duration ends. Worst part is, this is the easy part. the rest of what I am attempting is going to be much harder...

  5. I am trying to make a spell script, something I have never messed with before. Simply put, a spell is cast upon you when you touch an object. I have that working, since that is a game object script. it also adds a 30 second duration, which also works, but does not show the countdown timer like many other spells. I think this needs to be done in a spell script, instead of newSpell->SetDuration(30000); in gameobject script.

    I cannot figure out how to get the timer working, and then get another spell cast upon the player.

    I have this set in my spell script, so if the spell is removed by any other means, the script shouldn't do anything:

                    if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE && GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_ENEMY_SPELL)
                        return;

    so to sum up my question:

    spell cast upon player. timer counts down 30 seconds, which gives player enough time to remove the spell, then at end of countdown, another spell cast upon player. Can anyone give me some sample code? I tried working with professor putricide spell codes, and the life bloom spell, but its just not triggering. Yes I added an entry in spell_script_names...

     

    Thanks.

  6. doing .server shutdown force 1 gives same result. my restarter runs every 10 seconds, but that doesn't matter. realm being down 30 seconds to 1 minute isn't a big deal, since my server is only for me and my kids and wife, but on a populated server 1 minute could be bad. I see no worldserver process running. Don't know what other information I can give....

     

    Back to spell scripts lol

  7. in the 6.x sql updates folder are many updates for world, but creature table was changed... it is no longer `guid` but `ID`. many of the update files error do to this change. if you manually change guid to ID then you get fun errors like unknown column spawndist or movementtype.

     

    I am unsure when creature table was changed, but the structure is completely different now.

     

    I suppose it is possible I am importing the wrong sql files (unlikely) so here is one of the file names  that error:

    2014_10_22_00_world_from_335.sql

     

    There are other errors, such as ghost_zone column not in graveyard.

     

    Maybe I have done something wrong. I imported the full DB (had to do it via CLI because quest_template would time out) then all the hotfixes, then the world updates. is this backwards?

     

     

    EDIT: I did do it wrong. world updates first. but, there is still an error.rename table game_graveyard_zone to graveyard_zone.... both those tables are in the database already... haven't tried the hotfixes. Maybe there shouldnt be a seperate folder for hotfixes if they are needed, and should just be added to updates? I am eager to see how this new core works, and to help in any way I can. I do have a retail account if anyone needs me to get any information.

  8. OK besides the fact of being lazy, and not knowing what you are doing, why are you using Plesk in the first place? it can all be done manually, and then you don't have to pay 20-50 per 30-100 user license per month. Second, if you are still on debian 4 it is time to upgrade. I don't have any of these problems on debian 5 64bit with or without plesk.

    I would guess it isn't server4you it is most likely a pebcac error.

    At least in this post you are providing a little more information... unlike your last.

×
×
  • Create New...