Titan Network

Archive => City Info Tracker => Titan Projects => Bugs and Support => Topic started by: Greysteele on May 03, 2009, 03:55:20 PM

Title: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Greysteele 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.
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Steiner 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!
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Greysteele 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.

Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: SuckerPunch on May 04, 2009, 08:52:38 PM
Steiner reads at a 5th grade level. Gotta take it down a notch ;)
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: eabrace 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:

<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".

Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Steiner on May 04, 2009, 10:05:24 PM
Quote from: SuckerPunch on May 04, 2009, 08:52:38 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.


Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Greysteele on May 04, 2009, 10:11:32 PM
Quote from: Steiner on May 04, 2009, 10:05:24 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).
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: eabrace on May 05, 2009, 01:25:56 AM
Ahhh, so lvl_progress_num is the the floating point version of lvl_progress.  Gotcha.  :)
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Greysteele on May 05, 2009, 02:40:52 AM
Not positive, but it looks like Steiner has got this one fixed now.  Thanks, S-man!
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Steiner on May 05, 2009, 11:04:34 AM
Quote from: Greysteele on May 04, 2009, 10:11:32 PM
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.
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Greysteele 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! 
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Greysteele on May 07, 2009, 02:46:28 PM
Quote from: Greysteele on May 07, 2009, 04:31:11 AMBTW - 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
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Steiner on May 07, 2009, 02:47:41 PM
What's up with Glyc?
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Tazhyngarth 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?!?!

Quote from: Greysteele on May 07, 2009, 04:31:11 AMBTW - 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.
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: SaintNicster on May 07, 2009, 03:46:06 PM
Quote from: Greysteele on May 07, 2009, 04:31:11 AM
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.

Quote from: Greysteele on May 07, 2009, 02:46:28 PM
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 ;)
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: SuckerPunch on May 07, 2009, 04:49:46 PM
Quote from: SaintNicster on May 07, 2009, 03:46:06 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
Title: Re: XP, Inf & Lvl Pct BORKED in Data Feeds
Post by: Steiner on May 07, 2009, 05:09:29 PM
... I don't... been that way since I joined. LOL!