Page 1 of 1

Multiple map prefix for custom game type?

Posted: Sat Jun 19, 2021 1:58 am
by 1337GameDev
I’m curious if there is a way to specify multiple map prefixes for a custom game type.

I am making a game type that I want to work on ctf, dm, and dom maps (it’ll pre process and swap actors), and am curious if this is possible.

Re: Multiple map prefix for custom game type?

Posted: Sat Jun 19, 2021 4:21 am
by EvilGrins
MonsterMadness, when the last version for ut99 was made, had a gametype built in called "Us Against Them" which uses EVERY map you have to be played on.

Re: Multiple map prefix for custom game type?

Posted: Sat Jul 17, 2021 11:21 pm
by 1337GameDev
Hmm, do you have a code example?

I know there’s a trick by specifying “D” do get DM and DOM, but there’s no way to use a Regex or multiple prefixes..... any way to do this?

Re: Multiple map prefix for custom game type?

Posted: Sat Jul 17, 2021 11:53 pm
by EvilGrins
Well, here it is... maybe you can figure it out.

Re: Multiple map prefix for custom game type?

Posted: Sun Jul 18, 2021 11:06 am
by UnrealGGecko
Feel like tha one is set to no prefix, EG

Re: Multiple map prefix for custom game type?

Posted: Sun Jul 18, 2021 12:06 pm
by OjitroC
Monster Madness is, in essence, a mutator to spawn monsters in maps in the same way that Monster Spawn does - MM obviously assigns monsters and players to teams in order to deal with the scoring.

The Us v Them gametype is subclassed from Botpack.TeamGamePlus (from which the UT team games like CTF or AS are subclassed) and so it is not map gametype dependent - it's a team game that can be played on any map. Thus the Us v Them gametype doesn't need to deal with map or gametype prefixes.

Re: Multiple map prefix for custom game type?

Posted: Wed Jul 21, 2021 8:53 pm
by 1337GameDev
Hmmm, well I would prefer not to have to subclass an existing gametype (and then have multiple copies of my gametype) for each map support... :/ I feel there has to be SOME kind of way... if not, that'll really be disappointing...

Re: Multiple map prefix for custom game type?

Posted: Wed Jul 21, 2021 9:56 pm
by Barbie
I really didn't get what you want to aim. You can run any map as any game type - of course it will not work out of the box for any combination, because nessessary actors are missing (e.g. Flags are needed for CTF maps). But I think they can be added on the fly while the map is loaded.

Re: Multiple map prefix for custom game type?

Posted: Thu Jul 22, 2021 8:29 pm
by 1337GameDev
Barbie wrote: Wed Jul 21, 2021 9:56 pm I really didn't get what you want to aim. You can run any map as any game type - of course it will not work out of the box for any combination, because nessessary actors are missing (e.g. Flags are needed for CTF maps). But I think they can be added on the fly while the map is loaded.
I have a custom gametype, that I want to have access to a wide variety of maps, and will handle ctf, dom, etc maps, but will essentially be DM-like.

I want to be able to select dom/ctf/etc maps for this gametype if I start a match, selecting my gametype. I currently cannot do that in the game menus, due to gametype map prefixes. I want to override this.
You can run any map as any game type

Besides command line / forced map loading via a script when loading a map, how is this done?

Re: Multiple map prefix for custom game type?

Posted: Fri Jul 23, 2021 6:56 am
by UnrealGGecko
Sadly I think in most gametypes Ive tried its set to either 1 prefix or no prefix at all. If the gametype does support other prefixes it is labeled as a seperate gametype in the menu. I wouldnt recommend setting it to no prefix though, because then it would load EVERYTHING you have in the map folder.

Re: Multiple map prefix for custom game type?

Posted: Fri Jul 23, 2021 3:17 pm
by 1337GameDev
Barbie wrote: Wed Jul 21, 2021 9:56 pm I really didn't get what you want to aim. You can run any map as any game type - of course it will not work out of the box for any combination, because nessessary actors are missing (e.g. Flags are needed for CTF maps). But I think they can be added on the fly while the map is loaded.
So is this post wrong (or only is possible if you rename the map, or specify via command line)?

(The part about loading and map with any gametype)

Re: Multiple map prefix for custom game type?

Posted: Fri Jul 23, 2021 7:17 pm
by Barbie
To change the default game type, add the game type to the command line, for example

Code: Select all

UnrealTournament.exe ..\Maps\CTF-Face.unr?Game=Botpack.DeathMatchPlus

Re: Multiple map prefix for custom game type?

Posted: Sat Jul 24, 2021 6:18 pm
by 1337GameDev
Barbie wrote: Fri Jul 23, 2021 7:17 pm To change the default game type, add the game type to the command line, for example

Code: Select all

UnrealTournament.exe ..\Maps\CTF-Face.unr?Game=Botpack.DeathMatchPlus
So there's no way in-game?

Re: Multiple map prefix for custom game type?

Posted: Sat Jul 24, 2021 8:27 pm
by Barbie
1337GameDev wrote: Sat Jul 24, 2021 6:18 pmSo there's no way in-game?
Interesting idea: start any map as DM, then add some flags or ControlPoints, divide players in groups and make a CTF or DOM of it. Ofc you have to change some things depending of game type like the algorithm to find a player start or scoring. And/Or change LevelInfo.GameInfo.

Re: Multiple map prefix for custom game type?

Posted: Sun Jul 25, 2021 4:39 pm
by 1337GameDev
Barbie wrote: Sat Jul 24, 2021 8:27 pm
1337GameDev wrote: Sat Jul 24, 2021 6:18 pmSo there's no way in-game?
Interesting idea: start any map as DM, then add some flags or ControlPoints, divide players in groups and make a CTF or DOM of it. Ofc you have to change some things depending of game type like the algorithm to find a player start or scoring. And/Or change LevelInfo.GameInfo.
"In game" means via the menus to start a server, practice session, etc ....

My gametype world "patch" maps to accommodate the gametype I want.... (Essentially deathmatch).

I just want to be able to select (and users who install my mod) any map I have added a "patcher" for, in order to increase content that users can use with my gametype.