Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 84 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: CTF & DOM victory flags
necrophaige
General Member
Since: Jul 23, 2007
Posts: 82
Last: Mar 1, 2016
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Tuesday, Apr. 14, 2009 05:42 pm
I have made a couple of maps that are CTF & DOM playable. What is missing is the victory flag. When either game ends a dark grey rectangular box appears on the screen. I guess I have to add something to my GSC file to present the victory flag at the end of the game.
I have looked through earlier posts and found this:
if(game["allies"] == "british")
game["hud_allies_victory_image"] = "gfx/hud/hud@british_victory_flag.tga";
else if(game["allies"] == "american")
game["hud_allies_victory_image"] = "gfx/hud/hud@american_victory_flag.tga";
else if(game["allies"] == "russian")
game["hud_allies_victory_image"] = "gfx/hud/hud@russian_victory_flag.tga";
game["hud_axis_victory_image"] = "gfx/hud/hud@german_victory_flag.tga";
I have put this into my GSC file to no avail. I obviously have soemthing else missing.
What is the correct procedure?
Share |
oppdelta
General Member
Since: Jun 3, 2007
Posts: 143
Last: Apr 27, 2011
[view latest posts]
Level 4
Category: CoDUO Mapping
Posted: Wednesday, Apr. 15, 2009 12:17 am
You put that in the


Code:
main()
{
...
}


So like....

Code:

main()
{
  if(game["allies"] == "british")
    game["hud_allies_victory_image"] = "gfx/hud/hud@british_victory_flag.tga";
  else if(game["allies"] == "american")
    game["hud_allies_victory_image"] = "gfx/hud/hud@american_victory_flag.tga";
  else if(game["allies"] == "russian")
game["hud_allies_victory_image"] = "gfx/hud/hud@russian_victory_flag.tga";
game["hud_axis_victory_image"] = "gfx/hud/hud@german_victory_flag.tga";
}

If you have custom textures for these "flags" then you have to put them into the hud folder which then has to be placed into the gfx folder.

The gfx folder goes alongside your >>maps & >>mp folders.


edited on Apr. 14, 2009 08:17 pm by oppdelta
Share |
necrophaige
General Member
Since: Jul 23, 2007
Posts: 82
Last: Mar 1, 2016
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Wednesday, Apr. 15, 2009 09:17 am
I put the script in as detailed but did not work.
I have had a look in the pakuo00 file and cannot find a default blank victory image as described in the script. A bit naive perhaps to think that one would exist anyway I have had a poke around other game files and to make my own is no problem. I see how the file structure is made up so should only take a couple of minutes to put together. The art work is a different matter. I will post a result one way or another when I have finished. Thanx for help in mean time.
Share |
morgawr
General Member
Since: Dec 15, 2004
Posts: 377
Last: Mar 19, 2023
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Wednesday, Apr. 15, 2009 12:26 pm
I have just added, victory images to modsonline download page, these cover
german/russian. german/american. german/brittish.
also text needed for your .gsc
will work great in any map as no map is displayed in the pic.
enjoy
Share |
necrophaige
General Member
Since: Jul 23, 2007
Posts: 82
Last: Mar 1, 2016
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Wednesday, Apr. 15, 2009 07:42 pm
Even with all the help given I still can't make the sodding thing work. This is my gsc file:
main()
{

ambientPlay("ambient_mp_foy");

maps\mp\_load::main();


level thread maps\mp\_tankdrive_gmi::main();
level thread maps\mp\_jeepdrive_gmi::main();
level thread maps\mp\_flak_gmi::main();
game["allies"] = "british";
game["axis"] = "german";

game["hud_allies_victory_image"] = "gfx/hud/hud@mp_victory_german.dds";
game["hud_axis_victory_image"] = "gfx/hud/hud@mp_victory_brittish.gif";


game["british_soldiertype"] = "comando";
game["british_soldiervariation"] = "normal";
game["german_soldiertype"] = "wehrmacht";
game["german_soldiervariation"] = "normal";

game["attackers"] = "allies";
game["defenders"] = "axis";



game["compass_range"] = 6124;

game["layoutimage"] = "mymap";



}

As far as I can tell this is a simple file with no complex scripting of any kind.
The gfx file structure is as follows
gfx/hud/"images as posted in the download file"

(Please note that in the brittish file the reference is huh@victory etc. Even changed it to hud@victory etc.)

I take it the gfx is stand alone as like maps, levelshots, textures etc. and not wraped up in something else.

The only other thing I have observed is that the axis file extention is dds whilst the brittish is a gif. If that makes a difference I don't know.
Any further thoughts on this conumdrum?
Share |
morgawr
General Member
Since: Dec 15, 2004
Posts: 377
Last: Mar 19, 2023
[view latest posts]
Level 5
Category: CoDUO Mapping
Posted: Wednesday, Apr. 15, 2009 11:49 pm
I have had the victory image work for the germans "dds"
I will have to check see if allied works with the "gif"

but you could easily switch it to a "dds"

gfx is stand alone like with maps/mp/levelshots

I'm not seeing a fault with the .gsc

will repair victory images and convert "gif " to "dds"
Share |
necrophaige
General Member
Since: Jul 23, 2007
Posts: 82
Last: Mar 1, 2016
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Thursday, Apr. 16, 2009 09:08 am
Deep joy, I have resolved this conumdrum and made the bugger work. Here is what I did.
Made both the (my own custom images - no disrepect) winning images into dds files. No problem there. Look at the script in my gsc file - states that if the axis win then publish the british image - which seems a little daft but those lines were copied from the download file. I would have though the computer would not care which image it published as long as it had one. Anyway I rewrote to say that if axis win then publish axis image i.e
game["hud_allies_victory_image"] = "gfx/hud/hud@mp_victory_british.dds";
game["hud_axis_victory_image"] = "gfx/hud/hud@mp_victory_axis.dds";

My images were named accordingly in the hud folder so eveything corresponded.
hud@mp_victory_axis.dds
hud@mp_victory_british.dds

I think the orignal fault lay with me for not understanding the naming conventions properly.
I hope this will resolve similar problems that others may have.
In an ideal world it would have been nice to have an explanation attached to the ctf, dom, and base tuts of how to set up the gsc file etc.
Cest la vie.
Once again many thanks for all the help with this puzzle.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»