ArcEmu gameobject_spawns menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    KaMakaZe's Avatar Member
    Reputation
    22
    Join Date
    Sep 2007
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ArcEmu gameobject_spawns

    Is there a fix yet for the rotation bug? I will +Rep with all my rep power anyone with a fix for this every day for 2 weeks.

    Seriously, its a bug plaguing my server, my custom zones no longer function, my events no longer function, most of my custom content is useless.

    Its something i really need a fix for. Thanks...

    ArcEmu gameobject_spawns
  2. #2
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    never heard of rotation bug oO

  3. #3
    Twisted7's Avatar Active Member
    Reputation
    63
    Join Date
    Aug 2008
    Posts
    91
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kitto on the AspireDev forums has posted a patch, I haven't tried it yet but you might want to see if it fixes your problem:
    AspireDev.com - Login


    Edit: Forgot they have forced login. NOT MY CODE
    Code:
    Index: src/ascent-world/GameObject.cpp
    ===================================================================
    --- src/ascent-world/GameObject.cpp   (revisione 425)
    +++ src/ascent-world/GameObject.cpp   (copia locale)
    @@ -525,7 +525,7 @@
    
       m_spawn = spawn;
    
    -   SetRotation(spawn->o);
    +   SetRotation(spawn->facing);
       SetUInt32Value(GAMEOBJECT_FLAGS,spawn->flags);
    //   SetUInt32Value(GAMEOBJECT_LEVEL,spawn->level);
       SetByte(GAMEOBJECT_BYTES_1, 0,spawn->state);   
    @@ -845,14 +845,22 @@
    // Convert from radians to blizz rotation system
    void GameObject::SetRotation(float rad)
    {
    +   float f_rot1;
    +
       float deg = rad * (180.f / M_PI);
       if (deg > 180.f)
       {
    -      rad = (1.f - sinf(rad/2.f)) / 8.f + 1.125f;
    +      f_rot1 = (1.f - sinf(rad/2.f));
       }
       else
       {
    -      rad = sinf(rad/2.f) / 8.f + 1.f;
    +      f_rot1 = sinf(rad/2.f);
       }
    -   SetFloatValue(GAMEOBJECT_ROTATION, rad);
    +
    +    int64 rotation = 0;
    +
    +    int64 i_rot1 = f_rot1 / atan(pow(2.0f, -20.0f));
    +    rotation |= (i_rot1 << 43 >> 43) & 0x00000000001FFFFF;
    +
    +   SetUInt64Value(GAMEOBJECT_ROTATION, rotation);
    }
    Apparently, this fix will bug .go spawn (in the way that when you spawn objects they will be rotated 180 degrees initially). Kitto and Chameleon are working on a fix.
    Last edited by Twisted7; 11-25-2008 at 06:22 PM.

  4. #4
    KaMakaZe's Avatar Member
    Reputation
    22
    Join Date
    Sep 2007
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the info +Rep

    Still no proper fix for the existing spawns though?

  5. #5
    Twisted7's Avatar Active Member
    Reputation
    63
    Join Date
    Aug 2008
    Posts
    91
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've been looking through the sql fixes in the latest svn revision and there does not appear to be anything regarding gameobjects :/

    I think the only thing you can do is checkout an earlier revision and use that one until a fix is discovered.

Similar Threads

  1. Flexible Database Editor for Arcemu
    By latruwski in forum WoW EMU Programs
    Replies: 366
    Last Post: 10-05-2009, 02:43 PM
  2. ArcEmu dc on char creation
    By woody79 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-30-2008, 06:21 AM
  3. ArcEmu lastest Revision
    By woody79 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 06-28-2008, 02:09 AM
  4. Arcemu/Ascent
    By megachristron in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-22-2008, 11:59 PM
  5. [Help] ArcEmu/Open Ascent Multiple Realm
    By crcolwell in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 06-12-2008, 08:46 PM
All times are GMT -5. The time now is 09:02 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search