Homebrew Sublime Text 3 for Homebrew?

how could I setup Sublime text 3 to compile .3dsx files.

  • How to set up sublime text

    Votes: 0 0.0%
  • how to use a compiler to make .3dsx files

    Votes: 2 100.0%

  • Total voters
    2
Can't you just ask it to run some BASH? (or even do it yourself, that would only be a file to run)
 
Hey all! I was wondering how or if I could setup Sublime text 3 to compile .3dsx files.

Since when has the choice of a text editor mattered in development of any kind? (Except where a specialized IDE is used: see Unity3d)
Just open a terminal and run "make" there, or create a shortcut for that command with your editor.
 
Have used sublime text to edit the c files, but i think Netbeans comes in handier,
 
Since when has the choice of a text editor mattered in development of any kind? (Except where a specialized IDE is used: see Unity3d)
Just open a terminal and run "make" there, or create a shortcut for that command with your editor.

I want to build from sublime text directly to the Citra emulator for testing. Which you can't do in any specific compiler (Netbeans) for example. Or can you?
 
You can, add this to your makefile after all:/clean: section

Code:
run:
    @ echo run ...
    PathToCitra\citra.exe $(TARGET).smdh

remove the space between @ and echo (I'm too dumb to figure out how to escape in this forum lol)
 
  • Like
Reactions: JustPingo
Ok just retested it on windows, there are some errors and missing stuff in my previous post.
Here is an update instruction:

1. in your makefile add.
Code:
run:
    PathToCitra\citra.exe $(TARGET).elf //If you're using Windows
    open -a Citra $(TARGET).elf //If you're using Linux/Mac.

NetBeans only:
2. Right click your project -> properties -> run -> and in the run command field write : make run

Sublime Text 3:
1. Tools -> Build System -> New Build System
2. Replace existing code with:
Code:
//Assuming you work from a source folder within your project. Else, you have to tweak "-C .."
{
    "cmd": "make -C ..",
 
    "variants":
    [
        {
        "name": "Run",
        "cmd": "make run -C .."
        },
       
        {
        "name": "Clean",
        "cmd": "make clean -C .."
        },
 
    ]
}
3. Save it as 3DS (or whatever)
4. Open your source file
5. Tools -> Build System -> 3DS (or whatever)

You can now build/run from the tools tab and you will find all options in the command palette (CTRL+Shift+P)

Hope that helps :)
 

I'm not really for adding a run target in the makefile, because it's too platform- and installation-dependent. Just do something like "make && path/to/citra thing" on the cmd line (again, this differs per platform and text editor).
 
I'm not really for adding a run target in the makefile, because it's too platform- and installation-dependent. Just do something like "make && path/to/citra thing" on the cmd line (again, this differs per platform and text editor).

Yeah, but he asked how to do it directly with sublime and/or netbeans.
 
Ok just retested it on windows, there are some errors and missing stuff in my previous post.
Here is an update instruction:

1. in your makefile add.
Code:
run:
    PathToCitra\citra.exe $(TARGET).elf //If you're using Windows
    open -a Citra $(TARGET).elf //If you're using Linux/Mac.

NetBeans only:
2. Right click your project -> properties -> run -> and in the run command field write : make run

Sublime Text 3:
1. Tools -> Build System -> New Build System
2. Replace existing code with:
Code:
//Assuming you work from a source folder within your project. Else, you have to tweak "-C .."
{
    "cmd": "make -C ..",
 
    "variants":
    [
        {
        "name": "Run",
        "cmd": "make run -C .."
        },
     
        {
        "name": "Clean",
        "cmd": "make clean -C .."
        },
 
    ]
}
3. Save it as 3DS (or whatever)
4. Open your source file
5. Tools -> Build System -> 3DS (or whatever)

You can now build/run from the tools tab and you will find all options in the command palette (CTRL+Shift+P)

Hope that helps :)
Thank you. I will try this as soon as I can.
 

Site & Scene News

Popular threads in this forum