Skip to content

[patch 92/100/115] Functional module for creating your own guides for dungeons, bosses and mechanics. Required for tera-guide like modules.

License

Notifications You must be signed in to change notification settings

hsdn/tera-guide-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tera-guide-core

Functional module for creating your own guides for dungeons, bosses and mechanics. With this set of features, you can create your guide in any translation, for this you just need to write a simple script and require the tera-guide-core module into your index.js.

The guides based on this module can be found here: https://github.com/hsdn/tera-guide

Basic features

  • Complete tools for custom guides creation for your favorite dungeons.
  • Support for the features to add your languages translations.
  • Built-in GUI support for all guide settings.
  • Support for voice notifications (Windows TTS module is used).
  • Flexible and powerful functionality for scripting guides.
  • Automatically generated dungeon list based on game client files.
  • Used modern JavaScript for improved performance.
  • To handle all events and hooks used nodejs EventEmitter.

Dependencies

When using TeraToolbox, all dependencies will be installed automatically.

Manual Installation

Extract to mods directory in your TeraToolbox.
Make sure it's named tera-guide-core not "tera-guide-core-master".

Распаковать в директорию mods в ваш TeraToolbox.
Директория должна называться tera-guide-core, а не "tera-guide-core-master".

How to make your own guide

  1. Create new module for TeraToolbox (index.js, module.json, manifest.json, settings_migrator.js).
  2. Add necessary code (is given below) to the index.js and module.json.
  3. Create a folder called guides into root directory of your module.
  4. Create your own guide script files and place it into guides folder.

Detailed information of guides creating is available here: https://github.com/hsdn/tera-guide-core/wiki

Example of index.js file

"use strict";

module.exports.NetworkMod = function (mod) {
	try {
		mod.require["tera-guide-core"].load(mod, {
			languages: ["en"], // supported languages
			colors: { gui: {}, general: {} }, // you can change the color settings here
			command: ["guide"], // set your module command(s) name
			chat_name: "Guide", // set chat author name for notices
		});
	} catch (e) {
		mod.error("Warning!\nDepended module \"tera-guide-core\" is needed, but not installed!");
		throw e;
	}
};

Example of module.json file

Note: The dependencies section cannot be changed.

{
    "disableAutoUpdate": false,
    "name": "dungeon-guide",
    "options": {
        "cliName": "Guide",
        "guiName": "Dungeon-Guide",
        "settingsFile": "config.json",
        "settingsMigrator": "settings_migrator.js",
        "settingsVersion": 1.01
    },
    "author": "Example",
    "description": "The dungeon guide module with TTS notifications.",
    "servers": ["https://raw.githubusercontent.com/__YOUR_REPOSITORY_HERE__/master/"],
    "dependencies": {
        "library": "https://raw.githubusercontent.com/tera-private-toolbox/library/master/module.json",
        "tera-guide-core": "https://raw.githubusercontent.com/hsdn/tera-guide-core/master/module.json"
    }
}

The settings migrator script available here: https://github.com/hsdn/tera-guide-core/wiki/Settings-migrator-script

Custom translation

If necessary, you can add your own translation of the commands, GUI and dungeon list. To do this, create a lang folder into root directory of your module, add there files strings.js and dungeons.js, and edit them to include your translation. It is recommended to use ISO code to specify the language in the string arrays.

At next edit your settings_migrator.js by changing the language parameter to specify your language code (the code must match the one specified in the guide files and files above). To specify the your language for message strings in guide files, please use the keys in format message_LANG (where LANG is the ISO code of your language), for example: message_RU.

Available guides

Based on this module, many guides have already been created for all dungeons.
The guide script files are available here: https://github.com/hsdn/tera-guide-archive/

Credits

  • Kasea - Original developer of Tera-Guide and Library modules
  • michengs - Developer of initial code of the module core
  • Multarix - Author of some ideas that were used in the code

About

[patch 92/100/115] Functional module for creating your own guides for dungeons, bosses and mechanics. Required for tera-guide like modules.

Topics

Resources

License

Stars

Watchers

Forks