Tutorial How to make 3DS Games with Unity

Should I add some Demo Projects?


  • Total voters
    54
  • Poll closed .

placebo_yue

Well-Known Member
Member
Joined
Aug 7, 2019
Messages
739
Trophies
0
Age
33
XP
1,264
Country
Argentina
I'm getting issues with the button examples in Unity, I get this error:
"The type or namespace "N3DS" does not exist in the namespace "UnityEngine". Are you missing an assembly reference?"

It seems like the libraries aren't linked right, is there anything I can do?
If it fails on every single script you're in trouble. Perhaps reimport the SDK and such. Are you using the right unity version?
 

nguyengiabach1201

Member
Newcomer
Joined
Aug 1, 2022
Messages
14
Trophies
0
Age
66
Location
Hue
XP
61
Country
Vietnam
I'm getting issues with the button examples in Unity, I get this error:
"The type or namespace "N3DS" does not exist in the namespace "UnityEngine". Are you missing an assembly reference?"

It seems like the libraries aren't linked right, is there anything I can do?
I think you did not change the target platform to 3DS
 

AliSd

Member
Newcomer
Joined
Nov 12, 2022
Messages
20
Trophies
0
Age
34
XP
115
Country
United Kingdom
Post automatically merged:

Hello, I get this error when build the game:-

Environment variable 'CTRSDK_ROOT' is not set indicating N3DS SDK is not properly installed.
at ArmccCompilerSettings..ctor () [0x00020] in C:\buildslave\unity\build\PlatformDependent\N3DS\Editor\Managed\ArmccCompilerSettings.cs:13
at UnityEditor.N3DS.Il2CppPlatformProvider.CreateNativeCompiler () [0x00001] in C:\buildslave\unity\build\PlatformDependent\N3DS\Editor\Managed\Il2CppPlatformProvider.cs:85
at UnityEditorInternal.IL2CPPBuilder.Run () [0x0009e] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:153
at UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) [0x0000f] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:41
at UnityEditor.PostProcessN3DS.PostProcess (BuildTarget target, BuildOptions options, System.String installPath, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String stagingAreaDataManaged, UnityEditor.RuntimeClassRegistry usedClassRegistry) [0x00146] in C:\buildslave\unity\build\PlatformDependent\N3DS\Editor\Managed\PostProcessN3DS.cs:200
UnityEditor.HostView:OnGUI()

and also:-

Error building Player: Environment variable 'CTRSDK_ROOT' is not set indicating N3DS SDK is not properly installed.
at ArmccCompilerSettings..ctor () [0x00020] in C:\buildslave\unity\build\PlatformDependent\N3DS\Editor\Managed\ArmccCompilerSettings.cs:13
at UnityEditor.N3DS.Il2CppPlatformProvider.CreateNativeCompiler () [0x00001] in C:\buildslave\unity\build\PlatformDependent\N3DS\Editor\Managed\Il2CppPlatformProvider.cs:85
at UnityEditorInternal.IL2CPPBuilder.Run () [0x0009e] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:153
at UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) [0x0000f] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\Il2Cpp\IL2CPPUtils.cs:41
at UnityEditor.PostProcessN3DS.PostProcess (BuildTarget target, BuildOptions options, System.String installPath, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String stagingAreaDataManaged, UnityEditor.RuntimeClassRegistry usedClassRegistry) [0x00146] in C:\buildslave\unity\build\PlatformDependent\N3DS\Editor\Managed\PostProcessN3DS.cs:200

I;m using:

Unity 5.6.5f1
UnityNew3DS_1_3_0

Any help? Thanks =D
 
Last edited by AliSd,

nguyengiabach1201

Member
Newcomer
Joined
Aug 1, 2022
Messages
14
Trophies
0
Age
66
Location
Hue
XP
61
Country
Vietnam
Give me the links okie ?
just search
Post automatically merged:

what is input key Gamepad funcion N3DSbutton pls ?
Gamepad.GetButtonHold(N3dsButton.Y)
Post automatically merged:

If it fails on every single script you're in trouble. Perhaps reimport the SDK and such. Are you using the right unity version?
Hey, I have bug with render queue, can you help
 
Last edited by nguyengiabach1201,

syelan34

