Author
|
Message
|
Member
Join Date: May 2020
Location: Async Research Institute
|
11-07-2022
, 16:20
Freak Fortress 2: List - show your bosses on a web page! [NO WEBSERVER REQUIRED]
|
#1
|
Freak Fortress 2: List
A SourceMod plugin designed to neatly list all currently active Freak Fortress 2 bosses and some of their config data (descriptions, health, themes, and more) in a browser.
LIVE EXAMPLE | GitHub
Dependencies:
- Conplex and Webcon by asherkin
- Freak Fortress 2 (only at runtime to detect whether it's FF2 Legacy or Rewrite)
- Rest In Pawn
Installation:
- Grab the attached archive (plugin compiled against 1.10.6445) or download and compile the plugin off GitHub.
- Move the files to their respective directories.
- Load the plugin or trigger a map change.
Usage:
Once the plugin loads, you will be able to visit your server's IP address in the browser. Please note that you must specify your gameserver port as well. Example: 192.168.1.101:27015.
The front-end is designed to be adaptive for both desktop and mobile use.
Custom boss images:
This plugin ships with a placeholder image that takes place of actual boss images. If you'd like to provide your own, simply upload them to /configs/web/bosses/images in the .png format.
Refer to the placeholder image for proper dimensions to avoid size differences. Make sure that every image has the name of it's respective boss' config file (for example, hhh_hale.cfg -> hhh_hale.png).
Hosting web files remotely:
If you'd like to host the web front-end somewhere else (like a FastDownloads web server), please do the following:- Move the contents of the "bosses" folder on your game server to your desired location on the web server. Make sure to not forget about images as well.
- Change the ff2list_enable_web ConVar to 0. Save that ConVar in server.cfg.
- Manually replace "SERVERIP" with the IP and port of your game server inside loader.js.
Credits:
- Naydef for FAQ-like assistance and inspiration.
- MadeInQuick for creating the placeholder image.
- NecGaming for being my personal sandbox.
- Respective authors of the code pieces I borrowed (50DKP team of Official Freak Fortress, ...).
Versions:
- 1.0: Initial release
- 2.0: Support for Freak Fortress Rewrite, Boss-Packs, general code improvements
- 2.0 Hotfix: Support for boss configs placed in sub-directories of configs/freak_fortress_2/, proper 403 Forbidden reponse when web serving is off
Last edited by NoloZero01; 03-18-2023 at 16:05.
Reason: 2.0 Hotfix
|
|
|
|