Thursday, 20 November 2008
Home
Forum
Main Menu
Home
News
Forum
Documentation
Download
Links
Administrator
Login Form
Welcome,
Guest
. Please
login
or
register
.
November 20, 2008, 07:02:15 AM
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
Daltonlaffs reigns again!
DSLua Community
Welcome,
Guest
. Please
login
or
register
.
November 20, 2008, 07:02:15 AM
1723
Posts in
315
Topics by
5664
Members
Latest Member:
GlygievyGal
Home
Help
Search
Login
Register
DSLua Community
|
General DS Programming Chats
|
Chat Room
|
Daltonlaffs reigns again!
« previous
next »
Pages:
[
1
]
2
Print
Author
Topic: Daltonlaffs reigns again! (Read 4665 times)
daltonlaffs
Waxing Gibbous
Posts: 340
Freaking Insane
Daltonlaffs reigns again!
«
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!
Logged
Code:
-- Bored? Read code line below.
-- Bored? Read code line above.
^^ That works, I SWEAR! ^^
jeffx
Waxing Crescent
Posts: 14
Lua Programmer
Re: Daltonlaffs reigns again!
«
Reply #1 on:
October 22, 2006, 01:14:45 AM »
interesting... keep us posted
Logged
Jeremysr
Waxing Gibbous
Posts: 254
Re: Daltonlaffs reigns again!
«
Reply #2 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.
Logged
daltonlaffs
Waxing Gibbous
Posts: 340
Freaking Insane
Re: Daltonlaffs reigns again!
«
Reply #3 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
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!
Logged
Code:
-- Bored? Read code line below.
-- Bored? Read code line above.
^^ That works, I SWEAR! ^^
Jeremysr
Waxing Gibbous
Posts: 254
Re: Daltonlaffs reigns again!
«
Reply #4 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)
Logged
daltonlaffs
Waxing Gibbous
Posts: 340
Freaking Insane
Re: Daltonlaffs reigns again!
«
Reply #5 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
Still working, almost there!
Logged
Code:
-- Bored? Read code line below.
-- Bored? Read code line above.
^^ That works, I SWEAR! ^^
Extreme Coder
New Moon
Posts: 4
Re: Daltonlaffs reigns again!
«
Reply #6 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
Logged
jester
First Quarter
Posts: 123
Jester Corp DS Logo
Re: Daltonlaffs reigns again!
«
Reply #7 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
Logged
CURRENT PROJECT:
JesterCorp DS- 2D FIGHTING GAME!!! Due out August 19th 2007!!!Having Sprite Issues but Toast is helping me ALOT
daltonlaffs
Waxing Gibbous
Posts: 340
Freaking Insane
Re: Daltonlaffs reigns again!
«
Reply #8 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...
Logged
Code:
-- Bored? Read code line below.
-- Bored? Read code line above.
^^ That works, I SWEAR! ^^
jester
First Quarter
Posts: 123
Jester Corp DS Logo
Re: Daltonlaffs reigns again!
«
Reply #9 on:
October 28, 2006, 03:04:11 PM »
cool would u be able to incorporate like a PC Client type of Wifi?
Logged
CURRENT PROJECT:
JesterCorp DS- 2D FIGHTING GAME!!! Due out August 19th 2007!!!Having Sprite Issues but Toast is helping me ALOT
Jeremysr
Waxing Gibbous
Posts: 254
Re: Daltonlaffs reigns again!
«
Reply #10 on:
October 28, 2006, 07:52:53 PM »
Quote from: 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
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?
Logged
jester
First Quarter
Posts: 123
Jester Corp DS Logo
Re: Daltonlaffs reigns again!
«
Reply #11 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
Logged
CURRENT PROJECT:
JesterCorp DS- 2D FIGHTING GAME!!! Due out August 19th 2007!!!Having Sprite Issues but Toast is helping me ALOT
daltonlaffs
Waxing Gibbous
Posts: 340
Freaking Insane
Re: Daltonlaffs reigns again!
«
Reply #12 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...
Logged
Code:
-- Bored? Read code line below.
-- Bored? Read code line above.
^^ That works, I SWEAR! ^^
jester
First Quarter
Posts: 123
Jester Corp DS Logo
Re: Daltonlaffs reigns again!
«
Reply #13 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)
Logged
CURRENT PROJECT:
JesterCorp DS- 2D FIGHTING GAME!!! Due out August 19th 2007!!!Having Sprite Issues but Toast is helping me ALOT
jester
First Quarter
Posts: 123
Jester Corp DS Logo
Re: Daltonlaffs reigns again!
«
Reply #14 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
Logged
CURRENT PROJECT:
JesterCorp DS- 2D FIGHTING GAME!!! Due out August 19th 2007!!!Having Sprite Issues but Toast is helping me ALOT
Pages:
[
1
]
2
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
DSLua - Best scripting language for Nintendo DS
-----------------------------
=> News and Announcements
=> Examples/Tutorials
=> Home-brew/Hacks/Games/Projects
=> Hardware and Equipments
=> Need Help?
=> Bugs & Suggestions
-----------------------------
General DS Programming Chats
-----------------------------
=> Code Hashing
=> Chat Room
=> Test Area
Powered by SMF 1.1 RC2
|
SMF © 2001-2005, Lewis Media
(C) 2008 DSLua
DSLua - Best scripting language for Nintendo DS home-brew!