Option to save skill simulator report as PDF/doc/ whatever

Started by 01001000, Dec 17, 2011, 01:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

01001000

The skill simulator is very useful to plan a character's skills, however, the lack of options to save it as a document, involves having to copy-paste and then rearrange items to make the data clear, could it be possible to create an option to save the report (in colums of course), so it would be easier to share/ keep it?

yC

The current format if you copy and paste them to a .txt they aren't difficult to read at all.  I never bother to use pdf/doc (might not even have .doc installed in this computer) for text so I wouldn't know how you want to format them.   If you want them in column it would be easier for you to save that part of the page from the src into .html.  Or I could look into the possibility of generating the html.  But you will have to be more clear on what rearranging you have to do each time (if not the tab only) since I don't see the current format has a problem with reading after you copy and paste.

01001000

Increase Spiritual Power    Level   9   
Sight    Level   1   
Napalm Beat    Level   8   
Safety Wall    Level   10   
Soul Strike    Level   5   
Cold Bolt    Level   10   
Frost Diver    Level   6   
Energy Coat    Level   1   Quest Skill

This is how a copy-paste of a report of a 1-1 class looks like after copying it, what I was requesting was the report to stay as originally, rows and columns.

That is why I thought it would be useful to have the report as a downloadable file, so instead of copying and pasting, we would just download such file.

I am not sure if I explained myself correctly, please let me know if I didn't.

yC

That is what I mean they are fine and readable.  How would you rearrange or reformat it instead?  They are actually in an invisible table with rows and columns when output to html.  When you copy and paste you don't get the table code that is behind the scene of course.  If you want a table you want the original html, pdf/doc will not change the format.

01001000

Indeed when they are just a few, they can be easily read, but when you copy and paste a report of... let's say a renewal class, well it becomes a bit confusing to read because the names are all over the file without order...

Could it be possible to have a report looking like this one? I mean convert the HTML into something resembling this? Like I said before, I really wouldn't mind, but when having a bigger report, there are many skills that would need to be arranged for it to look like this (or take several screenshots and then make a single image).



This is how a Renewall class report looks like
Sight    Level   1   
Napalm Beat    Level   7   
Safety Wall    Level   10   
Soul Strike    Level   5   
Cold Bolt    Level   8   
Frost Diver    Level   1   
Stone Curse    Level   1   
Fire Ball    Level   2   
Fire Bolt    Level   9   
Lightning Bolt    Level   4   
Thunder Storm    Level   1   
Energy Coat    Level   1   Quest Skill
Sightrasher    Level   3   
Meteor Storm    Level   10   
Jupitel Thunder    Level   10   
Lord of Vermillion    Level   10   
Water Ball    Level   2   
Ice Wall    Level   3   
Storm Gust    Level   10   
Earth Spike    Level   3   
Heaven's Drive    Level   1   
Quagmire    Level   5   
Monster Property    Level   1   
Amplify Magic Power    Level   10   
Ganbantein    Level   1   
Sight Blaster    Level   1   Quest Skill
White Imprison    Level   1   
Soul Expansion    Level   3   
Frost Misty    Level   2   
Jack Frost    Level   5   
Recognized Spell    Level   2   
Sienna Execrate    Level   2   
Radius    Level   3   
Stasis    Level   1   
Drain Life    Level   2   
Crimson Rock    Level   2   
Hell Inferno    Level   5   
Chain Lightning    Level   5   
Earth Strain    Level   5   
Tetra Vortex    Level   5   
Summon Fire Ball    Level   1   
Summon Lightning Ball    Level   1   
Summon Water Ball    Level   1   
Summon Stone    Level   1   
Release    Level   2   

yC

I will consider a html source code version for copy and paste because don't want to generate any file to be saved.  But with html you will need to know how to open the file and edit the content, it's not as easy as in a txt or doc though it's not hard at all just need to read between the tags.  Would that be something similar to what you want?

01001000

Quote from: yC on Dec 18, 2011, 04:46 PM
I will consider a html source code version for copy and paste because don't want to generate any file to be saved.  But with html you will need to know how to open the file and edit the content, it's not as easy as in a txt or doc though it's not hard at all just need to read between the tags.  Would that be something similar to what you want?
Yes, thank you for reading, and fear not, I do know how to write HTML. My request was mostly because, well, not all users would know this, and in my case, I rarely read a website's source code, and considering it's somewhat long it would be a bit hard to find that specific code.

yC

Okay.  I can't say I am done yet hmm .. maybe ...

Anyway, if you go to the sim now you see the text area where you can copy and paste a plain version with each skill name takes exactly 40 spaces then the level follows.  I hesitate to do the html version after thinking that people don't know what to do with the src code wouldn't see any value to it (and it "cannot" be edited for those that don't know what they are doing). 

So I thought filling in the spaces would be more friendly but then it turns out I forgot these forum places and MSwords don't use the same amount of space for chars like 'i' vs chars like 'w'.  For my usual notepad .txt the rows are aligned perfectly.  The bad news is if you are going to use the text in a forum or doc I can only say that the spacing is improved somehow but they aren't aligned obviously. 

Any suggestion to advance this further?  Also please check to see the rest of the sim is functional xD.


01001000

I apologize for the delay.
That is why I thought it would be easier to make a conversion of the html code into a pdf or something else, people would use that file as an attachment in lets say a forum post, likewise keeping it build a character.

The sim is functional as far as I've tested it.


If the problem are the formats, then I will do a research and see if something can be done about it (I just hope it doesnt end up with a long list of conditional statements).

Once I find something, I will edit this post.

Just one last question, what would the issue be with the downloadable file?

yC

I didn't know you are aiming to share the generated text as a pdf or html.  I thought you want to keep that as record for yourself.  Because for sharing it would be more convenience to use a .txt for easy edit/open or share it on sites like pastebin while they are already aligned (i.e. http://pastebin.com/iRmXSsPX).  90% of the time I see copy and paste share rather than in attachment.

For not generating a downloadable file, it is to keep things simple.  By the time you generate your report, all the data are handled by JavaScript.  I believe to have JavaScript generate a savable file it would takes as much code as the JavaScript for the skill sim itself.  Even there are things like that out there, I wouldn't want to include them.

While I try to meet your suggestion requirement, I have to consider how other people's experience with the changes too.  That's why I ended up not doing the html version under the consideration of other users.  I hope you understand.

01001000

No problem, I just wanted to ask in case it was possible.
Well, having it as a file, would be for those two main reasons. But since you say, there is no way to do it without using too much code, then I think that's ok.

yC

Just thought of a workaround if you really want to save the text in a .doc. 

You can just change the font to one of the monospace font style to get the alignment as shown in the text box (I changed the font used there as a demonstration).  'Courier New' is one of them, 'Lucida Console' is another there should be more. 

For example if I change this sample to use "font=courier new" with the font tag it will look like this below (but this font option isn't in the default font box of the forum), just testing.


Divine Protection                       Lv 10
Demon Bane                              Lv 10
Holy Light                              Lv 1 (Quest Skill)
Iron Hand                               Lv 5
Call Spirits                            Lv 5
Triple Attack                           Lv 5
Dodge                                   Lv 5
Chain Combo                             Lv 3
Ki Translation                          Lv 1 (Quest Skill)
Ki Explosion                            Lv 1 (Quest Skill)


Total 1st job skill point used: 20/49 Left: 29 Over: 0
Total 2nd job skill point used: 23/69 Left: 46 Over: 0
Total 3rd job skill point used: 0/0 Left: 0 Over: 0

01001000

Thank you again, this is a very good workaround, I'll use this from now on.