Coder Social home page Coder Social logo

sm-gungame-fof's Introduction

sm-gungame-fof

Build Status GitHub stars GitHub issues GitHub pull requests GitHub All Releases

GunGame for Fistful of Frags

Requirements

Installation

Make sure your server has SourceMod installed. See Installing SourceMod. If you are new to managing SourceMod on a server be sure to read the 'Installing Plugins' section from the official SourceMod Wiki.

Download the latest release and copy the contents of addons to your server's addons directory.

SteamWorks extension is also required for the server to run correctly. Get the latest build for either windows or linux here: https://users.alliedmods.net/~kyles/builds/SteamWorks/. Again, copy the contents of addons to your servers addons directory.

It is recommended to restart your server after installing.

To confirm the plugin is installed correctly, on your server's console type:

sm plugins list

Usage

Commands

NOTE: All commands can be run from the in-game chat by replacing sm_ with ! or /. For example sm_rtv can be called with !rtv.

Command Accepts Values SM Admin Flag Description
fof_gungame_restart None None Generic Force restart the round
fof_gungame_reload_cfg None None Config Force a reload of the configuration file
fof_gungame_scores None None Root (debug) List player score values to console

Console Variables

Command Accepts Values Description
fof_gungame_enabled boolean 0-1 Whether or not Gun Game is enabled
fof_gungame_config string file path Location of the Gun Game configuration file
fof_gungame_fists boolean 0-1 Whether or not to allow fists in game. Killing someone with fists will reduce their level
fof_gungame_heal float 0-100 Amount of health player recieves when ranking up
fof_gungame_equip_delay float 0-999 (deprecated) Seconds before giving new equipment on spawn
fof_gungame_drunkness float 0-999 (deprecated) Amount of "drunkness" player recieves when ranking up
fof_gungame_logfile string file path (deprecated) Location of the Gun Game log file

Compiling

If you are new to SourceMod development be sure to read the 'Compiling SourceMod Plugins' page from the official SourceMod Wiki.

You will need the spcomp compiler from the latest stable release of SourceMod. Download it from here and uncompress it to a folder. The compiler spcomp is located in addons/sourcemod/scripting/; you may wish to add this folder to your path.

Once you have SourceMod downloaded you can then compile using the included Makefile.

cd sm-gungame-fof
make SPCOMP=/path/to/addons/sourcemod/scripting/spcomp

Other included Makefile targets that you may find useful for development:

# compile plugin with DEBUG enabled
make DEBUG=1

# pass additonal flags to spcomp
make SPFLAGS="-E -w207"

# install plugins and required files to local srcds install
make install SRCDS=/path/to/srcds

# uninstall plugins and required files from local srcds install
make uninstall SRCDS=/path/to/srcds

Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

GNU General Public License v3.0

Acknowledgements

sm-gungame-fof's People

Contributors

bachittle avatar crimsontautology avatar mutezero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sm-gungame-fof's Issues

Can't make file

I installed sourcemod and the other dependencies but the make file won't work.
I am using ubuntu server 16.04.7
The first output when I ran this make file was:

fofserver@ubuntufof:~/sm-gungame-fof$ make SPCOMP=~/serverfiles/fof/addons/sourcemod/scripting/spcomp
rm -f -r addons/sourcemod/plugins
mkdir -p addons/sourcemod/plugins
/home/fofserver/serverfiles/fof/addons/sourcemod/scripting/spcomp addons/sourcemod/scripting/gungame_fof.sp -oaddons/sourcemod/plugins/gungame_fof.smx -iaddons/sourcemod/scripting/include
SourcePawn Compiler 1.10.0.6528
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

Code size:            38708 bytes
Data size:            15544 bytes
Stack/heap size:      16384 bytes
Total requirements:   70636 bytes
ctags --langmap=c:+.sp,c:+.inc --recurse
/bin/bash: ctags: command not found
Makefile:85: recipe for target 'tags' failed
make: [tags] Error 127 (ignored)

The second time that I ran this make file I got a different error:

fofserver@ubuntufof:~/sm-gungame-fof$ make SPCOMP=/home/fofserver/serverfiles/fof/addons/sourcemod/scripting/spcomp
rm -f -r addons/sourcemod/plugins
mkdir -p addons/sourcemod/plugins
/home/fofserver/serverfiles/fof/addons/sourcemod/scripting/spcomp addons/sourcemod/scripting/mapchooser.sp -oaddons/sourcemod/plugins/mapchooser.smx -iaddons/sourcemod/scripting/include
SourcePawn Compiler 1.10.0.6528
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

