• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OpenTibia Sublime Text 3 - Lua TFS Autocomplete

I have added your edited version to the OTLand Cloud :)
While I would always recommend people to check on GitHub first (in order to get the latest commit), I thought it wouldn't be bad keeping it in the cloud. Just in case one of the GitHub links breaks, or is discontinued. Afterall the OTLand Cloud is meant to be an OT-file Archieve.

http://***************/?dl=384e8b2a9ef753ffe32e4842911d2037

Not to be mean but do you really think OTland Cloud will last longer than Github?
That being said, feel free to host it anywhere, p
Hey @Syntax
I have made some changes: https://gist.github.com/felzan/16f636644e421ca2f687
-removed duplicated snippets
-added almost everything functions from libs
-last param at new line
-alphabetical order

Awesome, I merged them into the origin gist. I thought this thread was going to die so I haven't bothered with updates. :p
 
@Syntax That I do not know for sure. But what I do know is that I have followed quite some OTS project related github links and got a "not found" error, due to the owner simply deleting the repository as the project was discontinued anyway :) By no means do I wish for you to discontinue this awesome project :)
 
@Syntax That I do not know for sure. But what I do know is that I have followed quite some OTS project related github links and got a "not found" error, due to the owner simply deleting the repository as the project was discontinued anyway :) By no means do I wish for you to discontinue this awesome project :)

Ah gotcha. Well I will discontinue any updates one day, but I won't remove it ;)
 
Does anyone have this for TFS 0.4?

Here are the sources that I used to generate these files:

It also generates autocomplete files for Visual Studio Code (not tested)
You have to collect the functions from the source code and update lua-functions.txt
 
Ohh, this is awesome! :)
 
How does this work i have added the package and enabled just not to sure what it does?

If i open a file say from 0.3.6 would it convert it tfs 1.* automatically?

It has nothing to do with migrating things automatically.

It is just an auto completition and suggestion tool, so if you type player: it will show you the possibilities.

aa.png
 
Does this work on visual studio code? If yes can you tell me how to install it there? <3
 
Does this work on visual studio code? If yes can you tell me how to install it there? <3

There is code to generate VSCode snippets but I never fully tested it or used it at the time.
I do use VSCode as my main editor now, if I have time soon I'll make an extension.
 
There is code to generate VSCode snippets but I never fully tested it or used it at the time.
I do use VSCode as my main editor now, if I have time soon I'll make an extension.

If you'd like to collaborate on that, I think it would be nice to make a nice OpenTibia-specific build of Theia. Ideally there would be custom syntax coloring based on Server Distro/Version, with separate colors for Lua Built-ins, C-bound OT functions, the Revscript Classes like Creature Player Position etc, /data global libs defined functions, and compat.lua shims, and GLOBALS. There is a couple of Chinese devs that have made some pretty advanced Lua extensions that could be packaged by default, and there is a buffet of goodies that could be raided from ZeroBrane.
 
Last edited:
If you'd like to collaborate on that, I think it would be nice to make a nice OpenTibia-specific build of Theia. Ideally there would be custom syntax coloring based on Server Distro/Version, with separate colors for Lua Built-ins, C-bound OT functions, /data global libs defined functions, and compat.lua shims, and GLOBALS. There is a couple of Chinese devs that have made some pretty advanced Lua extensions that could be packaged by default, and there is a buffet of goodies that could be raided from ZeroBrane.

I've been thinking about that. The extension you're talking about is Lua - Visual Studio Marketplace (https://marketplace.visualstudio.com/items?itemName=sumneko.lua) I believe.
I use it and it's pretty awesome, the language server is pretty advanced.

I've been thinking about something like that. There's a few ways to play it...
Either an extension for Theia/VSCode, a fork, or an entirely separate editor like rxi/lite (https://github.com/rxi/lite).

Most likely it'll start out as an extension, then get packaged in an optional forked editor when it gets polished enough.
While a packaged editor is great for new developers, I don't think existing programmers will want to download another editor, especially when the extension can do everything.
 
Last edited:
I think the Theia foundation is ideal since it's basically the Eclipse people took vscode and rebuilt it from the ground up, slapped a truly free license on it, and made it able to consume native VSCode extensions. So it's free to rebrand and customize, but users that can't live without "x" feature from a VS Code extension won't lose it.
 
I think the Theia foundation is ideal since it's basically the Eclipse people took vscode and rebuilt it from the ground up, slapped a truly free license on it, and made it able to consume native VSCode extensions. So it's free to rebrand and customize, but users that can't live without "x" feature from a VS Code extension won't lose it.

VSCode has an MIT license so I really don't know what you mean by "truly free".
Yes there's telemetry in VSCode but VSCodium addresses that (or you can turn it of in VSCode).

In my honest opinion, Theia is just Eclipse stealing VSCode trying to make itself relevant in the IDE sphere again after charging enormously for their IDE's. They missed their chance in my book.

I'll make an extension that is compatible with both and possibly a packaged editor, but I doubt I'll use Theia.
 

Ahaha, no. The concept is ok, but the execution dances like a drunk rhino. After recursively debugging issues with their build scripts to determine an ideal way to package an actual build myself (vs using their binaries) and winding up with a 900MB AppImage package (it grabbed the entire chroot), even though it had already made both a deb and an rpm, I pondered wtf I was doing, gave up, and fabricated a much simpler route myself.

after charging enormously
Not familiar. I also searched. Citation would be lovely? As far as I know Eclipse has never had any sort of enterprise pricing scheme.

707871201137000508.png

packaged editor
I guess that's my point here. Theia isn't an IDE. It's a toolkit to fabricate them. That makes it seem like the right tool for the job.
 
Back
Top