• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code PreBeginPlay bug or am i stupid

[13th]Malony/93

Active member
Jul 29, 2006
34
0
hello, i have the following problem:

I have done this mutator

class Ro2DLive extends Mutator;

function PreBeginPlay()
{
log("Ro2DLive: Prebegin play");

}

when i start a new game, PreBeginPlay gets called.
then i open console and type "map Ro-odessa" to switch map.
after the new map is loaded PreBeginPlay does NOT get called again.

What am i doing wrong? Or is a mutator not new loaded after a mapchange.
Then what funtion is called after a mapchange?

So, how can i check my mutator is loaded after a mapchange?
Or should I use something different than a mutator?
Because it really seems the mutator is NOT loaded after mapchange.
For testing the mutator I use the "Practice" mode

Thx for help. this bug takes me two hours no without finding a solution :(

Greetings
Sgt.Malony

EDIT:
when i am not stupid, then there is a bug in:
I have done the following:
start a practive game... mutator loaded
played the map to the end, then a new map automalically loads.... mutator gets loaded too
opened the console: typed map Ro-danzig.... mutator gets NOT loaded anymore

Now, is this a bug, or what am i doing wrong?

but it is really suspect, that after a manual map change the mutator gets not loaded anymore!

btw, the gamelog tells the following:

Log: Browse: RO-Danzig?BonusVehicles=false?Game=ROEngine.ROTeamGame?Mutator=Ro2DLive.Ro2DLive?bAutoNumBots=False?NumBots=0?Name=[13th]Sgt.Malony/93?Class=Engine.Pawn?Character=R_RKKF5?team=1
...
Log: Browse: RO-HedgeHog?Game=ROEngine.ROTeamGame?Mutator=Ro2DLive.Ro2DLive?bAutoNumBots=False?NumBots=0?Name=[13th]Sgt.Malony/93?Class=Engine.Pawn?Character=R_RKKF5?team=1
...
Log: Browse: ro-danzig?Name=[13th]Sgt.Malony/93?Class=Engine.Pawn?Character=R_RKKASpring4?team=1

so after the manual mapchange, there is no information anymore about the mutator

EDIT2:
even more information
if I press F2 and go to rules, i see that mutator=Ro2DLive is running
after a mapchange with "map Ro-bla" command, there is no mutator=Ro2DLive under rules anymore.
 
Last edited: