Bug in icons/smileys?

Post any bugs, problems or feature requests here.
Brend
Veolian Commonwealth
The Lifebringer Clans
The Lifebringer Clans

Bug in icons/smileys?

Post Veolian Commonwealth » Wed Aug 10, 2011 3:06 pm
User avatar
Veolian Commonwealth
Faction
 
Does anyone else miss icons in the table on http://83.163.184.178:81/dokuwiki/user:brend:icons? I don't see about half of the smileys with overlays.
Post The Lifebringer Clans » Wed Aug 10, 2011 3:08 pm
User avatar
The Lifebringer Clans
Faction
 
Yeah, same here.
Post Veolian Commonwealth » Wed Aug 10, 2011 3:10 pm
User avatar
Veolian Commonwealth
Faction
 
Ok. That confirms my suspicion. I can't seem to reproduce this on my development wiki. We want working smileys, so I will look into this some more.

EDIT: As of 15:22 I'm completely confused as to why this happens.
Post The Lifebringer Clans » Wed Aug 10, 2011 3:31 pm
User avatar
The Lifebringer Clans
Faction
 
Just to be clear: I'm missing the +in and +out versions of:
conmats up to electronics, emds, exotic-matter-devices, healthcare-products, utilities up to gas, metals up to rare elements.

What's puzzling is that there seems to be nothing in those cells. Not a missing image, and not even an unprocessed (:conmats+in) in text or something.
Post Veolian Commonwealth » Wed Aug 10, 2011 3:37 pm
User avatar
Veolian Commonwealth
Faction
 
Ok. You miss exactly the same things as me. I already confirmed that it is an actual bug somewhere in the plugin or wiki. When you preview the page, it outputs a rather long list of 'icon not recognized' errors.

What puzzles me is the fact that https://tempest.student.utwente.nl/~reikanna/icons:start is perfectly fine although it uses the exact same code.

The only thing different between the two wiki's is the fact that the official wiki runs an older version of Dokuwiki. But that should not disable some of the icons.
Post Veolian Commonwealth » Wed Aug 10, 2011 4:07 pm
User avatar
Veolian Commonwealth
Faction
 
Executive Summary: Fixed!

Explanation: The bug was due to my use of the (since PHP 5.3.0) deprecated split function.

Technical Explanation: I used a regular expression that was interpreted in a rather weird way:
Code: Select all
\s*\+\s*

This was consuming 's' characters in the icon description string so '(:conmats+in)' was split as: ['conmat', 'in']. The plugin couldn't find the 'conmat', so it ignored the while thing. Found this out when I went ahead and started debugging on the official server -- if you saw a large amount of notices appear, my sincere apologies.
Post The Lifebringer Clans » Thu Aug 11, 2011 3:29 pm
User avatar
The Lifebringer Clans
Faction
 
The Special Goods icons and the Specialized overlay icon are awesome. I took the liberty of adding them to the appropriate rules pages.

However, the Special Goods icons do not link to the correct pages.
Post Veolian Commonwealth » Thu Aug 11, 2011 6:24 pm
User avatar
Veolian Commonwealth
Faction
 
They link to their respective 'product' page, just like the other icons.

The MTCF product is distinct from the trade fleet rules, so I just kept to the rule. We should create the requisite product pages someday though. We can list things like 'possible bonusses' and such on those pages. That might help new players (and veteran players that need a quick update) to determine what they want to build or do...

Return to Technical