Raised This Month: $ Target: $400
 0% 

FF2 Freak Fortress 2: List - show your bosses on a web page! [NO WEBSERVER REQUIRED]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NoloZero01
Member
Join Date: May 2020
Location: Async Research Institute
Old 11-07-2022 , 16:20   Freak Fortress 2: List - show your bosses on a web page! [NO WEBSERVER REQUIRED]
Reply With Quote #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:
  1. Conplex and Webcon by asherkin
  2. Freak Fortress 2 (only at runtime to detect whether it's FF2 Legacy or Rewrite)
  3. Rest In Pawn


Installation:
  1. Grab the attached archive (plugin compiled against 1.10.6445) or download and compile the plugin off GitHub.
  2. Move the files to their respective directories.
  3. 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:
  1. Naydef for FAQ-like assistance and inspiration.
  2. MadeInQuick for creating the placeholder image.
  3. NecGaming for being my personal sandbox.
  4. 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

Attached Files
File Type: zip Freak Fortress List.zip (253.6 KB, 47 views)

Last edited by NoloZero01; 03-18-2023 at 16:05. Reason: 2.0 Hotfix
NoloZero01 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode