3 posts
Posted 04 December 2013 - 12:49 PM
Hello, sorry for my english.
I need help. I want to create my own API's and programs for ALL computers on server, but it's very hard to restart server after eash correction in code. I can't archive the file until I turn off the server. In version for 1.4.6 minecraft i could unzip some files to folder in mods and computer read programs and APIs in it, but now it cant.
8543 posts
Posted 04 December 2013 - 02:27 PM
That's correct, you can't unzip ComputerCraft any more. You can use files directly instead of needing to zip them if you put the files in individual computers' folders inside the world save folder. Then when you are done making changes and debugging, put your files in a correctly formatted resource pack and add it to the server and restart it.
26 posts
Location
Nether
Posted 04 December 2013 - 02:49 PM
Or, as an alternative you could create a set of networked computers, then retrieve your code from pastebin or github using an install script. Then write a push program to update all servers.
Some examples:
Installer, mine is 2 stage, and uses a config file to pull the list of files to download:
https://github.com/Timendainum/Wintermute/blob/master/install.luahttps://github.com/Timendainum/Wintermute/blob/master/opt/installer.luaConfig files:
http://pastebin.com/4gY5mnLGhttp://pastebin.com/68GLky6APush script (also uses config file):
https://github.com/Timendainum/Wintermute/blob/master/push.luaI'm using LyqydNet API for the networking portion.
This solution keeps you from having to change the server files directly, and lets you decide on what files and computers to replicate to.
3 posts
Posted 04 December 2013 - 02:58 PM
Thanks.