the mountain

Unreal Tournament 99 => Mutators, Tools, Utilities => Topic started by: Helen on Dec 27, 2010, 04:07 PM

Title: medToggle Version 3
Post by: Helen on Dec 27, 2010, 04:07 PM
Here be the download:

http://www.birdieman.com/downloads/medToggle350.rar

And here is what it does. This mutator allows you to 'toggle' game settings, actors, mutators and weapons/ammo from map to map. You can associate your settings/actors/mutators/weapons/ammo at the map level, at the game class level, or make them overall defaults. Beside including actors, you can also have exclude lists.

This mute also can be told if you are using mapvote. That way it can work in conjunction with mapvote.

Or instead of mapvote or a regular rotation, with this mutator you can set up a map rotation list with mixed game class types. For example the first map in the rotation could be DM, then the next CTF, then the next DOM, and so on.

I'll use the next few posts to paste in what is in the readme, to further help you decide if you want this  :)
This readme is in the download btw.

[edit]Note that I am always updating the link above when a new version becomes available. So the readme below is still good, it just mentions an older version of toggle. Just make sure to use the newer name of toggle when setting up your ini.
Title: Re: medToggle300
Post by: Helen on Dec 27, 2010, 04:09 PM
I will provide examples of all of the above.

A note on the names of your maps. If you want medToggle to work properly, the names of your
maps must have a "dash" in them, which is the position marker for the map prefix.
For example, in the map name DM-ArcaneTemple, how do I know that the prefix is "DM"? Because
there is a "-" (dash) after the "DM"! So I need that dash so I can find the prefix.

I will give examples in this order:
A) the basic settings
B) Mutators and Actors
C) working with MapVote (prerequisite reading, parts A and B!)
D) creating a mixed maplist (prerequisite reading, parts A and B!)


==============================================
== First, a setting to help with debugging ===
==============================================

To help figure things out along the way, set this value in the ini:

bLogInfo=true

This will spit out lots of helpful messages to the log. After, when you have figured things
out and it is running as you expect, then you can set it to false.


=================================================================================
== How to specify the basic settings at the default, game class, and map level ==
=================================================================================

-------------------------------------------
     | basic settings |
-------------------------------------------

Here are the basic settings you are going to be able to set, their default values, and the
accepted value for each:


Setting Name            default            acceptable values
------------            -------            -----------------
Translocator            false            true or false
GameSpeed            1            greater than zero and less than or equal to 2 (decimals allowed)
AirControl            0.35            greater than or equal to zero and less than or equal to 1 (decimals allowed)
BotSkill            2            greater than or equal to zero and less than or equal to 7 (integers only)
MinPlayers            2            greater than or equal to zero and less than or equal to 32 (integers only)
FragLimit            30            greater than zero and less than 1000 (integers only)
MaxTeamScore            100            greater than zero and less than 1000 (integers only)
TimeLimit            20            greater than or equal to zero and less than 1000 (integers only)
WeaponStay            true            true or false
ForceRespawn            false            true or false
ForceTeamBalance      true            true or false
FriendlyFire            0            greater than or equal to zero and less than or equal to 1 (decimals allowed)
Gravity                  -1            greater than or equal to zero and less than or equal to 1900 (integers only)
NoDynamicLighting      false            true or false
NoActorShadows            false            true or false
NoCorona            false            true or false
NoLensFlare            false            true or false
NoSpecialLit            false            true or false
NoLightEffect            false            true or false
NoSpecialLightType      false            true or false


Here are what the values mean for cBotSkill:

0 = novice
1 = average
2 = experienced
3 = skilled
4 = adept
5 = masterful
6 = inhuman
7 = godlike

For Gravity, the value of -1 has a special meaning. It means that medToggle should leave the
gravity alone! A value of zero means just that - zero gravity. Then as you increase the value,
the gravity gets stronger. As a measuring stick of what values to try, the normal gravity value
is 950, and the typical lowgrav in UT is 200.

The last 7 settings are for light. NoDynamicLighting is the 'master' value amongst them.
That is, if you want them all to be true, just set NoDynamicLighting = true. However if you
want finer control, leave NoDynamicLighting = false, and set to true any of the others.

Ok, so there are the defaults and their values. The defaults mentioned above are what medToggle
will use if you don't specify anything. So, let's start customizing your defaults.

In the medToggle.ini provided, you will find this line:

     mDefaults=(Settings="",Actors="",ActorsToExclude="",mutators="",mutatorsToExclude="",WeaponSwap="",AmmoSwap="")

We need to start filling in the Settings. Let's say you are happy with the medToggle defaults,
and you only want to change the FragLimit to 22. The line would now look like this:

     mDefaults=(Settings="FragLimit=22",Actors="",ActorsToExclude="",mutators="",mutatorsToExclude="",WeaponSwap="",AmmoSwap="")

To specify more defaults, just separate the items with commas. I'll add 2 more as an example.

     mDefaults=(Settings="FragLimit=22,WeaponStay=false,Gravity=600",Actors="",ActorsToExclude="",mutators="",mutatorsToExclude="",WeaponSwap="",AmmoSwap="")

So now have your overall defaults set. Now we can start tweaking per game class, and per map.


-------------------------------------------
     | game class settings |
-------------------------------------------