Code size:            25804 bytes
Data size:             5992 bytes
Stack/heap size:      16384 bytes
Total requirements:   48180 bytes
/home/fofserver/serverfiles/fof/addons/sourcemod/scripting/spcomp addons/sourcemod/scripting/reservedslots.sp -oaddons/sourcemod/plugins/reservedslots.smx -iaddons/sourcemod/scripting/include
SourcePawn Compiler 1.10.0.6528
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

Code size:             7096 bytes
Data size:             3160 bytes
Stack/heap size:      16384 bytes
Total requirements:   26640 bytes
/home/fofserver/serverfiles/fof/addons/sourcemod/scripting/spcomp addons/sourcemod/scripting/antiflood.sp -oaddons/sourcemod/plugins/antiflood.smx -iaddons/sourcemod/scripting/include
SourcePawn Compiler 1.10.0.6528
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

Code size:             4376 bytes
Data size:             3308 bytes
Stack/heap size:      16384 bytes
Total requirements:   24068 bytes
/home/fofserver/serverfiles/fof/addons/sourcemod/scripting/spcomp addons/sourcemod/scripting/gungame.sp -oaddons/sourcemod/plugins/gungame.smx -iaddons/sourcemod/scripting/include
SourcePawn Compiler 1.10.0.6528
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

addons/sourcemod/scripting/gungame.sp(1) : error 031: unknown directive
addons/sourcemod/scripting/gungame.sp(4) : error 001: expected token: ";", but found "-identifier-"
addons/sourcemod/scripting/gungame.sp(6) : error 031: unknown directive
addons/sourcemod/scripting/gungame.sp(17) : error 031: unknown directive
addons/sourcemod/scripting/gungame.sp(23) : error 031: unknown directive
addons/sourcemod/scripting/gungame.sp(28) : error 031: unknown directive
addons/sourcemod/scripting/gungame.sp(56) : warning 216: nested comment
addons/sourcemod/scripting/gungame.sp(151) : error 001: expected token: "*/", but found "-end of file-"
addons/sourcemod/scripting/gungame.sp(29) : warning 203: symbol is never used: "sourcefiles"
addons/sourcemod/scripting/gungame.sp(29) : warning 203: symbol is never used: "wildcard"
addons/sourcemod/scripting/gungame.sp(28) : warning 203: symbol is never used: "ZIP"
addons/sourcemod/scripting/gungame.sp(26) : warning 203: symbol is never used: "DOS2UNIX"
addons/sourcemod/scripting/gungame.sp(25) : warning 203: symbol is never used: "CTAGS"
addons/sourcemod/scripting/gungame.sp(21) : warning 203: symbol is never used: "SPFLAGS"
addons/sourcemod/scripting/gungame.sp(19) : warning 203: symbol is never used: "INC"
addons/sourcemod/scripting/gungame.sp(19) : warning 203: symbol is never used: "SPCOMP"
addons/sourcemod/scripting/gungame.sp(17) : warning 203: symbol is never used: "translations_dir"
addons/sourcemod/scripting/gungame.sp(15) : warning 203: symbol is never used: "gamedata_dir"
addons/sourcemod/scripting/gungame.sp(14) : warning 203: symbol is never used: "extensions_dir"
addons/sourcemod/scripting/gungame.sp(13) : warning 203: symbol is never used: "configs_dir"
addons/sourcemod/scripting/gungame.sp(12) : warning 203: symbol is never used: "testsuite_dir"
addons/sourcemod/scripting/gungame.sp(11) : warning 203: symbol is never used: "plugins_dir"
addons/sourcemod/scripting/gungame.sp(10) : warning 203: symbol is never used: "testing_dir"
addons/sourcemod/scripting/gungame.sp(9) : warning 203: symbol is never used: "include_dir"
addons/sourcemod/scripting/gungame.sp(8) : warning 203: symbol is never used: "scripting_dir"
addons/sourcemod/scripting/gungame.sp(4) : warning 203: symbol is never used: "bin"
addons/sourcemod/scripting/gungame.sp(4) : warning 203: symbol is never used: "SHELL"

7 Errors.
Makefile:68: recipe for target 'addons/sourcemod/plugins/gungame.smx' failed
make: *** [addons/sourcemod/plugins/gungame.smx] Error 1

I have spent so many hours on trying to get this working, and I feel like I am so close. If somebody even knows of where I can find a pre-compiled file that would be amazing.

Documentation unclear as to how to compile and set up

It would be nice to have some sort of documentation, other than your current markdown file. I have no idea how to compile this, this is what error I get when trying to run the Rakefile:

image

this looks deprecated regardless, hope someone can help...

Translations

pretty cool plugin and translations support would be nice

fof_gungame_enabled not having any effect

I would have thought the fof_gungame_enabled variable would change whether or not the game is active. But changing it in-game doesn't do anything, and skimming through the code, the variable doesn't do anything there. What does fof_gungame_enabled do?

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.