Difference between revisions of "Team Fortress Wiki talk:Tips Revision"

From Team Fortress Wiki
Jump to: navigation, search
(We've got a problem)
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Discussion close|begin}}
 
== Poot details here ==
 
== Poot details here ==
  
Line 46: Line 47:
 
: Shugo alerted me to this yesterday, but I forgot so thanks for reminding me. The tip container can hold 7 lines of text, the text being in Size 8 Verdana... which poses a problem, Verdana is not a monospace font, it is dynamically-spaced (each letter has its own individual width).  That means means we cannot enforce a hard-limit on the length of tips, to find out which tips do and do not fit in the box, we have to test them out individually.  I have a few ideas I'm going to play around with to solve this problem, until then we will have to look at the longer tips and see if there's anywhere we can save space - while still retaining the messages clarity. -[[User:RJackson|<span class="modbg" style="margin-right:1px;text-shadow: #538237 1px 1px 0px;">RJ</span>]] 10:44, 24 March 2012 (PDT)
 
: Shugo alerted me to this yesterday, but I forgot so thanks for reminding me. The tip container can hold 7 lines of text, the text being in Size 8 Verdana... which poses a problem, Verdana is not a monospace font, it is dynamically-spaced (each letter has its own individual width).  That means means we cannot enforce a hard-limit on the length of tips, to find out which tips do and do not fit in the box, we have to test them out individually.  I have a few ideas I'm going to play around with to solve this problem, until then we will have to look at the longer tips and see if there's anywhere we can save space - while still retaining the messages clarity. -[[User:RJackson|<span class="modbg" style="margin-right:1px;text-shadow: #538237 1px 1px 0px;">RJ</span>]] 10:44, 24 March 2012 (PDT)
 
:: Alright, I was wrong with my earlier statement.  The game uses size 14px Verdana, but in the files it is defined as <code>"tall" "8"</code>.  Anyway, I have thrown together a (very hacky and horribly coded) Python script to generate images of the tips, bounded as the tips container allows, that also generates a list of whether or not the tips are too long.  The output of the script can be found [http://intergalacticprotonpoweredelectricaltentacledadvertisingdroid.co.uk/tiprevision/ here].  And now I am adding the too-length tips to the 'Suggestions' page to be revised. -[[User:RJackson|<span class="modbg" style="margin-right:1px;text-shadow: #538237 1px 1px 0px;">RJ</span>]] 13:06, 24 March 2012 (PDT)
 
:: Alright, I was wrong with my earlier statement.  The game uses size 14px Verdana, but in the files it is defined as <code>"tall" "8"</code>.  Anyway, I have thrown together a (very hacky and horribly coded) Python script to generate images of the tips, bounded as the tips container allows, that also generates a list of whether or not the tips are too long.  The output of the script can be found [http://intergalacticprotonpoweredelectricaltentacledadvertisingdroid.co.uk/tiprevision/ here].  And now I am adding the too-length tips to the 'Suggestions' page to be revised. -[[User:RJackson|<span class="modbg" style="margin-right:1px;text-shadow: #538237 1px 1px 0px;">RJ</span>]] 13:06, 24 March 2012 (PDT)
 +
::: If that doesn't work, you might be able to just make a custom tf_english and remove all the tips except the one you want to test (set it as the only tip for every class). I'm not sure if the game accepts custom tf_englishes though (I don't see why not). [[User:Balladofwindfishes|Balladofwindfishes]] 17:39, 24 March 2012 (PDT)
 +
:::: Not sure what you're referring to with "if that doesn't work", guess I was unclear somewhere.  The python script used to generate and evaluate whether the tips would fit works fine as far as I am currently aware; if there are any tips it generates as a 'success' (i.e. the tip fits) but in-game the tip actually doesn't fit then I need to be told so I can figure out why the script is wrong (your demo tip is an example of this, the script [http://intergalacticprotonpoweredelectricaltentacledadvertisingdroid.co.uk/tiprevision/success/Tip_4_22.png generates it fine] but you've stated otherwise - I'll have to look into that one tomorrow).  We can also test with custom tf_english files, but this is a longer and more laborious process than using a script. -[[User:RJackson|<span class="modbg" style="margin-right:1px;text-shadow: #538237 1px 1px 0px;">RJ</span>]] 17:51, 24 March 2012 (PDT)
 +
::::: That tip cuts off the bottoms of those letters with hanging parts, iirc [[User:Balladofwindfishes|Balladofwindfishes]] 18:15, 24 March 2012 (PDT)
 +
:::::: Right I've re-jigged my script - TF2 draws the tips from center in-game, but I don't know how to replicate that with the tools I've got for now...  but I've gotten the generated text a pixel-perfect match for when there's 7 lines of text.  I'll upload the results later on today, but I'm still going to count tips getting the little trails cut off as successes...  it's such a minor detail that it's not worth bothering over - the only solution would be re-doing all the tips so none of them are 7 lines long in-game. -[[User:RJackson|<span class="modbg" style="margin-right:1px;text-shadow: #538237 1px 1px 0px;">RJ</span>]] 07:31, 25 March 2012 (PDT)
 +
{{Discussion close|end}}

Latest revision as of 22:50, 11 January 2024