Cuberite Forum
[Failed, horrible post] Cydia - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: [Failed, horrible post] Cydia (/thread-2026.html)

Pages: 1 2


[Failed, horrible post] Cydia - Sources - 06-29-2015

I give up, I wrote this post a couple of months ago. The content on this updated post is horrifying. My coding was horrible; I've improved. Check out my newer plugins!
[spoiler]
Cydia
now a full package, with a update manager.


Description
Cydia allows pastebin plugin insertion in-game by operators, this also allows to run lua code in-game real-time. This also comes with a update manager, that allows specified compatible plugins to notify the server on if a new version has been released, you are on the latest version, or if there is something wrong with the plugin.

Downloads
Downloads are available in the Plugin Repository. Unzip and put the contents in the plugins folder.

Source Code
Source Code is at GitHub at these repositories; CydiaLoader: https://github.com/GlassSources/CydiaLoader/
CydiaManage: https://github.com/GlassSources/CydiaManager/

Please enjoy! If there is a issue, there is a tutorial on how to report issues below.

Issue Reporting
If there is a issue, please look at the console. If CydiaManage is causing it, please report at the CydiaManage Issue Reporter. CydiaLoader is the same, but instead of the CydiaManage repository, go to the CydiaLoader repository.

Otherwise, if you cannot tell; please report the issue by replying to this topic.[/spoiler]


RE: CydiaLoader - alpha - NiLSPACE - 06-29-2015

Nice idea, though you don't need LuaSocket. You can use the cNetwork class for internet connections.


RE: CydiaLoader - alpha - xoft - 06-29-2015

Actually, you shouldn't be using LuaSocket because it's blocking, so your plugin is producing a lot of server lag, possibly even triggering the deadlock detector code.


RE: CydiaLoader - alpha - Sources - 06-30-2015

Sorry, I didn't see the cNetwork class. Fixing it!


RE: CydiaLoader - alpha - Sources - 06-30-2015

Okay, I fixed the issue.. (possibly) I won't be releasing it, before I know it's stable. Check out GitHub for the new build! (dev branch)


CydiaLoader GitHub Build 3 - Sources - 06-30-2015

This build patches a small problematic variable for the console commands.

This also adds console command compatibility to the /cydia and /luapackage command.

This is not a full release, and is only a minor edit to the development build in the development branch in the GitHub Repo. (this is just a commit update.)


RE: CydiaLoader - alpha - Sources - 06-30-2015

CydiaLoader has been updated in the dev branch from the cuberite plugin load failure and web downloader fix.

(this is a commit update.)

this is not a official release. please test, if this build is a success, it will be published!


RE: CydiaLoader - alpha - NiLSPACE - 06-30-2015

About the dev branch. You connect to a web server with "GET <Page> HTTP/1.0\r\n", so instead of
cNetwork:Connect("http://pastebin.com/index.php<everything else>", 80, Callbacks)

You use
local Page = Split[2]
local MyCallbacks = {
    OnConnected = function (a_Link)
        a_Link:Send("GET " .. Page .. " HTTP/1.0\r\n")
    end

    OnReceivedData = function (a_Link, a_Data)
        Player:SendMessage("[CYDIA] Script recieved!")
        code = a_Data
    end,

    -- Other callbacks
}
cNetwork:Connect("pastebin.com", 80, MyCallbacks)



RE: CydiaLoader - alpha - jan64 - 06-30-2015

RCE, it's not a bug, it's a feature!


RE: CydiaLoader - alpha - Sources - 06-30-2015

Releasing or (if you're from after I edited the plugin repo post) released the second version.

+ cNetwork Code Changes
- LuaSocket Requirement
+ Console Commands
+ Fixed Bugs
+ Additonal Commands

probably gonna add alias commands, if there are no suggestions...

EDIT: please also note that I have released build 4 of the gold master on the second version in GitHub.

This plugin's version management is by BUILD. (just a notification)