Different font size for light & full scoreboards

Everything about Modding TE2013, from new courts to the modifications of the player & tournament bases (and including all the bugs they may be creating ! ;) )
Forum rules
Speak English in 1st page of topics, and don't hijack topics, troll, use profanities nor insults

Different font size for light & full scoreboards

Postby delpetra » 17 Feb 2015, 03:17

Hi everyone,
I'm currently modding linaroger's WTA scoreboard and was wondering if it's possible to have a larger font size for the full scoreboard? i.e. can you adjust them separately? I can't see anything in WTA_hud.def that suggests that you can :cry:

I haven't seen any other scoreboards with different sized text for the light and full scoreboards so I thought I'd check to see if it's even possible. I'm hoping so as I am not that experienced with scoreboards and adjusting each element of the light one to make it bigger will take me ages!
Attachments
light.PNG
light.PNG (38.4 KiB) Viewed 2172 times
full.PNG
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Different font size for light & full scoreboards

Postby antimouse » 20 Feb 2015, 17:02

Hi reshonda,

Don't worry, it is quite simple to do. All you have to do is to look in the def file for the Font command. Duplicate that command, give it a different name, change the size and use this new font in the items presented in the full scoreboard.
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Different font size for light & full scoreboards

Postby delpetra » 21 Feb 2015, 03:12

antimouse wrote:Hi reshonda,

Don't worry, it is quite simple to do. All you have to do is to look in the def file for the Font command. Duplicate that command, give it a different name, change the size and use this new font in the items presented in the full scoreboard.

Thanks so much antimouse, it worked!
If it's not too much of a hassle, please could you help me with a couple of other things too? I'm trying to learn as much as I can by looking through other scoreboards and trial and error but some things I can't seem to work out for myself.
I'm trying to change the statboard to one of completely different dimensions but don't want it to be stretched. I'm guessing I need to specify dimensions in wta_matchstatboard.def? (that file isn't actually included in linaroger's WTA scoreboards but I made my own based off another scoreboard, and then an auckland_matchstatboard.def since that's the tournament I'm using to test everything)
But do I specify the same dimensions as the .tga file I've made, or do I need to scale them down for a 640x480 screen? (I read in the menu.doc that the co-ordinates are 'expressed for a 640x480 screen')
I had a look at rogerfed's Olympic scoreboard as his statboard is much smaller than 'normal', but the numbers in olympics_matchstatboard.def aren't what I'd expect them to be in comparison to the other, larger statboards.
For reference, here is what I've got at the moment (I'll change all the text positions later):
statboard test3.jpg

Finally, I can see that rogerfed's RG statboard doesn't have the 'match duration' text one, whereas his Olympics one does, but I can't see where I can change this? The time part of both matchstatboardsub.menu files are different but I can't work out what's causing the change.

Thanks so much for your help so far. Here's the .tga I'm using for my statboard if it's any help.
Attachments
statsauckland.png
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Different font size for light & full scoreboards

Postby antimouse » 24 Mar 2015, 00:29

Sorry for taking so long to answer, I'm not coming here very often.
I don't know if you already solved this, but, yes, you have to consider the interval [0,640]x[0,480]. About stretching, just keep in mind that 640x480 has a different aspect ratio than 1920x1080, for example. So proportionally resizing down to 640x480 may leave your statboard deformed. What I usually do is try to get it "look" nicely in the resolution i'm working on.
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Different font size for light & full scoreboards

Postby manutoo » 24 Mar 2015, 05:26

On aspect ratio: everything keeps the same aspect ratio.
In case the screen is not at 4:3 ratio, then the left border doesn't start at 0 but at : /Intern/WideBorder ; and right border is at: 640-/Intern/WideBorder (/Intern/WideBorder is a negative number)
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 18689
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Different font size for light & full scoreboards

Postby delpetra » 24 Mar 2015, 23:52

antimouse wrote:Sorry for taking so long to answer, I'm not coming here very often.
I don't know if you already solved this, but, yes, you have to consider the interval [0,640]x[0,480]. About stretching, just keep in mind that 640x480 has a different aspect ratio than 1920x1080, for example. So proportionally resizing down to 640x480 may leave your statboard deformed. What I usually do is try to get it "look" nicely in the resolution i'm working on.

No it's alright! If it's easier for me to contact you through another method and you'd prefer that just let me know. Thanks so much for all your help so far!
I'll just use trial and error to see what looks good. Funnily enough the dimensions of my WTA statboard are pretty much exactly the same as the dimensions of your 2014 ATP statboard! But where to I need to edit to change the size of the statboard? I've tried editing the 'def FrameW' and 'def FrameH' parts of the X_matchstatboard.def files but it doesn't appear to do anything to any statboards.

And thanks for the info manutoo!
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Different font size for light & full scoreboards

Postby antimouse » 25 Mar 2015, 03:34

Well, it should be FrameW and FrameH. Strange... :S

And good to know about that WideBorder, I didn't know there was such a thing. Thanks Manu!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Different font size for light & full scoreboards

Postby delpetra » 26 Mar 2015, 01:02

antimouse wrote:Well, it should be FrameW and FrameH. Strange... :S

And good to know about that WideBorder, I didn't know there was such a thing. Thanks Manu!

I'll try the statboard again in a bit. I've spent quite a while modding the light WTA scoreboard and think I'm finally happy with it! What do you think?

Image

I also decided to use a single image for the full scoreboard (I didn't think of doing this until I saw your 2014 DC scoreboard) and have managed to hide all of the individual elements by deleting lines of text in WTA_hudscoreboard.menu or setting their size to 0 in WTA_hud.def.

Image

However, I think this has caused the text to move to weird places - for example, the games are highlighted in red. Is there a way to move the text manually, independently of the images? e.g. so for the games counter, I specify co-ordinates for where it goes, instead of it moving where the image for the game counter was normally displayed.

If I'm looking at the right thing (hud_davis14.def) it looks like lines like 'def FullScoreBoardSetX' and 'def FullScoreBoardPlayer1Y' should control this, but can I just add these lines into the WTA_hud.def?

Thanks so much.
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Different font size for light & full scoreboards

Postby antimouse » 26 Mar 2015, 03:13

Just adding those lines in WTA_hud.def won't be enough. The def files just DEFine things (in this case, variables). These variables have to be USED somewhere else to take effect. For example, when you define an item and put FullScoreBoardSetX as the variable for the x position in the command Pos, then you are using it properly.

You can of couse separate text placement from images, but you gotta have different variables for them. Or you can just set it manually in the Pos command of the text (something like ImagePositionX+74, for example, assuming ImagePositionX is a variable defined in the def file)

The light scoreboard seems superb to me :)
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Different font size for light & full scoreboards

Postby delpetra » 26 Mar 2015, 11:55

antimouse wrote:Just adding those lines in WTA_hud.def won't be enough. The def files just DEFine things (in this case, variables). These variables have to be USED somewhere else to take effect. For example, when you define an item and put FullScoreBoardSetX as the variable for the x position in the command Pos, then you are using it properly.

You can of couse separate text placement from images, but you gotta have different variables for them. Or you can just set it manually in the Pos command of the text (something like ImagePositionX+74, for example, assuming ImagePositionX is a variable defined in the def file)

The light scoreboard seems superb to me :)

Thanks for your kind words and thank you for explaining that!
I've looked around in the other files for your 2014 DC scoreboard and found this bit from hud_davis14full.menu - is this the Pos command?

Code: Select all
item
{
   Text /Intern/Team1s
   Pos FullScoreBoardNameX FullScoreBoardPlayer1Y Left Center
   Font ScoreFullF
   ShrinkToMaxPixel FullScoreBoardNameDx
}


I found some text related to the full scoreboard items in hud_davis14sub.menu but the 'SetCfg' and 'MulAddMulCfg' of the other file look a bit intimidating! :sweat:
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Different font size for light & full scoreboards

Postby call me 12315 » 27 Mar 2015, 12:13

reshonda wrote:Hi everyone,
I'm currently modding linaroger's WTA scoreboard and was wondering if it's possible to have a larger font size for the full scoreboard? i.e. can you adjust them separately? I can't see anything in WTA_hud.def that suggests that you can :cry:

I haven't seen any other scoreboards with different sized text for the light and full scoreboards so I thought I'd check to see if it's even possible. I'm hoping so as I am not that experienced with scoreboards and adjusting each element of the light one to make it bigger will take me ages!

can you share this to me?
call me 12315
tennis enthusiastic
tennis enthusiastic
 
Messages: 6
Gaming Since: 22 Mar 2015, 07:57

Re: Different font size for light & full scoreboards

Postby antimouse » 09 Apr 2015, 19:51

Hey reshonda!

Yes, the Pos command is the one shown in that piece of code. Every item has a Pos command to define where it should be placed on screen.
SetCfg and MulAddMulCfg just look intimidating, but they are rather simple.

