TTLDE V2.1 - Text editor written by LUA

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

ema
Posts: 11
Joined: Wed Dec 07, 2005 3:02 am
Contact:

TTLDE V2.1 - Text editor written by LUA

Post by ema »

TwinTail LDE Version 2.1
is a text editor for LUA scripts written by LUA.

Changes:
- Added OSK selector
- Added 'Select and Decide' style OSK (beta)
- Modified file selector

download available at:
http://geocities.com/lua_ema/

screenshot
Image
Last edited by ema on Sat Jan 21, 2006 5:56 pm, edited 9 times in total.
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

very nice, perhaps it would be possible to implement p-sprint? like a toggle key or something to activate p-sprint, or a variation so it doesn't interfere with your shortcuts?
Proud Dvorak User
US 1.5 PSP (Original)
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

Here's hoping you can actually edit LUA scripts with it.
Mobile software tweaking :)
liquid8d
Posts: 66
Joined: Thu Jun 30, 2005 6:29 am

Post by liquid8d »

very nice! checking this one out... you have some of my 'must have' features.. multi documents, color coding and indentation :)

liquid8d
ema
Posts: 11
Joined: Wed Dec 07, 2005 3:02 am
Contact:

Post by ema »

Keyword-highlighting makes editor slow.

Currently bottleneck is Editor:Draw() in "editctrl.lc".
Do you have any ideas for optimizing?
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

Nice work, e-ma! I mostly like the dynamics of scrolling.
I've checked also your other suff, and there is a quest:
the number i got at running the benchmark is 66-67,
but your page shows the double. Why? Win-based Emu?
m.r.n
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

another thing:
I did not find the "BackSpace" thing,
and when doing SaveAs.. it does not ask for the file name at all.
I mean the environment could be more intuitive.
Just a note. Now you can attack. Zenrub?
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

As far as I was aware they were still working on the save as function.
ema
Posts: 11
Joined: Wed Dec 07, 2005 3:02 am
Contact:

Post by ema »

I wrote service for font caching, so editor became faster.
TrueType fonts will be supported on 1.8 or later.

mrn wrote:the number i got at running the benchmark is 66-67,
but your page shows the double. Why? Win-based Emu?
Yes. I took some screenshots with LuaPlayer windows version.
mrn wrote:I did not find the "BackSpace" thing,
To input Backspace, hold R and push L.
mrn wrote:SaveAs.. it does not ask for the file name at all.
'Default introduction text' and 'New text' has no file name.
Please read some file and use "Save As...", it'll be work.
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

thnx, i see now. m.
ema
Posts: 11
Joined: Wed Dec 07, 2005 3:02 am
Contact:

Post by ema »

I optimized font handling and TTLDE became faster than 1.6.
Rest of CPU power was assigned to handling skin.

Now planning:
ClearType for PSP (just modify ascii.png)
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

Wow, Im a total fan, except for the actual character input, I do believe that it could be a bit faster with less simultaneous button holds.

I guess practice will help, and I really like the other features for handling lua code. Colouring, function skip, insert lua commands, etc.
ema
Posts: 11
Joined: Wed Dec 07, 2005 3:02 am
Contact:

Post by ema »

Thank you for using!
I'm very interested in character input method on PSP.
Bob535 wrote:I do believe that it could be a bit faster with less simultaneous button holds.
Have you tried another mapping? (R trigger+Select to switch.)
Most common letters are mapped to one-stroke area.

If you've tested the mapping and thought it's slow,
could you tell me your ideas?
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

Im going to play around some more with it, I tried it only briefly.

Gimme a little while.
Koba
Posts: 59
Joined: Thu Sep 29, 2005 10:57 am

Post by Koba »

Shine and Nevyn should be proud of this, this shows that LUA is not to be underestimated, this program ROCKS!!! i use it for most of my lua programming now.
liquid8d
Posts: 66
Joined: Thu Jun 30, 2005 6:29 am

Post by liquid8d »

this is awesome... the only thing i can't find is how to switch between multiple documents? I actually like the key input in this...

liquid8d
kriswu
Posts: 1
Joined: Wed Dec 28, 2005 11:16 pm

Post by kriswu »

liquid8d wrote:this is awesome... the only thing i can't find is how to switch between multiple documents? I actually like the key input in this...

liquid8d
select + <-- -->
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

E-ma, bob is right:
Wow, Im a total fan, except for the actual character input, I do believe that it could be a bit faster with less simultaneous button holds.
ok, let NOT say "he is right", but sthng like "i agree with him".
i know, this twin-tail is your idea and you want to keep using it,
but with multiple simultaneous key-holding/pressing i mostly do mistakes
instead of typing the char i wanted. and..

since i really like this editor.., just wanted to ask/propose:
would it be a big effort to use the "dispFOSK" and "readFOSK" routines
to allow your users to choose between twin-tail and fosk?
(i mean sthng like offering the compatibility for users of the competition .)

cheers, m
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

I would vote for an option like PSP-PDA, just being able to select your input method of preference. If it requires me to (finally) write something like p-sprint in lua, then I'll get on it.