Examples of a game classes are DeathMatch, CTF, Domination, etc. Now that your basic defaults
are in place, you can now specify settings you want applied at the game class level. You should
see these 6 lines in the ini:

     mGame[0]=(GameClass="Botpack.DeathMatchPlus",prefix="DM")
     mGame[1]=(GameClass="Botpack.TeamGamePlus",prefix="TDM")
     mGame[2]=(GameClass="Botpack.CTFGame",prefix="CTF")
     mGame[3]=(GameClass="Botpack.Domination",prefix="DOM")
     mGame[4]=(GameClass="Botpack.LastManStanding",prefix="LMS")
     mGame[5]=(GameClass="Botpack.Assault",prefix="AS")

Above we have the 6 typical game classes (DM, TDM, CTF, Domination, Last Man Standing, and Assault).
For an example, I'll turn on the translocator for the team games, and make sure there are more
min players. As well, realize that the default for MaxTeamScore is currently 100. That may be
good for TDM and DOM, but a bit much for CTF  :-O
So we'll lower that. I'm also going to lower the gravity a bit more just for CTF. So this gives us:

     mGame[0]=(GameClass="Botpack.DeathMatchPlus",prefix="DM")
     mGame[1]=(GameClass="Botpack.TeamGamePlus",prefix="TDM",Settings="Translocator=true")
     mGame[2]=(GameClass="Botpack.CTFGame",prefix="CTF",Settings="Translocator=true,MaxTeamScore=5,Gravity=450")
     mGame[3]=(GameClass="Botpack.Domination",prefix="DOM",Settings="Translocator=true")
     mGame[4]=(GameClass="Botpack.LastManStanding",prefix="LMS")
     mGame[5]=(GameClass="Botpack.Assault",prefix="AS")

Note: you can ADD more game classes here. I will give an example of this later on.
Note: each game class can only appear in the list once.
Note: in the example each mGame line has a "prefix" setting, but just ignore this for the moment.

Note we have specify Gravity in both the defaults and for the CTF game class. This is perfectly
valid. Any setting specified at the game class level overrules any previous value for the setting.
Same with when we get to MAP settings. Settings specified at map level overrule the game and
default values.

-------------------------------------------
     | Map settings |
-------------------------------------------

First you have set the default Settings.
Then you were able to tweak the Settings a bit depending on the game class.
Finally, you can enter more settings that will get applied to specific maps.

Here is the first map example line from the ini:

     mMap[0]=(MapName="DM-ArcaneTemple",Settings="GameSpeed=1.5,Botskill=5,MinPlayers=10")

In this example we have decided to increase the GameSpeed to 1.5, up the BotSkill to 5, and
have a MinPlayers of 10. All for just the map DM-ArcaneTemple.

Of course you can add more maps here, up to 256.

Note, map names must be REAL map names, not aliased names. This will make sense later.
Just make sure that you use real map names only.
Title: Re: medToggle300
Post by: Helen on Dec 27, 2010, 04:12 PM
=====================================================================================================
== How to get medToggle to add Mutators and Actors, exclude Mutators/Actors, and swap Weapons/Ammo ==
=====================================================================================================

First, if you are starting any mutators with a ServerActor in your UnrealTournament.ini, I
recommend you move them out of there and put them into the medToggle.ini. This will centralize
your management of your Actors and Mutators.

(NOTE, you must still leave any custom ServerPackages lines in your unrealTournament.ini!)

-------------------------------------------------------
     | default mutators and Actors |
-------------------------------------------------------

Ok let's say you have a default server actor you want running all the time, for example UT Pure.
So we need to add it to our mDefaults line. Here is what our mDefaults line would look like after
adding it. Note that you can put it anywhere in the line, so I took the blank Actors="" that
currently appears after the settings, and moved it to the beginning of the line):

     mDefaults=(Actors="UTPureRC7G.UTPureSA",Settings="FragLimit=22,WeaponStay=false,Gravity=600",ActorsToExclude="",mutators="",mutatorsToExclude="",WeaponSwap="",AmmoSwap="")

That's it. medToggle will now start UT Pure for you. If you want more than one server actor, they
are separated with commas within the double quotes, like this:

     mDefaults=(Actors="UTPureRC7G.UTPureSA,CCProtector420.CCProtectorActor",Settings="FragLimit=22,WeaponStay=false,Gravity=600",ActorsToExclude="",mutators="",mutatorsToExclude="",WeaponSwap="",AmmoSwap="")

Getting mutators to start up is basically the same thing. An example:

     mDefaults=(mutators="KickIdlersV2b.KickIdlers",Actors="UTPureRC7G.UTPureSA,CCProtector420.CCProtectorActor",Settings="FragLimit=22,WeaponStay=false,Gravity=600",ActorsToExclude="",mutatorsToExclude="",WeaponSwap="",AmmoSwap="")

For multiple mutators, just separate them with commas.


---------------------------------------------------------
     | game class mutators and Actors |
---------------------------------------------------------

So now you have set up the actors and mutators you want to run all the time (in the defaults).
Now you can use the game classes to pile on more mutators and Actors to start per game class.
And, by default, the mutators and Actors you start adding at the game class level are going
to be ADDED to what was started at the default level. So let's say we have this for mDefaults
and the DeathMatch game class:

     mDefaults=(mutators="KickIdlersV2b.KickIdlers",Actors="UTPureRC7G.UTPureSA,CCProtector420.CCProtectorActor",Settings="FragLimit=22,WeaponStay=false,Gravity=600",ActorsToExclude="",mutatorsToExclude="",WeaponSwap="",AmmoSwap="")
     mGame[0]=(GameClass="Botpack.DeathMatchPlus",prefix="DM",mutators="medScoreBoard100.medScoreBoard",Actors="medWeaponAmplifier110.medWAActor")

