Skip to content

⚡ ¤ Addition to open.mp Standard Scripting Library with new stuff, anti-cheat system and many more functions!

License

Notifications You must be signed in to change notification settings

Unity-More/DETUtils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Addition to the Pawn language features, open.mp API and Discord Connector plugin.

Current library version: 2.0.4-R1

Hello scripter! Welcome to DEntisT's Utilities (or DETUtils for short) "read me" file. So, now, you may ask about - what's this? Well - in general, this addition to open.mp Standard Scripting package contains libraries that have in-game visible effects and libraries that contain new scripting features.

  • Below, you can find information about each library.
  • For better understanding of this, make sure you know Pawn and a_samp - read all the docs here...

Examples

Honestly, this packet of libraries exists for show-off reasons, I made it for my own satisfication since I have a really big desire to code, so. You can still contribute and use it though. Example:

Installation

  • Installation is simple, quick and easy - learn more here...

Documentation

Below, there is a list of features provided by a certain library.

  • What's d_samp.inc? See here...

Pawn Libraries

Libraries whose contain the new language features.

open.mp Libraries

Libraries whose contain the new open.mp functions and features.

Discord API Libraries

Libraries whose contain the new functions for Discord bot development - these are extensions to Discord Connector plugin and they require the plugin to work.


Documentation contains some extra notes and tips.

Tests

  • I regularly make test scripts with all new features I added to the library to ensure everything is working as expected. If not, I write it down in to a test log.

Check out test script here:

  • Go to tests...

  • You can also run DETUtils test script directly from your includes, just use the definition below before including the libraries.

#define DETUTILS_TESTING_MODE

As I mentioned, DETUTILS_TESTING_MODE flag will enable the test script automatically.

Filterscripts

  • If you're making a filterscript using the DETUtils includes, make sure to enable the DETUTILS_FILTERSCRIPT_MODE flag.
#define DETUTILS_FILTERSCRIPT_MODE
  • It'll also work if you just simply do:
#define FILTERSCRIPT

Limits

  • Everything has its limits, so does DETUtils - view them here...

Beta testing

  • Beta testing program is currently down since this project is far away from being done. Also, according to news - new open.mp is coming soon, so these libraries shall be updated regularly to keep up with the project.

Test log

  • Recently, I started test logging program in which I log every library issue I spotted during testing. You can check it here...

More languages

  • English isn't the only language on the planet though, that's why I started language contribution program. I started it by making another library's core include called d_text.inc in which are all strings located. Your job as a language contributor is to simply translate it!

Check the file here...

Troubleshooting

If you're facing problems like function failed to call, function is not valid, critical errors - make sure you enable automatic debugging.

  • Automatic debugging literally sends debug messages whenever it needs to.
  • With this feature you can easily track problems and report them on Discord or try to troubleshoot them yourself.

To enable advanced debugging feature, use:

#define DETUTILS_DEBUG_MODE

To join Discord server, click this link!

NOTE: After you enabled advanced debugging, your console may be full with DETUtils debug messages - in that case, don't worry.

Compile-time issues

If you're facing issues with your code compilation after including the library, make sure you have updated Pawn Compiler and SA:MP Standard library package and libraries. Using them outdated can indeed cause issues while trying to implement newer libraries to your code.

  • You can get the latest version of SA:MP standard libraries here...

  • You can get the latest version of Pawn standard libraries here...

  • You can get the latest version of Pawn Compiler for SA:MP here...

SA:MP DEntisT's Utilities

Legal:

  • Version: MPL 1.1

    The contents of files provided in DETUtils are subject to the Mozilla Public License Version 1.1 the "License"; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

    Software distributed under the License is distributed on an "as is" basis, without warranty of any kind, either express or implied. See the License for the specific language governing rights and limitations under the License.

    The Original Code is SA:MP | DETUtils.

    The Initial Developer of the original code is DEntisT. Portions created by the Initial Developer are Copyright C 2021 the Initial Developer. All Rights Reserved.

Other contributors:

  • No one yet.

Thanks to these people for:

  • aezzakmi (no GitHub account) - really productive testing
  • Y_Less & Zeex - fmargs #emit stuff, d_commands decorator concept
  • Zeex - ZCMD command processor concept
  • Y_Less - code parser, another amazing thing which you can get here
  • Kirima - command guesser, another cool thing you can get here
  • Zeex - AMX assembly

Contributions

  • Just fork the repository, apply your wanted changes and create a pull request!

© & ® BRACE™

About

⚡ ¤ Addition to open.mp Standard Scripting Library with new stuff, anti-cheat system and many more functions!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Pawn 97.6%
  • C 2.4%