Code Monkey home page Code Monkey logo

ascron's Introduction

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

ascron's People

Contributors

drabcofficial avatar

Watchers

 avatar

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.