Fomelo Basic

iaeolan

Dalayan Elder
How hard would it be to implement a Fomelo Basic akin to many forum templates of archives? No frills, no mouseovers, just strait formatted text.
Would benefit those who have problems rendering it for whatever reason and more importantly those of us who want to quickly port item stats over to other programs like excel or even the wiki. Mouseover pop-ups don't allow you to highlight and reconstructing source code with word is somewhat tedious.
Would be nice if it's not too hard to do.
 
The data is in the page source. Have someone write a perl script to strip it out.
Why on earth are you using word to work with raw text?
 
The version that was released before just had some properties of items in every slot and player base stats, but it wasn't a finished work.
 
They don't work atm to see, but iirc weren't they just player stats?


Find/Replace etc. I can't code :dumbsad:

Download http://www.cygwin.com It's a Unix shell for windows.

Make sure you install sed. Download and save the source of the
page you looked up and run at the command line in the same
directory

grep -A 2 "font color='white'\|Slot" fomelo.php | sed -e 's/<[^>]*>//g' | sed 's/^[ \t]*//' | sed '/^$/d' >> output_name.txt


Yes, sed command syntax looks like line noise. The output will look like this;
_______________snip______________________
Platinum Cat&lsquo;s Eye Agate Earring
--
[MAGIC ITEM] [NO DROP] Slot: EAR CHA: +10 Weight: 0.1 Size: TinyClass: ALL Race: ALL Type 3 Aug Slot: Empty--
Amulet of the Cult Voice
--
[MAGIC ITEM] [LORE ITEM] [NO DROP] Slot: NECK AC: 5Focus Effect: Mana Conservation IIEffect: Cult Gate (Clicky2, 30.0)INT: +3 CHA: +3 MANA: +20 MR: +3 DR: +3 Weight: 1.0 Size: TinyClass: NEC Race: ALL Type 3 Aug Slot: Empty
--
Ornate Silk Cap
--
[MAGIC ITEM] [NO DROP] Slot: HEAD AC: 4STR: +3 STA: +2 INT: +2 MR: +2 Weight: 0.1 Size: SmallClass: NEC WIZ MAG ENC Race: ALL Type 5 Aug Slot: Empty
______________________snip_____________________

Yup, those are my crappy items. If you need help I'll be on tonight @ 7 - 7 30 pm
EDT when I get home from work. My character is Velleity.
 
Last edited:
Hmm, i am not sure if it is still the case (cant bother to look really), but the earlier versions of the Fomelo had like... really sloppy HTML markup. It was/is nearly impossible to get stats and items out of it.

Then again, that might be better now. But it is also the reason i suggested making an XML output available a long time ago.
 
It's not sloppy at all. All you have to do is remove everything inside "<>", delete white space preceding lines, and delete empty lines. Then you are left with the text output I displayed.
 
Hmm, i am not sure if it is still the case (cant bother to look really), but the earlier versions of the Fomelo had like... really sloppy HTML markup. It was/is nearly impossible to get stats and items out of it.

Then again, that might be better now. But it is also the reason i suggested making an XML output available a long time ago.

Aytewi has a tcl script written for IRC bots that easily grabs info from Fomelo and puts them into simple text. It's a pretty simple operation.
 
Back
Top Bottom