DSLua Community

General DS Programming Chats => Chat Room => Topic started by: daltonlaffs on October 21, 2006, 08:29:30 AM



Title: Daltonlaffs reigns again!
Post by: daltonlaffs on October 21, 2006, 08:29:30 AM
Yay! The ban finally wore out! I'm back, everyone! And better than ever! I have been working on a select few important DSLua projects in my downtime, including a special thing you probably want to hear. Read on!

Yeah, waruwaru's been gone for months.... most of us probably gave up by now. No fear, though! He never released source, you say? I know. I can't get it? True. But I have a way to add functions... a true fix!

All you have to do is make a PALib project (blank). Then, program all the new functions there, or maybe nil a function you don't like. Then compile it into a .nds file. Now, do a little googling on NDS headers. When you find out enough, RIP the header with a hex editor. XVI32 is a good one. That's right, delete the entire header. We don't need it.

Now, using the hex editor again, save your header-ripped .nds file's changes and close. Now, go to any DSLua folder and open the DSLua.nds file with your trusty hex editor. Now, take your cursor to the end of the file. Then, depending on your editor, there should be a Insert File option (or something like it) somewhere. Insert your header-ripped .nds file at the end of the DSLua.nds file. Save changes.

Now go compile a script and have fun! I am working on Wifi functions now!  :)


Title: Re: Daltonlaffs reigns again!
Post by: jeffx on October 22, 2006, 01:14:45 AM
interesting... keep us posted


Title: Re: Daltonlaffs reigns again!
Post by: Jeremysr on October 22, 2006, 01:58:47 AM
Welcome back! I can't wait for the wi-fi functions.

But I still want waruwaru to come back. To at least release the source or do things that aren't possible with daltonlaffs method. Like compiling into a .nds file.


Title: Re: Daltonlaffs reigns again!
Post by: daltonlaffs on October 23, 2006, 06:01:22 PM
Actually, jeremysr, I am still working on my DSLua SDK... I am going to use my method of adding stuff to add a script encryption system, so if any snoopy haxxor opens your .nds file, they can't read the script  ;D

Also, I have almost figured out my Wifi functions... here is a preview of the code used for Wifi:

Code:
SCREEN_BOTTOM = 0
SCREEN_TOP = 1  -- Just setting up the environment here, as always.
require("functions.inc.lua")  -- Require the jeremysr and daltonlaffs functions set (get it off jeremysr's dslua site)
setUpTextScreens(0)  -- Set up the bottom screen for text output (Jeremysr's function)
printCenter("Contacting server", 0, 0)  -- Using jeremysr's printCenter functions, prints 'Contacting server' on the screen.
DSLua.ConnectToWifiServer(192.168.2.2,1)  -- connects to IP address 192.168.2.2, which is a Wifi server I made for you :), and maps it to connection 1
DSLua.WaitForServerContact(192.168.2.2)  -- Waits until a connection to 192.168.2.2 is made before continuing.
printCenter("Server contacted. Testing IO.", 1, 0)  -- More printing :)
DSLua.SendBitBit("Insert the text or numbers u wanna send here :)",1)  -- Sends that text to the connection mapped to 1.
DSLua.WaitForBitBitRead("Insert the text or numbers u wanna send here :)",1)  -- waits till it sees that the send worked
DSLua.RecieveBitBit(Somevariable,1)  -- The server is recieving DSLua commands in real-time. This makes you recieve the variable Somevariable, which is defined at the server
DSLua.DimBitBit(Somevariable,MyVar)  -- makes MyVar equal Somevariable in your game/app
printCenter("".. MyVar .. "", 2, 0)  -- print MyVar on the screen

That isn't bad for now, eh? More to come!  :D


Title: Re: Daltonlaffs reigns again!
Post by: Jeremysr on October 23, 2006, 06:49:14 PM
Looks good! Maybe since most people will download DSLua.nds from the download section of this site there should be a way for us, the programmers, to tell if they have your versions. So think you can change the version variable? (DSLua.Version() or something) Otherwise their DSLua.nds won't recognize your new functions!

Also, I think when you have a function with a dot (like string.len()) it usually means it's a library (like the string library) so you could make all the Wifi functions like this:

Wifi.Connect()
Wifi.WaitForServer()

..etc..

Also, 192.168.*.* is the IP address your wi-fi router gives out to your computer so I don't think it'll work for us connecting to your computer (maybe for someone connecting to your computer from them to the wi-fi router to your computer, but not the internet)


