Installation de ScriptCraft

Installation de ScriptCraft.

1) Répertoire de travail :

[~] ➔ mkdir -p JEUX/MINECRAFT.js/Serveur
[~] ➔ cd JEUX/MINECRAFT.js/Serveur/
[~/JEUX/MINECRAFT.js/Serveur] ➔ 

2) Téléchargement du CanaryMod :

[~/JEUX/MINECRAFT.js/Serveur] ➔ wget https://canarymod.net/releases/CanaryMod-1.7.10-1.1.3.jar

3) Lancement du serveur :

[~/JEUX/MINECRAFT.js/Serveur] ➔ java -jar CanaryMod-1.7.10-1.1.3.jar 
Please wait while the libraries initialize...
Starting: CanaryMod 1.7.10-1.1.3
Canary Path: /home/util01/JEUX/MINECRAFT.js/Serveur/CanaryMod-1.7.10-1.1.3.jar & Working From: /home/util01/JEUX/MINECRAFT.js/Serveur
Could not find the server configuration at config/server.cfg, creating default.
Could not find the database configuration at config/db.cfg, creating default.
Registered xml Database
Could not find config/ops.cfg. Creating one for you...
You can now add ops to config/ops.cfg (one per line!). We left you a note.
Failed to scan for plugins. 'plugins/' is not a directory. Creating...
[23:08:28] [CanaryMod] [INFO]: Starting: CanaryMod 1.7.10-1.1.3
[23:08:28] [CanaryMod] [INFO]: Canary Path: /home/util01/JEUX/MINECRAFT.js/Serveur/CanaryMod-1.7.10-1.1.3.jar & Working From: /home/util01/JEUX/MINECRAFT.js/Serveur
[23:08:28] [CanaryMod] [INFO]: Could not find the server configuration at config/server.cfg, creating default.
[23:08:28] [CanaryMod] [INFO]: Could not find the database configuration at config/db.cfg, creating default.
[23:08:29] [CanaryMod] [INFO]: Registered xml Database
[23:08:29] [CanaryMod] [INFO]: Could not find config/ops.cfg. Creating one for you...
[23:08:29] [CanaryMod] [INFO]: You can now add ops to config/ops.cfg (one per line!). We left you a note.
[23:08:29] [CanaryMod] [WARN]: Failed to scan for plugins. 'plugins/' is not a directory. Creating...
[23:08:29] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Starting minecraft server version 1.7.10
[23:08:29] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Loading properties
[23:08:29] [net.minecraft.server.ServerEula] [WARN]: Failed to load eula.txt
[23:08:29] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
[23:08:29] [net.minecraft.server.MinecraftServer] [INFO]: Stopping server
[23:08:29] [net.minecraft.server.MinecraftServer] [INFO]: Saving worlds
[23:08:29] [CanaryMod] [INFO]: Disabling Plugins ...
> [23:08:29] [net.minecraft.server.MinecraftServer] [INFO]: Stopping server
[23:08:29] [net.minecraft.server.MinecraftServer] [INFO]: Saving worlds
[23:08:29] [CanaryMod] [INFO]: Disabling Plugins ...

4) Acception du EULA :

Ouvrir :

eula.txt 

Chercher :

eula=false

Remplacer :

eula=true

5) Redémarrage du serveur :

[~/JEUX/MINECRAFT.js/Serveur] ➔ java -jar CanaryMod-1.7.10-1.1.3.jar 
Please wait while the libraries initialize...
Starting: CanaryMod 1.7.10-1.1.3
Canary Path: /home/util01/JEUX/MINECRAFT.js/Serveur/CanaryMod-1.7.10-1.1.3.jar & Working From: /home/util01/JEUX/MINECRAFT.js/Serveur
Registered xml Database
Found 0 plugins; total: 0
> [23:09:42] [CanaryMod] [INFO]: Starting: CanaryMod 1.7.10-1.1.3
[23:09:42] [CanaryMod] [INFO]: Canary Path: /home/util01/JEUX/MINECRAFT.js/Serveur/CanaryMod-1.7.10-1.1.3.jar & Working From: /home/util01/JEUX/MINECRAFT.js/Serveur
[23:09:42] [CanaryMod] [INFO]: Registered xml Database
[23:09:42] [CanaryMod] [INFO]: Found 0 plugins; total: 0
[23:09:42] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Starting minecraft server version 1.7.10
[23:09:42] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Loading properties
[23:09:42] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Generating keypair
[23:09:43] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Starting Minecraft server on *:25565
[23:09:43] [CanaryMod] [INFO]: Could not find the world configuration for default_NORMAL at config/worlds/default, creating default.
[23:09:43] [CanaryMod] [INFO]: Enabling Plugins...
[23:09:43] [net.minecraft.server.MinecraftServer] [INFO]: Preparing start region for level default
[23:09:44] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 5%
[23:09:45] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 10%
[23:09:46] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 16%
[23:09:47] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 23%
[23:09:49] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 30%
[23:09:50] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 38%
[23:09:51] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 48%
[23:09:52] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 56%
[23:09:53] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 65%
[23:09:54] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 71%
[23:09:55] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 80%
[23:09:56] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 90%
[23:09:57] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 99%
[23:09:57] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Done (14,202s)! For help, type "help" or "?"
> 

