RolePlay onLine RPoL Logo

, welcome to RPoL Development

21:40, 23rd April 2024 (GMT+0)

Cast list sorting.

Posted by PushBarToOpen
PushBarToOpen
member, 186 posts
Wed 17 Aug 2011
at 21:52
  • msg #1

Cast list sorting

I dont know how viable this is but is it possible to add a filter to the cast list sot that players can be viewed in order of the other oloums not just alphabetically. Sometimes i try to judge the activity lvl of a game and that is made difficult by some GM's that dont delete players. Having the ability to sort by last post or log on would aid this search alot. it would also help GM's who are pruning their players down and help to see who is in what group.
ax2groin
member, 15 posts
Culver City, CA
Thu 18 Aug 2011
at 00:00
  • msg #2

Re: Cast list sorting

My JavaScript is ten years rusty, but that's the kind of thing you might be able to build a plugin for. On that note, maybe a generic one exists already. You might check around for the browser you use. If you got something like that to work without a RPoL code change, then a shared "useful scripts" resource/forum for the site might be useful.
PushBarToOpen
member, 188 posts
Thu 18 Aug 2011
at 08:18
  • msg #3

Re: Cast list sorting

905 of my Rpoling is done on IE at work. Since we are banned from using Firefox and Chrome for fear of viruses. i dont think i do that. Although it might be worth trying for my home RPOLing. but i wouldnt know where to start.

However doesnt Heaven exist as a shared resource forum. Maybe scripts and stuff could be included their if people build them?

but my initial request remains the same.
matthewfenn
member, 213 posts
www.nj-pbem.com
Northern Journey PBeM DM
Thu 18 Aug 2011
at 11:26
  • msg #4

Re: Cast list sorting

+1 from me - I'd often like to be able to sort the cast list.
Quatar
member, 6 posts
Fri 19 Aug 2011
at 23:54
  • [deleted]
  • msg #5

Re: Cast list sorting

This message was deleted by a moderator, as it was off-topic, at 08:31, Sat 20 Aug 2011.
MILLANDSON
member, 1163 posts
Sat 20 Aug 2011
at 08:29
  • [deleted]
  • msg #6

Re: Cast list sorting

This message was deleted by a moderator, as it was off-topic, at 08:31, Sat 20 Aug 2011.
HasniM
member, 121 posts
Sat 20 Aug 2011
at 20:58
  • msg #7

Re: Cast list sorting

+1

It would be nice to sort alphabetically and include the NPCs.  (Rather than sort exclusively by player status.)
stm
member, 106 posts
Sun 21 Aug 2011
at 12:12
  • msg #8

Re: Cast list sorting

+1 I'd use it, although cast lists in my games are not usually that long...
matthewfenn
member, 275 posts
www.nj-pbem.com
Northern Journey PBeM DM
Tue 6 Nov 2012
at 17:45
  • msg #9

Re: Cast list sorting

In some games where there is a really large number of PCs, some active, some dormant, it would be particularly useful to be able to sort by last-logged in / last-posted date.
Lunarius
member, 152 posts
all things serve
the beam
Tue 6 Nov 2012
at 20:06
  • msg #10

Re: Cast list sorting

+1, especially if the GMs could specify a "default view".  I would like to be able to sort by Group, Alphabetical, Post Count and Last Post with an option to include NPCs.
praguepride
member, 837 posts
Asker of Questions
Finder of Answers
Wed 7 Nov 2012
at 07:55
  • msg #11

Re: Cast list sorting

+1

I'm praguepride and I support this feature


:D
adrasteia1
member, 900 posts
Time you enjoy
wasting isn't wasted
Wed 7 Nov 2012
at 21:39
  • msg #12

Re: Cast list sorting

+1 from me as well.
Alexei Yaruk-Mundhenk
member, 1047 posts
Ad Majorem
Dea Gloriam
Mon 12 Nov 2012
at 21:08
  • msg #13

Re: Cast list sorting

Nother +1 here. Could be very useful, especialy if you could sort by character tag, such as 'all the "Guardsmen"'
matthewfenn
member, 292 posts
www.nj-pbem.com
Northern Journey PBeM DM
Tue 12 Feb 2013
at 11:48
  • msg #14

Re: Cast list sorting

Is there any chance that this might make it into the new version?  I play in some games where there is a huge number of players, and being able to sort them by # of posts or last post/login date would be really useful so I can figure out which players are "active" and which are "dormant".
jmkool
member, 228 posts
aka'd as The Kool
Tue 12 Feb 2013
at 15:29
  • msg #15

Re: Cast list sorting

+1 from me, if it helps.  I'd use it.
jase
admin, 2931 posts
Cogito, ergo procuro.
Carpe stultus!
Tue 12 Feb 2013
at 16:04

Re: Cast list sorting

Can be done relatively simply with javascript, but it'll ruin the aesthetics of the columns.  Currently it's all one big table, so each column is expanded depending upon the longest name/date in the column in the entire table.

Sorting requires a separate table for each one that's going to be sorted, so each section (GMs, Players, NPCs) would be a distinctly different table, each with it's own column widths.  I can set minimum widths which will help, but there's a lot of moderate to long character names out there which won't fit, and will expand the column, messing up the nice alignment we currently have.
rogar308
member, 234 posts
Gaming is good!
Got RPOL in my soul
Tue 12 Feb 2013
at 16:15
  • msg #17

Re: Cast list sorting

You can't wrap the text in the column if it exceeds a certain width so the column width could be maintained?
matthewfenn
member, 293 posts
www.nj-pbem.com
Northern Journey PBeM DM
Tue 12 Feb 2013
at 16:57
  • msg #18

Re: Cast list sorting

Is it not possible to check what the longest character name/tag/date etc would be over-all and then set each table to the highest?
jase
admin, 2932 posts
Cogito, ergo procuro.
Carpe stultus!
Wed 13 Feb 2013
at 01:03

Re: Cast list sorting

Text can be wrapped, which (imho) leads to a different kind of ugly.  Possibly the lesser of two evils.

Counting characters doesn't help much, as they're variable width (compare iiii to wwww), and different browsers render the text slightly differently.  I could err on the side of caution, but then you're generally going to have a lot of white space.  Possibly also bad form to do it that way.

I've seen it done with javascript, but I'm don't want to go there.  While I'm happy to provide some extra little things via javascript (or where it can't be avoided), I don't want to make page layout rely on javascript -- especially when we're messing it up for javascript use!
matthewfenn
member, 295 posts
www.nj-pbem.com
Northern Journey PBeM DM
Wed 13 Feb 2013
at 14:57
  • msg #20

Re: Cast list sorting

You could use word wrap, but fix the width of the column so that the vast majority of names didn't wrap.

Obviously, to do that, you need to figure out the statistics for name lengths...  I confess I'm more of an Excel specialist than any other form of programming these days, but given a list of names and plowing them into column A of a spreadsheet, I can run a macro to give me some stats on the lengths of the names in points and pixels... (using calculations based on formula found here: http://processtrends.com/pg_charts_cell_size.htm).

Obviously, that also depends on the type and size of fonts that people use as default on their browsers... but again, the vast majority of users probably stick with the default fonts, so as long as it is sized for the vast majority - no problems...   so the exercise is not foolproof, and a bit of further analysis/extrapolation is required.

SO - here is my very unscientific analysis of the user names that have posted in this forum on this subject - obviously not a representative sample! - and tested initially using 10 point Arial font.

[smarttable]+-+
{}{Arial 10 point}{}{Arial 12 point}{}{Verdana 10 point}{}{Verdana 12 point}{}
{Name}{Points}{Pixels}{Points}{Pixels}{Points}{Pixels}{Points}{Pixels}
[stm][3.43][22.15][4.14][25.7][3.71][23.55][5][30]
[jase][3.71][23.55][4.71][28.55][4.14][25.7][5.57][32.85]
[jmkool][5.71][33.55][7][40][6.14][35.7][8.43][47.15]
[Quatar][5.86][34.3][7.29][41.45][6.71][38.55][8.57][47.85]
[HasniM][6.57][37.85][8.14][45.7][6.86][39.3][9][50]
[ax2groin][7.29][41.45][9.14][50.7][8.14][45.7][10.57][57.85]
[Lunarius][7.29][41.45][9][50][8][45][10.43][57.15]
[rogar308][7.43][42.15][9.71][53.55][8.57][47.85][10.86][59.3]
[adrasteia1][8.86][49.3][11.29][61.45][10.14][55.7][13.14][70.7]
[praguepride][9.86][54.3][12.86][69.3][11.29][61.45][14.57][77.85]
[matthewfenn][10.71][58.55][13.14][70.7][12.86][69.3][16.14][85.7]
[MILLANDSON][12.14][65.7][15.29][81.45][12.57][67.85][16.14][85.7]
[PushBarToOpen][14][75][17.43][92.15][15.14][80.7][19.29][101.45]
[Alexei Yaruk-Mundhenk][20.29][106.45][24.14][125.7][22.57][117.85][28.43][147.15]
+-+[/smarttable]


Here are two graphs for the Arial 10 and Arial 12 Histograms - looking at pixels.

http://www.matthew.fenn.dsl.pi...xampleHistograms.gif

Even with such a small sample, a classic bell curve can be just about made out.

Obviously, with a much larger selection of character names - and I'm sure Jase probably has the ability to extract that from his database - a much more detailed analysis of the data could be performed and a value could probably be come with that would cope with a suitably high percentage of names and give you a value in points (or pixels) for a particular common font/size combo - I've only done the graphs for Arial 10 and Arial 12, but it could easily be redone for each of the most common font names and sizes...  in fact, you could probably simply extrapolate up/down for each of the font sizes, since the size ratio of sample sentences between fonts tend to be pretty steady.

Anyway, once you have those chosen max col width values for each of the common font/sizes, the web page could presumably figure out which font/size the user is using and set the column width to the appropriate value.
matthewfenn
member, 427 posts
www.nj-pbem.com
Northern Journey PBeM DM
Wed 20 Apr 2016
at 07:12
  • msg #21

Re: Cast list sorting

Wow - I was about to post a suggestion about Cast List Sorting - then thought I'd do a search to see if anyone else had suggested it earlier.  I found this thread, and then my own entries in it!   I'd completely forgotten that I'd previously posted this...

I also look at my last post and think that perhaps the Smarttable formatting has screwed up since I posted it...

Anyway, I guess this now becomes a bit of a bump - to see if any further discussion on this suggestion is to be had...  Is it still on your "possible" list Jase?  OR has it definitely been scratched off as a no-no?
Sign In