The Following User Says Thank You to damaltor For This Useful Post: | ||
![]() |
2012-01-17
, 16:03
|
Posts: 188 |
Thanked: 90 times |
Joined on Sep 2006
|
#12
|
![]() |
2012-01-17
, 23:45
|
Posts: 34 |
Thanked: 46 times |
Joined on Jan 2012
@ Germany
|
#13
|
![]() |
2012-01-18
, 08:19
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#14
|
![]() |
2012-01-18
, 10:37
|
Posts: 188 |
Thanked: 90 times |
Joined on Sep 2006
|
#15
|
![]() |
2012-01-18
, 11:22
|
|
Posts: 1,038 |
Thanked: 1,408 times |
Joined on Feb 2010
@ London
|
#16
|
![]() |
2012-01-18
, 14:05
|
Posts: 34 |
Thanked: 46 times |
Joined on Jan 2012
@ Germany
|
#17
|
![]() |
2012-01-18
, 15:02
|
Posts: 188 |
Thanked: 90 times |
Joined on Sep 2006
|
#18
|
![]() |
2012-01-18
, 15:36
|
Posts: 34 |
Thanked: 46 times |
Joined on Jan 2012
@ Germany
|
#19
|
The Following User Says Thank You to damaltor For This Useful Post: | ||
![]() |
2012-01-28
, 08:59
|
|
Posts: 560 |
Thanked: 423 times |
Joined on May 2010
@ Switzerland
|
#20
|
I am sorry but I am not very good in python, but as said the choice of the next quote is "unfair", picking quotes after long quotes more often. Also, the very first quote in the file cannot be chosen at all (Dirty workaround: fill the first line of the file with random letters, about as long as a normal quote).
So, picking a line number would be better. An alternative Workaround would probably be to make a script which is reading through the quotes file, finding the longest quote, and then extends every single line in the file with spaces until all lines have the same length (and equal chances to get picked). This is, as said, only a workaround and requires the user to run his quote file through the conversion script once before using your mod.