Awesome "SPECIAL TRICK" Server - HOW TO ...
Apr 23, 2019 9:41:46 GMT -6
[~]RUFX[~]ŔöŋıŋMλšŧλƑЖ likes this
Post by Hook on Apr 23, 2019 9:41:46 GMT -6
How to DO this Totally Awesome "Special Trick" to mods/mutes. etc.
HUH??? :?
Well, FIRST, I will explain how this "Special Trick" came to be and why...
Bodens use for tweaking maps...
I used to use Bodens (back a few years), but it really limited the amount of maps you could tweak.
(Only 50 maps, plus default settings for all others)
I had asked Gopo about it but for some reason he wouldn't or couldn't up the map count limit in Bodens (I forget the reason - I think it was permissions?), so I pursued other mods that might do better.
There just were not really any other mods to be found, nor would any coders care to tackle it... (more on this later - below)
Meanwhile, back at the ranch...
I took a look at the BodenXX.u file that MEAT uses on his server {MRS} last night and it looks to me that it still limits the individually tweaked map count to 100 maps.
Gopo must have just raised the limit from 50 to 100 it appears. (I MAY be wrong but I am pretty sure of it after looking at BodensXX.u)
Never fear though - Remember the part I mentioned above??? (Hint: The "Special Trick")
Yep, you do NOT need to re-code Bodens Map Config - it will handle more than 50 maps AS it IS, so to speak - well kind of.
Let me go back much earlier this year to the first few months of 2010...
(the scene wavers and we go back in time...)
I had a problem on {CLD}, when I first took over managing that server from its owner and Member here at HUTP, lucifur.
I was using a New mod that both set defaults for maps AND tweaked individual maps - written by a "certain" coder I had met. (not gopo)
This New mod was really cool but I needed this new mod to have different default and individual map settings for DM type games and Team type games, and others, etc.
This was something this certain coder missed doing with this mod.
This certain coder and myself chatted and worked on this problem and, with my instigation and prodding to fix it LOL, HE came up with a Revolutionary Solution that I have never seen before anywhere else in the UT world.
This "Special Trick" can be applied to virtually any mod/mutator or game type I believe. (that has an ini file or section of some sort anyway for sure, so it'd be quite versatile)
I would appreciate it if we kinda kept this Wonderful "Special Trick" to ourselves - Within Our Own "family" of servers here at HUTP and HOH (and the certain coder's forum of course), at least until it "seeps" out of our forums by errant readers anyway.?
(Do Not go purposely spreading it to other forums and servers (the Competition) - give OUR servers an advantage) Please!
I will post HOW to DO this "Special Trick" ... (below)
==============================
OK - HOW to DO this Special Trick...
The New Mod I mentioned above is called "medTogglexxx" (having a few version numbers after it in the xxx place)
"medTogglexxx" then tweaked/added to "medToggle200" then after I submitted a few last requests - finally "medToggle210"
NOTE: I have posted the newest version of medToggle elsewhere, medToggle373, so you can use it. (ASK Me if you need it)
All was really Great with this Awesome New Mod - then, when I was setting it up...
Well, there was ONE problem I could think of - Below is how we worked it out...
Some Additional ways of Using medToggle210 (and other mods)
Hook Posted...
OK - I just thought of something - (a little problem)...
I have a MinPlayers setting of 5 on DM games and a MinPlayers setting of 6 on TEAM games like for DOM, CTF and TDM.
We only have ONE medToggle.ini file for the default settings.
Helen Posted...
The solution is to have min 6 players for DM.
Actually, I just had a crazy idea. I'll try it out by wednesday, I have a few days off starting then.
Helen Posted... (Comes back with Crazy Idea)
UT is so awesome, it still continues to amaze me. You can do this.
Take the medToggle210.u file, make a copy, and name the copy medToggle210Team.u (or whatever)
You have the same mutator code for 210 and 210Team, but because they have different names, you can get them to use different settings.
Think of the 210Team one as the TDM or the TEAM games and the 210 ones for all the other types like DM.
So in mapVoteLA.ini, you may have:
CustomGameConfig[0]=(bEnabled=True,GameClass="Botpack.DeathMatchPlus",NewPrefix="DM",Mutators="medToggle210.medToggle",Settings="")
CustomGameConfig[1]=(bEnabled=True,GameClass="Botpack.TeamGamePlus",NewPrefix="TDM",Mutators="medToggle210Team.medToggle",Settings="")
Then in the medToggle.ini, you can have two sections, one for each named instance of it, so for example you could have:
[medToggle210Team.medToggle] <-(Use for TEAM Game Types)
bLogInfo=false
bLogErrors=false
DMTranslocator=false
TDMTranslocator=false
LMSTranslocator=false
ASTranslocator=false
CTFTranslocator=true
DOMTranslocator=true
cGameSpeed=1
cAirControl=0.35
cBotSkill=2
cMinPlayers=6
cFragLimit=30
TDMMaxTeamScore=100
CTFMaxTeamScore=5
DOMMaxTeamScore=100
cTimeLimit=15
cWeaponStay=true
cForceRespawn=false
cForceTeamBalance=true
cFriendlyFire=0
cGravity=222
cMap[0]=DM-Codex,,,,,6,,20,,,,,,
[medToggle210.medToggle] <-(Use for DM Game Types)
bLogInfo=false
bLogErrors=false
DMTranslocator=false
TDMTranslocator=false
LMSTranslocator=false
ASTranslocator=false
CTFTranslocator=true
DOMTranslocator=true
cGameSpeed=1
cAirControl=0.35
cBotSkill=2
cMinPlayers=5
cFragLimit=30
TDMMaxTeamScore=100
CTFMaxTeamScore=5
DOMMaxTeamScore=100
cTimeLimit=20
cWeaponStay=true
cForceRespawn=false
cForceTeamBalance=true
cFriendlyFire=0
cGravity=222
cMap[0]=DM-Codex,,,,,5,,30,,,,,,
So besides MinPlayers, you can have different defaults for DM and TDM for all the other settings too. Cool!!!
Hook Posted...
Hey, you are really thinking outside the box here!
I have had things like this in the back of my mind, but I didn't really think it would work - more like wishful thinking and not enough to try it actually.
Great going! - Problem Solved!
This really does work!
I wonder what other mods this would be good for? Hmmmm...
=======================================================
helen - The main reason it works is if the mutator is not hard-coding references to itself.
If the mutator is called:
ReemDeem01
and inside it does something like:
spawn('ReemDeem01.warheadLauncher')
then you are out of luck. That's the main and easy reason.
There are about 3 more minor reasons why it wouldn't work, but those are less likely, and would take me 3 pages to explain, so I think I'll leave it at the main reason
HUH??? :?
Well, FIRST, I will explain how this "Special Trick" came to be and why...
Bodens use for tweaking maps...
I used to use Bodens (back a few years), but it really limited the amount of maps you could tweak.
(Only 50 maps, plus default settings for all others)
I had asked Gopo about it but for some reason he wouldn't or couldn't up the map count limit in Bodens (I forget the reason - I think it was permissions?), so I pursued other mods that might do better.
There just were not really any other mods to be found, nor would any coders care to tackle it... (more on this later - below)
Meanwhile, back at the ranch...
I took a look at the BodenXX.u file that MEAT uses on his server {MRS} last night and it looks to me that it still limits the individually tweaked map count to 100 maps.
Gopo must have just raised the limit from 50 to 100 it appears. (I MAY be wrong but I am pretty sure of it after looking at BodensXX.u)
Never fear though - Remember the part I mentioned above??? (Hint: The "Special Trick")
Yep, you do NOT need to re-code Bodens Map Config - it will handle more than 50 maps AS it IS, so to speak - well kind of.
Let me go back much earlier this year to the first few months of 2010...
(the scene wavers and we go back in time...)
I had a problem on {CLD}, when I first took over managing that server from its owner and Member here at HUTP, lucifur.
I was using a New mod that both set defaults for maps AND tweaked individual maps - written by a "certain" coder I had met. (not gopo)
This New mod was really cool but I needed this new mod to have different default and individual map settings for DM type games and Team type games, and others, etc.
This was something this certain coder missed doing with this mod.
This certain coder and myself chatted and worked on this problem and, with my instigation and prodding to fix it LOL, HE came up with a Revolutionary Solution that I have never seen before anywhere else in the UT world.
This "Special Trick" can be applied to virtually any mod/mutator or game type I believe. (that has an ini file or section of some sort anyway for sure, so it'd be quite versatile)
I would appreciate it if we kinda kept this Wonderful "Special Trick" to ourselves - Within Our Own "family" of servers here at HUTP and HOH (and the certain coder's forum of course), at least until it "seeps" out of our forums by errant readers anyway.?
(Do Not go purposely spreading it to other forums and servers (the Competition) - give OUR servers an advantage) Please!
I will post HOW to DO this "Special Trick" ... (below)
==============================
OK - HOW to DO this Special Trick...
The New Mod I mentioned above is called "medTogglexxx" (having a few version numbers after it in the xxx place)
"medTogglexxx" then tweaked/added to "medToggle200" then after I submitted a few last requests - finally "medToggle210"
NOTE: I have posted the newest version of medToggle elsewhere, medToggle373, so you can use it. (ASK Me if you need it)
All was really Great with this Awesome New Mod - then, when I was setting it up...
Well, there was ONE problem I could think of - Below is how we worked it out...
Some Additional ways of Using medToggle210 (and other mods)
Hook Posted...
OK - I just thought of something - (a little problem)...
I have a MinPlayers setting of 5 on DM games and a MinPlayers setting of 6 on TEAM games like for DOM, CTF and TDM.
We only have ONE medToggle.ini file for the default settings.
Helen Posted...
The solution is to have min 6 players for DM.
Actually, I just had a crazy idea. I'll try it out by wednesday, I have a few days off starting then.
Helen Posted... (Comes back with Crazy Idea)
UT is so awesome, it still continues to amaze me. You can do this.
Take the medToggle210.u file, make a copy, and name the copy medToggle210Team.u (or whatever)
You have the same mutator code for 210 and 210Team, but because they have different names, you can get them to use different settings.
Think of the 210Team one as the TDM or the TEAM games and the 210 ones for all the other types like DM.
So in mapVoteLA.ini, you may have:
CustomGameConfig[0]=(bEnabled=True,GameClass="Botpack.DeathMatchPlus",NewPrefix="DM",Mutators="medToggle210.medToggle",Settings="")
CustomGameConfig[1]=(bEnabled=True,GameClass="Botpack.TeamGamePlus",NewPrefix="TDM",Mutators="medToggle210Team.medToggle",Settings="")
Then in the medToggle.ini, you can have two sections, one for each named instance of it, so for example you could have:
[medToggle210Team.medToggle] <-(Use for TEAM Game Types)
bLogInfo=false
bLogErrors=false
DMTranslocator=false
TDMTranslocator=false
LMSTranslocator=false
ASTranslocator=false
CTFTranslocator=true
DOMTranslocator=true
cGameSpeed=1
cAirControl=0.35
cBotSkill=2
cMinPlayers=6
cFragLimit=30
TDMMaxTeamScore=100
CTFMaxTeamScore=5
DOMMaxTeamScore=100
cTimeLimit=15
cWeaponStay=true
cForceRespawn=false
cForceTeamBalance=true
cFriendlyFire=0
cGravity=222
cMap[0]=DM-Codex,,,,,6,,20,,,,,,
[medToggle210.medToggle] <-(Use for DM Game Types)
bLogInfo=false
bLogErrors=false
DMTranslocator=false
TDMTranslocator=false
LMSTranslocator=false
ASTranslocator=false
CTFTranslocator=true
DOMTranslocator=true
cGameSpeed=1
cAirControl=0.35
cBotSkill=2
cMinPlayers=5
cFragLimit=30
TDMMaxTeamScore=100
CTFMaxTeamScore=5
DOMMaxTeamScore=100
cTimeLimit=20
cWeaponStay=true
cForceRespawn=false
cForceTeamBalance=true
cFriendlyFire=0
cGravity=222
cMap[0]=DM-Codex,,,,,5,,30,,,,,,
So besides MinPlayers, you can have different defaults for DM and TDM for all the other settings too. Cool!!!
Hook Posted...
Hey, you are really thinking outside the box here!
I have had things like this in the back of my mind, but I didn't really think it would work - more like wishful thinking and not enough to try it actually.
Great going! - Problem Solved!
This really does work!
I wonder what other mods this would be good for? Hmmmm...
=======================================================
Quote by Hook - I wonder what other mods this would be good for? Hmmmm...
helen - The main reason it works is if the mutator is not hard-coding references to itself.
If the mutator is called:
ReemDeem01
and inside it does something like:
spawn('ReemDeem01.warheadLauncher')
then you are out of luck. That's the main and easy reason.
There are about 3 more minor reasons why it wouldn't work, but those are less likely, and would take me 3 pages to explain, so I think I'll leave it at the main reason