DSLua Community
Welcome, Guest. Please login or register.
May 21, 2012, 08:09:41 PM
1371 Posts in 262 Topics by 33109 Members
Latest Member: Limewire Download
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  DSLua 0.7 Source « previous next »
Pages: [1]
Author Topic: DSLua 0.7 Source  (Read 2694 times)
manu62300
Waxing Crescent
**
Posts: 89



« on: May 08, 2007, 10:28:19 AM »

no .nds on DSLua 0.7 for launch this  Huh
Logged

XtreamLua.com
La Référence en programmation sur PSP & DS
xtreamlua.miniville.fr
Bon dev...;
Jeremysr
First Quarter
***
Posts: 215



WWW
« Reply #1 on: May 08, 2007, 02:30:23 PM »

I'm not sure what you're asking, but to get the latest DSLua, go to http://code.google.com/p/dslua/source . Install DevKitPro, and then PAlib. Then go to where you downloaded DSLua and type "make" in the command line.

Or just wait for the release which should be soon.
Logged
TeenDev
New Moon
*
Posts: 6


« Reply #2 on: May 24, 2007, 10:54:33 PM »

can you just make a downloadable archive? I really don't want to spend the whole day downloading each file one by one... Sad
Logged
cools
New Moon
*
Posts: 3


« Reply #3 on: May 25, 2007, 01:16:08 AM »

You don't have to spend the whole day, theres a neat little thing called svn out there which lets you download svn dirs. Check the wikipedia page of "subversion" for more info  Grin Anywho, don't bother, it doesn't want to compile with the current makefile, so you will either have to change the makefile yourself or wait for a member of the dslua group to fix it!

Edit: Well i re-downloaded it from the link on the google page, and it compiles!
« Last Edit: May 25, 2007, 03:57:21 PM by cools » Logged
TeenDev
New Moon
*
Posts: 6


« Reply #4 on: May 25, 2007, 05:21:05 PM »

which version of DKA and PAlib and libnds? I am currently using DKA r20 and libnds 20070127 and the latest PALib...
Logged
cools
New Moon
*
Posts: 3


« Reply #5 on: May 25, 2007, 05:56:01 PM »

I used the latest of everything. The only problem being is that after I get it running, (the -PACK files wont work, use the regular DSLua.nds) there seems to be an error with the io stuff... It shows up in most emulators, except the latest desmume. I think I'll just wait for the official .7 to come out... Cry
Logged
Jeremysr
First Quarter
***
Posts: 215



WWW
« Reply #6 on: May 25, 2007, 07:07:27 PM »

You have to patch it with DLDI, but I don't know if DLDI works for emulators (there's not an emulator DLDI patch anyways.) So patch it and it should work on hardware.
Logged
cools
New Moon
*
Posts: 3


« Reply #7 on: May 27, 2007, 09:53:21 PM »

Well, your example code in Image.lua is a little off... Anyway, it is possible to run the (no -PACK) DSLua.nds in an emulator with working results. After you build 0.7, it is possible to load it with desmume 0.7.0, without a DLDI patch. The first few lines of code in Image.lua were not working (crashed on the line that called io.open(), I think it was opening the bmp). If you press X it will continue to load the jpeg, and if you press X again it will load and display the banana animation.

Thanks! and best of luck with .7!!!
Logged
H3xo
New Moon
*
Posts: 3


« Reply #8 on: June 08, 2007, 02:04:53 PM »

I get the following errors when trying to compile 0.7  Cry
Code:
C:\DSLua>make
make --no-print-directory -C build -f /c/DSLua/Makefile
DSFileIO.cpp
c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h: In function 'void PA_PlayFSSoundEx2(u8, u16, u8, int, s16, BOOL, int)':
c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h:212: error: invalid conversion from 'void*' to 'u32*'
c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h: In function 'void PA_PlayFSMod(u16)':
c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h:430: error: invalid conversion from 'void*' to 'u32*'
make[1]: *** [DSFileIO.o] Error 1
make: *** [build] Error 2
Am I doing something wrong? or is it a problem with the latest SVN?  Undecided

Edit:
Nevermind, fixed it  Grin, compiled successfully Cheesy
« Last Edit: June 08, 2007, 06:15:28 PM by H3xo » Logged
Brun0oO
New Moon
*
Posts: 1


« Reply #9 on: June 26, 2007, 08:24:56 AM »

Hi,
I try to build DSLua 0.7 from its source files. I got the latest devkitpro from devKitProUpdater-1.4.4 and the latest PALib (PALib070615).
I got the following error (I have removed warnings):
Code:
C:\devkitPro\dslua\DSLUA>make
make --no-print-directory -C build -f /c/devkitPro/dslua/DSLUA/Makefile
DSFileIO.cpp
DSLBackGround.cpp
DSLConnection.cpp
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp: In member function 'int UDPCo
nnection::connect(int, int)':
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp:173: error: 'closesocket' was
not declared in this scope
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp: In member function 'int Socke
tConnection::close_()':
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp:349: error: 'closesocket' was
not declared in this scope
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp: In member function 'int UDPCo
nnection::close_()':
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp:354: error: 'closesocket' was
not declared in this scope
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp: In destructor 'virtual Socket
Connection::~SocketConnection()':
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp:362: error: 'closesocket' was
not declared in this scope
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp: In destructor 'virtual UDPCon
nection::~UDPConnection()':
c:/devkitPro/dslua/DSLUA/source/DSLConnection.cpp:371: error: 'closesocket' was
not declared in this scope
make[1]: *** [DSLConnection.o] Error 1
make: *** [build] Error 2

In my C:\devkitPro\libnds\include\sys\socket.h header, i got this prototype:
Code:
extern int close(int socket);
It's strange I was thinking the latest devkitpro have changed this prototype to closesocket.
Where is my mistake?
Thanks,

« Last Edit: June 27, 2007, 10:37:58 AM by Brun0oO » Logged

El °oO Masqué Cool
manu62300
Waxing Crescent
**
Posts: 89



« Reply #10 on: July 04, 2007, 02:46:48 AM »

no good for my M3 CF the DSLua 0.7 but 0.6 is good  Undecided
Logged

XtreamLua.com
La Référence en programmation sur PSP & DS
xtreamlua.miniville.fr
Bon dev...;
Pages: [1]
« previous next »
    Jump to: