DrAbcOfficial / ascron

Sven coop Angelscript cron lib base on PerMalmberg's libcron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASCron: Plugin to add cron for Sven Co-opASCron

License: GPL v3 Build Release Download Commit

ASCron is a Metamod plugin based on PerMalmberg's libcron to add Cron for Sven Co-op AngelScripts scripting system.



1. Install

  1. Grab metamod-p and asext.dll/asext.so Here

  2. Install them.

  3. Grab ascron.dll/ascron.so, put them into svencoop/addons/metamod/dlls

    1. Grab latest version in Action (Unstable, crash risk)

      or

    2. Grab release version in Release (Stable)

  4. edit svencoop/addons/metamod/plugins.ini

  5. add

win32 addons/metamod/dlls/ascron.dll
linux addons/metamod/dlls/ascron.so
  1. enjoy your new cron :3

2. Build

If you are using systems that are not covered by automatic builds (yum's and aur's)

or want to add new hooks yourself, you can follow these steps to configure your build environment.

  1. Install everything you need

    1. Git or winget install --id Git.Git -e --source winget
    2. Visual Studio with vc143 toolset And C++ desktop development
    1. sudo apt install git make build-essential gcc gcc-multilib g++-multilib cmake -y
    1. sudo yum install git make gcc gcc-c++ glibc-devel.i686 libstdc++-devel.i686 cmake -y

    Sorry guys who using Arch, I've never used an Arch based distribution, you'll have to find out how to configure the dependencies yourselves!🙂

  2. Clone metamod modified by hzqst

    git clone https://github.com/DrAbcOfficial/metamod-fallguys.git metamod

    cd metamod

  3. Clone this

    git clone https://github.com/DrAbcOfficial/ascron.git

    cd ascron

  4. Build!

    1. Open ascron.sln with visual studio
    2. Press F7
    3. Wait and done.
    1. mkdir build && cd build && cmake .. && make
  5. Grab

    Now you can grab your new library (ascron.dll/ascron.so) in

    metamod/build/addons/metamod/dlls/

3. Document

3.1. Current Expansion Property

Class Namespace Object
CCron <Global> g_Cron

3.2. Current Expansion Methods

Class Method Explian
CCron void Add(string&in name, string&in time, fnCronCallback@ callback, any@ param) Add Scheduler
CCron void Add(string&in name, string&in time, fnCronNoParamCallback@ callback) Add Scheduler
CCron void Remove(string&in name) Remove Scheduler
CCron void RemoveAll() Remove All Scheduler
CCron uint Count() Count Scheduler

3.3. Expansion Method Examples

Example

ThirdParty

This plugin use PerMalmberg's libcron and Howard Hinnant's date

About

Sven coop Angelscript cron lib base on PerMalmberg's libcron

License:GNU General Public License v3.0


Languages

Language:C++ 93.3%Language:CMake 5.6%Language:C 1.0%Language:AngelScript 0.1%