Raised This Month: $51 Target: $400
 12% 

Sublime Text 2


Post New Thread Reply   
 
Thread Tools Display Modes
Baws
Veteran Member
Join Date: Oct 2012
Old 06-15-2014 , 01:27   Re: Sublime Text 2
Reply With Quote #21

I'm using Windows 7.
Will you be able to do a full tutorial on how to use it? Like for example every step in a video or something?
It would be amazing.
__________________
Like my clean plugins and work?
Baws is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-20-2014 , 09:49   Re: Sublime Text 2
Reply With Quote #22

I couldn't get KliPPy's build to work and not the error matching regex either.
For anyone interested, here's what I ended up with:

Update: I fixed the scope in this one so you can use the automatic selection of build system.
You obviously have to switch out some folders.

PAWN.sublime-build
Code:
{
	"cmd": [
		// Executable
		"N:/Nerladdat/! Spel/CS/! Scripting/amxxpc.exe",

		// Include folders
		"-iN:/Nerladdat/! Spel/CS/! Scripting/include/Original",
		"-iN:/Nerladdat/! Spel/CS/! Scripting/include/Custom",
		"-iN:/Nerladdat/! Spel/CS/! Scripting/include/Custom/Rose",
		"-iN:/Nerladdat/! Spel/CS/! Scripting/include/Custom/Orpheu",
		"-iN:/Nerladdat/! Spel/CS/! Scripting/include/Custom/UWC3",
		"-iN:/Nerladdat/! Spel/CS/! Scripting/include/Custom/ZP",

		// Output file
		"-oX:/SteamCMD/steamapps/common/CS 1.6 - Test/cstrike/addons/amxmodx/plugins/${file_base_name}.amxx",

		// Input file
		"${file}"
	],

	"file_regex": "^.*[\\/\\\\]+(.+)\\(([0-9]+ ?.*)\\) : (.*)",
	"working_dir" : "$file_path",
	"selector" : "source.pawn"
}
sourcepawn.sublime-build
Code:
{
	"cmd": [
		// Executable
		"N:/Nerladdat/! Spel/CS/! Scripting/! Source/spcomp.exe",

		// Include folders
		"-iN:/Nerladdat/! Spel/CS/! Scripting/! Source/include/Original",
		"-iN:/Nerladdat/! Spel/CS/! Scripting/! Source/include/Custom",

		// Output file
		"-oX:/SteamCMD/steamapps/common/CSGO - Test/csgo/addons/sourcemod/plugins/${file_base_name}.smx",

		// Input file
		"${file}"
	],

	"file_regex": "^.*[\\/\\\\]+(.+)\\(([0-9]+ ?.*)\\) : (.*)",
	"working_dir" : "$file_path",
	"selector" : "source.sp"
}
__________________

Last edited by Black Rose; 02-19-2018 at 15:52.
Black Rose is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-20-2014 , 11:21   Re: Sublime Text 2
Reply With Quote #23

This is mine:
Code:
{
	"cmd": ["compile.exe", "$file"],
	"path": "MYPATH/cstrike/addons/amxmodx/scripting"
}
Picture:

It uses all the files from include folder in "MYPATH/cstrike/addons/amxmodx/scripting/include/"
Output is located in "MYPATH/cstrike/addons/amxmodx/scripting/compiled" as usually.

Last edited by OvidiuS; 06-20-2014 at 11:23.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-20-2014 , 12:50   Re: Sublime Text 2
Reply With Quote #24

But then you can't goto line with an error by double clicking them or pressning F4.
By using file_regex you can do that.
__________________

Last edited by Black Rose; 06-20-2014 at 12:51.
Black Rose is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 06-20-2014 , 14:00   Re: Sublime Text 2
Reply With Quote #25

Why there's no syntax PAWN in my sublime 2?
I have all the files required. It compiles but the syntax isn't there.
__________________
Like my clean plugins and work?

Last edited by Baws; 06-20-2014 at 14:04.
Baws is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-20-2014 , 16:46   Re: Sublime Text 2
Reply With Quote #26

Did you select that syntax from the list at the bottom right? To fully enable the highlighter you need to edit the themes.
__________________
Black Rose is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 06-20-2014 , 23:17   Re: Sublime Text 2
Reply With Quote #27

Okay done thanks.

Ovidius, can you share the color theme?
__________________
Like my clean plugins and work?
Baws is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-21-2014 , 00:33   Re: Sublime Text 2
Reply With Quote #28

Quote:
Originally Posted by Baws View Post
Okay done thanks.

Ovidius, can you share the color theme?
Mine color theme is called nexus.
ps. You have to add pawn.tmLanguage.

Quote:
Originally Posted by Black Rose View Post
But then you can't goto line with an error by double clicking them or pressning F4.
By using file_regex you can do that.
Ah, i see.. good to know ;)
I "never" used amxx studio so i didn't even know that feature exists.

Last edited by OvidiuS; 06-21-2014 at 00:35.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-21-2014 , 00:40   Re: Sublime Text 2
Reply With Quote #29

Quote:
Originally Posted by OvidiuS View Post
I "never" used amxx studio so i didn't even know that feature exists.
I don't know if it exists in AMXX Studio, but in NP++ it does (which I assume is what you used instead?).
__________________

Last edited by Black Rose; 06-21-2014 at 00:40.
Black Rose is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-21-2014 , 00:44   Re: Sublime Text 2
Reply With Quote #30

Quote:
Originally Posted by Black Rose View Post
I don't know if it exists in AMXX Studio, but in NP++ it does (which I assume is what you used instead?).
Yep i used NP++, still haven't used that feature.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode