Linking \Menu\art\bg tournament backgrounds

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

Linking \Menu\art\bg tournament backgrounds

Postby SamModder » 11 Sep 2020, 12:01

Question for manutoo or anyone else if they know:

It seems like currently all courts from court01 to court14 have their respective background images which can be found in \Menu\art\bg. How is it possible to link the rest of the courts to additional backgrounds? For example for court15, court 16 ect... I tried inserting images in \Menu\art\bg however the game doesn't detect them so I'm assuming some text needs to be edited elsewhere.
User avatar
SamModder
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 2700
Gaming Since: 21 Mar 2011, 19:28

Re: Linking \Menu\art\bg tournament backgrounds

Postby manutoo » 12 Sep 2020, 06:08

Hello,

I guess you meant the backgrounds used in the draws.

Just add them in : CourtBg.menu . :yes:
ManuTOO
== Mana Games ==

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

Re: Linking \Menu\art\bg tournament backgrounds

Postby SamModder » 12 Sep 2020, 10:02

Thanks manu!

I have added all of them in Courtbg.menu along with their respective images in the /bg folder but I still cannot see it in game (I can still only see the draw backgrounds for court01 to 12).

Is there something I did wrong?

I'll attach my courtbg below, and also worth noting that my images in /bg are all JPEG and similar in size to the ones for court01 to 12
Attachments
courtbg.menu
(5.14 KiB) Downloaded 32 times
User avatar
SamModder
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 2700
Gaming Since: 21 Mar 2011, 19:28

Re: Linking \Menu\art\bg tournament backgrounds

Postby manutoo » 12 Sep 2020, 21:39

Change this line :
Code: Select all
SlideCfg $1 0 10

to :
Code: Select all
SlideCfg $1 0 10000
ManuTOO
== Mana Games ==

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

Re: Linking \Menu\art\bg tournament backgrounds

Postby SamModder » 13 Sep 2020, 10:04

Hi Manu,

Thanks, I tried this but it still doesn't work? :sweat:

I even tried completely removing this below

Code: Select all
item CourtBg01
{
   CycleButton #ImageGI
   Image Bg/Tournament 640 480
   //Pos 0 0
   //Font BgF

   OnAction
   {
      SlideCfg $1 0 10000
   }

   Unselectable
}


And it didn't even change anything. It's as if this courtbg.menu file is not even getting detected?

I can see this message repeatedly in my "System" file, not sure if it means anything in this case:

Code: Select all
Warning: can't find Item 'CourtBg00' for ImageGI in Item 'CourtBg01'
User avatar
SamModder
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 2700
Gaming Since: 21 Mar 2011, 19:28

Re: Linking \Menu\art\bg tournament backgrounds

Postby manutoo » 14 Sep 2020, 06:23

Try to change Bg/Court01 to something else, to see if it changes the background of the Clay court.
ManuTOO
== Mana Games ==

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

Re: Linking \Menu\art\bg tournament backgrounds

Postby SamModder » 14 Sep 2020, 08:50

Hi Manu,

I changed Bg/Court01 to Bg/Court20 (another image that I included in bg) and nothing changed in game, the clay court still had the same image as Court01. So it seems as I said it's not detecting any changes in courtbg.menu? Is there something else that needs to be edited?
User avatar
SamModder
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 2700
Gaming Since: 21 Mar 2011, 19:28

Re: Linking \Menu\art\bg tournament backgrounds

Postby manutoo » 15 Sep 2020, 10:10

It's called from BoardDraw.menu under :
Code: Select all
//============================= Upper bar & BG


Maybe it wasn't there in older versions of TE..?
ManuTOO
== Mana Games ==

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

Re: Linking \Menu\art\bg tournament backgrounds

Postby SamModder » 15 Sep 2020, 10:29

I found this in boarddraw.menu:

Code: Select all
//============================= Upper bar & BG
item
{
   SubMenu CourtBg /Board/Ground+1

   ShowIfNot /Board/NbTotalRound 0
   ShowIfNot /Board/Ground -1
}

item
{
   SubMenu CourtBg 0

   ShowIf /Board/NbTotalRound 0
   ShowIf /Board/Ground -1 !Or
}

item
{
   SubMenu Board_MenuSet /Board/BD_MS_1 10 0 -2
}


add   x   -Fdx
add   w   Fdx 2
add   y   -Fdy
add   h   Fdy 2

item
{
   Image Menu/Bar01 w h Rounded
   Pos x y
   Font Bg
}

add   x   Fdx
add   w   Fdx -2
add   y   Fdy
add   h   Fdy -2


So what exactly needs to be edited/added here for backgrounds to activate?
User avatar
SamModder
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 2700
Gaming Since: 21 Mar 2011, 19:28

Re: Linking \Menu\art\bg tournament backgrounds

Postby manutoo » 16 Sep 2020, 06:03

It looks correct, so maybe it means the Court.Bg isn't in the correct folder or something like that. Else I don't know why it's not working ; should debug your whole Mod and I really don't have the time for this kind of thing... :fear:
ManuTOO
== Mana Games ==

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


Return to Modding - TE2013

Who is online

Users browsing this forum: Petal [Bot] and 23 guests