Author Topic: XP, Inf & Lvl Pct BORKED in Data Feeds  (Read 5394 times)

Greysteele

  • Minion
  • **
  • Posts: 31
XP, Inf & Lvl Pct BORKED in Data Feeds
« on: May 03, 2009, 03:55:20 PM »
Here's the XML:
<experience/>
<lvl_progress>0%</lvl_progress>
<lvl_progress_num/>
<influence/>


All my toons have XP & Inf visible, in case you think that's the problem.  They show up fine on CIT's list, just hosed in the feeds.

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #1 on: May 03, 2009, 05:46:21 PM »
thanks. I'll do it up right now, quick easy fix.

It's just the percent without the percent sign.


Edit: DONE!
« Last Edit: May 03, 2009, 05:54:38 PM by Steiner »
~Steinerd

Greysteele

  • Minion
  • **
  • Posts: 31
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #2 on: May 04, 2009, 08:23:13 PM »
Dunno what you thought you were fixing, but it is exactly the same now. 

To be clear - There are FOUR (4) FIELDS THAT ARE NOT WORKING RIGHT:

1) <experience/>  - As you can see, there is no data and the since the tag is empty it is self-terminating (slash at the end). 

2) <lvl_progress>0%</lvl_progress> - This one isn't empty or self-terminating, but it always contains "0%" regardless of the actual value stored in the DB.

3) <lvl_progress_num/> - Same as #1: empty.

4) <influence/> - Same as #1 and #3: empty.


SuckerPunch

  • Elite Boss
  • *****
  • Posts: 1,608
    • Titan Network
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #3 on: May 04, 2009, 08:52:38 PM »
Steiner reads at a 5th grade level. Gotta take it down a notch ;)

eabrace

  • Titan Moderator
  • Elite Boss
  • *****
  • Posts: 4,292
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #4 on: May 04, 2009, 09:19:08 PM »
I can at least verify that it's not just Greysteel seeing this.

Case in point, in this set of data:

Code: [Select]
<char_id>461</char_id>
<name>I. Scream</name>
<status>Offline</status>
<security_level>3</security_level>
<archetype_name>Corruptor</archetype_name>
<origin_name>Technology</origin_name>
<server_name>Champion</server_name>
<primary_name>Sonic Attacks</primary_name>
<secondary_name>Sonic Resonance</secondary_name>
<game_id>2</game_id>
<last_update>2009-04-30 00:51:33</last_update>
<main_char>0</main_char>
<current_project>1</current_project>
<verified_count>44</verified_count>
<unverified_count>0</unverified_count>
<large_avatar/>
<medium_avatar/>
<small_avatar/>
<bio_text/>
<supergroup_name>ParagonWikid</supergroup_name>
<experience/>
<lvl_progress>0</lvl_progress>
<lvl_progress_num/>
<influence/>
<global_name>B Samson</global_name>
<vanity_the>The</vanity_the>
<vanity_title/>
<vanity_title2/>

<experience/>

Should reflect a value of 611.  (Character XP visibility set to "account default"; account default for XP visibility is "visible".

<lvl_progress>0</lvl_progress>

Should reflect a value of 29(%).

<lvl_progress_num/>

Should reflect a value of either 3 (current level) or 4 (next untrained level.)

<influence/>

Probably correct given my current settings.  (Character inf visibility set to "account default"; account default for inf visibility is "hidden".

Titan Twitter broadcasting at 5.000 mWh and growing.
Titan Facebook

Paragon Wiki admin
I was once being interviewed by Barbara Walters...In between two of the segments she asked me..."But what would you do if the doctor gave you only six months to live?" I said, "Type faster." - Isaac Asimov

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #5 on: May 04, 2009, 10:05:24 PM »
Steiner reads at a 5th grade level. Gotta take it down a notch ;)
That's ok, I here you're struggling to finish "My First Potty". MUAH AHAHAHA


Sorry, I'm on auto-pilot right now... have been for awhile. You post code, that's what I'm going to see...
I though the only thing missing was the progress_num value, as your snippet has led me to believe.

Ok, I went into the xml tables, and found a new way to do what I needed to do using CASE instead of 3 logical IFs inside of each other.

So now it should not only be what you're asking for to be fix, it should load a whole bunch faster.


~Steinerd

Greysteele

  • Minion
  • **
  • Posts: 31
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #6 on: May 04, 2009, 10:11:32 PM »
You post code, that's what I'm going to see...
I though the only thing missing was the progress_num value, as your snippet has led me to believe.

Not sure why you thought that, since the XML I posted clearly showed empty tags for <experience/>, <lvl_progress_num/> and <influence/>. 

It should be impossible for a toon to have no XP or Inf.  And even if it were possible, those tags shouldn't be empty, they should have zeroes in them, since zero isn't the same as null (empty).

eabrace

  • Titan Moderator
  • Elite Boss
  • *****
  • Posts: 4,292
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #7 on: May 05, 2009, 01:25:56 AM »
Ahhh, so lvl_progress_num is the the floating point version of lvl_progress.  Gotcha.  :)
Titan Twitter broadcasting at 5.000 mWh and growing.
Titan Facebook