New Member
Newbie
Joined
Sep 22, 2022
Messages
3
Trophies
0
Age
26
Location
Canada
XP
38
Country
Canada
I think you did not change the target platform to 3DS
Yeah, I only realized that recently. Thanks for the help! It works perfectly now
Post automatically merged:

Does someone here has documentation for unity 3ds?
There is a bit in the unity app itself (at least in the version I have, that being 5.6)
 

syelan34

New Member
Newbie
Joined
Sep 22, 2022
Messages
3
Trophies
0
Age
26
Location
Canada
XP
38
Country
Canada
Does anyone know how to get gyro input? The manual page says it's supported (version 5.6, Help>Manual N3DS, Input section), but in the scripting reference (page is in the same spot) I can't find anything about it. All the other input modes have documentation, just not this.
 

placebo_yue

Well-Known Member
Member
Joined
Aug 7, 2019
Messages
739
Trophies
0
Age
33
XP
1,264
Country
Argentina
But hey, why there is no shadow with 3d game? Can anyone help?
realtime shadows are too expensive for 3DS. Bake your scene lights, use reflection probes, and such. If you insist on having realtime shadows, try different shaders, some will give you shadows, at the cost of the game running very slow
 

placebo_yue

Well-Known Member
Member
Joined
Aug 7, 2019
Messages
739
Trophies
0
Age
33
XP
1,264
Country
Argentina
How? I tried but no result
Touchscreen should work with normal buttons as if the stylus were a mouse clicking. Nothing to configure, code, or do.

If you want some more complex mechanic with swiping or whatever that might be a different thing.. although i don't think it'd be hard to code. It does seem to pick up on normal mouse events, so it should be nearly as doing a swipe for mobile, or a mouse drag for PC
 

AliSd

Member
Newcomer
Joined
Nov 12, 2022
Messages
20
Trophies
0
Age
34
XP
115
Country
United Kingdom
Touchscreen should work with normal buttons as if the stylus were a mouse clicking. Nothing to configure, code, or do.

If you want some more complex mechanic with swiping or whatever that might be a different thing.. although i don't think it'd be hard to code. It does seem to pick up on normal mouse events, so it should be nearly as doing a swipe for mobile, or a mouse drag for PC
It works on the PC in unity project, but after build the game it just doesn’t, both emulator and real N3DS
 

AGO061

New Member
Newbie
Joined
Feb 20, 2023
Messages
2
Trophies
0
Age
18
XP
44
Country
Italy
so, is developing with unity on the 3ds still really taboo? because i have been beating my head onto it for a bit and it wouldn't make sense to create a game without the ability to share anything about it
 

derIbrahim

New Member
Newbie
Joined
Feb 20, 2023
Messages
2
Trophies
0
Age
23
XP
26
Country
Germany
Ok i somehow managed to fix it. I don't even know how. But now a cube that i placed is rendered black instead of white. Any idea as to why that happens?
1678269781652.png
1678269752682.png
 

Juanen100

Member
Newcomer
Joined
Mar 22, 2023
Messages
23
Trophies
0
XP
244
Country
Spain
Does anyone know why the game crashes my 3ds? It crashes with the following exception:
Code:
Processor: Arm11 (core 0)
Exception type: data abort
Fault status: Translation - Section
Current process: Unleashe (000400000ff3ff00)

Register dump:

r0             08923a30            r1             00000000
r2             08a339ac            r3             08929d74
r4             0ffffab0            r5             08a339ac
r6             08929d74            r7             08a339ac
r8             00000000            r9             00000000
r10            08924a30            r11            2b05b3fd
r12            00a6ee1c            sp             0ffffab0
lr             00a6f528            pc             00a6ee38

cpsr           60000010            dfsr           00000005
ifsr           00000000            far            00000008
fpexc          40000700            fpinst         eebc0ac0
fpinst2        eebc0ac0
FAR            00000008            Access type: Read

Code dump:

