1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

How to - new INF 2.9 GameTypes

Discussion in 'Infiltration Development' started by Beppo, Dec 22, 2003.

  1. Beppo

    Beppo Infiltration Lead-Programmer

    Joined:
    Jul 29, 1999
    Messages:
    2,284
    Likes Received:
    1
    for the case you don't know how to:

    // ==================================================
    // INF 2.9 GameType example - adding your own mutator directly
    // ==================================================
    class MyGameType extends INFg_EASgame;

    event InitGame( string Options, out string Error )
    {
    Super.InitGame(Options,Error);

    // Replace "MyPackage.MyMutatorClass" with your mutators description of course
    BaseMutator.AddMutator(Spawn(class<Mutator>(DynamicLoadObject("MyPackage.MyMutatorClass", class'Class'))));
    }


    That's all that is needed for the GameType.

    If your GameType is NOT a subclass of any of the Infiltration GameTypes then you have to add the following function in order to let it show up in the special browser tab:

    function string GetRules()
    {
    local string ResultSet;
    ResultSet = Super.GetRules();

    ResultSet = ResultSet$"\\gamestyle\\Infiltration";

    return ResultSet;
    }

    Now to get it in game and to show up within the browser you need an int file like this one:
    MyGame.int

    [Public]
    Object=(Name=MyPackage.MyGameType,Class=Class,MetaClass=Engine.Actor,Description="Infiltration")
    Preferences=(Caption="INF-MyGame",Parent="Game Types",Class=MyPackage.MyGameType,Immediate=True)

    again... exchange the MyPackage.MyGameType stuff of course.

    and that's it... not much really...

    Beppo
     
  2. yurch

    yurch Swinging the clue-by-four

    Joined:
    May 21, 2001
    Messages:
    5,781
    Likes Received:
    0
    Do servers in the "custom gametypes" tab also show up in "All infiltration servers"?
    Edit: I can't get them to show up in ANY browser. :(
     
    Last edited: Dec 22, 2003
  3. Keganator

    Keganator White as Snow Moderator

    Joined:
    Jun 19, 2001
    Messages:
    5,262
    Likes Received:
    0
    *stickied* per Beppo's request.
     
  4. Beppo

    Beppo Infiltration Lead-Programmer

    Joined:
    Jul 29, 1999
    Messages:
    2,284
    Likes Received:
    1
    If they use the gamestyle Infiltration then they do show up.
     
  5. Beppo

    Beppo Infiltration Lead-Programmer

    Joined:
    Jul 29, 1999
    Messages:
    2,284
    Likes Received:
    1
    just tested a bit more ... somehow the check for the gamestyle is not working correctly... maybe I have a typo or something alike somewhere.
    But till I find the reason you can edit your infiltration.ini file a little bit to let those gametypes show up in the special browser tab... so search for

    [INF_Browser_INF_Other]
    ListFactories[0]=INF_Browser.INF_BrowserSubsetFact,SupersetTag=INF_Browser_All_UT,GameStyle=Infiltration,bNoStandardGameTypes=True,bCompatibleServersOnly=True

    ... and replace it by ...

    [INF_Browser_INF_Other]
    ListFactories[0]=INF_Browser.INF_BrowserSubsetFact,SupersetTag=INF_Browser_All_UT,bNoStandardGameTypes=True,bCompatibleServersOnly=True
     
  6. yurch

    yurch Swinging the clue-by-four

    Joined:
    May 21, 2001
    Messages:
    5,781
    Likes Received:
    0
    That makes it work. Now all we have to do is get everyone to make that change. :hmm:
     
  7. Cleeus[JgKdo]

    Cleeus[JgKdo] because respawns suck

    Joined:
    Jun 8, 2002
    Messages:
    798
    Likes Received:
    0
    What about a client side ini-patch.exe ?
     
  8. Keganator

    Keganator White as Snow Moderator

    Joined:
    Jun 19, 2001
    Messages:
    5,262
    Likes Received:
    0
    The big issue is that people don't look in anything other than "infiltration all". We don't have enough servers to warrent it. Manual INI changes will never propagate to someone downloading the game for the first time, or (like many people) don't visit these forums. An official ini patch would be a good step forward, but if a patch is to be made, why not go the extra step and make it show up in Infiltration all? :hmm:
     
  9. Beppo

    Beppo Infiltration Lead-Programmer

    Joined:
    Jul 29, 1999
    Messages:
    2,284
    Likes Received:
    1
    To let it show up in Infiltration All you simply need to edit the ini line there too. Same way.

    I haven't had much time to check out the codes yet and so cannot say WHY the GameStyle stuff isn't working as it should.
     

Share This Page