Paragon Wiki admin
I was once being interviewed by Barbara Walters...In between two of the segments she asked me..."But what would you do if the doctor gave you only six months to live?" I said, "Type faster." - Isaac Asimov

Greysteele

  • Minion
  • **
  • Posts: 31
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #8 on: May 05, 2009, 02:40:52 AM »
Not positive, but it looks like Steiner has got this one fixed now.  Thanks, S-man!

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #9 on: May 05, 2009, 11:04:34 AM »
Not sure why you thought that, since the XML I posted clearly showed empty tags for <experience/>, <lvl_progress_num/> and <influence/>...


You ever hear of "reading between the lines"...? That's all I do while I'm on auto-pilot, and I'm all out of redbull to wake me up, lol.

Plenty of times I answer an issue or a question with a reply that has absolutely NOTHING to do with the issue. Guess I just need to read through it a few times and grasp the situation for what it is, and not what I want it to be, lol.
~Steinerd

Greysteele

  • Minion
  • **
  • Posts: 31
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #10 on: May 07, 2009, 04:31:11 AM »
Stein-Lad, you'll never need to read between the lines with me.  I've been a software developer for going on 30 years now.  When it comes to 'puter problems I always try to say exactly what I mean, nothing more or less.   I'll go that extra mile to try and give you a precise description of the problem as it appears from my side.  The more precise my presentation is, the less time you need to spend tracking down the real problem.  So if you'll just trust me a little bit, and take the time to carefully read what I submit, then I'll try my best not to steer you wrong.

BTW - As of this moment, I believe every part of CIT is working to my satisfaction, which hasn't happened in a while.  Congrats to all of the team! 

Greysteele

  • Minion
  • **
  • Posts: 31
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #11 on: May 07, 2009, 02:46:28 PM »
BTW - As of this moment, I believe every part of CIT is working to my satisfaction, which hasn't happened in a while.  Congrats to all of the team! 

I wish to apologize to everyone for this comment.  Obviously I was tempting fate and I am the cause of the new Glycerine/HS problem...

LOL

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #12 on: May 07, 2009, 02:47:41 PM »
What's up with Glyc?
~Steinerd

Tazhyngarth

  • Elite Boss
  • *****
  • Posts: 2,085
    • Titan Network
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #13 on: May 07, 2009, 02:58:22 PM »
LOL!

I swear we Updated Gly from it's most recent breakdown due to the Game Patch.  What could possible be wrong now?!?!

BTW - As of this moment, I believe every part of CIT is working to my satisfaction, which hasn't happened in a while.  Congrats to all of the team!

This make us happy :P.

SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #14 on: May 07, 2009, 03:46:06 PM »
When it comes to 'puter problems I always try to say exactly what I mean, nothing more or less.   I'll go that extra mile to try and give you a precise description of the problem as it appears from my side.  The more precise my presentation is, the less time you need to spend tracking down the real problem.  So if you'll just trust me a little bit, and take the time to carefully read what I submit, then I'll try my best not to steer you wrong.

I wish to apologize to everyone for this comment.  Obviously I was tempting fate and I am the cause of the new Glycerine/HS problem...

LOL
These two now don't match up ;)


SuckerPunch

  • Elite Boss
  • *****
  • Posts: 1,608
    • Titan Network
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #15 on: May 07, 2009, 04:49:46 PM »
These two now don't match up ;)

LOL!


Even though I don't really work on anything anymore, I take full credit for the site being much better these days!


I hope SaintNicster and Steiner don't mind :D

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: XP, Inf & Lvl Pct BORKED in Data Feeds
« Reply #16 on: May 07, 2009, 05:09:29 PM »
... I don't... been that way since I joined. LOL!
~Steinerd