Objective tutorial of how to use the Plugin system:
- How the system works
- Creating a register
HOW THE SYSTEM WORKS
• Basically the script will search by register files, set up initially on the script. Then, the script will download each files and ask you, if wanna download him and with that, will install the plugins on your game.
• The positive point in use this script to install other scripts, it is the more control about install and uninstall. And principally, the more comfort for the programmer.
• All the plugins will be keep on a dir, named Plugin, inside on Data directory. All this will be registred on data file.
• On dir 'Scripts', all register will be keep on 'Plugin.rvdata2'. And, all file will be running at game
• The positive point in use this script to install other scripts, it is the more control about install and uninstall. And principally, the more comfort for the programmer.
• All the plugins will be keep on a dir, named Plugin, inside on Data directory. All this will be registred on data file.
• On dir 'Scripts', all register will be keep on 'Plugin.rvdata2'. And, all file will be running at game
CREATING A REGISTER
Well, first all, we need choose a host, to make our register. My choose is the Github or the Pastebin. But for this tutorial, we'll use the Pastebin.
The first thing we need to set up, is the main setup, i.e, the informations like name, size, author... For this, see bellow how to setup.
The first thing we need to set up, is the main setup, i.e, the informations like name, size, author... For this, see bellow how to setup.
To update the Plugin is very easy. Each time that happens a modification on the register. A new file or whatever. Just change the 'Version' to another. If is 1.0, change to 1.1.
Now we gonna setup somethings to Plugin Manager. This part isn't complete, but.... Well, check out bellow.
Now we need to setup the scripts that will be running on game. I.E, the file scripts.
You can setup a default Folder too, just like the Output. Just put> Folder: Name of Folder
link of file: you will save/upload your script file on a host and after it, will get up a downloadable link. Example: on Pastebin, after upload your file, just get up the link from 'Raw' and clip it inside of <l: clip here>
filename : There two options available for the files that will be downloaded.
First: If you put a '!' before of filename. When you download this file, will be ask if you really wanna download it.
Second: If you put a '#' before of filename. If the file exists, don't will be downloaded
! filename <l: link>
# filename <l: link>
link of file: you will save/upload your script file on a host and after it, will get up a downloadable link. Example: on Pastebin, after upload your file, just get up the link from 'Raw' and clip it inside of <l: clip here>
filename : There two options available for the files that will be downloaded.
First: If you put a '!' before of filename. When you download this file, will be ask if you really wanna download it.
Second: If you put a '#' before of filename. If the file exists, don't will be downloaded
! filename <l: link>
# filename <l: link>
Agora, podemos definir onde os outros arquivos irão. Abaixo, segue a imagem. Dentro de cada '<>', segue o mesmo principio que o '<file>'.
Now, we can setup all ther fields. Bellow, follow the picture. Inside of each '<>', follow the same principle that '<file>'
Now, we can setup all ther fields. Bellow, follow the picture. Inside of each '<>', follow the same principle that '<file>'
Basically, is it. After all it, create the file, in this case on Pastebin. Then, we gonna create our register file. Now, we should registred this file on Plugin script.
On script, in first lines where is the 'Linig.setup[:registerPlugin]'. We gonna create a new register
Make a Array inside of 'Linig.setup[:registerPlugin]', we gonna setup like this:
On script, in first lines where is the 'Linig.setup[:registerPlugin]'. We gonna create a new register
Make a Array inside of 'Linig.setup[:registerPlugin]', we gonna setup like this:
:plugin_name : the register name. Always on Symbol type.
"author": the author name. Always on String type.
0.0: here is the version. 0.0 is default to download the current version. For instance, you set up 2.0, just will download the version 2.0 or more.
endereço: Here we gonna put the register link. How we create this on Pastebin, just get up the link on 'Raw' and clip here.
"author": the author name. Always on String type.
0.0: here is the version. 0.0 is default to download the current version. For instance, you set up 2.0, just will download the version 2.0 or more.
endereço: Here we gonna put the register link. How we create this on Pastebin, just get up the link on 'Raw' and clip here.
Now, just run your project.