When I run the "graphics_and_controls.lua" example, it stops registering my button presses as soon as I move the circlepad. I'm using the v2 beta. Am I'm doing something wrong or is this a bug?

When I run the "graphics_and_controls.lua" example, it stops registering my button presses as soon as I move the circlepad. I'm using the v2 beta. Am I'm doing something wrong or is this a bug?
Doesn't seem to do anything. Tried throwing an error to get to "Press Y to start FTP server", as well as "Network.initFTP()". Using IronhaxCan someone who have FTP issues check if this build solved the problem? ( http://rinnegatamante.it/test.3dsx NOTE: It takes scripts/index.lua instead of index.lua as main script)

Doesn't seem to do anything. Tried throwing an error to get to "Press Y to start FTP server", as well as "Network.initFTP()". Using Ironhax
Same result happened, no FTP at error screen or in a script.Tried to disable httpc:C service initialization. May this will work?
http://rinnegatamante.it/test2.3dsx
Extension usually doesn't matter to most things. As long as .cbz is functionally the same as .zip, you can open it as either.for the zipping. Must it have the extension zip or goes other extensions well like cbz?

I know the rule that it is normally near useless but i wanted to go shure.Extension usually doesn't matter to most things. As long as .cbz is functionally the same as .zip, you can open it as either.
So I have set up your method partially correct but here is what happens when I try to test
http://bronzeflames.deviantart.com/art/Capture-561037885?ga_submit_new=10%3A1442603585
it doesn't even show a black screen. just sits there waiting
edit: I have tried this with the code that comes with llp still no luck. However, when I load the 3dsx it self into citra I get a error message


Graphics.init()
while true do
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(0,0,"EXTRACTING CBZ",Color.new(255,255,255),BOTTOM_SCREEN)
Screen.flip()
System.extractZIP(System.currentDirectory().."/main.cbz",System.currentDirectory().."/cache")
Screen.clear(BOTTOM_SCREEN)
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(0,0,"LOADING PIC TO CACHE",Color.new(255,255,255),BOTTOM_SCREEN)
Screen.flip()
page = Screen.loadImage(System.currentDirectory().."/cache/01.jpg")
Screen.clear(BOTTOM_SCREEN)
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(0,0,"CACHING COMPLETE",Color.new(255,255,255),BOTTOM_SCREEN)
Screen.flip()
x_print = 0
y_print = 0
big_image = false
width = Screen.getImageWidth(page)
height = Screen.getImageHeight(page)
if width > 400 then
width = 400
big_image = true
end
if height > 240 then
height = 240
big_image = true
end
-- Showing current image
if big_image then
Screen.waitVblankStart()
Screen.refresh()
Screen.drawPartialImage(0,0,x_print,y_print,width,height,page,TOP_SCREEN)
x,y = Controls.readCirclePad()
if (x < - 100) and (x_print > 0) then
x_print = x_print - 5
if x_print < 0 then
x_print = 0
end
end
if (y > 100) and (y_print > 0) then
y_print = y_print - 5
if y_print < 0 then
y_print = 0
end
end
if (x > 100) and (x_print + width < Screen.getImageWidth(page)) then
x_print = x_print + 5
end
if (y < - 100) and (y_print + height < Screen.getImageHeight(page)) then
y_print = y_print + 5
end
if x_print + width > Screen.getImageWidth(page) then
x_print = Screen.getImageWidth(page) - width
end
if y_print + height > Screen.getImageHeight(page) then
y_print = Screen.getImageHeight(page) - height
end
else
Screen.waitVblankStart()
Screen.refresh()
Screen.drawImage(0,0,page,TOP_SCREEN)
end
end
is there anyway that the 3ds will freeze when i will load an image with this code


I use The code durectly in The 3ds. And for freezing: it only Shows ibstantly "LOADING PIC TO CACHE" also it must still load theoretically The pic into ram or whateve


Probably depends on the order you draw them in. Render the image, then the text.Is there a Z-Index in lua? I can't get my text to go above the image...

I'll try that. I put a end after i did the image then I add Screen.Debug blah blah blah after the end then put a end after the debug. Everything works dandy the text just does show i also have the Screen.Flip() fucntion or whatever it is in the function and where i drew the text.Probably depends on the order you draw them in. Render the image, then the text.

