Sublime Text 3 help
#1

I setup my code for building pawn in sublime, and im getting this error whenever i try to build

Код:
[WinError 2] The system cannot find the file specified
[cmd: ['/pawno/pawncc.exe', 'new.pwn', '-;+', '-v2', '-d3', '-\\)+', '-l']]
[dir: C:\Users\Mark\Desktop\Divergent\gamemodes]
[path: C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\EgisTec MyWinLocker\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Skype\Phone\]
[Finished]
here is the build code,

Код:
{
	"cmd": ["${project_path:${folder}}/pawno/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+"],
	"working_dir": "${file_path}",
	"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
	"variants": [
		{
			"cmd": ["${project_path:${folder}}/pawno/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+", "-l"],
			"working_dir": "${file_path}",
			"name": "Preprocessed output"
		},
		{
			"cmd": ["${project_path:${folder}}/pawno/pawncc.exe", "$file_name", "-;+", "-v2", "-d3", "-\\)+", "-a"],
			"working_dir": "${file_path}",
			"name": "P-code output"
		}
	]
}
im opening the .pwn in the gamemodes folder of the server directory and thats where /pawno is located
Reply
#2

It just seems it's failing on the execution of pawncc.

https://sampforum.blast.hk/showthread.php?tid=445985

https://sampforum.blast.hk/showthread.php?tid=511195 <--- More indepth.

You'd probably find someone in those threads would be able to help directly. Mainly because if they've encountered it, they'd be able to share the knowledge to fix it.
Reply
#3

Код:
{
	"cmd": ["pawncc.exe", "-d3 -r -i includes", "$file", "-;+"],
	"path": "C:/.../pawno"
}
Change the path (ending in "/pawno"), remember to use "/" instead of "\".
Reply
#4

Your settings look like they're from my tutorial. Did you save your project in root folder?
Reply
#5

Yes i'm using your build code for the building, and ivew tried changing the path and i'm opening my .pwn straight from my server folder which has the /pawno
Reply
#6

Did you save the project (Project -> Save project as...) in the root folder? Without saved project the path will be all wrong
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)