Thursday, 20 November 2008
 
  Home arrow Forum  
Main Menu
Home
News
Forum
Documentation
Download
Links
Administrator
Login Form
Welcome, Guest. Please login or register.
November 20, 2008, 01:34:42 PM
Username: Password:
Login with username, password and session length

Forgot your password?
Recent Beginner
DSLua Community
Welcome, Guest. Please login or register.
November 20, 2008, 01:34:42 PM
1723 Posts in 315 Topics by 5679 Members
Latest Member: beewseigabe
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Bugs & Suggestions  |  Recent Beginner « previous next »
Pages: [1] 2
Author Topic: Recent Beginner  (Read 3810 times)
ghaxaq
New Moon
*
Posts: 6


« on: January 02, 2007, 03:19:08 PM »

Hi, my name is Simon and I recently began to read and know more about DSLua (I just tried a few programs).. I went through all the tutorials Jeremysr made available on his website, and I'd like to thank him for the good work he is doing (Go Add More tutorials!!) because his tutorials are easy to understand and  they've got examples with them.

Though I'd have a few questions to ask..

Could a better text be implemented instead of creating my own font style? (The text is not so easy to read and a slimmer, but whiter text could be better as a default in my opinion)

Couldn't you do just one version for flash cards? Why do you have to code different files for different media, instead of choosing for example: "Media.SC, Media.M3, Media.G6, etc." and put it in your code?

When will the next release of DSLua be approximately? And what(All) changes will there be?

Thanks for your work, and I'll soon be planning some applications as a beginning.
« Last Edit: January 02, 2007, 03:23:50 PM by ghaxaq » Logged
Jeremysr
Waxing Gibbous
****
Posts: 254



WWW
« Reply #1 on: January 02, 2007, 07:27:21 PM »

DSLua uses PAlib for text output, so unless we find another way to do it, you will probably have to download DSLua's source code and recompile it with a custom font using the instructions here: http://www.palib.info/wiki/doku.php?id=day3#custom_font_text_border . Maybe I'll even write a tutorial about it. Grin  I also don't really like the default font of PAlib so maybe we'll make a new font that looks better to release with DSLua in the future.

The different versions of DSLua are there because we are using LibFATDragon. I'm not sure how it works yet, or if it's possible to put it all in one file. Sypherce will have to answer this question better, he's the one who's done all the coding so far (for version 0.6) and switched to LibFATDragon.

And I'm still not sure when version 0.7 will be released or what features it will have.
Logged
sypherce
Waxing Crescent
**
Posts: 13


Pixels have feeling too :3


WWW
« Reply #2 on: January 02, 2007, 10:15:28 PM »

Could a better text be implemented instead of creating my own font style? (The text is not so easy to read and a slimmer, but whiter text could be better as a default in my opinion)
I think the default text is pretty bland myself, I think instead of replacing the default one I'll instead make it customizable (as it is in palib normally).

Couldn't you do just one version for flash cards? Why do you have to code different files for different media, instead of choosing for example: "Media.SC, Media.M3, Media.G6, etc." and put it in your code?
As jeremy said we switched to libfatdragon, this is because I know it runs on a wide range of cards, although it is a hassle having 3 versions. I'll look into adopting another fat library, possibly one from moonshell (not sure if it's just one build though, but I think it is).