Notice in the mGame[0] line we have just added mutators and Actors in the same fashion as
we did for the defaults. So the mutators and Actors from the defaults and the game class
will be combined, resulting in these items getting started:

mutators="KickIdlersV2b.KickIdlers,medScoreBoard100.medScoreBoard"
Actors="UTPureRC7G.UTPureSA,medWeaponAmplifier110.medWAActor"

So again, by default, the lists are ADDED together.


---------------------------------------------------------
     | Map mutators and Actors |
---------------------------------------------------------

Same idea here. If you want mutators/Actors started for a single map, add them to one
of your mMap lines. Similarly, the mutators/Actors you specify here will be ADDED to
the default and game class ones. Let's say we have these three lines:

     mDefaults=(mutators="KickIdlersV2b.KickIdlers",Actors="UTPureRC7G.UTPureSA,CCProtector420.CCProtectorActor",Settings="FragLimit=22,WeaponStay=false,Gravity=600",ActorsToExclude="",mutatorsToExclude="",WeaponSwap="",AmmoSwap="")
     mGame[0]=(GameClass="Botpack.DeathMatchPlus",prefix="DM",mutators="medScoreBoard100.medScoreBoard",Actors="medWeaponAmplifier110.medWAActor")
     mMap[0]=(MapName="DM-ArcaneTemple",mutators="Botpack.Fatboy",Actors="medUtil105.medUtilActor")

The resulting mutators/Actors to start will be:

mutators="KickIdlersV2b.KickIdlers,medScoreBoard100.medScoreBoard,Botpack.Fatboy"
Actors="UTPureRC7G.UTPureSA,medWeaponAmplifier110.medWAActor,medUtil105.medUtilActor"

So you could start up the Fatboy mutator for a single map. Kewl.


---------------------------------------------------------
     | Excluding mutators and Actors |
---------------------------------------------------------

In the mDefaults line you can find these two variables:

ActorsToExclude=""
mutatorsToExclude=""

Obviously, this allows you to specify Actors and mutators that you don't want to
get started. There are two main uses for this (as well as others). I'll start with
an example at the game class level.

The first handy thing about exclusion is that some mutators/actors are not compatible
with each other. So let's say you were including UT PURE at the defaults level. But then
for one particular class, it is not compatible with PURE, so you wouldn't want it to run.
So here is an example of three new game classes, that don't want UT PURE running:

     mGame[6]=(GameClass="EUT_1D.EUTDeathMatchPlus",prefix="EDM",Actors="EUT_1D.PureCRCLogger",ActorsToExclude="UTPureRC7G.UTPureSA")
     mGame[7]=(GameClass="EUT_1D.EUTTeamGamePlus",prefix="ETDM",Actors="EUT_1D.PureCRCLogger",ActorsToExclude="UTPureRC7G.UTPureSA")
     mGame[8]=(GameClass="EUT_1D.SmartCTFGame",prefix="ECTF",Actors="EUT_1D.PureCRCLogger",ActorsToExclude="UTPureRC7G.UTPureSA")

mutatorsToExclude works the same way.

Here is the second awesome use of exclusion. This one is very powerful. Besides using
this to exclude an Actor that you yourself have added at the default level, well, you
can also use it to exclude almost any actor you want! A couple of common ones that
people don't want are Invisibility and UDamage. There are a couple of mutators out
there to exclude them, but why have to bother with a couple of mutators when you can
just do this?

     ActorsToExclude="Botpack.UT_Invisibility,Botpack.UDamage"

And you can specify ActorsToExclude at the default level, game level, or map level!
How about no health for one map?

     mMap[0]=(MapName="DM-Codex",ActorsToExclude="Botpack.HealthPack,Botpack.HealthVial,Botpack.MedBox")

How about never seeing that enhanced shock rifle?

     mDefaults=(ActorsToExclude="Botpack.SuperShockRifle")

And on and on. As long as you know the name of the name of the package and class,
most actors can be excluded.
(There ARE exceptions though. 'PathNode' I know to be one of them).


--------------------------------------------------------------------
     | Excluding a literal INSTANCE of an Actor (advanced) |
--------------------------------------------------------------------

This is advanced stuff, but if you are a control freak who has oodles of time to
spend on your server, then read on  :)

The next variable available: InstanceActorsToExclude

This variable is only available at the map level. This deals with literal instances of actors. This allows
you to remove a single instance of an actor at a time. An example. Let's imagine the map Deck16][. This
map has TWO flak cannons. Let's say we want to remove the one down by the goo. First I need to know its
unique name, so I do this:
- I open UnrealEd2
- I find that flak cannon
- I right-click on it, and select Properties
- I expand the 'Object' node.
- I can now see the value for 'Name'. In this case the value is "UT_FlakCannon1".

I now know this flak cannon is uniquely identified with the name "UT_FlakCannon1". So in my map line
I would do this:

mMap[0]=(MapName="DM-Deck16][",InstanceActorsToExclude="UT_FlakCannon1")

There you have it, the flak cannon by the goo would be removed, and ONLY this flak cannon would be removed.
You can specify multiple items of course, separated by commas.


-----------------------------------------------
     | Swapping Weapons and Ammo |
-----------------------------------------------