6) Arrêt du serveur :

> stop
[23:12:30] [CanaryMod] [INFO] [NOTICE]: Console issued a manual shutdown
[23:12:30] [net.minecraft.server.MinecraftServer] [INFO]: Stopping server
[23:12:30] [net.minecraft.server.MinecraftServer] [INFO]: Saving players
[23:12:30] [net.minecraft.server.MinecraftServer] [INFO]: Saving worlds
[23:12:30] [net.minecraft.server.MinecraftServer] [INFO]: Saving chunks for level 'default'/Overworld
[23:12:30] [CanaryMod] [INFO]: Disabling Plugins ...
> [23:12:30] [net.minecraft.server.MinecraftServer] [INFO]: Stopping server
[23:12:30] [net.minecraft.server.MinecraftServer] [INFO]: Saving players
[23:12:30] [net.minecraft.server.MinecraftServer] [INFO]: Saving worlds
[23:12:30] [net.minecraft.server.MinecraftServer] [INFO]: Saving chunks for level 'default'/Overworld
[23:12:30] [CanaryMod] [INFO]: Disabling Plugins ...
[~/JEUX/MINECRAFT.js/Serveur] ➔

7) Installation l’extension ScriptCraft :

[~/JEUX/MINECRAFT.js/Serveur] ➔ cd plugins/
[~/JEUX/MINECRAFT.js/Serveur/plugins] ➔ wget http://scriptcraftjs.org/download/latest/scriptcraft-3.2.0/scriptcraft.jar
[~/JEUX/MINECRAFT.js/Serveur/plugins] ➔ cd ..
[~/JEUX/MINECRAFT.js/Serveur] ➔ 

8) Configuration du serveur :

Ouvrir :

config/worlds/default/default_NORMAL.cfg

Chercher :

gamemode=0

Remplacer par :
# Creative mode

gamemode=1

Chercher :

online-mode=true

Remplacer par :

online-mode=false

9) Redémarrage du serveur :

[~/JEUX/MINECRAFT.js/Serveur] ➔ java -jar CanaryMod-1.7.10-1.1.3.jar 
Please wait while the libraries initialize...
Starting: CanaryMod 1.7.10-1.1.3
Canary Path: /home/util01/JEUX/MINECRAFT.js/Serveur/CanaryMod-1.7.10-1.1.3.jar & Working From: /home/util01/JEUX/MINECRAFT.js/Serveur
Registered xml Database
Found 1 plugins; total: 1
[23:16:28] [CanaryMod] [INFO]: Starting: CanaryMod 1.7.10-1.1.3
[23:16:28] [CanaryMod] [INFO]: Canary Path: /home/util01/JEUX/MINECRAFT.js/Serveur/CanaryMod-1.7.10-1.1.3.jar & Working From: /home/util01/JEUX/MINECRAFT.js/Serveur
[23:16:28] [CanaryMod] [INFO]: Registered xml Database
[23:16:28] [CanaryMod] [INFO]: Found 1 plugins; total: 1
[23:16:29] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Starting minecraft server version 1.7.10
[23:16:29] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Loading properties
[23:16:29] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Generating keypair
[23:16:29] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Starting Minecraft server on *:25565
[23:16:29] [CanaryMod] [INFO]: Enabling Plugins...
[23:16:30] [ScriptCraft] [INFO]: Directory /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft does not exist.
[23:16:30] [ScriptCraft] [INFO]: Initializing /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft directory with contents from plugin archive.
[23:16:31] [ScriptCraft] [INFO]: Unzipping /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft/lib/command.js (NE)
[23:16:31] [ScriptCraft] [INFO]: Unzipping /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft/lib/console.js (NE)
[23:16:31] [ScriptCraft] [INFO]: Unzipping /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft/lib/events-bukkit.js (NE)
...
[23:16:33] [ScriptCraft] [INFO]: Unzipping /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft/modules/utils/package.json (NE)
[23:16:33] [ScriptCraft] [INFO]: Unzipping /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft/modules/utils/string-exts.js (NE)
[23:16:33] [ScriptCraft] [INFO]: Unzipping /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft/modules/utils/utils.js (NE)
[23:16:33] [ScriptCraft] [INFO]: Unzipping /home/util01/JEUX/MINECRAFT.js/Serveur/scriptcraft/modules/watcher.js (NE)
[23:16:35] [ScriptCraft] [WARN]: cow-clicker minigame is not yet supported in CanaryMod and Craftbukkit
[23:16:35] [ScriptCraft] [WARN]: commando plugin is not yet supported in CanaryMod
[23:16:35] [ScriptCraft] [WARN]: commando-test not yet supported in CanaryMod
[23:16:36] [ScriptCraft] [WARN]: alias plugin is not yet supported in CanaryMod
[23:16:36] [net.minecraft.server.MinecraftServer] [INFO]: Preparing start region for level default
[23:16:37] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 29%
[23:16:38] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Done (8,639s)! For help, type "help" or "?"
[23:16:38] [ScriptCraft] [INFO]: js-patch setTimeout() test complete
> 

