Homebrew Making my first program, ran into a problem.

LinkMain111

Well-Known Member
OP
Member
Joined
Jul 21, 2015
Messages
125
Trophies
0
Age
27
XP
219
Country
upload_2015-9-20_11-28-2.png
If anyone can help I will be thankful.
 

mashers

Stubborn ape
Member
Joined
Jun 10, 2015
Messages
3,837
Trophies
0
Age
40
Location
Kongo Jungle
XP
5,074
Country
You either haven't defined the variables you are using or haven't included the header in which they are defined. Is this code you copied and pasted from an example? If so then it seems that you haven't copied everything.
 

LinkMain111

Well-Known Member
OP
Member
Joined
Jul 21, 2015
Messages
125
Trophies
0
Age
27
XP
219
Country
You either haven't defined the variables you are using or haven't included the header in which they are defined. Is this code you copied and pasted from an example? If so then it seems that you haven't copied everything.
Hey @mashers, I am trying to port some nds homebrew.
 

mashers

Stubborn ape
Member
Joined
Jun 10, 2015
Messages
3,837
Trophies
0
Age
40
Location
Kongo Jungle
XP
5,074
Country
Ok, so it seems that you are either copying individual source files so some necessary headers are missing, or copying and pasting bits of code meaning that the declarations for the methods or variables mentioned in the errors are missing. You need to look at the errors and see what it is telling you is missing (I.e. which variable or method is it telling you has not been declared), then find out where those things are defined in the original source code and ensure it is included in the same way in your port. Also ensure that any libraries which are used in the original version are included and linked in your port otherwise you will be missing some needed declarations of methods and variables.
 

LinkMain111

Well-Known Member
OP
Member
Joined
Jul 21, 2015
Messages
125
Trophies
0
Age
27
XP
219
Country
Ok, so it seems that you are either copying individual source files so some necessary headers are missing, or copying and pasting bits of code meaning that the declarations for the methods or variables mentioned in the errors are missing. You need to look at the errors and see what it is telling you is missing (I.e. which variable or method is it telling you has not been declared), then find out where those things are defined in the original source code and ensure it is included in the same way in your port. Also ensure that any libraries which are used in the original version are included and linked in your port otherwise you will be missing some needed declarations of methods and variables.
I think I will just remake Space Invaders. There is a problem with my lua interpreter. When I try to display an image i get this screen:
upload_2015-9-20_11-48-20.png

And on the 3ds even when I press the Y or A button it doesn't do anything. However the B button does allow me to exit.
 

mashers

Stubborn ape
Member
Joined
Jun 10, 2015
Messages
3,837
Trophies
0
Age
40
Location
Kongo Jungle
XP
5,074
Country
It's impossible to help you with any of these problems without a lot more information on what you are actually trying to do and how you are doing it.
 

LinkMain111

Well-Known Member
OP
Member
Joined
Jul 21, 2015
Messages
125
Trophies
0
Age
27
XP
219
Country
It's impossible to help you with any of these problems without a lot more information on what you are actually trying to do and how you are doing it.
I have given up on porting the NDS Homebrew. I would like to display an image using the lua interpreter. Here is my code
upload_2015-9-20_11-56-36.png


However I get this error on Citra and on my 3DS.
upload_2015-9-20_12-0-41.png

None of the displayed options work other than exit.
 

Tjessx

Well-Known Member
Member
Joined
Dec 3, 2014
Messages
1,160
Trophies
0
Age
27
XP
952
Country
Belgium
I think I will just remake Space Invaders. There is a problem with my lua interpreter. When I try to display an image i get this screen:View attachment 25584
And on the 3ds even when I press the Y or A button it doesn't do anything. However the B button does allow me to exit.
A restarts the homebrew which will result in the same error, this goes so quick that you dont see any different, but it did happen.
Y tries to start an ftp server which fails due to a bug in ironhax and tubehax
 

LinkMain111

