femaref / evetradercs

Automatically exported from code.google.com/p/evetradercs
0 stars 0 forks source link

Character Information Not Saving #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start from fresh installation
2. Click File->Manage Characters
3. Enter API information
4. Select top character (I presume selecting any would have the same issue)
5. Click add. Received successfully added character notice.
6. Close Eve Trader
7. Restart Eve Trader

What is the expected output? What do you see instead?
Upon restarting Eve Trader there are no linked characters.

What version of the product are you using? On what operating system?
Using EveTrader 300310 build 2354 on Windows 7 x64.

Please provide any additional information below.
The character data is still available within a single launching of Eve
Trader, it is only when closing the program that character data appears to
be lost.

A second issue, possibly related, though perhaps another bug: backup and
restoring data produces an error "Unable to restore data Object reference
not set to an instance of an object".

Original issue reported on code.google.com by michael....@gmail.com on 30 Mar 2010 at 11:47

GoogleCodeExporter commented 9 years ago
A few other notes:

1) Running the program as administrator (again, Win7 x64) does not fix the 
issue.
2) No other information other than balance under the "Wallets" tab is visible, 
this
could just be an api issue though.
3) Regarding backup restoration. I've looked through the xml file produced and
everything seems fine there, I didn't notice any unclosed tags. One note, 
though not
really important, is that api information is duplicated in the xml file, it is 
found
both under Evetrader\Characters\Character as well as under
Evetrader\Characters\Character\ApiData

Original comment by michael....@gmail.com on 31 Mar 2010 at 12:19

GoogleCodeExporter commented 9 years ago
Follow up to (2), after waiting a while, it did update again and the proper 
data was
updated, so it was just an API "cooldown" issue. After the update I made a back 
up,
and closed EveTrader. Upon opening again character info was gone (no character 
under
manage characters), restore a backup gives the "Unable to restore data Object 
reference
not set to an instance of an object" error.

Original comment by michael....@gmail.com on 31 Mar 2010 at 12:53

GoogleCodeExporter commented 9 years ago
a) no idea concering backup/restore, but I didn't look into that since I 
changed all 
the things
b) api data is duplicated because of the old model present from the original 
dev, I 
changed it to a more generic approach, I just forgot to add the removal of that 
into 
the migration classes
c) it's no build number, it's just the date when the version got published

Concerning the real issue... the xml itself gets saved in %appdata%\EveTrader. 
You 
might want to check this file for validity, and also might convo me so we can 
nail 
this problem down. I don't have a win7 x64 box so I can't really test it myself.

Original comment by fema...@googlemail.com on 31 Mar 2010 at 9:14

GoogleCodeExporter commented 9 years ago
Workaround:

1) Open EveTrader, add an api-key and close the program
2) go to start->execute (or windows-key + R), type "%appdata%\EveTrader"
3) open the file "settings.xml"
4) you will find something like this:
[quote]
<?xml version="1.0"?>
<EveTrader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://
www.w3.org/2001/XMLSchema">
  <Characters>
[/quote]

5) Add "<Version>1.2.4</Version>" between EveTrader and Characters, so it looks 
like 
this:
[quote]
<?xml version="1.0"?>
<EveTrader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://
www.w3.org/2001/XMLSchema">
  <Version>1.2.4</Version>
  <Characters>
[/quote]

6) save the xml, reopen EveTrader.

Original comment by fema...@googlemail.com on 2 Apr 2010 at 1:25

GoogleCodeExporter commented 9 years ago
Fixed in the versionfix bin.

Original comment by fema...@googlemail.com on 18 Apr 2010 at 1:53