Next two variables available are WeaponSwap and AmmoSwap. This allows you to swap weapons and ammo.
These two variables can be set at all levels.

A couple of uses for this. Let's say you hate a particular weapon and don't want it to appear in any
of the maps. But instead of using the exclude options above, it may be better to swap in a different
weapon. This is because the map may have been designed to make the weapon's location a focal point.
so if there was no longer anything there, there would be no reason to go to that section of the map.

Another use is to replace all types of weapons with a single weapon, sort of making it into an Arena.
(there is a quick way to do this, as I'll show you).

Ok, the basic way to swap - the format is first the class that exists, then a colon, then the class you
want to replace it with. So for this example we are replacing the sniper rifle with a pulse gun:

     WeaponSwap="Botpack.SniperRifle:Botpack.PulseGun"
     AmmoSwap="Botpack.BulletBox:Botpack.PAmmo"

Maybe you could add this to Deck16][ and stop the camping from above :)

To easily replace ALL weapons/ammo with a particular weapon/ammo, we introduce the keyword of [all],
used like this:

     WeaponSwap="[all]:Botpack.ShockRifle"
     AmmoSwap="[all]:Botpack.ShockCore"

There are a couple of individual flags you can set when you are replacing all weapons. These should be self-explanatory:

     bReplaceAllWeaponsIncludesHammer=false
     bReplaceAllWeaponsIncludesEnforcer=true

These two settings go by themselves directly under the [medToggle315.medToggle] section. That's it.

Note - Weapons/Ammo that you are trying to add to the map do not respect the ActorsToExclude list.
So if you have specified a weapon/ammo to go in, then it's going in!
Title: Re: medToggle300
Post by: Helen on Dec 27, 2010, 04:13 PM
=====================================================================
=============== Using medToggle with MapVoteLA13 ====================
=====================================================================

This assumes you already know how to use the MapVoteLA13 mutator.
So you would first set up your medToggle as outlined above to handle what settings, mutators,
and Actors you want. Then you would add one more setting to the medToggle.ini:

bMapVote=true

This lets medToggle know to it has to allow mapvote to handle a couple of things. Now over to
the MapVoteLA.ini. In there you will need a CustomGameConfig line for each game class you want
to present for voting on (you should know this already). Here is an example:

CustomGameConfig[0]=(bEnabled=true,GameClass="Botpack.DeathMatchPlus",NewPrefix="DM",Mutators="medToggle302.medToggle")

For each game class, you specify just the medToggle as the only mutator, and then medToggle will
handle all the other stuff you set up within its ini.

Now of course you usually use MapVote to get a particular type of game play going associated with
a NewPrefix.

     -- NOTE!! - MapVote's "NewPrefix" and medToggle's "prefix" have nothing to do with each other --

The way to think of organizing it, is to move all the mutators and Actors that you want to start
either ALL THE TIME or all the time FOR A PARTICULAR GameClass or Map, and then move these into
medToggle. Then you keep the one mutator that distinguishes the play in mapvote. Let's say you
previously had this in mapvote:

CustomGameConfig[0]=(bEnabled=true,GameClass="Botpack.DeathMatchPlus",NewPrefix="iDM",Mutators="Botpack.InstaGibDM,KickIdlersV2b.KickIdlers,CCProtector420.CCProtector,Resurrector.Resurrector")

You could change it so this is in mapvote:

CustomGameConfig[0]=(bEnabled=true,GameClass="Botpack.DeathMatchPlus",NewPrefix="iDM",Mutators="Botpack.InstaGibDM,medToggle302.medToggle")

and this in medToggle:

mDefaults=(mutators="KickIdlersV2b.KickIdlers,CCProtector420.CCProtector,Resurrector.Resurrector")
Title: Re: medToggle300
Post by: Helen on Dec 27, 2010, 04:14 PM
=====================================================================
======== How to have a map rotation with mixed game classes =========
=====================================================================

The idea here is that you could play a deathmatch game, then a CTF, then a domination, then maybe
back to CTF, then a TDM, etc, etc, all consecutively from a map rotation, without having to vote.
First we need this setting set to true:

bUseToggleMapList=true

We also MUST ensure that bMapVote is turned off:

bMapVote=false

You can also set the time it takes to load the next map. In this example it will take 5 seconds:

NextMapDelay=5


Ok, now we need to specify the maps in the rotation. In medToggle.ini, you would add a new section
and specify the maps like this (for example):

[medToggle302.ToggleMapList]
Maps[0]=TDM-ArcaneTemple.unr
Maps[1]=DOM-Gearbolt.unr
Maps[2]=EDM-Fetid.unr
Maps[3]=ECTF-Dreary.unr
Maps[4]=DM-Grinder.unr

(... up to 256 maps).

Okaaaaay, this is finally where the 'prefix' setting in the mGame list is finally going to be used.
Notice some of the map names above. TDM-ArcaneTemple.unr. EDM-Fetid.unr. These maps do not actually
exist. What we have done is swapped prefixes.

YOU NEED TO USE THE PREFIX OF THE MAP NAME TO DRIVE WHAT GAMECLASS YOU WANT USED.

Here are the steps per map.
- you chose a map you want to play, for example DM-ArcaneTemple
- Let's say you want the game play to be Team Death Match
- So you look in your mGame list, and find the GameClass='Botpack.TeamGamePlus'
- in this mGame line, you see that prefix="TDM"
- So you take "TDM" and swap it in as the prefix for the map name (in the ini file only! Not on the harddrive!)
- That is how DM-ArcaneTemple becomes TDM-ArcaneTemple.

