VGOEmulator.net

A Development Project for the Vanguard:Saga of Heroes MMO

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • Portal
  • Project Manager
  • Bug Tracker
  • Server List
  • Wiki
  • Donate
  • Login
  • Register
  • Board index Bugs Server Bugs Server Bugs (Closed)
  • Search

Bug 235: (zippyzee) NPC Stuttering Movement

Closed Server Bugs

Moderators: Community Managers, Developers

Locked
  • Print view
Advanced search
14 posts
  • Previous
  • 1
  • 2
zippyzee
Developer
Developer
Posts: 1240
Joined: Wed Jul 23, 2014 2:11 pm
Re: Bug 235: (zippyzee) NPC Stuttering Movement
  • Quote

Post by zippyzee » Thu Oct 15, 2015 5:39 am

In the npc motor ai, in CombatDo(), it sets the npc offensive target to the most hated character each cycle. That is triggering the notification change, which is in turn sending a packet that doesn't need to be sent.

There will be a check in there at the next commit that only sets the offensive target if it is not the current offensive target.
Top

zippyzee
Developer
Developer
Posts: 1240
Joined: Wed Jul 23, 2014 2:11 pm
Re: Bug 235: (zippyzee) NPC Stuttering Movement
  • Quote

Post by zippyzee » Thu Oct 15, 2015 6:48 am

This should be better now. So every 200ms since npc's have been able to do combat it has spammed this packet for every npc in combat. Not only that, but the path there through the code involves locking a list, updating it, unlocking it, etc. Performance enhanced!
Top

User avatar
John Adams
Retired
Posts: 4582
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
Re: Bug 235: (zippyzee) NPC Stuttering Movement
  • Quote

Post by John Adams » Thu Oct 15, 2015 7:28 am

Great job, sleuths. Xinux should re-run his combat test now and post the results for comparison. I love performance.

btw, NT updated to current SVN. Until I get home, we will have sprinting NPCs.
Top

User avatar
Xinux
Project Leader
Project Leader
Posts: 2549
Joined: Wed Aug 28, 2013 2:20 pm
Re: Bug 235: (zippyzee) NPC Stuttering Movement
  • Quote

Post by Xinux » Thu Oct 15, 2015 8:49 am

Looks good.

Code: Select all

08:47:03.976 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:04.319 E Char     Notify Offensive Target Details changed e:\vgoemu\trunk\src\world\worldcharacter.cpp:655
08:47:04.319 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:06.990 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:08.520 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:10.004 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:12.565 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:16.031 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:16.594 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:19.045 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:20.825 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:22.059 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:24.839 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:25.073 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:28.087 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:28.899 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:31.101 E Char     Process Damage e:\vgoemu\trunk\src\world\combat.cpp:632
08:47:31.101 D Item     Adding item 1032867 (Surgin Hilthorn's Right Leg) with unique_id 0 to pawn inventory.
08:47:31.226 D NPC      Gataro Podling Exiting Combat
08:47:31.226 E Char     Notify Offensive Target Details changed e:\vgoemu\trunk\src\world\worldcharacter.cpp:655
08:47:31.226 E Char     Notify Offensive Target Details changed e:\vgoemu\trunk\src\world\worldcharacter.cpp:655
Top


Locked
  • Print view

14 posts
  • Previous
  • 1
  • 2

Return to “Server Bugs (Closed)”

Jump to
  • Information
  • ↳   Announcements
  • ↳   Dev Chats
  • ↳   Events
  • Community
  • ↳   General Discussions
  • ↳   VGO Team Help Requests
  • ↳   Introductions
  • ↳   Game Features
  • ↳   Wish List
  • ↳   Off-Topic
  • Support
  • ↳   How-To's
  • ↳   General Support
  • ↳   Windows
  • ↳   Linux
  • Bugs
  • ↳   Server Bugs
  • ↳   Server Bugs (Closed)
  • ↳   Content Bugs
  • ↳   Content Bugs (Closed)
  • ↳   Database Bugs
  • ↳   Tools Bugs
  • Board index
  • All times are UTC-07:00
  • Delete cookies
  • Contact us
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD