npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

grad-leaveNotes

v2.2.1

Published

Gruppe Adler note system

Downloads

33

Readme

GRAD LeaveNotes

Enables you to:

  • write notes (ACE-Selfinteraction)
  • place notes on the ground
  • store notes in your (virtual) inventory (ACE-Selfinteraction)
  • read notes
  • inspect a notes handwriting
  • destroy notes

GRAD LeaveNotes is multiplayer and JIP proof.

Youtube Video

Dependencies

Installation

Manually

  1. Create a folder in your mission root folder and name it node_modules. Then create one inside there and call it grad-leaveNotes. If you want to use a different folder name, you have to preped your description.ext with #define MODULES_DIRECTORY <yourFolderName>.
  2. Download the contents of this repository ( there's a download link at the side ) and put it into the directory you just created.
  3. see step 3 below in the npm part

Via npm

for details about what npm is and how to use it, look it up on npmjs.com

  1. Install package grad-leaveNotes : npm install --save grad-leaveNotes
  2. Append the following lines of code to the description.ext:
#include "node_modules\grad-leaveNotes\grad_leaveNotes.hpp"

class CfgFunctions {
    #include "node_modules\grad-leaveNotes\cfgFunctions.hpp"
};

class CfgSounds {
	sounds[] = {};
    #include "node_modules\grad-leaveNotes\cfgSounds.hpp"
};

Usage

Using the notes system is fairly intuitive. Open up your ACE selfinteraction menu, go to "Equipment", "Notes" and choose "Write Note". A notepad will open up. Write whatever you like, then hit "SAVE" to put the note into your virtual inventory or hit "DROP" to place it on the ground. Use your ACE interaction key to read, pick up or destroy notes on the ground. Use your selfinteraction menu and go to "Equipment", "Notes" again to read, drop or destroy notes in your virtual inventory.

Use this function to enable/disable a unit to write notes (default is true):
[unit, allow] call GRAD_leaveNotes_fnc_allowWriting;

Use this function to enable/disable a unit to inspect notes (default is true):
[unit, allow] call GRAD_leaveNotes_fnc_allowInspection;

Use this function to set how many notes a unit can write (default is 10):
[unit, amount] call GRAD_leaveNotes_fnc_setAmount;

All of these function have to be called either on server or or client where unit is local.

| Parameter | Type | Explanation | | ----------|------|-------------| | unit | object | The unit this applies to | | allow | bool | Enable or disable this ability | | amount | number | Amount of notes this unit can write. (Does not add to remaining amount.) |

Configuration

You can configure this module in your description.ext. This is entirely optional however, since every setting has a default value.

Add the class GRAD_leaveNotes to your description.ext, then add any of these attributes to configure the module:

| Attribute | Default Value | Explanation | |-----------------|------------------|-------------------------------------------------------------| | startAmount | 10 | (Number) How many notes a player can write by default. | | noteObject | "Land_Notepad_F" | (String) Note object class name. | | actOffset[] | {0,0,0.1} | (Array) Note object interaction point offset. | | actDist | 2 | (Number) Note object interaction distance. | | playerDistance | 1 | (Number) Distance to player at which notes will be dropped. | | visibleHandwriting | 1 | (1/0) is a player's handwriting represented by a specific font? | | canWriteDefault | 1 | (1/0) Can everyone write notes by default? | | canInspectDefault | 1 | (1/0) Can everyone inspect a note's handwriting by default? |

Example:

class GRAD_leaveNotes {
    playerDistance = 1;             
    actOffset[] = {0,0,0.1};        
    actDist = 2;                    
    noteObject = "Land_Notepad_F";  
    startAmount = 10;               
    visibleHandwriting = 1;         
    canWriteDefault = 1;            
    canInspectDefault = 1;          
};

Handwriting

By default, a note's handwriting is represented by one of 9 fonts. So most of the times you will know that two notes are from two different authors simply by looking at them. However if two notes do seem to have the same handwriting, only inspecting them will tell you more.

Each font has an adjective that it is described by. For example: "EtelkaMonospacePro" will show up as "elegant" handwriting upon inspection. Every handwriting also has one of three modifiers, "somewhat", "quite", and "remarkably". So if two notes have the same font but show up as "quite elegant" and "somewhat elegant", they must have been written by different authors.

9 adjevtives and 3 modifiers give us a total of 27 different handwritings. So depending on number of players, two or more people in your game might have the same.