Graphics.init()
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(0,0,"EXTRACTING CBZ",Color.new(255,255,255),BOTTOM_SCREEN)
Screen.flip()
System.extractZIP(System.currentDirectory().."/main.cbz",System.currentDirectory().."/cache")
Screen.clear(BOTTOM_SCREEN)
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(0,0,"LOADING PIC TO CACHE",Color.new(255,255,255),BOTTOM_SCREEN)
Screen.flip()
page = Screen.loadImage(System.currentDirectory().."/cache/01.jpg")
Screen.clear(BOTTOM_SCREEN)
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(0,0,"CACHING COMPLETE",Color.new(255,255,255),BOTTOM_SCREEN)
Screen.flip()
while true do
x_print = 0
y_print = 0
big_image = false
width = Screen.getImageWidth(page)
height = Screen.getImageHeight(page)
if width > 400 then
width = 400
big_image = true
end
if height > 240 then
height = 240
big_image = true
end
-- Showing current image
if big_image then
Screen.waitVblankStart()
Screen.refresh()
Screen.drawPartialImage(0,0,x_print,y_print,width,height,page,TOP_SCREEN)
x,y = Controls.readCirclePad()
if (x < - 100) and (x_print > 0) then
x_print = x_print - 5
if x_print < 0 then
x_print = 0
end
end
if (y > 100) and (y_print > 0) then
y_print = y_print - 5
if y_print < 0 then
y_print = 0
end
end
if (x > 100) and (x_print + width < Screen.getImageWidth(page)) then
x_print = x_print + 5
end
if (y < - 100) and (y_print + height < Screen.getImageHeight(page)) then
y_print = y_print + 5
end
if x_print + width > Screen.getImageWidth(page) then
x_print = Screen.getImageWidth(page) - width
end
if y_print + height > Screen.getImageHeight(page) then
y_print = Screen.getImageHeight(page) - height
end
else
Screen.waitVblankStart()
Screen.refresh()
Screen.drawImage(0,0,page,TOP_SCREEN)
end
end

nothing changed after ich changed the code to thisCode:Graphics.init() Screen.waitVblankStart() Screen.refresh() Screen.debugPrint(0,0,"EXTRACTING CBZ",Color.new(255,255,255),BOTTOM_SCREEN) Screen.flip() System.extractZIP(System.currentDirectory().."/main.cbz",System.currentDirectory().."/cache") Screen.clear(BOTTOM_SCREEN) Screen.waitVblankStart() Screen.refresh() Screen.debugPrint(0,0,"LOADING PIC TO CACHE",Color.new(255,255,255),BOTTOM_SCREEN) Screen.flip() page = Screen.loadImage(System.currentDirectory().."/cache/01.jpg") Screen.clear(BOTTOM_SCREEN) Screen.waitVblankStart() Screen.refresh() Screen.debugPrint(0,0,"CACHING COMPLETE",Color.new(255,255,255),BOTTOM_SCREEN) Screen.flip() while true do x_print = 0 y_print = 0 big_image = false width = Screen.getImageWidth(page) height = Screen.getImageHeight(page) if width > 400 then width = 400 big_image = true end if height > 240 then height = 240 big_image = true end -- Showing current image if big_image then Screen.waitVblankStart() Screen.refresh() Screen.drawPartialImage(0,0,x_print,y_print,width,height,page,TOP_SCREEN) x,y = Controls.readCirclePad() if (x < - 100) and (x_print > 0) then x_print = x_print - 5 if x_print < 0 then x_print = 0 end end if (y > 100) and (y_print > 0) then y_print = y_print - 5 if y_print < 0 then y_print = 0 end end if (x > 100) and (x_print + width < Screen.getImageWidth(page)) then x_print = x_print + 5 end if (y < - 100) and (y_print + height < Screen.getImageHeight(page)) then y_print = y_print + 5 end if x_print + width > Screen.getImageWidth(page) then x_print = Screen.getImageWidth(page) - width end if y_print + height > Screen.getImageHeight(page) then y_print = Screen.getImageHeight(page) - height end else Screen.waitVblankStart() Screen.refresh() Screen.drawImage(0,0,page,TOP_SCREEN) end end


