Visual Studio Code Setup With DevKitPro and libnds

One line of code makes all the difference.

Talk about any games you have, and disscus any tips, secrets, or unlockables you might have!
Post Reply
User avatar
Artisan
Verified


RPG Character: Floride The Hedgehog
Moderator
Moderator
Brand New Member
Brand New Member
Posts: 197
Joined: January 5th, 2022, 14:44
2
Mood:
Has thanked: 9 times
Been thanked: 1091 times
Gender:
    Windows 10 Edge

Formula 1 WebTip
Formula 1 points : 100
20. Place
(1 of 10 races tipped so far)
United States of America

Defeat Visual Studio Code Setup With DevKitPro and libnds

#9228

Unread post by Artisan »

[youtube]https://www.youtube.com/watch?v=YIB7mIlESTg[/youtube]

My setup.
{

"workbench.colorTheme": "Quiet Light",
"window.zoomLevel": -1,

"cmake.configureArgs": ["-DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/NDS.cmake"]
}

Another bridge was made. All you have to do is run a CMake build command in Visual Studio Code, which will run on DS using a Flashcard or homebrew DSi/3DS family of systems. It is provided that the code is in C/C++. Have fun coding!

EDIT: You will need the C/C++ and CMake extensions.
Last edited by Artisan on March 9th, 2024, 11:08, edited 1 time in total! word count: 85
:bananadance: The OG really know how to make a sandwich I tell ya w'hut :bananadance: Image
User avatar
Artisan
Verified


RPG Character: Floride The Hedgehog
Moderator
Moderator
Brand New Member
Brand New Member
Posts: 197
Joined: January 5th, 2022, 14:44
2
Mood:
Has thanked: 9 times
Been thanked: 1091 times
Gender:
    Windows 10 Edge

Formula 1 WebTip
Formula 1 points : 100
20. Place
(1 of 10 races tipped so far)
United States of America

Re: Visual Studio Code Setup With DevKitPro and libnds

#9248

Unread post by Artisan »

Side note. cmake.configureArgs is depreciated so instead replace that with cmake.configureSettings. Visual Studio gives you the grammatical squiggles as what is put in isn't an object, but it says it's fine since this is a kit. If anyone knows the solution in the form of a [key:value] pair for this same application, that would be great!
word count: 61
:bananadance: The OG really know how to make a sandwich I tell ya w'hut :bananadance: Image
User avatar
Artisan
Verified


RPG Character: Floride The Hedgehog
Moderator
Moderator
Brand New Member
Brand New Member
Posts: 197
Joined: January 5th, 2022, 14:44
2
Mood:
Has thanked: 9 times
Been thanked: 1091 times
Gender:
    Windows 10 Edge

Formula 1 WebTip
Formula 1 points : 100
20. Place
(1 of 10 races tipped so far)
United States of America

Re: Visual Studio Code Setup With DevKitPro and libnds

#9381

Unread post by Artisan »

I went into settings and set the configureArgs the same way and it doesn't show any errors. I think the CompilerPath is fine if set to empty. I put in the includes to the files anyway. When I set something to the CompilerPath I got a message saying it's using cl.exe instead of the include path for NDS.cmake. I'm just going to assume it works but if it doesn't I'll be back on this thread to let you know.
word count: 86
:bananadance: The OG really know how to make a sandwich I tell ya w'hut :bananadance: Image
User avatar
Artisan
Verified


RPG Character: Floride The Hedgehog
Moderator
Moderator
Brand New Member
Brand New Member
Posts: 197
Joined: January 5th, 2022, 14:44
2
Mood:
Has thanked: 9 times
Been thanked: 1091 times
Gender:
    Windows 10 Edge

Formula 1 WebTip
Formula 1 points : 100
20. Place
(1 of 10 races tipped so far)
United States of America

Re: Visual Studio Code Setup With DevKitPro and libnds

#9419

Unread post by Artisan »

I've been getting include errors. So rule 1: Make sure the compiler path is correct (I ended up not leaving it blank). Rule 2: Double-check your path settings. By the time you are done, no more #include errors. #include <nds.h> shouldn't have squiggles. If there's an error with including "files" attached to it, they do not exist yet. You cannot use <iostream> on nds games!
VSCode Settings DS Dev.txt
HEY! You can’t view this file! But there might be other files that you can view though!
word count: 75
:bananadance: The OG really know how to make a sandwich I tell ya w'hut :bananadance: Image
User avatar
Demon_skeith
Verified
Co-Administrator
Co-Administrator
Freshman Member
Freshman Member
Posts: 245
Joined: December 23rd, 2020, 3:35
3
Referrals: 9
Has thanked: 1 time
Been thanked: 1521 times
    Windows 10 Firefox

Formula 1 WebTip
Formula 1 points : 0
No ranking
(0 of 10 races tipped so far)
Nintendo 3DS Central

Re: Visual Studio Code Setup With DevKitPro and libnds

#9475

Unread post by Demon_skeith »

So is this for making a DS into a homebrew device?
word count: 11
User avatar
Artisan
Verified


RPG Character: Floride The Hedgehog
Moderator
Moderator
Brand New Member
Brand New Member
Posts: 197
Joined: January 5th, 2022, 14:44
2
Mood:
Has thanked: 9 times
Been thanked: 1091 times
Gender:
    Windows 10 Edge

Formula 1 WebTip
Formula 1 points : 100
20. Place
(1 of 10 races tipped so far)
United States of America

Re: Visual Studio Code Setup With DevKitPro and libnds

#9550

Unread post by Artisan »

Demon_skeith wrote: April 15th, 2024, 0:56 So is this for making a DS into a homebrew device?
If you have a Flashcard, DSi, or CFW 3DS you can make and test games that use DevKitPro and libnds, and the first video and his (Coding with Mat's) previous videos. Visual Studio Code being an IDE is SUPER helpful for intermediate coders with knowledge of C and C++. And with it being able to link with Github is a plus.

If you are a beginner and only care about 2D, then DS Game Maker is an option.
Last edited by Artisan on April 27th, 2024, 19:41, edited 1 time in total! word count: 98
:bananadance: The OG really know how to make a sandwich I tell ya w'hut :bananadance: Image
Post Reply

Last 255 Members Who Visited This Topic! Total 150 visits

User avatar Artisan (18), Maria (14), User avatar Tiger21820 (22), User avatar Tiger21822 (19), User avatar Tiger21821 (25), User avatar Notte (4), Sammi (4), User avatar Lyndis (12), User avatar Lyn (12), User avatar Kougyoku (12), User avatar Demon_skeith (2), User avatar DPadDoc (2), Grace (4)

Return to “General NDS Discussion”

Who is online

Users browsing this forum: No registered users… and 1 guest