00a6ee0c:  17 fb e1 eb 01 00 a0 e3  eb 02 c5 e5 f0 87 bd e8   |................|
00a6ee1c:  ff 4f 2d e9 03 60 a0 e1  02 50 a0 e1 01 80 a0 e1   |.O-..`...P......|
00a6ee2c:  04 8b 2d ed 2c d0 4d e2  00 40 8d e2 08 00 91 e5   |..-.,.M..@......|

Stack dump:

0ffffab0:  d0 fa ff 0f 08 26 2d 00  06 00 00 00 ac 39 a3 08   |.....&-......9..|
0ffffac0:  74 9d 92 08 00 00 00 00  00 00 00 00 00 01 00 00   |t...............|
0ffffad0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0ffffae0:  00 00 7a 44 00 00 7a c4  00 00 00 00 30 3a 92 08   |..zD..z.....0:..|
0ffffaf0:  00 00 00 00 ac 39 a3 08  74 9d 92 08 30 4a 92 08   |.....9..t...0J..|
0ffffb00:  00 00 00 00 74 9d 92 08  ac 39 a3 08 30 3a 92 08   |....t....9..0:..|
0ffffb10:  00 00 00 00 30 4a 92 08  fd b3 05 2b 28 f5 a6 00   |....0J.....+(...|
0ffffb20:  00 00 00 00 00 00 00 00  00 00 00 00 04 ea 9d 08   |................|
0ffffb30:  80 6f 11 08 01 ea 9d 08  64 00 00 00 64 00 00 00   |.o......d...d...|
0ffffb40:  00 00 00 00 30 3a 92 08  00 00 00 00 50 9d 92 08   |....0:......P...|
0ffffb50:  ac 39 a3 08 04 ea 9d 08  ff ff ff ff 1c 3b 25 00   |.9...........;%.|
0ffffb60:  50 9d 92 08 cf 01 00 00  54 32 67 01 0c 11 19 00   |P.......T2g.....|
0ffffb70:  00 00 00 00 98 09 9e 08  24 03 9e 08 00 00 00 00   |........$.......|
0ffffb80:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0ffffb90:  00 00 80 bf 00 00 7a 44  40 00 00 00 80 b0 69 01   |[email protected].|
0ffffba0:  00 00 00 00 f4 00 00 00  04 00 00 00 44 00 00 00   |............D...|
0ffffbb0:  cf 01 00 00 54 32 67 01  00 00 00 00 04 00 00 00   |....T2g.........|
0ffffbc0:  f4 00 00 00 00 00 00 00  a0 39 a3 08 60 04 33 00   |.........9..`.3.|
0ffffbd0:  44 00 00 00 00 00 00 00  54 32 67 01 40 8c 2e 08   |D.......T2g.@...|
0ffffbe0:  70 75 34 00 00 ea 9d 08  48 fc ff 0f 00 00 00 00   |pu4.....H.......|
0ffffbf0:  10 c3 ca 08 50 9d 92 08  ac 39 a3 08 fd b3 05 2b   |....P....9.....+|
0ffffc00:  a0 39 a3 08 5c f2 2c 00  10 c3 ca 08 00 ea 9d 08   |.9..\.,.........|
0ffffc10:  48 fc ff 0f 00 00 00 00  00 00 00 00 50 9d 92 08   |H...........P...|
0ffffc20:  00 00 00 00 00 00 00 00  00 ea 9d 08 00 00 00 00   |................|
0ffffc30:  30 3a 92 08 ec 82 2e 00  10 c3 ca 08 00 00 00 00   |0:..............|
0ffffc40:  00 00 00 00 48 fc ff 0f  00 00 00 00 98 09 9e 08   |....H...........|
0ffffc50:  24 03 9e 08 00 00 00 00  00 00 00 00 00 00 00 00   |$...............|
0ffffc60:  01 00 00 00 e0 46 a6 3f  00 00 00 00 00 00 00 00   |.....F.?........|
0ffffc70:  00 00 00 00 00 00 00 00  d6 b3 dd 3f 00 00 00 00   |...........?....|
0ffffc80:  00 00 00 00 00 00 00 00  00 00 00 00 aa 13 80 3f   |...............?|
0ffffc90:  00 00 80 3f 00 00 00 00  66 90 8a 41 40 8c 2e 08   |...?....f..A@...|
0ffffca0:  00 00 00 00 a0 39 a3 08  50 9d 92 08 10 c3 ca 08   |.....9..P.......|
0ffffcb0:  00 ea 9d 08 1c fd ff 0f  60 2b a3 08 a0 39 a3 08   |........`+...9..|
0ffffcc0:  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0ffffcd0:  00 00 00 00 a0 f5 20 00  00 00 00 00 01 00 00 00   |...... .........|
0ffffce0:  00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00   |................|
0ffffcf0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0ffffd00:  00 00 00 00 00 00 00 00  50 9d 92 08 00 00 00 00   |........P.......|
0ffffd10:  00 00 7a c4 60 2b a3 08  00 ea 9d 08 50 9d 92 08   |..z.`+......P...|
0ffffd20:  10 c3 ca 08 00 00 00 00  00 00 00 00 60 2b a3 08   |............`+..|
0ffffd30:  01 00 00 00 50 9d 92 08  01 00 00 00 00 00 00 00   |....P...........|
0ffffd40:  00 00 00 00 bc d6 2c 00  00 00 00 00 01 00 00 00   |......,.........|
0ffffd50:  80 2c ab 08 30 69 2e 08  30 3a 92 08 90 5f 2e 08   |.,..0i..0:..._..|
0ffffd60:  e4 01 00 00 44 21 24 00  01 00 00 00 00 00 00 00   |....D!$.........|
0ffffd70:  00 00 00 00 00 00 00 00  60 2b a3 08 20 90 6a 01   |........`+.. .j.|
0ffffd80:  30 69 2e 08 20 90 6a 01  01 00 00 00 80 2c ab 08   |0i.. .j......,..|
0ffffd90:  30 69 2e 08 90 5f 2e 08  b0 68 2e 08 80 2c ab 08   |0i..._...h...,..|
0ffffda0:  00 00 00 00 30 69 2e 08  20 90 6a 01 01 00 00 00   |....0i.. .j.....|
0ffffdb0:  30 3a 92 08 80 2d ab 08  20 90 6a 01 a0 09 20 00   |0:...-.. .j... .|
0ffffdc0:  00 00 00 00 02 65 34 1f  00 00 a0 43 00 00 70 43   |.....e4....C..pC|
0ffffdd0:  00 00 00 00 00 00 00 00  00 00 80 3f 00 00 00 00   |...........?....|
0ffffde0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 80 3f   |...............?|
0ffffdf0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0ffffe00:  00 00 80 3f 00 00 00 00  00 00 20 43 00 00 f0 42   |...?...... C...B|
0ffffe10:  00 00 00 00 00 00 80 3f  00 00 80 3f 00 00 00 00   |.......?...?....|
0ffffe20:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 80 3f   |...............?|
0ffffe30:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0ffffe40:  00 00 80 3f 00 00 00 00  00 00 20 43 00 00 f0 42   |...?...... C...B|
0ffffe50:  00 00 00 00 00 00 80 3f  40 01 00 00 f0 00 00 00   |.......?@.......|
0ffffe60:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0ffffe70:  00 00 00 00 f4 d9 22 08  b0 eb 21 08 01 00 00 00   |......"...!.....|
0ffffe80:  80 2c ab 08 01 00 00 00  04 8d 6a 01 30 3a 92 08   |.,........j.0:..|
0ffffe90:  00 00 00 00 f8 e4 1c 00  00 00 00 00 00 00 00 00   |................|
0ffffea0:  01 00 00 00 00 00 00 00  30 3a 92 08 e0 cb 12 00   |........0:......|
0ffffeb0:  01 00 00 00 84 4a 77 08  00 00 00 00 04 8d 6a 01   |.....Jw.......j.|
0ffffec0:  00 00 00 00 04 8d 6a 01  00 00 00 00 c0 bc 62 01   |......j.......b.|
0ffffed0:  e0 09 33 08 80 09 33 08  00 00 00 00 4c 0b 63 01   |..3...3.....L.c.|
0ffffee0:  01 00 00 00 50 83 10 00  00 00 00 00 00 00 00 00   |....P...........|
0ffffef0:  00 00 00 00 00 00 00 00  54 c6 62 01 01 bc 62 01   |........T.b...b.|
0fffff00:  e0 09 33 08 00 00 00 00  00 00 00 00 58 73 10 00   |..3.........Xs..|
0fffff10:  89 00 00 00 00 00 00 00  72 6f 6d 3a 2f 44 61 74   |........rom:/Dat|
0fffff20:  61 00 00 00 00 00 00 00  09 00 00 00 42 ff ff 0f   |a...........B...|
0fffff30:  00 00 00 00 00 00 00 00  01 00 00 00 dc ff ff 0f   |................|
0fffff40:  01 00 00 00 00 00 00 00  42 00 00 00 00 00 00 00   |........B.......|
0fffff50:  4d 61 6e 61 67 65 64 00  10 00 00 00 84 69 11 00   |Managed......i..|
0fffff60:  07 00 00 00 42 ff ff 0f  ff ff ff ff f0 0a 33 08   |....B.........3.|
0fffff70:  11 00 00 00 74 f5 6a 01  00 10 00 00 00 00 00 00   |....t.j.........|
0fffff80:  11 00 00 00 42 00 00 00  c0 0a 33 08 11 00 00 00   |....B.....3.....|
0fffff90:  fe ff ff ff 00 00 00 00  01 01 00 00 11 00 00 00   |................|
0fffffa0:  42 3b 18 00 00 00 00 00  4d 61 6e 61 67 65 64 00   |B;......Managed.|
0fffffb0:  e8 ff ff 0f 00 00 00 00  07 00 00 00 42 00 00 00   |............B...|
0fffffc0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0fffffd0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0fffffe0:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   |................|
0ffffff0:  00 00 00 00 c4 6d 10 00  00 00 00 00 20 00 10 00   |.....m...... ...|

