Jump to content

Sublime Text 3 - 50p's MTA Editor (package)


50p

Recommended Posts

Are those functions updated with the new MTA 1.5?

If not, is there anyway to update them?

Thanks,

EDIT:

@Controlled,

Yes, you can hit TAB and it will auto-complete function name and in addition function parameter names, so you know what arguments function is expecting.

I will keep it up to date but I don't know interval on how often I will run my bot. I'm basically running an application which gets all the function names from the wiki and generates the content I need for Sublime Text. The problem is it has to connect to every function page on the wiki to get all the details, no matter if I already have that function in the package or not. So, that's a killer (bandwidth-wise) for wiki to get requests from my bot for all wiki pages (that's almost 1500 functions, client and server only functions as well as shared functions). MTA team doesn't add new functions every day so that's fine, I can update it from time to time.

Thanks for the comments and questions so far. I'm glad you're all liking it. Questions and suggestions are welcome.

Just noticed your comment back there, can you share that application?

Link to comment
Are those functions updated with the new MTA 1.5?

If not, is there anyway to update them?

Thanks,

EDIT:

@Controlled,

Yes, you can hit TAB and it will auto-complete function name and in addition function parameter names, so you know what arguments function is expecting.

I will keep it up to date but I don't know interval on how often I will run my bot. I'm basically running an application which gets all the function names from the wiki and generates the content I need for Sublime Text. The problem is it has to connect to every function page on the wiki to get all the details, no matter if I already have that function in the package or not. So, that's a killer (bandwidth-wise) for wiki to get requests from my bot for all wiki pages (that's almost 1500 functions, client and server only functions as well as shared functions). MTA team doesn't add new functions every day so that's fine, I can update it from time to time.

Thanks for the comments and questions so far. I'm glad you're all liking it. Questions and suggestions are welcome.

Just noticed your comment back there, can you share that application?

I agree, would love to have this updated.

Link to comment
  • 3 months later...

Hi,

I myself was wanting it updated as well, so tonight I added all the changes and additions that were missing, as well as fixed/added some things that you guys said in the comments.

I posted it on my github so its alittle easier for you all and easier to see/add changes and additions.

This doesnt mean that I've "taken over" 50p's package or anything, I just wanted it updated and made it public since others have and will want an updated version.

Link: https://github.com/alberto2345/50pSublimeText3Package

Thanks!

PS: Some things may still be missing or wrong, so if you do notice anything, let me know :)

Link to comment
Hi,

I myself was wanting it updated as well, so tonight I added all the changes and additions that were missing, as well as fixed/added some things that you guys said in the comments.

I posted it on my github so its alittle easier for you all and easier to see/add changes and additions.

This doesnt mean that I've "taken over" 50p's package or anything, I just wanted it updated and made it public since others have and will want an updated version.

Link: https://github.com/alberto2345/50pSublimeText3Package

Thanks!

PS: Some things may still be missing or wrong, so if you do notice anything, let me know :)

Keep up the good work!

Link to comment

Looks lovely and great, but i myself what loved from MTA:SE was firstly the syntax checker wich was on-air and just saved alot of time is there a way to have this on sublime?, and second, is there a way to change the font to look exactly as SE?

(Ignore the old-thrash code, it was a random lua file i got for testing)

http://i.imgur.com/oT0LGFg.png

oT0LGFg.png

EDIT: took screenshots for a step-by-step for those who need it:

Type %appdata% in the path to go directly to roaming folder, and go to sublime text 3 folder.

http://i.imgur.com/ESt2iGc.png

Packages Folder

http://i.imgur.com/8HtXheR.png

User > Unzip 50p's stuff

http://i.imgur.com/lu1SYrg.png

Open a file and select the lua syntax for MTA:SA

http://i.imgur.com/1m68NPX.png

Select the Color scheme

http://i.imgur.com/vAZ7KVt.png

Link to comment
Looks lovely and great, but i myself what loved from MTA:SE was firstly the syntax checker wich was on-air and just saved alot of time is there a way to have this on sublime?, and second, is there a way to change the font to look exactly as SE?

(Ignore the old-thrash code, it was a random lua file i got for testing)

http://i.imgur.com/oT0LGFg.png

oT0LGFg.png

EDIT: took screenshots for a step-by-step for those who need it:

Type %appdata% in the path to go directly to roaming folder, and go to sublime text 3 folder.

http://i.imgur.com/ESt2iGc.png

Packages Folder

http://i.imgur.com/8HtXheR.png

User > Unzip 50p's stuff

http://i.imgur.com/lu1SYrg.png

Open a file and select the lua syntax for MTA:SA

http://i.imgur.com/1m68NPX.png

Select the Color scheme

http://i.imgur.com/vAZ7KVt.png

I've searched for something like a syntax checker since I've also wanted on.

It only works for Lua stuff, so it wont check for missing arguments in MTA functions or anything, but you'll need to use a linter.

To install:

1) Download Lua for Windows - Link: https://code.google.com/p/luaforwindows/

2) Go to package installer in sublime text (CTRL+SHIFT+P)

3) Search for Package Control: Install Package and then press select the first one

4) Search for linter and select SublimeLinter (for me it was the second one)

5) Go back to package installer and search for Package Control: Install Package, then search for lua and find SublimeLinter-lua and install that

6) Restart Sublime Text

7) When opening a Lua file, make sure its as the Lua syntax, not Lua (MTA:SA)

From there, you should see it picking up simple errors in the code on-the-fly.

And again, make sure its set as Lua for the syntax, not the MTA one. I've tried making it work for MTA lua, but because its not an actual Syntax, I can't get it to work. If anybody knows how or has any luck getting it to work, please let everyone know!

Also, if you don't mind, can I put your installation process on the github page? Its nice and clear :)

Link to comment
UPDATE

Added Event handlers for both clientside and serverside. Download the latest from my github.

( https://github.com/alberto2345/50pSublimeText3Package )

Let me know if any issues or spelling mistakes occur!

Thanks!

Do you mind trying to get the lua syntax checker with the MTA one from 50p? (Not necesarilly detect MTA's function, but just lua and leaving it at the same time without needing to switch to the default lua syntax), and yea, you can use the images, i did them with that purpose :)

Link to comment
  • 2 months later...
  • 6 months later...
  • 2 weeks later...
  • 1 month later...
  • 5 months later...

Does anyone know if it's possible to disable adding function parameters on auto-complete? Maybe only put mandatory arguments and not put optional ones?
for example I type "outp" then press Tab and have "outputChatBox(string message)" if it's client or have "outputChatBox(string message, player target)" if server side.

Link to comment
  • 2 months later...
On 2/18/2016 at 00:16, Yazir said:

It would be nice if i could switch between client and server syntax.

Yes, that would be so nice to have different font color for server and client. Could also be nice for Notepad++. Also, when is this getting updated?

Link to comment
  • 3 weeks later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...