The Utopia Pimp Blog

Home

Blog for the popular website and strategist site Utopiapimp.com

Why Are there Duplicate Provinces in my Kingdom Page?

A user asked a question via email and I thought I would reiterate it on the blog so everyone understands it.

A province was duplicated twice in the kingdom listing, and they didn’t understand why it was and it was creating a small problem while they were in war.  

So I did my best to answer the question.

There is a lot of parsing going on.  When spells, Ops, Captures or any other data with a province name that isn’t currently in the DB is posted, we create a new province for that kingdom in our Database.
So lets say “HumptyDumpty(1:23)” was posted to our system with a spell.  If we don’t find him in the system, we create him.  Since we create him this once, Another posting with the name “Humpty Dumpty (1:23)” might have been posted.  The difference in their names is 2 spaces, but in our system, they are two totally different provinces.  Sadly, my parsing can also only keep up with most cases.  Utopia and other Agents such as Angel and Ultima don’t tend to help at all because they all might format a name differently over time.  So I make sure I hit all those cases, but there are times where two names could slip through my parsing and I not catch it.  So sadly, I can’t get every iteration of the same province that might have different names, but be the same province.  I am improving my code every day though!  I go through about 200 parsing issues every day before I actually start coding on pimp.  Thats 200 separate issues with parsing that at times just get passed through the system and at times get caught by my internal Parsing Engine.
So while I can’t do much about it now, over time, I hope that the code will improve against the countless iterations of a certain province I deal with.  So if you don’t mind, can you please let me know if you post something that just duplicated a province. I will without a doubt look into it.  I just can’t do anything about some type of error unless I know about it and can recreate the problem over and over again.
I hope that helps.
SpoiledTechie
Comments