help with Sublime Text 3
#9

Next to the .pwn file you compile.

I use a little advanced build system:
pawn Код:
{
    "cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
    "working_dir": "${project_path:${folder}}\\gamemodes",
    "file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
    "variants": [
        {
            "cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
            "working_dir": "${project_path:${folder}}\\filterscripts",
            "name": "Filterscript"
        },
        {
            "cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-;+", "-v2", "-d3", "-\\)+"],
            "working_dir": "${file_path}",
            "name": "Current file"
        },
        {
            "cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-l", "-;+", "-v2", "-d3", "-\\)+"],
            "working_dir": "${file_path}",
            "name": "Current file preprocessed"
        },
        {
            "cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${file_name}", "-a", "-;+", "-v2", "-d3", "-\\)+"],
            "working_dir": "${file_path}",
            "name": "Current file pcode"
        }
    ]
}
This way, you can compile main gamemode (it must be in gamemodes and name same as sublime project), or you can compile currently opened file with other variant
Reply


Messages In This Thread
help with Sublime Text 3 - by MarkNelson - 02.09.2017, 12:37
Re: help with Sublime Text 3 - by Misiur - 02.09.2017, 13:04
Re: help with Sublime Text 3 - by MarkNelson - 02.09.2017, 13:11
Re: help with Sublime Text 3 - by Misiur - 02.09.2017, 13:13
Re: help with Sublime Text 3 - by MarkNelson - 02.09.2017, 13:16
Re: help with Sublime Text 3 - by Misiur - 02.09.2017, 13:18
Re: help with Sublime Text 3 - by Chilli9434 - 02.09.2017, 13:22
Re: help with Sublime Text 3 - by kAn3 - 02.09.2017, 13:28
Re: help with Sublime Text 3 - by Misiur - 02.09.2017, 13:33
Re: help with Sublime Text 3 - by MarkNelson - 02.09.2017, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)