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

Task 1333: (Lokked) SaveCharacter Timers (ER)

Closed Server Bugs

Moderators: Community Managers, Developers

Locked
  • Print view
Advanced search
3 posts • Page 1 of 1
BugTracker
Posts: 810
Joined: Wed Aug 28, 2013 9:40 am
Task 1333: (Lokked) SaveCharacter Timers (ER)
  • Quote

Post by BugTracker » Wed Jan 21, 2015 7:37 pm

Bug ID       : 67 - SaveCharacter Timers (Enhancement) 
Bug Date     : 2015/01/03 10:58:09
Assigned To  : Lokked
Priority     : Low

Category     : WorldServer
Sub-Category : 
Severity     : Standard
Reproducible : Every time
Details:
Not exactly a bug, but an enhancement request; Change how the SaveCharacter timer functions. Right now, every single online character gets saved on the same 5 minute timer. What has to happen is each character gets their OWN timer when they connect so 100 players online are not beating the hell out of the database every 5 minutes with massive updates, but spread out into small, individual upserts.
Originated From Forum: via BugTracker
Last edited by John Adams on Wed Jan 21, 2015 7:43 pm, edited 2 times in total.
Reason: Not a priority, but the sooner the better lest it be swept under the rug
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 67: (Lokked) SaveCharacter Timers (Enhancement)
  • Quote

Post by John Adams » Wed Jan 21, 2015 7:43 pm

[quote]Entered on Jan 03, 2015 16:01 by Lokked
Is it common to incrementally save? Ideally, assuming the World will never crash, characters would be saved upon chunking and logout.[/quote]
Yes, staggered updates is always preferred unless you are preparing bulk inserts/updates, which makes no sense in this application.

What happens when a player disconnects? Does a SaveCharacter not fire manually? Does it fire just for that 1 character? Or does it blow through every character performing a save? (I think there's a difference between SaveCharacter directly and timer-initiated SaveAllCharacters?) I'm curious if this spam-save happened because of a disconnect and force-save happened at the same time the Timer triggered, which is why it hasn't been seen again.

The real reason to do it is because I asked for it but tell me the technical reasons this cannot (or should not) be done on a player-owned timer.

Changing this BUG into an Enhancement: http://vgoemulator.net/index.php?p=projman&id=1333 for later.
Top

Lokked
Principle Developer
Principle Developer
Posts: 600
Joined: Wed Aug 06, 2014 3:15 pm
Re: Task 1333: (Lokked) SaveCharacter Timers (ER)
  • Quote

Post by Lokked » Wed Jan 21, 2015 9:48 pm

When a character camps or is otherwise disconnected, ONLY their character is saved. There are 2 functions, SaveCharacter() and SaveAllCharacters().

SaveCharacter is the WorldDatabase function that actually runs the query. SaveAllCharacters iterated through all characters that meet certain criteria and runs SaveCharacter for each one.
Top


Locked
  • Print view

3 posts • Page 1 of 1

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