Okay last requirement. Because you are going to tell medToggle you want it to run TDM-ArcaneTemple,
but that map doesn't really exist, it needs to know what the REAL prefix is. So you provide these:

prefixAlias[0]=(prefix="DM",alias="TDM,EDM")
prefixAlias[1]=(prefix="CTF",alias="ECTF")

... where 'prefix' is the REAL prefix, and 'alias' is of course the fake prefix, or aliased prefix.



Note: "prefix" values in the mGame list can appear only once (so they must be unique).

NOTE: When you first start up UT, it will not use a map from this list. After that first map is
over, then it will start using this list.
Title: Re: medToggle300
Post by: Helen on Dec 27, 2010, 04:15 PM
---------------------------------------
     |UnrealTournament.ini |
---------------------------------------

You need to add this line to the [Engine.GameEngine] section of the UnrealTournament.ini:

ServerPackages=medToggle302


---------------------------------------
     | files |
---------------------------------------

Once you have finished setting up the medToggle.ini, then you will need to put these files into the System folder:

medToggle302.int
medToggle302.u
medToggle.ini


---------------------------------------
     | map vote |
---------------------------------------

If you are using in conjunction with mapvote, then you don't start it up. Rather mapvote will do that.


---------------------------------------
     | command line |
---------------------------------------

If your host allows you to edit the startup command line, here is an example that would include this mutator:

unrealtournament.exe DM-Codex?game=Botpack.DeathMatchPlus?MaxPlayers=16?mutator=medToggle302.medToggle -server

To specify more than one mutator, you just separate them with commas:

unrealtournament.exe DM-Codex?game=Botpack.DeathMatchPlus?MaxPlayers=16?mutator=CCProtector420.CCProtector,medToggle302.medToggle -server

Note: if you are using mapvote, you do not need to add it to the command line, since mapvote will start it up instead.
Title: Re: medToggle301
Post by: trav on Feb 02, 2011, 12:13 AM
I am trying to ge this to work to set up a map rotation, and it seems to be working except that once it hits the last map in the list, that last map keeps repeating and it never goes back to the beginning of the list.  Do you know what could be causing this?
Title: Re: medToggle301
Post by: Helen on Feb 02, 2011, 12:30 AM
Quote from: 575142551416230I am trying to ge this to work to set up a map rotation, and it seems to be working except that once it hits the last map in the list, that last map keeps repeating and it never goes back to the beginning of the list.  Do you know what could be causing this?

Two possibles:

A. You have mis-typed the last map in the list within the medToggle.ini. Or you have some extra text at the end of the list such that it thinks it is a mapname. In either of these cases, it fails to load the map, so it goes back to the last one.

B. If not the above, then there may be something wrong with the map itself. Like it can't find a required texture package.

