HU/Resource:Editor/Plugins: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
A gyakorlatban ez lehetővé teszi a bővítmények alapvető fejlesztését, vagy lehetővé teszi a kézi kompatibilitást a külső resource-okhoz.
A gyakorlatban ez lehetővé teszi a bővítmények alapvető fejlesztését, vagy lehetővé teszi a kézi kompatibilitást a külső resource-okhoz.
== Parancsok ==
== Parancsok ==
An "import" command is exported in order to allow users to import the elements of a specified resource:
Egy "import" parancs van hozzáadva, hogy engedélyezze a felhasználók számára a megadott resource elemeinek az importálását:


<syntaxhighlight lang="lua">import <resourceName></syntaxhighlight>
<syntaxhighlight lang="lua">import <resourceName></syntaxhighlight>
Line 11: Line 11:




The elements from the resource will then be importedA practical use is for the importing of custom models.  While the editor is unable to load custom models itself, by importing models from a resource which can, a custom map can be created.  For example, the following steps could be performed in order order to modify custom map sth-aztec
Így a resource-ből az elemek importálva lesznekGyakorlati felhasználás az egyéni modellek importálásához.  While the editor is unable to load custom models itself, by importing models from a resource which can, a custom map can be created.  For example, the following steps could be performed in order order to modify custom map sth-aztec


* Start the editor
* Start the editor

Revision as of 16:02, 12 December 2018

Bevezető

Az editor funkciókat és parancsokat biztosít külső resource-ok használatával. Általában, ha az editoron kívül hozunk létre elemeket, vagy más műveleteket, akkor azok láthatatlanok, vagy nem manipulálhatóak. Az elemek importálásával az editor kompatibilis, és képes kezelni és elmeteni őket egy map resource-ba. A gyakorlatban ez lehetővé teszi a bővítmények alapvető fejlesztését, vagy lehetővé teszi a kézi kompatibilitást a külső resource-okhoz.

Parancsok

Egy "import" parancs van hozzáadva, hogy engedélyezze a felhasználók számára a megadott resource elemeinek az importálását:

import <resourceName>
  • resourceName: The name of the resource you wish to import from.


Így a resource-ből az elemek importálva lesznek. Gyakorlati felhasználás az egyéni modellek importálásához. While the editor is unable to load custom models itself, by importing models from a resource which can, a custom map can be created. For example, the following steps could be performed in order order to modify custom map sth-aztec

  • Start the editor
  • Start (Not Open) sth-aztec manually. This will start the map and load the custom models.
  • Type "import sth-aztec" and the objects will be imported into the editor
  • The map will now be loaded

Functions

The editor resource also exports an import function. This replicates the command, but also allows importing element datatypes. Essentially this allows resources to have control over importing without having to have permission from the editor itself..

bool import ( element rootElement/resource resourceToImportFrom )
  • rootElement: The root element of which you wish to import (The root itself and all children will be imported)

OR:

  • resourceToImportFrom: The resource pointer of which you wish to import.

Editor plugins

Editor Loop Generator

Loop generator working with the editor.

An example use for this is the loop generator plugin, adapted from Offroader23's work on offedit.

This resource adds custom gui which can be used to create perfect loops out of standard objects. After perfoming this, it uses the exported import function and allows the editor to manipulate them.

Download no longer available, hosted site closed.

Editor racemap loader

This plugin will load objects from your race maps without the need for conversion.

Download no longer available, hosted site closed.

Roller Coaster Generator

With this plugin, you can create easily roller coaster like maps. Learn more by clicking here.

Object Movement Generator

An attempt to help some people create moving objects (using moveObject function) more easily.

Download here