Hi Shai Hulud.
Well, thats a cool idea, but we want to do several dedicated servers on one PC, which should run all from the same folder.
im not sure how to include there a new ini file.
And i need to change the End Message by server name defined.
Im not sure how to do this by a Mutator.
I thought about to add a Class to the HudBDeathMatch class, to do something like this:
Code:
Class ShadowrunServer estends HudBDeathMatch
var() globalconfig string ServerName;
var string ShadowrunServer;
var string ShadowrunPass;
replication
{
reliable if (Role==ROLE_Authority)
ServerName;
}
simulated function ChangeServerName ()
{
if (ServerName ~= ShadowrunServer)
YouveWonTheMatch = ShadowrunPass;
else
break;
}
simulated function PostNetBeginPlay()
{
ChangeServerName ();
}
But im absolutley not sure if i have
A: Access to YouveWonTheMatch
string, cause its a localized file and
B: If its possible to use PostNetBeginPlay
in this way, cause i didnt understand the Super command at least.
i thought it will ovverride the PostNetBeginnPlay fully, and if i use super, the original would no longer work?
Or does it mean, it pauses the original PostNetBeginnPlay, executes my PostNetBeginPlay, and returns then to the original PostNetBeginPlay?
Oh, and i gave up recompiling the Original Files, that would take forever :-)
Well, the Idea with an Mutator is cool, but im not sure the intention you thought about would help me, because of the Setup i planned for this.
I mean, the most important thing for me, is to access the YouHaveWon String, and change its value depending on which LAN server the Game is Played.
Would this be possible with an Mutator?
Ill Try to figure out an Code and Post it here, maybe you could help me with getting it to work?
edit..
I tried it out with my code above, and after UCC Make runs, i got at last another Error: Error opening File.
Did i do something wrong?
Greetings
Nin