Have a look at the unrealtournament.log file (or whatever you have called it, and search for the text "fail", it should tell you why it can't load the map.

You can post either your medToggle.ini or your log file if you need more help.
Title: Re: medToggle301
Post by: Helen on Feb 02, 2011, 01:53 PM
[split] [link=http://www.birdieman.com/cgi-bin/yabb2/YaBB.pl?num=1275013981/40#40][splithere][/link][splithere_end]
Title: Re: medToggle301
Post by: trav on Feb 03, 2011, 10:46 AM
Quote from: 7E7B7276711F0
Quote from: 575142551416230I am trying to ge this to work to set up a map rotation, and it seems to be working except that once it hits the last map in the list, that last map keeps repeating and it never goes back to the beginning of the list.  Do you know what could be causing this?

Two possibles:

A. You have mis-typed the last map in the list within the medToggle.ini. Or you have some extra text at the end of the list such that it thinks it is a mapname. In either of these cases, it fails to load the map, so it goes back to the last one.

B. If not the above, then there may be something wrong with the map itself. Like it can't find a required texture package.

Have a look at the unrealtournament.log file (or whatever you have called it, and search for the text "fail", it should tell you why it can't load the map.

You can post either your medToggle.ini or your log file if you need more help.

I'll post my ini file when I get home tonight, as I'm at work right now.  Last night I messed with it some more, and it seems like if I set a map rotation up without using any aliases such as "iCTF" it works.  If I use a map with an alias such as iCTF then that map is continuously repeated.  It doesn't even have to be the last map in the rotation.  Let's say the first appearance of a map using an alias is 3rd out 5 maps in the rotation.  It will rotate through the maps until it hits the 3rd one, and then the 3rd will repeat continuously.  At least that is what appears to be happening while I've been messing around trying to fix the problem.
Title: Re: medToggle301
Post by: trav on Feb 03, 2011, 12:00 PM
Actually, I forgot that I can remote in to my server from work.  Here is the ini file and the server log.  I don't see any "fail" messages at al.  It just seems to hit the "iDM" prefix map and then keep spawning it over and over again without proceeding to the next map.
Title: Re: medToggle301
Post by: Helen on Feb 04, 2011, 12:16 AM
Thanks for posting your files.

So the problem is that it is a bug :(

A small one though, and I have corrected it this evening, but I would like to test a bit more before posting it (I'm tired right now, I don't trust myself). I will have it posted by Saturday at the latest.
Title: Re: medToggle301
Post by: trav on Feb 04, 2011, 01:06 AM
Cool, I look forward to trying it out.  Thanks for writing this...I am sick of voting for maps and just want to set up a rotation of different types of maps on my server.
Title: Re: medToggle302
Post by: Helen on Feb 04, 2011, 11:37 PM
Ok, I have updated the link in the very first post of this thread. When you grab it, of course you won't need the medToggle.ini that is within the package, you can keep your own. Just don't forget to update the medToggle301 bits in your ini to medToggle302.

Quote from: 141201165755600Cool, I look forward to trying it out.Thanks for writing this...I am sick of voting for maps and just want to set up a rotation of different types of maps on my server. 
It's nice to know someone is using version 3 other than myself :)
I've had 20 downloads of it, but no feedback.
Title: Re: medToggle Version 3
Post by: Hermskii on Feb 05, 2011, 08:53 PM
Eventually, I will be going to this so I'm just glad that by the time I start using it, most of the issues will have been worked out already through BETA testing. I hate using BETA stuff.
Title: Re: medToggle302
Post by: trav on Feb 05, 2011, 10:53 PM
OK, thanks!  I got the new version and the map rotation seems to be working right now.  However, something else weird is going on.  Now, at the end of the game when the announcer is doing his 10 second countdown, the game ends before he gets to zero. It usually ends when he is around the count of 6 seconds remaining.  I don't know how medToggle could be messing that up, but I have not changed anything else at all...
Title: Re: medToggle Version 3
Post by: trav on Feb 06, 2011, 12:51 AM
Maybe it's not medToggle...I started the server not using medToggle and the game timer is still off.  Blah.  Any idea what could be causing the game to end before time is up?
Title: Re: medToggle Version 3
Post by: trav on Feb 06, 2011, 02:36 AM
I rebooted my server and everything seems to be working just fine now.  I am not sure was causing the time to be off.  Everything is running great now!
Title: Re: medToggle Version 3
Post by: Hermskii on Feb 06, 2011, 10:29 AM
I'm glad you got that worked out trav. I have never heard of UT doing that and would not have had any idea where to start to try to fix it. Let's hope it stays fixed!
Title: Re: medToggle Version 3
Post by: Helen on Feb 06, 2011, 12:28 PM
Quote from: 5153525E5C5E493B0I'm glad you got that worked out trav. I have never heard of UT doing that and would not have had any idea where to start to try to fix it. Let's hope it stays fixed!
Ditto and strangeness!
Title: Re: medToggle Version 3
Post by: Hook on Feb 06, 2011, 01:26 PM
trav, if you figure out what it was that was causing that, be Sure to Let us all know! ;)
Title: Re: medToggle Version 3
Post by: keller on Sep 18, 2011, 09:48 PM
I downloaded this mod, will this work in conjuction with mapvote.  I am trying to get all my mods/mutators ready for the server.
Title: Re: medToggle Version 3
Post by: Helen on Sep 18, 2011, 11:02 PM
Quote from: 5E5059595047350I downloaded this mod, will this work in conjuction with mapvote.  I am trying to get all my mods/mutators ready for the server.

Yep! Read the whooooooole readme that comes with it, much detail in there. I can also help you set it up if you need.
Title: Re: medToggle Version 3
Post by: keller on Sep 18, 2011, 11:04 PM
I may need that, I will have the hardest time with mapvote, I remember a little hopefully it comes back to me, basically I put actorclp on there which I want it to load the mapvote which will then load the mutators unless it is easier to use your program
Title: Re: medToggle Version 3
Post by: Helen on Sep 19, 2011, 12:11 AM
Hook has a good post on mapvote. Yes the chain would be

- actorCLP starts mapvote
- mapvote specifies a single mutator to start each time (medToggle)
- in medToggle is where you would set up the other mutators and settings. Much power with medToggle.
Title: Re: medToggle Version 3
Post by: Helen on Sep 23, 2011, 01:10 PM
Added a couple of more official variables:


-----------------------------------------------------------
     | Swapping Weapons and Ammo (specifically) |
-----------------------------------------------------------

If you wish to swap a SPECIFIC weapon or piece of ammo in the map, here's how by using these two variables:

InstanceWeaponSwap
InstanceAmmoSwap

This is very very similar to the section above titled "Excluding a literal INSTANCE of an Actor". You need to
find the literal name of the actor, then you will specify a generic name to replace it with. For example:

InstanceWeaponSwap="ShockRifle0:Botpack.ripper"

So it will try to find a shock rifle named "ShockRifle0", and it will replace it with a ripper. Again you can
only use this at map level.
Title: Re: medToggle Version 3
Post by: Helen on Sep 23, 2011, 01:16 PM
There is also a new "unofficial" variable, or unsupported variable.

ActorSwap

This, hypothetically, lets you swap out any actor with any other type of actor. In truth, some actors simply cannot be removed, period. So you have to know what you are doing. Some actors I know that cannot be removed are ZoneInfo, AmbientSound, Light, PlayerStart, and PathNode. I'm sure there are many others.

But hey it does work otherwise :)

If you want to know how use it, just read either the WeaponSwap or AmmoSwap sections, same idea.
Title: Re: medToggle Version 3
Post by: Ray on Sep 23, 2011, 02:48 PM
Does this swap the actors ingame only or can you swap them and save them into a new map?
Title: Re: medToggle Version 3
Post by: Helen on Sep 23, 2011, 04:14 PM
Ingame only, dynamic only, no permanent changes to maps.

Necessary packages still need to be added to the ServerPackages section.
Title: Re: medToggle Version 3
Post by: MEAT on Nov 01, 2011, 10:32 AM
Hey Helen...I have an idea for medToggle Version 4.
How about a setting to limit the number of real players per map?
This way you could have private games, one on one games and team games
and not be interrupted by other players joining.
Just a thought...

..
Title: Re: medToggle Version 3
Post by: Hook on Nov 11, 2011, 10:28 AM
Brilliant! 8-)

I have medToggle version 310, that you set up for me - Thank you :)
I see the version here is now version 315.
What is the difference between 310 and 315?
Can I easily upgrade?
Title: Re: medToggle Version 3
Post by: Helen on Nov 11, 2011, 02:34 PM
Quote from: 3F38383C3332312E6F570Brilliant! 8-)

