Suggestions
#1
Posted 17 November 2005 - 10:35 PM
This is because it seems that there are more and more Lua users, and I'd like to give the possibility to everyone to easily make some new suggestions about things that they would like to see in a future version. If we see that many people are interested in a certain feature I will certainly adjust the priorities in the list.
Several things have already been suggested and I don't forget them, but perhaps there is something other that we didn't think about and that would be quite useful in CPLua
But please consider that I'm currently alone to develop every aspects of CPLua (except the Lua interpreter itselfs and the SDK features like the CAS etc), so it could take a little time before the actual implementation of each suggestion Many thanks to the CPLua users that help we testing it btw, this way I can concentrate on the develoment rather than on tracking the eventual bugs
Also, if you are familiar with C/C++ and if you think that you can write a C package/library for CPLua, please let me know! Don't be too afraid by the Lua API described in the manual - there are tools to make C functions or classes available in the Lua language automatically, so you don't have to worry too much about Lua's stack system etc
Another point, especially for the members who are familiar with CPBasic: if you think about some useful CPBasic commands that are missing in CPLua and that you'd like to see implemented, you may post it here
#2
Posted 17 November 2005 - 11:16 PM
Now, about C/C++ packages: I have a numerous collection of C routines concerning numerical methods. Most of them are actually Fortran routines, translated to C. They are lengthy, and not very structured. Nevertheless, they are based on well-tested Fortran routines, and their functionality is almost equal to the original; the end-user doesn't see any difference. Is there an automated way to make a C package of such routines available in CPLua? Note that most of these routines include only very common C header files (such stdio.h etc). However, I don't know how a CPLua program can call a C executable, namely how the interface in implemented (how, for example, a Lua table is passed to a C function as an argument).
#3 Guest_-Tom-_*
Posted 18 November 2005 - 09:15 AM
#4
Posted 19 November 2005 - 08:42 AM
So it would be great to make the program go to the line where the error occured. And for the function draw.text, it would be better if you use the default font (for multibyte characters). And I know this will be hardly implemented, but can you make a text window with an "infinite" horizontal scrollbar, like Dev-C++ (without this, a single line can become multiple lines in the editor). And a keyboard with a catalog (because I can't remember ALL the functions... particularly in the 'string' and 'table' packages). And I noticed some bugs:
-When you open more than 4 files in the same time and tap MENU' />, a fatal error occurs
-When you turn the keypad on when a program is running, and turn the keypad off, a line stands in the middle of the screen
-In the "Tiny keypad" when you use the Shift button, the "<", ">", "$" buttons don't work properly
...and a 'picture' package... but PAP will say it is for game developping... and he will be right...
I think that's all. and good luck!
#5
Posted 19 November 2005 - 09:16 AM
Extremely useful, indeed. Such a feature will save a lot of time for a CPLua programmer. I also want this to be implemented, but I'm afraid it won't be easy...I often write very long programs in CPLua. And when there is an error (like "main:325" ), it is very difficult to find the line where the error occured. (and I can't count all the lines!!!!)
So it would be great to make the program go to the line where the error occured.
Indeed, that's what I want to say. A "picture" package will be useful, but don't you think that it should have a very low priority, given that things such as the "io" package are missing?...and a 'picture' package... but PAP will say it is for game developping... and he will be right...
#6
Posted 19 November 2005 - 11:22 AM
I totally agree... that's why it is already implemented in CPLua 0.8B This new version should be released today btwExtremely useful, indeed. Such a feature will save a lot of time for a CPLua programmer. I also want this to be implemented, but I'm afraid it won't be easy...I often write very long programs in CPLua. And when there is an error (like "main:325" ), it is very difficult to find the line where the error occured. (and I can't count all the lines!!!!)
So it would be great to make the program go to the line where the error occured.
It wouldn't be better, because with the Vector font we can specify the style (italic, bold) and the size of the text, and you cannot do that with the default font (except for the 'bold' property). Perhaps I will make a new function 'draw.cptext()' (something like that) with less arguments than 'draw.text()' that use the default fontAnd for the function draw.text, it would be better if you use the default font (for multibyte characters).
I will try to let is as an option. I don't want too change it completely, because I'm sure that several users find the line wrapping useful (and I'm one of them )And I know this will be hardly implemented, but can you make a text window with an "infinite" horizontal scrollbar, like Dev-C++ (without this, a single line can become multiple lines in the editor).
Hmm you should have said it in CPLua's main topic-When you open more than 4 files in the same time and tap , a fatal error occurs
-When you turn the keypad on when a program is running, and turn the keypad off, a line stands in the middle of the screen
-In the "Tiny keypad" when you use the Shift button, the "<", ">", "$" buttons don't work properly
The bugs 2 and 3 have been fixed. But I can't reproduce the first bug
Perhaps not very low priority, but lower than the 'io' package priority, that's certainIndeed, that's what I want to say. A "picture" package will be useful, but don't you think that it should have a very low priority, given that things such as the "io" package are missing?
#7
Posted 19 November 2005 - 05:38 PM
The bugs 2 and 3 have been fixed. But I can't reproduce the first bug
Perhaps more than 5, not 4... I will try...
#8
Posted 19 November 2005 - 06:46 PM
Perhaps more than 5, not 4... I will try...
I tried with 15 at once, and I cannot confirm that bug. CPLua 0.72
#9
Posted 27 November 2005 - 03:48 PM
#10
Posted 27 November 2005 - 04:51 PM
Why notIt would be great if you make a "statusbar" package to change the text in the status bar. (The "Running..." string is often useless...)
But a single function statusbar() will be enough I guess
#11
Posted 28 November 2005 - 07:28 PM
Something like int wait(int milliseconds) would be nice for games. It would also be practical to give a limited time to waitpen or waitkey functions (especially waitpen...)
Oh, and File/Communication I/O please !!! Life isn't worth living when you can not link two CPs together !!
#12
Posted 30 November 2005 - 08:00 PM
*font=loadfont(file) //Loads a picture file as a font //So we could have: *draw.textf(x,y,text,font=default_font)
But you will have to make a function to convert a picture into a font (as your program FontMaker).
#13
Posted 30 November 2005 - 10:47 PM
At least you have another person/CP to connect to. No one within 203984290384908239004 miles of me has another CPOh, and File/Communication I/O please !!! Life isn't worth living when you can not link two CPs together !! tongue.gif
#14
Posted 01 December 2005 - 04:29 PM
Thanks!
#15
Posted 01 December 2005 - 05:55 PM
No one within 203984290384908239004 miles of me has another CP
Wahh it means that you are about 34,676,261.6 light-years from us!
In what galaxy do you live?
(I hope I will be able to see your answer in less than 69,352,523 years...)
#16
Posted 01 December 2005 - 09:37 PM
#17
Posted 01 December 2005 - 11:32 PM
I believe I live in the Andromeda galaxy....
My entire school board consists of anti-anti-American company dum@sses that would fail to hammer a nail if they all worked together, so me, and some other CASIO freak(s) (only 2 people, including me) are the only ones with casio calculators...and I'm the only one with a CP
#18
Posted 09 December 2005 - 07:06 PM
At least you have another person/CP to connect to. No one within 203984290384908239004 miles of me has another CP
The matter is that nobody wants to spend 199? (yes I am French) in a calculator! They should have "better" things to buy. I think I live in TacoFred's galaxy.
#19
Posted 11 December 2005 - 08:33 AM
#20
Posted 11 December 2005 - 10:45 AM
I thought you were planning to make a new add-in for that, not a program in Lua... I don't think that it's a good idea to do that in Lua thoughI'm trying to reproduce some Graph 35 games
#21
Posted 11 December 2005 - 08:43 PM
#22
Posted 06 January 2006 - 12:08 PM
#23
Posted 11 January 2006 - 02:32 PM
I know that it can be not easy, and I will say it again.. but 'My programs' for Lua would be very useful, I think for many users.
It would be great that the PegAppInitialize functions has two parameters, like:
void PegAppInitialize(PegPresentationManager* pPresentation, void* args=NULL);And you could use a function like:
bool CallAddIn(char* name, void* args=NULL);which returns when a message like PM_EXIT is sent... What do you think about this, Brian Maguire? It would be great for the next CPSDK...
#24
Posted 12 January 2006 - 07:08 PM
#25
Posted 12 January 2006 - 07:08 PM
It would be great for the next CPSDK... laugh.gif
"next CPSDK..." I don't think that will come...
#26
Posted 13 January 2006 - 07:04 PM
"next CPSDK..." I don't think that will come...
Yes I am dreaming... But hope you are wrong...
#27
Posted 15 January 2006 - 02:05 PM
* id=dialog.message(message, title="", buttons={"OK"}) * string=dialog.input(prompt, title="", cancel=0) * file,folder=dialog.storage(datatype=0)
And so on...
#28
Posted 15 January 2006 - 06:28 PM
Indeed, the dialog windows could be a part of it
#29
Posted 18 January 2006 - 03:01 PM
I think that a complete "ui" package would be more convenient
Indeed, the dialog windows could be a part of it
Great!!!!!! And please... the "picture" package would be useful for me...
#30
Posted 20 January 2006 - 11:26 AM
#31
Posted 20 January 2006 - 07:13 PM
#32
Posted 21 January 2006 - 08:20 AM
Note that CPLua was not designed for it, thus I will have to perform some major changes again; but it's ok since the project is still in development (I don't know when this - and the official release will be ready though)
#33
Posted 21 January 2006 - 09:18 AM
#34
Posted 21 January 2006 - 03:43 PM
The problem does not come from the display, but from the format needed for the sprites and the way to create, edit, save, restore and delete them. Using simple Lua tables to store sprites is a really bad idea, because it would use a lot of memory and would be hard to handle. To make things correctly, I should use a new special type for it (i.e. another "userdata" customisation, like for the CAS expressions), and I should create some utilities to create and edit sprites easily. Then those sprites would need to be saved in a file with a new specific format, and Lua programs must be able to load them...Would be the "picture" package difficult to implement?
As you can see, it isn't really a problem a difficulty, it's just that it requires a lot of work, especially if I want to make a system that won't need to be changed too much in the future (for compatibility reasons).
I need more suggestions and ideas about that kind of problems. For now I just received some suggestions like "we want sprites support" etc, but how would you like it? It would be nice if you could be more specific, because otherwhise I will have to take all decisions by myself, and there are chances that you won't like it that much (and afterall, you are using CPLua a lot more than I do ). Tell me more exactly what you would like to see (and how it will be used etc), and I will tell you if that's possible or not (The same remark goes for the UI package; which functions do you want to find in it? what features must be available in it? You're the customers, and I'm the developper: if you want something that will fit your need you have to give me details about what you want to see implemented )
#35
Posted 21 January 2006 - 08:04 PM
For the UI package, you should implement a message function for message handling, but I fear it would be VERY hard! I'll try to think a bit about that to see if I can find a simpler solution.
#36
Posted 22 January 2006 - 12:40 PM
#37
Posted 22 January 2006 - 03:07 PM
Everyone, do not think about difficulty - just give me the functions you want, what parameters are needed and what they should return. I will then tell you then if it's possible or not
OK Go!
// Picture functions h=picture.create(width,height) // Creates a new picture (buffer, like Screen::CreateBitmap()) draw.onpict(pict) // Set the draw mode on a specidied buffer (so you should use BeginDraw(PegBitmap)) draw.picture(pict) // Draws a picture on the screen h=picture.load(path) // Returns a copy of the PICT file located at path
#38
Posted 24 January 2006 - 12:04 PM
#39
Posted 25 January 2006 - 06:16 PM
I think that a good way to create RPGs or Tetris with Lua is to use sprites, so a sprite-function set would be usefull
sprite.draw ( x, y, table, color, w, h)
-- x,y as coords, table is the table/matrix (auto-detec dimentions or use table.getn() )
and as color 1 for black on white (1>black 0>white in the table) , 0 for white on black, -1 (or anything else) for transparency (only the 1 in the table will be draw).
w, h for the width/heigh of each 'pix' in the table, for example if you want to draw a Tetris bloc, this could be done with a 2*2 array only ^^
the syntax would be : sprite.draw ( x, y, piece, 1, 5,5) for a 5*5 bloc
sprite.width/heigh ( table, dim)
-- this function for modify the dim of an array (but it keep the proportions!)
may be usefull for effects on menu...
we can also do a single function of both...
#40
Posted 25 January 2006 - 07:50 PM
table is the table/matrix (auto-detec dimentions or use table.getn() )...
Hmmm, he said using sprites with tables would be not a great idea.... slow slow......
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users