Well-Known Member
OP
Member
Joined
Jul 21, 2015
Messages
125
Trophies
0
Age
27
XP
219
Country
A restarts the homebrew which will result in the same error, this goes so quick that you dont see any different, but it did happen.
Y tries to start an ftp server which fails due to a bug in ironhax and tubehax
So is there anyway I can actually make it work.
 

LinkMain111

Well-Known Member
OP
Member
Joined
Jul 21, 2015
Messages
125
Trophies
0
Age
27
XP
219
Country
The ftp? Only with the older exploits.
But your there is just an error in your script. I think you forgot to reupload t to be honest
An error, can you please point out where that is. Also you think I forgot to reupload, please explain what you mean by that.
 

ddraco

Well-Known Member
Member
Joined
Sep 12, 2015
Messages
113
Trophies
0
Age
25
Website
www.ddraco.de
XP
279
Country
Germany
You have the variable for the picture leading in the wrong folder. it tries to go to SD:/file.bmp and not to SD:/3ds/example/file.bmp

replace Line 4 with
Code:
bitmap2 = Screen.loadImage(System.currentDirectory().."/file.bmp")
then it should load the picture
 

LinkMain111

Well-Known Member
OP
Member
Joined
Jul 21, 2015
Messages
125
Trophies
0
Age
27
XP
219
Country
You have the variable for the picture leading in the wrong folder. it tries to go to SD:/file.bmp and not to SD:/3ds/example/file.bmp

replace Line 4 with
bitmap2 = Screen.loadImage(System.currentDirectory().."/file.bmp")
then it should load the picture
I tried what you said and I got this.
upload_2015-9-20_12-25-58.png

Thanks for the help though.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    fuck ubisoft, and fuck activision
    +1
  • realtimesave @ realtimesave:
    Nintendo needs to release a new console, switch is getting such shitty little games lately lol it's pathetic
  • Purple_Heart @ Purple_Heart:
    Lmao a new flashcart... The Unlock Switch... I knew it's not fake xD
    +1
  • NinStar @ NinStar:
    A new consoles won't solve that problem
  • NinStar @ NinStar:
    It will actually make it worse
  • The Real Jdbye @ The Real Jdbye:
    well actually
    a new console won't do anything right now, because the games are still in development, that's why there are few games being released
  • The Real Jdbye @ The Real Jdbye:
    it won't make the games finish any faster
  • Veho @ Veho:
    2/3rds of launch titles for the Switch 2 will just be lazy ports of Switch games anyway.
  • The Real Jdbye @ The Real Jdbye:
    probably
  • The Real Jdbye @ The Real Jdbye:
    maybe mario kart 9 will be a launch title
  • The Real Jdbye @ The Real Jdbye:
    i really want a new mario kart
  • Veho @ Veho:
    What, you mean the endless stream of DLCs doesn't count?
  • Veho @ Veho:
    Why develop a new game when you can just sell season passes forever?
  • Veho @ Veho:
    I'm still on MKDS so I'm not bothered :tpi:
  • The Real Jdbye @ The Real Jdbye:
    i like the dlc tbh, i'd like a new game more
  • ZeroT21 @ ZeroT21:
    but the current version is still selling fine at full price
  • SylverReZ @ SylverReZ:
    Hello
  • ZeroT21 @ ZeroT21:
    sup
    +1
  • SylverReZ @ SylverReZ:
    @realtimesave, You seen the Unlock Switch flashcart yet?
  • K3Nv2 @ K3Nv2:
    I'll see the 19.0 update that blocks use ability to it
    +1
  • K3Nv2 @ K3Nv2:
    Lol newegg+
    Screenshot-20240423-053504-Gmail.jpg
  • S @ salazarcosplay:
    does update 19 really block it
  • SylverReZ @ SylverReZ:
    Update 19 never came out yet. Just the 18.1.
    SylverReZ @ SylverReZ: Update 19 never came out yet. Just the 18.1.