I have medToggle version 310, that you set up for me - Thank you :)
I see the version here is now version 315.
What is the difference between 310 and 315?
Can I easily upgrade?

Answer in reply #26 above. No need to upgrade unless you start using version 3 and you can think of a reason you would need the actor swap.
Title: Re: medToggle Version 3
Post by: Hook on Nov 17, 2011, 02:03 PM
OK - that is great - Thank you! ;)
Title: Re: medToggle Version 3
Post by: Hermskii on Dec 16, 2011, 07:18 PM
I know this has a scoreboard in it. I think it shows the top 10 players. When installed does it start counting then or can it reference something in the logs and pull historic data?
Title: Re: medToggle Version 3
Post by: Helen on Dec 16, 2011, 10:58 PM
Quote from: 363435393B392E5C0I know this has a scoreboard in it. I think it shows the top 10 players. When installed does it start counting then or can it reference something in the logs and pull historic data?

No that's not this mutator. That's what is currently the medScoreBoard197, which I would probably only release if I retired from UT  :)
Title: Re: medToggle Version 3
Post by: Hermskii on Dec 30, 2011, 08:25 PM
On the stuff wapper add on part...

In monsterHunts actual code they mispelled Razorjack and it caused all sorts of errors. Could you tell it to replace the mispelled one with the right one and have it unlock the right one?
Title: Re: medToggle Version 3
Post by: Helen on Dec 30, 2011, 09:00 PM
Possibly... I do have a weapon switch thingie... I'd need to know more about it though. Is there a post somewhere where coders are talking about this problem, so I could get an idea of what it's about?
Title: Re: medToggle Version 3
Post by: Hermskii on Dec 30, 2011, 09:18 PM
Sorry bud. It is an ever old issue. Here is what the log looks like though:

And oddly, I can't find the error in my logs. I wonder if I supressed it or if a mod did. I'll hunt for it and post it when I find it.
Title: Re: medToggle Version 3
Post by: Hermskii on Dec 30, 2011, 09:31 PM
I found a link to a topic I started a long time ago about it:

http://forums.beyondunreal.com/archive/index.php/t-180161.html
Title: Re: medToggle Version 3
Post by: Helen on Dec 31, 2011, 11:49 AM
Quote from: 3133323E3C3E295B0I found a link to a topic I started a long time ago about it:

http://forums.beyondunreal.com/archive/index.php/t-180161.html

Thanks. I'll look at it when I get the mutator from you in that other topic we have.


Note the latest version is now 325. I've updated the link in the first post. Hook you should get this version if you do your upgrade.
Title: Re: medToggle Version 3
Post by: Helen on Dec 31, 2011, 02:00 PM
Quote from: 52656465656D6572000Hey Helen...I have an idea for medToggle Version 4.
How about a setting to limit the number of real players per map?
This way you could have private games, one on one games and team games
and not be interrupted by other players joining.
Just a thought...

..

This is now in place in version 330. Link updated in first post. Make sure to read the readme for how-to and the DISCLAIMER. Search for MaxPlayers in the readme.
Title: Re: medToggle Version 3
Post by: Helen on Feb 02, 2012, 12:54 PM
I added a new "Setting" called CarcassTime. Allows you to set a time in seconds how long the carcasses stick around before they disappear on their own.
Title: Re: medToggle Version 3
Post by: Back4More on Jan 25, 2013, 09:51 PM
hey , great to see you still popping out new mods and improvements. :D

in regards to medtoggle.. Iam wondering , is it possible to replace that flak cannon down by the goo with another weapon?.. perhaps even custom like a zarkrifle or mac10 or even naliweapon3  weapon?.

thanks.
Title: Re: medToggle Version 3
Post by: Helen on Jan 25, 2013, 10:50 PM
Quote from: 595547340in regards to medtoggle.. Iam wondering , is it possible to replace that flak cannon down by the goo with another weapon?.. perhaps even custom like a zarkrifle or mac10 or even naliweapon3weapon?.

I write readmes... for my health.  ;)

Answer is yes. Download the file (from the first post) and search for this within the readme:

-----------------------------------------------------------
| Swapping Weapons and Ammo (specifically) |
-----------------------------------------------------------


Title: Re: medToggle Version 3
Post by: Back4More on Jan 26, 2013, 05:46 AM
so just to be clear I would do something like the following;

WeaponSwap="UT_FlakCannon1:Botpack.PulseGun"

^ as I would like to replace only that Flakcannon (not both)

cheers.
;)
Title: Re: medToggle Version 3
Post by: Helen on Jan 27, 2013, 03:57 PM
precisely
Title: Re: medToggle Version 3
Post by: Back4More on Jan 29, 2013, 03:51 AM
hey hey , thanks mate , I have been contemplating building some kind of routed type server of recent..