On a different note, I was wondering what keeps some luascripts from starting under the 0.9 loader. I discovered that some scripts run fine, like PSP-Millionaire 1.10, and others don't. I'm starting to think it has something to do with lua coding practices or .txt file formatting options.

For instance, PSPMillionaire does this:

dofile("./Counts.lua")

where TTLFE does:

dofile "ttlde.lua"

Also, they use different newline coding.

When starting LuaPlayer 0.15, it seems that the loader 0.9 detects a hard filepath in part of a script, which it cannot correct.

This should be reasonably easy to fix in LuaPlayer, I think, easier perhaps than in the loader?

When I change these options, it does seem to continue a bit more, but then stops at a 'press start to restart'. But the 'index.lua' not found message disappears.
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Has anyone discovered a way to get this running under Fanjita / 2.0 yet?
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

hi Arwin.
If it requires me to (finally) write something like p-sprint in lua, then I'll get on it.
i think it is your turn to port it. i do not really feel a big interest for pda-like apps in the lua community. do you have any info from the linux-guys .) ?
[/quote]
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Mrn, I think yo misunderstood me.

In the homebrew program psp-pda, you can select different input methods from the menu. So you can simply use whatever system you like. The author has added p-sprint as an option. Those that like it can use it, but those that prefer one of the three other systems can do that too.

There is probably no pleasing everybody. I was therefore merely suggesting it would be a nice option for people to select the system they like best in your great program.
User avatar
illfoundedmind
Posts: 22
Joined: Thu Nov 24, 2005 10:03 am
Location: N/A
Contact:

Post by illfoundedmind »

That program is very nice I used v.1 for a while. The only thing that bugs me is the keyboard system maybe make the keyboard larger and input easier the pressing three buttons at once like a video game or something. All around it is a great program and one that I turely enjoy.
illfoundedmind Production StudioImage
ema
Posts: 11
Joined: Wed Dec 07, 2005 3:02 am
Contact:

Post by ema »

You are right.
I know twintail is not for everyone.
This is optimized for speed and not comfortable.

so now I'm adding OSK selector to TTLDE.

-------
hold R + up-down : select input method(defaulted to last selection)
release R : decide method and enter OSK service
-------

from the next version, I modify specs for inputting characters.
you *may not* hold R button while typing.

Sorry for changing.
It was necessary to handling another OSKs on TTLDE.

I'll release new version asap.
thanks.
User avatar
illfoundedmind
Posts: 22
Joined: Thu Nov 24, 2005 10:03 am
Location: N/A
Contact:

Post by illfoundedmind »

And OSK sounds great just what it need, make it visible now. I don't want to have to be to inches away from the screen to be able to see it. I think this is one of the best apps out there BTW. I noticed a change in the interface as well form v1 to v2. Hope to see more inprovements in the future ^_^
illfoundedmind Production StudioImage
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

so now I'm adding OSK selector to TTLDE.
Perfect!!! Good Luck, Ema!
liquid8d
Posts: 66
Joined: Thu Jun 30, 2005 6:29 am

Post by liquid8d »

Just wanted to say that I love the improvements in the 2.0 version (found i was using the 1.7), like the line to show you where the cursor is, and actually being able to see the _ char.... in my opinion this is one of the best homebrew out there! I use this constantly now to write code.... Can't wait for the next version.

I would like to see an updated OSK look (i like the twintail layout fine), and maybe a "taskbar" showing all the open documents. Also, how bout remembering what files were opened last. I regularly have to reopen the same 4/5 files each time i exit and launch it again. One last thing.. when running a file which includes another (dofile), it doesn't seem to work. Any way to get this working?

Thanks,

liquid8d
modsyn
Posts: 28
Joined: Tue Sep 27, 2005 6:02 am

Post by modsyn »

ema,
i'm interested in using your keyboard input system in a project of mine.
it would be just for getting a single line (or value) of text at a time,
something like TTLDE's 'search' or 'save as' input box. is there any way
for me to easily use your functions?
something like:

Code: Select all

in_text = ttlde&#58;getInput&#40;&#41;
or something similar? if there isn't, what advice would you give me for
creating one?

thanks in advance,
modsyn
ema
Posts: 11
Joined: Wed Dec 07, 2005 3:02 am
Contact:

Post by ema »

modsyn wrote:is there any way
for me to easily use your functions?
something like:

Code: Select all

in_text = ttlde&#58;getInput&#40;&#41;
or something similar? if there isn't, what advice would you give me for
creating one?
For your purpose, my "TwinTail lesson" is helpful.
The most important part is line 67~88 at 'ttlesson.lua'.

TwinTail:Update() returns only inputted characters, so the
application has to interpret '\b' and other control characters.

Thanks,
ema
ema
Posts: 11
Joined: Wed Dec 07, 2005 3:02 am
Contact:

Post by ema »

I've released new version.
OSK selector became a plugin and can add OSK services easily.

For example, I added game-like OSK.
In this OSK, characters are selected by D-pad and
inputted by X button. (Backspace is Square, Enter is Triangle)
not necessary to hold R button.

Thank you for using.

ema
Post Reply