When will the next release of DSLua be approximately? And what(All) changes will there be?
I'm not setting a date on release but I'm hoping by the end of the month (this isn't set in stone, it could be much later). My current ideas for 0.7 are as follows:

3D Support
JPG, PNG, GIF, BMP loading
BMP Saving (possibly others)
4bit,15bit/16bit modes

The image loading and saving is definitely getting put into this version (seems trivial to add), its possible I might postpone either the new bit modes or 3D support, depends on how long it takes and how problematic they are to implement.

Any suggestions or comments on the future and features of DSLua are always welcome (as long as they aren't too negative :3).
Logged
ghaxaq
New Moon
*
Posts: 6


« Reply #3 on: January 03, 2007, 02:23:53 AM »

So how can I use a custom font in my programs?

How can I set the keyboard to output the text on the Top screen while typing

Thanks alot for your answers. Hope DSLUA gets better and better and increases the number of features.
« Last Edit: January 03, 2007, 03:49:07 AM by ghaxaq » Logged
Jeremysr
Waxing Gibbous
****
Posts: 254



WWW
« Reply #4 on: January 03, 2007, 05:42:22 AM »

Right now it's complicated to change the font. You will probably have to wait for us to use a better default font or let you use your own custom fonts more easily.
Logged
daltonlaffs
Waxing Gibbous
****
Posts: 340


Freaking Insane


WWW
« Reply #5 on: January 03, 2007, 08:13:48 AM »

I do have a small font change system I rigged up. It takes 16x by 32y letters, arranged into 4 framestrips. However, you will need to set how many pixels wide each letter is, so that the program gets the spacing right... also, to free the text, you need to know exactly how many characters you have printed (not including spacing).

If you want it, just PM me... i can send it to you and explain its use.

And btw, sypherce... PLEASE ADD SRAM SUPPORT FOR 0.7 PLZPLZPLZPLZPLZPLZPLZPLZPLZ!!!

*hurk hem* I mean... how about sram support? Smiley

And for sram... I found out that my cart has the smallest saves of all (32k) so we are going to need to go at least 32k.
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


WWW
« Reply #6 on: January 03, 2007, 05:04:50 PM »

This is excellent news also i am hoping to get my game working on my NinjaPass X9if the X9fatLib files was to be released would you be able to implement it into DSLua so that my game would work on the NinjaPass?
Logged

CURRENT PROJECT:

JesterCorp DS- 2D FIGHTING GAME!!! Due out August 19th 2007!!!Having Sprite Issues but Toast is helping me ALOT
brennan
Waxing Crescent
**
Posts: 44


WWW
« Reply #7 on: January 03, 2007, 05:24:27 PM »

jester: Grammar

@ the font question:

Wouldn't it be possible to do something like in MightyMax's bootloader (yes, I still prefer it over MoonShell.)?

First create your font


then create a file with all the measurements, like this:
Code:
lineA=ABCDEFGHIJKLMNOPQRSTUVWXYZ
lineB=abcdefghijklmnopqrstuvwxyz
lineC=0123456789:/\@"'.,#-_*()[]

BMP_FILE=/mb_data/font.bmp
BMP_HEIGHT=18
BMP_WIDTH=156
CHAR_HEIGHT=5
CHAR_WIDTH=5
CHAR_SPACING=1

and include() it?

(the include might need to be changed to be suitable for dslua, and I'm not sure)

And there would have to be some other code to make it display, I would think.
Logged
sypherce
Waxing Crescent
**
Posts: 13


Pixels have feeling too :3


WWW
« Reply #8 on: January 03, 2007, 10:29:31 PM »

jester: Grammar

@ the font question:

Wouldn't it be possible to do something like in MightyMax's bootloader (yes, I still prefer it over MoonShell.)?

First create your font


then create a file with all the measurements, like this:
Code:
lineA=ABCDEFGHIJKLMNOPQRSTUVWXYZ
lineB=abcdefghijklmnopqrstuvwxyz
lineC=0123456789:/\@"'.,#-_*()[]

BMP_FILE=/mb_data/font.bmp
BMP_HEIGHT=18
BMP_WIDTH=156
CHAR_HEIGHT=5
CHAR_WIDTH=5
CHAR_SPACING=1

and include() it?

(the include might need to be changed to be suitable for dslua, and I'm not sure)

And there would have to be some other code to make it display, I would think.

In palib there is an example for using a custom font. If you have palib installed you can find it in C:\devkitPro\PAlibExamples\Text\CustomFont (C:\ being whatever harddrive you installed on). It's relatively trivial to make a wrapper for this, here's the font in the example (8x8 tiles).


* newfont.gif (2.83 KB, 256x72 - viewed 132 times.)
Logged
jester
First Quarter
***
Posts: 123


Jester Corp DS Logo


WWW
« Reply #9 on: January 04, 2007, 03:22:30 AM »

thanks i have bad grammer though
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


WWW
« Reply #10 on: January 04, 2007, 07:33:19 AM »

I'VE GOT THIS ONE OH YEAH XD

I mean... I'll put this in dslua... sypherce dont do it...  Smiley
Logged

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



^^ That works, I SWEAR! ^^
ghaxaq
New Moon
*
Posts: 6


« Reply #11 on: January 04, 2007, 11:15:12 AM »

Hope that the next version is out soon because dslua is so simple but it lacks some programming features that will let you make not only games but also applications. Good Luck Guys!!
Logged
brennan
Waxing Crescent
**
Posts: 44


WWW
« Reply #12 on: January 04, 2007, 06:18:09 PM »

Hope that the next version is out soon because dslua is so simple but it lacks some programming features that will let you make not only games but also applications. Good Luck Guys!!

Because it's not a programming language. It's for scripting.
Logged
sypherce
Waxing Crescent
**
Posts: 13


Pixels have feeling too :3


WWW
« Reply #13 on: January 09, 2007, 09:03:11 PM »

I'VE GOT THIS ONE OH YEAH XD

I mean... I'll put this in dslua... sypherce dont do it...  Smiley

Did you ever do it? Cause... I never saw this reply until now (it's implemented now). :3
Logged
daltonlaffs
Waxing Gibbous
****
Posts: 340


Freaking Insane


WWW
« Reply #14 on: January 10, 2007, 07:24:57 AM »

....darn it.

Yeah, I did it, but for some reason, it froze every 1 in 5 tries...  Huh
Logged

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



^^ That works, I SWEAR! ^^
Pages: [1] 2
« previous next »
    Jump to:  



    (C) 2008 DSLua

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