• 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!

[HOT] Sublime Text TFS 1.X Auto-Completion

Jetro

jangeldev
Joined
Aug 1, 2011
Messages
452
Reaction score
68
Location
Venezuela
Hi, actually Sublime is the best code editor for programmers, ofc is available on every OS
Adding this autocompletion package to it you could do something like this:
ppWzUjTk.jpg


I added what i found on the following posts:
How to add it?
  • Open Sublime Text and go to Preferences tab
  • Select Browse Packages option
  • Open folder User
  • Make a file called tfs.sublime-completions and paste this there.
  • Done.

Changelog:
Code:
  - 30-04-15 
     Added to a github repository
     Added some missing functions found    here -> http://pastebin.com/pYWXTGBc

I hope you like it :)
 
Last edited:
Just one thing, those aren't really 1.x functions.
GetGlobalStorageValue(key) => Game.getStorageValue(key)

Use compat.lua and luascript.cpp if you want to know the actual functions 1.x uses.
 
Great, I like it.
One little thing I noticed though, there's player:eek:penChannel(channelId)
 
Example:

getGlobalStorageValue is Game.getStorageValue(key) in tfs 1.1
 
Example:

luaCreatureTeleportTo is this: creature:teleportTo(position[, pushMovement = false]
 
Same, just added some revscript autocompletes and eventcallbacks HERE
Thank you so much for the release - just from the spell example alone I am stunned. What a learning tool you've provided, time to deep-dive into the world of tfs 1.x revscripts and coding <3
 
Back
Top