SetCfg --> sets a value to a config variable. For example: SetCfg /Intern/MyVar 15 will make the /Intern/MyVar have the '15' value assigned.
MulAddMulCfg --> is used to make arithmetical operations with these config variables. It takes up to 4 parameters (if I remember well, the last 2 are optional (the last one I know it is optional, i'm not certain about the 3rd one :P))
For example:

MulAddMulCfg /Intern/X 0 /Intern/Y 2 ==> what this means is (X is multiplied by 0 and then it is added to Y multiplied by 2, i.e., X = X*0 + Y*2). Hence the name Mul-Add-Mul :D

That's why sometimes I use 0 (I'm initializing the calculation) and sometimes I use 1 (I'm adding more things to the calculation) as the multiplier.
In menu folder there's a Menu.doc file that summarizes all these commands (and it misses some too)
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Different font size for light & full scoreboards

Postby delpetra » 09 Apr 2015, 20:18

antimouse wrote:Hey reshonda!

Yes, the Pos command is the one shown in that piece of code. Every item has a Pos command to define where it should be placed on screen.
SetCfg and MulAddMulCfg just look intimidating, but they are rather simple.

SetCfg --> sets a value to a config variable. For example: SetCfg /Intern/MyVar 15 will make the /Intern/MyVar have the '15' value assigned.
MulAddMulCfg --> is used to make arithmetical operations with these config variables. It takes up to 4 parameters (if I remember well, the last 2 are optional (the last one I know it is optional, i'm not certain about the 3rd one :P))
For example:

MulAddMulCfg /Intern/X 0 /Intern/Y 2 ==> what this means is (X is multiplied by 0 and then it is added to Y multiplied by 2, i.e., X = X*0 + Y*2). Hence the name Mul-Add-Mul :D

That's why sometimes I use 0 (I'm initializing the calculation) and sometimes I use 1 (I'm adding more things to the calculation) as the multiplier.
In menu folder there's a Menu.doc file that summarizes all these commands (and it misses some too)

Thanks so much for your reply! I've got a couple more questions but I'll save those until I've worked this out haha!

I think I understand what you're saying. I'm looking in WTA_hudscoreboard.menu at the following:
Code: Select all
//=== Names

// Full names in full scoreboard
item
{
   Text /Intern/Team1
   Pos /Intern/ScoreX /Intern/ScoreYu Left Center
   Font FullSBNameF
   ShrinkToMaxPixel FullScoreNameMax
   ShowIf /Intern/ScoreType 1
   OnRender
   {
      MulAddMulCfg /Intern/ScoreX 0 /Intern/ScoreXl
      MulAddMulCfg /Intern/ScoreX 1 /Intern/ScoreNameX
   }
}

item
{
   Text /Intern/Team2
   Pos /Intern/ScoreX /Intern/ScoreYd Left Center
   Font FullSBNameF
   ShrinkToMaxPixel FullScoreNameMax
   ShowIf /Intern/ScoreType 1
}

and have added
Code: Select all
   Pos /Intern/Team1X
   Pos /Intern/Team1Y

but when I load the game the names completely disappear in the full scoreboard. Just to be clear, I am aiming to do what you said here:
antimouse wrote:Or you can just set it manually in the Pos command of the text (something like ImagePositionX+74, for example, assuming ImagePositionX is a variable defined in the def file)

It's just I'm used to moving things around with the .def files instead haha! Would it be easier to just define a new variable instead (e.g. Y position of team 1 name in full scoreboard) so I can move it around in the .def file?
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Different font size for light & full scoreboards

Postby Ayu62 » 10 Apr 2015, 13:22

Oh I didn't see this thread ! Your WTA scoreboard is really awesome !
User avatar
Ayu62
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 362
Gaming Since: 03 Dec 2011, 17:13
Location: France

Re: Different font size for light & full scoreboards

Postby delpetra » 10 Apr 2015, 13:34

Ignore my previous post haha, I didn't understand what you were saying! I've got it now though (hopefully)

Obviously not everything is the perfect place yet but this is huge progress for me! (the opacity of the scoreboard is supposed to be lowered haha) http://i.imgur.com/lhR4ESK.png
I can now move everything except the score independently of the scoreboard image :dance:
All the positions seemed to be defined by /Intern/ScoreX or /Intern/ScoreY but I managed to create some new variables and define them in the .def file really easily! I didn't realise how simple it was haha!

The problem now is that the score is beneath the scoreboard (you can see it just under the player names), and trying to change its Pos command moves the score on the light scoreboard as well. From the WTA_hudscoreboard.menu file:
Code: Select all
//=== Score in Game
item
{
   Pos /Intern/ScoreX /Intern/ScoreY Right
   ShowIf /Intern/ScoreType 0
   SubMenu WTA_HudScoreBoardSub1 0
}

Changing the /Intern/ScoreX to FullSBGameX (for example) then giving it a value in the .def file moves the game score on the light scoreboard too. Is it possible to 'unlink' the two? So that the score on the light SB is dependent on the image files, but the score on the full SB isn't?

Thank you very much Ayu62! Tbh I owe most credit to linaroger for the original scoreboard and antimouse for all the help he's given me. Hopefully when I've finished I'll be able to release (if I get permission from linaroger!) along with a few other mods I've got, like BT Sport tv logos, set interlude music, courts, etc.! I'll probably make one big thread for all of them!
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54


Return to Modding - TE2013

Who is online

Users browsing this forum: champi1986, Petal [Bot], Yandex [Bot] and 26 guests