Title: Re: Daltonlaffs reigns again!
Post by: daltonlaffs on October 24, 2006, 04:32:40 PM
Oops, sorry, the IP was 192.168.2.2:8563

And I know that it would not NORMALLY WORK. But port 8563 is a seperate protocol, made so it DOES work with a DS.

Also, nice plan with the Wifi.functionhere stuff, makes it smaller...  ;) I'll work on it.

And I already changed the DSLua version. Now, instead of 0.5, it is D.0 (daltonlaffs format, revision 0) I used a hex editor for that part  ;D

Still working, almost there!


Title: Re: Daltonlaffs reigns again!
Post by: Extreme Coder on October 25, 2006, 08:55:08 AM
But did you test your hex-editing method? Because... it seems a bit wierd. But who am I to complain as long as it works? ;)

Good Luck ;D


Title: Re: Daltonlaffs reigns again!
Post by: jester on October 27, 2006, 08:15:35 PM
any updates? also will you be incorporating the stuff from all of the DSLua versions up till now and lastly will you be making this easier and more simplier for easy and beginner coders like me:D


Title: Re: Daltonlaffs reigns again!
Post by: daltonlaffs on October 28, 2006, 11:25:43 AM
Updates: Still working on wifi, shouldn't take too much longer...

Incoropration: Yes.

Easier: As I add functions, it should get easier and easier until the point that I decide to make a Visual SDK or something... :)

Yes, I tested my hex editing. Just changed the version and stuff...


Title: Re: Daltonlaffs reigns again!
Post by: jester on October 28, 2006, 03:04:11 PM
cool would u be able to incorporate like a PC Client type of Wifi?


Title: Re: Daltonlaffs reigns again!
Post by: Jeremysr on October 28, 2006, 07:52:53 PM
Oops, sorry, the IP was 192.168.2.2:8563

And I know that it would not NORMALLY WORK. But port 8563 is a seperate protocol, made so it DOES work with a DS.

Also, nice plan with the Wifi.functionhere stuff, makes it smaller...  ;) I'll work on it.

And I already changed the DSLua version. Now, instead of 0.5, it is D.0 (daltonlaffs format, revision 0) I used a hex editor for that part  ;D

Still working, almost there!

I'm pretty sure it still won't work. Go to http://whatismyip.com and use that instead.

Edit: Is it going to be internet wifi or DS-to-DS wifi or both?


Title: Re: Daltonlaffs reigns again!
Post by: jester on October 29, 2006, 05:46:02 AM
how is progress wat can we do to help you make DSLua 0.) (revision) good and wifi enabled


Title: Re: Daltonlaffs reigns again!
Post by: daltonlaffs on October 29, 2006, 08:31:10 AM
First of all, I know how the DS Wifi works... believe me, that port DOES work as a DS access point.

Progress is doing fine, just fixing a few bugs in protocol and making it faster now...

For now, it is Internet Wifi only, but I'll work on DS to DS later.

And as for helping, it is still sorta hard to add functions... I am working on a new scripting engine to add stuff easily, so just wait...


Title: Re: Daltonlaffs reigns again!
Post by: jester on October 29, 2006, 03:42:18 PM
excellent could someone tell me what music format the DSLua supports such as .mod, mp3, ogg and so on as i am looking into getting professionals to help create the music for Jester Corp (Busy rushes to a microphone and begins to mc a beat for the game)


Title: Re: Daltonlaffs reigns again!
Post by: jester on October 29, 2006, 04:06:01 PM
could u add vorbis (.ogg) suporrt to DSLua please as i have just recorded a beat for the intro of my DSLua game  ;D 8)


Title: Re: Daltonlaffs reigns again!
Post by: jester on October 30, 2006, 11:59:10 AM
how is progress


Title: Re: Daltonlaffs reigns again!
Post by: daltonlaffs on October 31, 2006, 07:31:03 AM
Still working on Wifi, adding DS to DS communication and ogg support, and still working on the DSLuaWare: Poked! shell. A little behind schedule (curse you school!)


Title: Re: Daltonlaffs reigns again!
Post by: jester on October 31, 2006, 12:10:08 PM
good good could u focus more on the next DSLua edition as the DSLua Poked is something we can all work on


Title: Re: Daltonlaffs reigns again!
Post by: daltonlaffs on October 31, 2006, 04:06:52 PM
Yeah, but I am making the shell. You guys do the rest.


Title: Re: Daltonlaffs reigns again!
Post by: jester on November 04, 2006, 05:33:48 AM
Any progress on the DSLua new revision build?