Re: Sublime -
Alvitr - 28.11.2016
umm..
in my case,
when i compiled with sublime,that .amx have changed.
maybe some parameter is wrong in Pawn.sublime-build i guess..? or build system wrong..
Re: Sublime -
Micko123 - 28.11.2016
Can you send me your sublime-build if you have them??
BUt with your parameters if that is not problem. I will just change it to mine
Re: Sublime -
Alvitr - 28.11.2016
sure,
this is my Pawn.sublime-build in Packages\User\
PHP код:
{
"cmd": ["${project_path:${folder}}/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
"variants": [
{
"cmd": ["${project_path:${folder}}/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+", "-l"],
"working_dir": "${file_path}",
"name": "Preprocessed output"
},
{
"cmd": ["${project_path:${folder}}/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+", "-a"],
"working_dir": "${file_path}",
"name": "P-code output"
}
]
}
and, i'm set my Project Folder at pawno document.
Re: Sublime -
Micko123 - 28.11.2016
Did you change workin_dir and cmd: ??
Re: Sublime -
Alvitr - 28.11.2016
no, everything default
if you add Project Folder ,
than everything will be ok.
cause "working_dir" will load ${file_path} (where's pwn at)
${project_path:${folder}}/pawncc.exe will load Project Folder so like
Project Folder/pawncc.exe
Re: Sublime -
Micko123 - 28.11.2016
PHP код:
{
"cmd": ["pawncc.exe", "-i includes", "$file", "-;+", "-d3", "-\\)+"],
"working_dir": "C:\\Users\\Micko\\Desktop\\MySQL\\pawno",
"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
"variants": [
{
"cmd": ["pawncc.exe", "-i includes", "$file", "-;+", "-d3", "-\\)+", "-l"],
"working_dir": "C:\\Users\\Micko\\Desktop\\MySQL\\pawno",
"name": "Preprocessed output"
},
{
"cmd": ["pawncc.exe", "-i includes", "$file", "-;+", "-d3", "-\\)+", "-a"],
"working_dir": "C:\\Users\\Micko\\Desktop\\MySQL\\pawno",
"name": "P-code output"
}
]
}
I did it like that. It is compiled as it should be but it is not affecting .amx. Only .pwn. Should I add something somewhere or should I remove something??
I don't get where to put what.. I am sorry guys for this
Re: Sublime -
Alvitr - 28.11.2016
umm..
you might not change anything with these at Pawn.sublime-build:
PHP код:
{
"cmd": ["${project_path:${folder}}/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${file_path}",
"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
"variants": [
{
"cmd": ["${project_path:${folder}}/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+", "-l"],
"working_dir": "${file_path}",
"name": "Preprocessed output"
},
{
"cmd": ["${project_path:${folder}}/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+", "-a"],
"working_dir": "${file_path}",
"name": "P-code output"
}
]
}
and do -> Project -> Add Folder to Project -> select your pawno folder.
it might work good.
final check what build system do you use at Tool -> Build System
cause when you build, it will do like pawno,
compile that pwn and make amx in same document as i know..
but maybe im fault or x___x
buy the way , you can change or add compile options at , "-;+", "-v2", "-d3", "-\\)+", "-l"],
Re: Sublime -
Micko123 - 28.11.2016
Okay I got it working finally.. It is effecting .amx
Here is the full code for Pawn.sublime-build
PHP код:
{
"cmd": ["pawncc.exe", "-d3 -r -i includes", "$file", "-;+"],
"path": "C:\\Users\\Micko\\Desktop\\MySQL\\pawno"
}
AND THIS IS THE FULL CODE YOU NEED!! Nothing else!
Re: Sublime -
Alvitr - 28.11.2016
nice job!
do you using sublime 2 ;___;?
Re: Sublime -
Micko123 - 28.11.2016
3 xD
Re: Sublime -
Alvitr - 28.11.2016
Quote:
Originally Posted by Micko123
3 xD
|
what happenedddddd
(X w X)/
but thank you, i learned something about it/
Re: Sublime -
Micko123 - 28.11.2016
Well you probably learned not to answer my posts xD
Thank you m8 for everything