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

mid-kid

GBAtemp spamBOT
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
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.
 

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,875
Country
United States
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?
 

Lenan

Well-Known Member
Member
Joined
Feb 1, 2015
Messages
172
Trophies
0
Age
32
XP
142
Country
Swaziland
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

Lenan

Well-Known Member
Member
Joined
Feb 1, 2015
Messages
172
Trophies
0
Age
32
XP
142
Country
Swaziland
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 :)
 

mid-kid

GBAtemp spamBOT
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country

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).
 

Lenan

Well-Known Member
Member
Joined
Feb 1, 2015
Messages
172
Trophies
0
Age
32
XP
142
Country
Swaziland
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.
 

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,875
Country
United States
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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
  • BakerMan @ BakerMan:
    guys, my fuckin headphones have an out of place speaker
  • K3Nv2 @ K3Nv2:
    Did you try wearing them?
    B @ btjunior: @Xdqwerty 16