View Single Post
  #1  
Unread 05-12-2012, 12:04 PM
K1R4D3L K1R4D3L is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2012
Posts: 34
plugin.Version doesn't update without exiting game

Anyone else run into this? It seems that plugin.Version doesn't return an updated number unless you fully exit and re-open the game client.

This is a problem for me with my next release of KillTracker, since I'm changing the save file format somewhat. In testing, if I load v0.9.3, let it save it's files, stay in the game and go copy v0.9.4 into the Plugins folder, then unload and reload KillTracker, it will save its files with v0.9.3 as the version number, but in the v0.9.4 format. Then if I exit and re-open the game, it fails to load the files correctly because it sees that the version is now v0.9.4 from plugin.Version, that the files are tagged as v0.9.3, and tries to open them in v0.9.3 format and convert them, which it obviously can't do.

Sorry, bit of a messy explanation...hope you follow.

Only solution I can think of is to hard-code the version number in the code...which is eventually bound to bite me when I forget to update it in yet another spot when I put out a new version. Anyone have a better work-around, apart from telling users to exit the game before upgrading and hoping they actually do?
Reply With Quote