starting off at stock deck then progressing through other stages with differing mods etc.. and ending somewhere in Zeto!..

one problem that seems to be faced these days is downloads.. players just really hate them.. This was for memory addressed by Cr@tos many moons ago with the advent of DynamicPackageloader or DPL as I named it once ..

This little gem allowed for map specific mods to be loaded at 'Map Load' time.. however it is/was slightly flawed for memory and caused alot of issues for Admins .. I think it was more to-do with the Prefixes for the individual game types and was based somewhat on these. But we as you know liked to venture beyond the point of simplistic and incorporate things like SLV-SomeMap.unr into the works and such.

Basically what I would like to do is take the player through some kind of journey as such.. so they start off on Deck.. and then perhaps the next map in line would be face but with slv's then maybe veridian combo instagib then maybe wootabulous cIG.. then maybe some custom sniper map , low gravity with custom sniper rifle.. before ending up at Zeto classic..

this mod I believe maybe just what is needed to achieve such things ;)

Thanks. ;)

Title: Re: medToggle Version 3
Post by: Helen on Jan 29, 2013, 01:53 PM
Quote from: 494557240this mod I believe maybe just what is needed to achieve such things

Yes it can do what you are describing.

Also look at Reply #26 to this thread for more potential (albeit unsupported) swapping power. Save the experimentation for after you have a working medToggle.ini though.
Title: Re: medToggle Version 3
Post by: Shai on Mar 08, 2013, 01:29 AM
Hey Helen, thanks for medToggle, it's really very cool.

I have a question, which is probably covered in the (excellent) ReadMe, but there's so much detail in there that I'm feeling a bit overwhelmed :)

My question is this: I run a BT server with all of the usual BTPlusPlus stuff. But we've been forced to use an alternative Instagib mutator because the BTInsta one (that comes with BTPlusPlus) has some strange problems when using the Boost/NoBoost BT feature (allowing you to be "pushed" by shockrifle hits, or not) and player collisions occur (it stops working - Boost that is, you become "unboostable" when you "touch" another player).

But, one of our maps (made by a regular visitor), has some other unusual weapons included in it, and he tells me that they won't spawn while we're using this modified Instagib (from i4games).

So, medToggle came to mind. I figure I can swap out our i4games Instagib gun for the stock BTInsta one *just* for this map. My main question is this - since I only want to use medToggle for this fairly small case, is there any way to ask it to *not* set the defaults (for the translocator, gravity, aircontrol and so on), and just leave the ones that are pre-configured already on the server?

Thank you very much in advance!
Title: Re: medToggle Version 3
Post by: Helen on Mar 08, 2013, 09:55 AM
Hello there.

No you have to specify your values in the mDefaults line. Well, you only have to specify any settings that differ from medToggle's defaults.

I could help set it up for you, I'd need your settings, and a couple links where I could get that BTPlusPlus and that modified Instagib.
Title: Re: medToggle Version 3
Post by: Shai on Mar 09, 2013, 08:35 PM
Hey Helen, thanks for the quick reply!

Understood, that's what I thought to be the case (about the defaults). That's a very kind offer, I'll give setting things up a try on my own first rather than taking up your time, and if I have problems I'll come back and ask for more help! :)

Best regards
Title: Re: medToggle Version 3
Post by: Hook on Mar 10, 2013, 01:47 PM
medToggle is a great tool for any server - I use it on all of mine.
LOVE it! ;)
Title: Re: medToggle Version 3
Post by: Shai on Mar 11, 2013, 05:25 AM
Update. OK, I've looked into this a little further, and I think (maybe :P) I have a better understanding of the issue now. The map that we're having the trouble with uses NemesisX SLV rockets (pretty unusual for BunnyTrack!).
And it seems that the setting in BTPlusPlus.ini called

bAutoLoadInsta=

...is the issue, it's set to True on our server. When I set it to False for offline testing, the NemesisX rockets appear. I had a peek at BTPlusPlus.uc and I think this is all down to:


function PreBeginPlay()
{
  ...

  if(bAutoLoadInsta)
  {
    if ((!bDisableInTournament || !class<DeathMatchPlus (Level.Game.Class).Default.bTournament) && (!bDisableInNonBTMaps || (Left(string(Level), 3) ~="BT-" || Left(string(Level), 7) ~="CTF-BT-")))
    {
      RemoveActorsForInsta();
      Insta = Level.spawn(class'InstaGibBT');
      Insta.DefaultWeapon = class'SuperShockRifleBT';
      Level.Game.BaseMutator.AddMutator(Insta);
    }
  }


...because that seems to tbe the main place the bAutoLoadInsta variable is referenced. So... I'm reluctant to set bAutoLoadInsta=False because on all other maps this works fine (I'm not entirely sure what the implications of doing that are anyway). But I'm not sure this is something I can get around with medToggle afterall.
Apparently you can flip the setting of bAutoLoadInsta by typing:


type mutate btpp bAutoLoadInsta False


...in the console in-game. I don't know if there's some way I can do this automatically.
Title: Re: medToggle Version 3
Post by: Helen on Mar 11, 2013, 11:07 PM
They did make it difficult (http://birdieman.com/forum269/Smileys/classic/doh.gif)

It still might be possible, I'd need to study the packages though, so if you want me to, could you attach the BTPlusPlus package, as well as either that map or that NemesisX package.