Loading Screen bar taking over

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Spyke
Private
Posts: 7
Joined: Sat Nov 04, 2006 9:07 pm
Location: PEI, Canada

Loading Screen bar taking over

Post by Spyke »

I downloaded the CaskAmi Arena Pack (another great piece of work by the way :D ) and now the custom loading progress bar that they have for their maps has taken over all of the Stock Maps as well.
It turns the bar to this nasty green/yellow.

As far as I can tell everything else seems to work ok. I know I can just take it out but I'd like to know why it's doing that and how to stop it from taking over the Stock Maps.

I have added a link for the map files below just in case. It's a self extractor by the way.
Note that the sound folder ( C:\Program Files\EA GAMES\MOHAA\main\sound\amb_amigos3d) that usually accompanies this pack is not included in this file. I have done this as a seperate self extractor.
I did this for one of my buddies who isn't so comfortable with computers who was helping me test this out on his system.

Am I looking in the right place with this code, or am I way off?

Code: Select all

menu "" 640 481 NONE 1


resource
Label
{
name "default"
rect 0 0 640 480
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.00 0.00 0.00 0.00
borderstyle "NONE"
shader "textures/caskami_traveaux/intro.jpg"
}
resource
Label
{
name "loadingbar"
rect 194 450 246 22
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
linkcvar "loadingbar"
statbar horizontal 0.2 0.95
statbar_tileshader textures/mohmenu/loadingbar
}
resource
Label
{
name "loadingbar_border"
rect 192 446 256 32
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.00 0.00 0.00 0.00
borderstyle "NONE"
shader "textures/mohmenu/loadingbar_border"
}
end.
CaskAmi Arena Pack
Hard pressed on my right; my left is in retreat. My center is yielding. Impossible to maneuver. Situation excellent. I am attacking.
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

simple way : use pakscape to open the .pk3 , go to textures/mohmenu and delete both loading bar images . granted this is a mere barbaric way . you'll still have the big loading bar but it will be the default colors (gray border/red filler) .

other way : it is indeed the scripting but simply taking out the .txt files found in the ui directory is not the answer , mohaa crashed when i attempted this . i'm sure one of the other scripting members will have the answer though .
i'm not f****** angry, i'm from philadelphia .
Image
Spyke
Private
Posts: 7
Joined: Sat Nov 04, 2006 9:07 pm
Location: PEI, Canada

Post by Spyke »

Hey man thanks for the quick reply.

Barbaric works for me... lol .

I'll just do it that way for now and check back to see if anyone comes up with a "better" solution.

Thanks again. :D
Hard pressed on my right; my left is in retreat. My center is yielding. Impossible to maneuver. Situation excellent. I am attacking.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Any loading menu that has postinclude ui/loadingbar.txt will show that loading bar . If it is for AA you can just put a new one in main/UI for SH you will need to put it into a pk3 . Too bad they didn't use another name for it so as not to interfear with the stock maps . The lines
linkcvar "loadingbar"
statbar horizontal 0.2 0.95
statbar_tileshader textures/mohmenu/loadingbar
are what make it work they didn't have to use the name loadingbar.txt
Last edited by bdbodger on Wed Feb 20, 2008 9:16 am, edited 1 time in total.
Image
Spyke
Private
Posts: 7
Joined: Sat Nov 04, 2006 9:07 pm
Location: PEI, Canada

Post by Spyke »

bdbodger wrote:Any loading menu that has postinclude ui/loadingbar.txt will show that loading bar . If it is for AA you can just put a new one in main/UI for SH you will need to put it into a pk3 . Too bad they didn't use another name for it so as not to interfear with the stock maps . The lines
linkcvar "loadingbar"
statbar horizontal 0.2 0.95
statbar_tileshader textures/mohmenu/loadingbar
are what make it work they didn't have to use the name loadingbar.txt
That's really great info, thanks a lot. That makes a lot of sense.
Hard pressed on my right; my left is in retreat. My center is yielding. Impossible to maneuver. Situation excellent. I am attacking.
Post Reply