9) Lancement du client Minecraft 1.7.10 :

[~] ➔ cd JEUX/MINECRAFT.js/Client/
[~/JEUX/MINECRAFT.js/Client] ➔ java -Xmx2048M -Xms2048M -jar Minecraft.jar

10) Rejoindre le serveur Canary

[Multijoueur]
[Connexion rapide]
– Adresse du serveur : localhost
[Rejoindre]

11) Donner l’accès ‘operator‘ à l’utilisateur :

– A partir du serveur :

> op Nekrofage
[23:20:55] [CanaryMod] [INFO]: [SERVER] Opped Nekrofage

12) Activation de ‘Creative mode’ :

– A partir du client :

/gamemode 1

13) Tests :

– A partir du client :

* Calcul simple :

/js 1+1
"2"

* Affichage de l’heure :

/js echo(self, new Date() )
Sun Apr 03 2016 23:30:16 GMT+0200 (CEST)

– A partir du serveur :

* Calcul simple :

> /js 1+1
[23:29:01] [CanaryMod] [INFO] [MESSAGE]: "2"

* Affichage de l’heure :

> /js echo( self, new Date() )
[23:29:33] [CanaryMod] [INFO] [MESSAGE]: Sun Apr 03 2016 23:29:33 GMT+0200 (CEST)

14) Arrêt/Démarrage du serveur :

> stop
[23:12:30] [CanaryMod] [INFO] [NOTICE]: Console issued a manual shutdown
...
[23:12:30] [CanaryMod] [INFO]: Disabling Plugins ...
[~/JEUX/MINECRAFT.js/Serveur] ➔ java -jar CanaryMod-1.7.10-1.1.3.jar 
Please wait while the libraries initialize...
Starting: CanaryMod 1.7.10-1.1.3
Canary Path: /home/util01/JEUX/MINECRAFT.js/Serveur/CanaryMod-1.7.10-1.1.3.jar & Working From: /home/util01/JEUX/MINECRAFT.js/Serveur
Registered xml Database
Found 1 plugins; total: 1
[00:09:27] [CanaryMod] [INFO]: Starting: CanaryMod 1.7.10-1.1.3
[00:09:27] [CanaryMod] [INFO]: Canary Path: /home/util01/JEUX/MINECRAFT.js/Serveur/CanaryMod-1.7.10-1.1.3.jar & Working From: /home/util01/JEUX/MINECRAFT.js/Serveur
[00:09:27] [CanaryMod] [INFO]: Registered xml Database
[00:09:27] [CanaryMod] [INFO]: Found 1 plugins; total: 1
[00:09:28] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Starting minecraft server version 1.7.10
[00:09:28] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Loading properties
[00:09:28] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Generating keypair
[00:09:29] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Starting Minecraft server on *:25565
[00:09:30] [CanaryMod] [INFO]: Enabling Plugins...
[00:09:35] [ScriptCraft] [WARN]: cow-clicker minigame is not yet supported in CanaryMod and Craftbukkit
[00:09:35] [ScriptCraft] [WARN]: commando plugin is not yet supported in CanaryMod
[00:09:35] [ScriptCraft] [WARN]: commando-test not yet supported in CanaryMod
[00:09:35] [ScriptCraft] [WARN]: alias plugin is not yet supported in CanaryMod
[00:09:36] [net.minecraft.server.MinecraftServer] [INFO]: Preparing start region for level default
[00:09:37] [net.minecraft.server.MinecraftServer] [INFO]: Preparing spawn area: 77%
[00:09:37] [net.minecraft.server.dedicated.DedicatedServer] [INFO]: Done (8,036s)! For help, type "help" or "?"
[00:09:37] [ScriptCraft] [INFO]: js-patch setTimeout() test complete
> 

15) Capture d’écran :

– Exemple : Affichage de l’heure

Capture du 2016-04-04 00:18:38

Capture du 2016-04-04 00:19:06

16) Liens :

http://scriptcraftjs.org/
https://github.com/walterhiggins/ScriptCraft

Leave a Reply

You must be logged in to post a comment.