Coder Social home page Coder Social logo

insultingpros / customserverdetails Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 358 KB

Allows to color, rename, edit other server infos, print game states (aka WIPE, WIN, LOBBY, etc) and players states (DEAD, SPECTATING, etc).

Home Page: https://steamcommunity.com/sharedfiles/filedetails/?id=2463978063

License: GNU General Public License v3.0

UnrealScript 100.00%
mutator killing-floor whitelisted unrealscript

customserverdetails's Introduction

Custom Server Details

GitHub all releases

Allows to color, rename, edit other server infos, print game states (aka WIPE, WIN, LOBBY, etc) and players states (DEAD, SPECTATING, etc). And you can add your own haiku's / custom key-infos.

If you want to add additional variables into server info, check Custom Server Details Extension.

Installation

Note Killingfloor.ini -> [Engine.GameReplicationInfo] -> ServerName: set your NON colored server name here, to avoid weird characters in Steam server browser / gametrackers.

KillingFloor.ini
[Engine.GameEngine]
; ServerActors=IpDrv.MasterServerUplink
ServerActors=CustomServerDetails.CSDMasterServerUplink

Building

Use KF Compile Tool for easy compilation.

EditPackages=CustomServerDetails

Config Files

Define your custom tags and add them in infoblocks. Just check the CustomServerDetails.ini for reference.

For default serverinfo keys:

img

Steam workshop

https://steamcommunity.com/sharedfiles/filedetails/?id=2463978063

customserverdetails's People

Contributors

shtoyan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

customserverdetails's Issues

Display infoBlocks in default ServerName even if bCustomServerName=False

Sex haver, why did you not make it optional for infoBlocks to display with default ServerName?

(Code block won't be properly indented here)

Maybe Change:

if (bInfoBlockInServerName && bCustomServerName)

to

  if (bInfoBlockInServerName || bCustomServerName)
  {
    if (stateAnalyzerClass != none)
      stateAnalyzer = spawn(stateAnalyzerClass);
    else
      log("CustomServerDetails[WARNING]: Class"@stateAnalyzerClassName@"(stateAnalyzerClassName) wasn't found. Dynamic changing of server name won't work.");		
    if (bCustomServerName)
    if (inStr(serverName, "%infoBlock%") == -1)
      log("CustomServerDetails[WARNING]: You set 'bInfoBlockInServerName=true', but %infoBlock% wasn't found in 'serverName'. InfoBlock will be placed at the end of server's name.");
else
if (inStr(Level.GRI.ServerName, "%infoBlock%") == -1)
      log("CustomServerDetails[WARNING]: You set 'bInfoBlockInServerName=true', but %infoBlock% wasn't found in your default ServerName. InfoBlock will be placed at the end of server's name.");
}

Change:

to

  if (bInfoBlockInServerName || bCustomServerName)
    dynamicChangeServerName();

Change:

if (inStr(serverName, "%infoBlock%") != -1)

to

    // paste infoBlock in server name
    if(bCustomServerName){
    if (inStr(serverName, "%infoBlock%") != -1)
      srl.serverName = repl(serverName, "%infoBlock%", infoBlock);
    // can't find %infoBlock% in the server's name, so past infoBlock at the end
    else
      srl.serverName = serverName@infoBlock;
}
else{
    if (inStr(Level.GRI.ServerName, "%infoBlock%") != -1)
      srl.serverName = repl(Level.GRI.ServerName, "%infoBlock%", infoBlock);
    // can't find %infoBlock% in the server's name, so past infoBlock at the end
    else
      srl.serverName = Level.GRI.ServerName@infoBlock;
}

You get the gesture, I'm not near my PC right now to test this or to check If there's a wrong closing for if/else, but this should be pretty nice to have if someone doesn't want to change ServerName.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.