Jump to content

Notepad ++ package for scripters


Kenix

Recommended Posts

Posted (edited)

1) Compiler


How to install?


Download "lua5_1_4_(YOUR OS)_bin.(zip_OR_tar.gz)" hence

http://luabinaries.sourceforge.net/download.html
Extract this file in folder C:\Program Files\Lua (this path will be used)
Next hit F5 and in window enter this command "C:\Program Files\Lua\luac5.1.exe" -s -o "$(FULL_CURRENT_PATH)c" -- "$(FULL_CURRENT_PATH)"
If you want use combination keys for compile. Click on button "Save".


2) Syntax checker (by Talidan)

One thing LuaEdit has that Notepad++ lacks is an Lua syntax checker. This lets you look for general LUA mistakes that are NOT RELATED to MTA scripting before running your script and debugging it inside MTASA. For example it will make sure the end statements balance out and your if comparison operators are valid.

luasyntaxchecker.jpg

So why use this? It saves you time by detecting silly mistakes before switching windows and going ingame, where you will get the same error messages. The general Lua syntax must be correct before your Lua script works.

You can download the files here:

myfileupload

MediaFire

OPEN THE README FOR INSTALLATION INSTRUCTIONS!

Notepad++ syntax check hax

========================

1) Extract the contents of this archive to an appropriate directory. These files need to stay somewhere for notepad++ to call upon.

2) In Notepad++, press F5, and browse to the location of syntaxcheck.bat

3) At the end of the path, add the following parameter:

"$(FULL_CURRENT_PATH)"

So, for example:

"C:\Program Files\Notepad++\syntaxcheck\syntaxcheck.bat" "$(FULL_CURRENT_PATH)"

4) Try a test run. It'll only report something if there's an error. If it works, press F5 and go ahead and press the Save button, and give it a name and optionally a shortcut key

3) Highlighting by Fro


487582__________________________________3_.png


How to install?


Copy files to directory:


plugins\MTALua.dll and plugins\FunctionList.dll in folder PROGRAM_FOLDER\plugins\
plugins\config in folder PROGRAM_FOLDER\Notepad++\plugins\config\


How do I run it?


Select Language -> MTALua


4) Auto-Completion by Buffalo (Updated by JR10)


3101261m.jpg


How to install?


Save file lua.xml in PROGRAM_FOLDER\plugins\APIs


How do I run it?


Select Language -> Lua. Please Don't forget restart notepad++ !



5) Highlighting by Fro with auto-completion by Buffalo.


How to install?


plugins\MTALua.dll and plugins\FunctionList.dll in folder PROGRAM_FOLDER\plugins\


plugins\config\ in folder PROGRAM_FOLDER\Notepad++\plugins\config\
plugins\APIs\ in folder PROGRAM_FOLDER\Notepad++\plugins\APIs\


How do I run it?


Select Language -> MTA Lua. Please Don't forget restart notepad++ !



Edited by Guest
  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
Guest Guest4401
Posted

The 3rd & 4th together didn't work for me. Any idea where I've done wrong? :|

I can use only one at a time. Is that for everyone or only for me? :|

Guest Guest4401
Posted

Ok, thanks for the info.

Posted

Highlighting by Fro is very nice, only one problem though, the function auto completion and parameter isn't working with it. Well it was helping me when I forget an argument.

So does anyone know any solution? Or an alternative? Thanks.

Posted

sorry, but I don't have a solution,

I just wanted to ask you, Where you got the MTALua.xml from?

My Notepad++ says that it can't find the MTALua.xml, and right now I'm using the Highlight From Buffalo Lua.xml

Any solutions?

Posted (edited)

Jaysds1, You wrong installed.

Okay. Who want use Buffalo auto completion and Fro highlighting.

Install

plugins\MTALua.dll and plugins\FunctionList.dll in folder PROGRAM_FOLDER\plugins\

plugins\config\ in folder PROGRAM_FOLDER\Notepad++\plugins\config\

plugins\APIs\ in folder PROGRAM_FOLDER\Notepad++\plugins\APIs\

Run

Select Language -> MTA Lua.

Don't forget restart notepad++ !

Download

Updated.

Edited by Guest
Guest Guest4401
Posted

Thanks kenix, it's working perfectly now.

Posted

This is not working for me.

I copied plugins\MTALua.dll and plugins\FunctionList.dll in folder С:\Program Files\Notepad++\plugins\

Copied plugins\config\ in folder %APPDATA%\Notepad++\plugins\config\

And copied Buffalo's lua.xml in folder %APPDATA%\Notepad++\plugins\APIs\

And I choose MTA Lua as the language, but it didn't work.

Posted

You should copy mta lua.xml but not lua.xml. ( If you want use with Fro's highlighting )

Don't forget select language MTA Lua.

Posted

I downloaded Fro's highlighting but didn't find plugins\APIs\.

And Buffallo's has one file lua.xml.

What should I exactly do? Sorry but I don't really understand what you've described.

Posted (edited)

Okay i explain more more better.

Copy all files from folder plugins\APIs\ to folder Notepad_FOLDER\plugins\APIs\

Copy all files from folder plugins\config\ to folder Notepad_FOLDER\plugins\config\

Copy all files from folder plugins\ to folder Notepad_FOLDER\plugins\

Edited by Guest
Posted

Didn't work for me until I placed it in C:\Program Files\Notepad++\plugins\APIs, not %APPDATA%.

Thanks Jaysds1.

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...