Jump to content

Steam Badges


LFA

Recommended Posts

Steam Badges


Adds badges to Steam Update and Steam Workshop icons when there is an update available.


  • Submitter
    LFA
  • Submitted
    10/09/20
  • Category

 

Link to comment
Share on other sites

  • 3 months later...

In ControlPanel.MVC/Views/Default/Game/Service/_PageIcons.Plugin.SteamBadges.cshtml and _PageIcons.Plugin.SteamBadges.css replace the steam icon id with the id of your custom script.

This is the default steam update icon:

#d3b2aa93-7e2b-4e0d-8080-67d14b2fa8a9_23_IconId_6

Replace it with your custom icon id. For example:

#GameId_1_ModId_0_ScriptId_15

 

After your custom script executes you need to update the game server's version in the database. If you use an IronPython script you can add this at the end:

ThisService.AppData["__TCA:STEAM_API_GAME_VERSION"] = ThisGame.AppData["__TCA:STEAM_API_GAME_VERSION"]
ThisService.Save()

If you have a batch or shell script you can create a new IronPython script. Configure it as the custom icon. Execute the original script like this. Replace Your-Script-Id with the correct id.

Script.Execute(ThisService.GameId, Your-Script-Id)
ThisService.AppData["__TCA:STEAM_API_GAME_VERSION"] = ThisGame.AppData["__TCA:STEAM_API_GAME_VERSION"]
ThisService.Save()

 

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 164 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use