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
  • AncientBoi @ AncientBoi:
    :rofl2::tpi::rofl2: I meant his eyes :tpi::rofl2::tpi:
  • ZeroT21 @ ZeroT21:
    :toot:blow me then @K3Nv2
  • K3Nv2 @ K3Nv2:
    Nah I'm straight but you're more than welcome to blow ancientboi
  • ZeroT21 @ ZeroT21:
    LOL, which straight person does not make gay jokes?
    +1
  • K3Nv2 @ K3Nv2:
    I'm straight but we can whack dicks together
  • ZeroT21 @ ZeroT21:
    nah, I'm gud over here, no need for sword fights

    :glare:
    +1
  • K3Nv2 @ K3Nv2:
    Dick slang
  • K3Nv2 @ K3Nv2:
    See ancientboi already has a crush on you
  • AncientBoi @ AncientBoi:
    [brings my ⚔️ ] On Guard :D:evil::wub:
  • K3Nv2 @ K3Nv2:
    Looks more like a dagger to me
  • AncientBoi @ AncientBoi:
    Pffffft I have a crush on everybody
  • ZeroT21 @ ZeroT21:
    I see no problem, unless i happen to grow another gender one day. Too bad it ain't now
  • K3Nv2 @ K3Nv2:
    Thought you already had both hotswappable gender fluid
  • ZeroT21 @ ZeroT21:
    Enjoy whatever life chucks your way

    :teach:
    +1
  • K3Nv2 @ K3Nv2:
    Deeze nuts
  • AncientBoi @ AncientBoi:
    Dem Nutz
  • ZeroT21 @ ZeroT21:
    'Em nutters
  • AncientBoi @ AncientBoi:
    M&M nutz
    +1
  • K3Nv2 @ K3Nv2:
    Slim anus nutter
  • AncientBoi @ AncientBoi:
    :unsure::unsure::unsure: I might go buy them M&M w/nuts. I gotta go out to pay the rent anyway
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Eat a Snickers!
  • Psionic Roshambo @ Psionic Roshambo:
    Almond Joys got nuts!
    Psionic Roshambo @ Psionic Roshambo: Almond Joys got nuts!