Wednesday, 07 January 2009
 
  Home arrow Forum  
Main Menu
Home
News
Forum
Documentation
Download
Links
Administrator
Login Form
Welcome, Guest. Please login or register.
January 07, 2009, 02:16:00 PM
Username: Password:
Login with username, password and session length

Forgot your password?
HELP ME TEST GUYS!
DSLua Community
Welcome, Guest. Please login or register.
January 07, 2009, 02:16:00 PM
1724 Posts in 316 Topics by 10107 Members
Latest Member: acurfcreeks
DSLua Community  |  General DS Programming Chats  |  Test Area  |  HELP ME TEST GUYS! « previous next »
Pages: [1]
Author Topic: HELP ME TEST GUYS!  (Read 1953 times)
daltonlaffs
Waxing Gibbous
****
Posts: 340


Freaking Insane


WWW
« on: July 03, 2006, 07:33:45 AM »

Everyone, I need help developing. I need to figure out how io functions work, and output functions dont work on emus. So I made a really tiny write test and I need to make sure it works. Anyone with a method of getting this script to their DS (stares at Ohr Gmbh and Zhen) needs to help me. Simply put the contents of the attached zip archive on your DS (hopefully has Chism support) and tell me how it goes. If it fails, fix it and explain to me what I did wrong. Please help!

* putonds.zip (0.44 KB - downloaded 121 times.)
Logged

Code:
-- Bored? Read code line below.
-- Bored? Read code line above.



^^ That works, I SWEAR! ^^
Zhen
Waxing Crescent
**
Posts: 57


WWW
« Reply #1 on: July 03, 2006, 02:43:50 PM »

I test it in the DS with a Supercard DS and get this:

YAAAAY! OPEN! 2 2
Press a key to continue 4 4

But I press a button, And I think that there is nothing write. But I think that it's because I use a packed ROM.

Zhen
Logged
daltonlaffs
Waxing Gibbous
****
Posts: 340


Freaking Insane


WWW
« Reply #2 on: July 03, 2006, 03:17:45 PM »

That's exactly the problem -- you can't use a packed ROM! With the GBFS version, simply use PACK.BAT when there is NO script in the script folder. Then put my script and test.dat and the DSLua-PACK.nds on ur supercard. Then press Select and turn FAT ON. Then go to CF and use the test script. Try that Smiley
Logged

Code:
-- Bored? Read code line below.
-- Bored? Read code line above.



^^ That works, I SWEAR! ^^
Zhen
Waxing Crescent
**
Posts: 57


WWW
« Reply #3 on: July 05, 2006, 01:45:56 PM »

Sorry for the bad new, but I only get a black screen. It isn't work in the ds.

I change the code to this:

Code:
SCREEN_BOTTOM   = 0
BGBotText = Screen.LoadTextBG()
Screen.Initialize( SCREEN_BOTTOM, BGBotText )
filename = "test.txt"
print( "WRITE TEST LUA", 0, 0 )
DSLua.WaitForAnyKey()
fout = io.open( filename, "wt" )
if not fout then
print( "CRAP! FAILED!", 0, 0 )
DSLua.WaitForAnyKey()
else
print( "YAAAAY! OPEN!", 2, 2 )
print( "Press a key to continue" , 4, 4 )
DSLua.WaitForAnyKey()
fout:write( "HIII!" )
end

And I can check that it stuck in the io.open call.

Also. I found a bug. If a select gbfs then I turn on the FAT option, The CF folder is empy. Waruwaru, can you check it?

Zhen
Logged
daltonlaffs
Waxing Gibbous
****
Posts: 340


Freaking Insane


WWW
« Reply #4 on: July 07, 2006, 07:19:16 AM »

I use am emu, and I know that in order to use the CF folder, you must have other files in the same directory. Then it will let you choose from those files Tongue

If you already had files with the ROM on ur card thingy, I guess CF dont work with your device. Does it support Chism's driver?
Logged

Code:
-- Bored? Read code line below.
-- Bored? Read code line above.



^^ That works, I SWEAR! ^^
Zhen
Waxing Crescent
**
Posts: 57


WWW
« Reply #5 on: July 08, 2006, 02:47:50 AM »

I use am emu, and I know that in order to use the CF folder, you must have other files in the same directory. Then it will let you choose from those files Tongue

If you already had files with the ROM on ur card thingy, I guess CF dont work with your device. Does it support Chism's driver?

Well, I don't know nothing about that 'Chisum' driver  Cheesy. I'll search about it.

Zhen
Logged
Pages: [1]
« previous next »
    Jump to:  



    (C) 2009 DSLua

    DSLua - Best scripting language for Nintendo DS home-brew!