Jump to content

Patman128

Members
  • Posts

    1090
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by Patman128

  1. I love the mmap extractor but right now it crashes if the mmap directory hasn't been created (and the meshes directory if you have debugOutput true)
  2. There is this function in mangos: bool Map2ZoneCoordinates(float& x,float& y,uint32 zone) { WorldMapAreaEntry const* maEntry = sWorldMapAreaStore.LookupEntry(zone); // if not listed then map coordinates (instance) if (!maEntry || maEntry->x2 == maEntry->x1 || maEntry->y2 == maEntry->y1) return false; x = (x-maEntry->x1)/((maEntry->x2-maEntry->x1)/100); y = (y-maEntry->y1)/((maEntry->y2-maEntry->y1)/100); // client y coord from top to down std::swap(x,y); // client have map coords swapped return true; } If you put in the X and Y world co-ords (such as from .gps) and the zone ID, it will give you the 0-100 co-ords like in the client. This is also outputed when you use .gps (I think it says zone co-ords or something similar.) Basically, in WorldMapArea.dbc is a list of zones and their boundaries in x1, x2, y1, y2. To convert world co-ordinates into zone co-ordinates, take them, subtract the first boundary co-ordinate, then divide it by the second bounary subtracted by the first boundary, then divide by 100, then swap the X and Y. For example, let's say you are are at co-ordinates (90, 50) in the world and the zone's bounaries are x1: 100 x2 10 y1 60 y2 0, then you would do x = (x - x1) / ((x2 - x1) / 100) y = (y - y1) / ((y2 - y1) / 100) x = (90 - 100) / ((10 - 100) / 100) y = (50 - 60) / ((0 - 60) / 100) x = (-10) / ((-90) / 100) y = (-10) / ((-60) / 100) x = (-10) / (-0.9) y = (-10) / (-0.6) x = 11.11 y = 16.67 then swap these 2 x = 16.67, y = 11.11 Note that x1 and y1 are always bigger than x2 and y2.
  3. A warning message about NYI LFD system. Ignore it.
  4. Can you post exactly what you tried to do?
  5. It's client-side.
  6. Those logs don't really help at all because they don't really tell anything besides the freeze detector killing mangos.
  7. Patman128

    Violet hold

    It's a function they made. Find it in their source code and copy it into yours.
  8. You can use SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 1)
  9. A crash log would be nice.
  10. You didn't actually say what the message was. Or why you want to find it.
  11. Everyone knows Haiku will have taken over the world by then. But I don't think there ever will be a mangos 1.0...
  12. I think it's a client limitation.
  13. Which DB did you use?
  14. I think maybe the quest needs a quest_complete_script which respawns the object from despawned state.
  15. If you have Visual Studio installed, you should have the option of debugging it when it crashes. Make sure you rebuild map and mmap extractors and re-extract maps. If your maps are missing hole data, it will crash the mmap maker.
  16. If you read it, it says "XXXXDatabaseInfo", as in, info to connect to the database. If the database is on the same server, you should use localhost (127.0.0.1) If read the port forwarding guide, it says quite clearly that you need to change the IP in the realmlist table, not in the config.
  17. Why don't you post in the vehicles thread instead of starting a new one every time the patch breaks?
  18. Your database appears to be empty. You may want to try installing one.
  19. Maybe fixed in http://github.com/mangos/mangos/commit/fd63b3ba70c0e6e4917cc8559a57ad40c7d6cbb5 ?
  20. I'm going to assume http://github.com/Thyros/mangos, but it doesn't have cmake in it.
  21. You either need to commit the changes or revert the changes and then pull.
  22. You can run the SD2 SQL again safely (mangos_scriptname.sql or something similar) to set all the proper script names.
  23. Getting these linking errors: 3>Linking... 3>vmap_assembler.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification 3>MapTree.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall ACE_Stack_Trace::c_str(void)const " (__imp_?c_str@ACE_Stack_Trace@@QBEPBDXZ) referenced in function "public: bool __thiscall VMAP::StaticMapTree::isInLineOfSight(class G3D::Vector3 const &,class G3D::Vector3 const &)const " (?isInLineOfSight@StaticMapTree@VMAP@@QBE_NABVVector3@G3D@@0@Z) 3>MapTree.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall ACE_Stack_Trace::ACE_Stack_Trace(int,unsigned int)" (__imp_??0ACE_Stack_Trace@@QAE@HI@Z) referenced in function "public: bool __thiscall VMAP::StaticMapTree::isInLineOfSight(class G3D::Vector3 const &,class G3D::Vector3 const &)const " (?isInLineOfSight@StaticMapTree@VMAP@@QBE_NABVVector3@G3D@@0@Z) 3>..\\bin\\Win32_Debug\\/vmap_assembler.exe : fatal error LNK1120: 2 unresolved externals Visual Studio 2008 (VC90) with Win32 Debug and Release.
  24. You can't open it in Visual C++, it's not written in C++ lol.
  25. Well what did you do to SpellAuras.cpp? Also I have no idea why you are using those commands.
×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use