nvm i fixed it
Turns out i just needed to optimise the level lmao
 
Last edited by Juanen100,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Julie_Pilgrim @ Julie_Pilgrim:
    that game's engine is really fucking intensive so it runs like literal shit on xbox 360 and ps3
  • Veho @ Veho:
    Nah I'm getting value creep again. I look at a $50 console "but for just a few more dollars you could get XYZ" and I end up considering the Steam Deck.
    +2
  • Julie_Pilgrim @ Julie_Pilgrim:
    like the lighting in that game was genuinely so good
  • Veho @ Veho:
    Not getting dragged into that again.
  • Julie_Pilgrim @ Julie_Pilgrim:
    i dont get why they didn't port the one game that ran the worst on consoles, to pc
  • Julie_Pilgrim @ Julie_Pilgrim:
    like you port everything to pc except the one game where it would make the most sense. why. what do you gain from this
  • Julie_Pilgrim @ Julie_Pilgrim:
    is sega just personally fucking with me? are they laughing while watching me through my kinect camera as i get up to restart my xbox for the third time because the game froze again
  • K3Nv2 @ K3Nv2:
    Buy handhelds from five below better quality
  • K3Nv2 @ K3Nv2:
    Valve probably going to do another refresh of the deck this fall with rog ally like specs tbh
    +1
  • Veho @ Veho:
    A smaller form factor would be nice too.
    +1
  • K3Nv2 @ K3Nv2:
    A shield portable 2 would be nice aye Nvidia
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    The big leap in all things tech is when carbon based chips start hitting.
  • Psionic Roshambo @ Psionic Roshambo:
    Longer battery life cooler temps and faster! What's not to like lol (probably expensive as hell)
  • AncientBoi @ AncientBoi:
    [checks my dildo(s) batteries, coolant and lube] :O [promptly replaces them] :D
    +1
  • BigOnYa @ BigOnYa:
    Lol not even for sale yet to public, and already sold out. I'd like to get one but ill wait for the hype to calm down.
    +1
  • a_username_that_is_cool @ a_username_that_is_cool:
    I'm pretty sure I wasn't on GBAtemp at all yesterday, whenever I tried to go onto the website I got an unexpected database error
  • BigOnYa @ BigOnYa:
    We all teamed together and decided you needed a day off, so we blocked you.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    No one expects the database errors!!!
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Hey a thought occurred to me... If they are unexpected database errors, are there expected database errors?
    +1
  • K3Nv2 @ K3Nv2:
    @BigOnYa, that's just a pre-order term to make the product look better it's not sold out
    +1
  • K3Nv2 @ K3Nv2:
    Never expect a website to last 24/7 it's like section 8
    K3Nv2 @ K3Nv2: Never expect a website to last 24/7 it's like section 8