forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TTLDE V2.1 - Text editor written by LUA
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
ema



Joined: 07 Dec 2005
Posts: 11

PostPosted: Wed Dec 07, 2005 3:20 am    Post subject: TTLDE V2.1 - Text editor written by LUA Reply with quote

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


Last edited by ema on Sat Jan 21, 2006 5:56 pm; edited 9 times in total
Back to top
View user's profile Send private message Visit poster's website
Zenurb



Joined: 30 Sep 2005
Posts: 106
Location: United Kingdom

PostPosted: Wed Dec 07, 2005 6:07 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Dec 07, 2005 8:36 am    Post subject: Reply with quote

Here's hoping you can actually edit LUA scripts with it.
Mobile software tweaking :)
Back to top
View user's profile Send private message
liquid8d



Joined: 30 Jun 2005
Posts: 66

PostPosted: Wed Dec 07, 2005 1:32 pm    Post subject: Reply with quote

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

liquid8d
Back to top
View user's profile Send private message AIM Address
ema



Joined: 07 Dec 2005
Posts: 11

PostPosted: Wed Dec 14, 2005 2:40 am    Post subject: Reply with quote

Keyword-highlighting makes editor slow.

Currently bottleneck is Editor:Draw() in "editctrl.lc".
Do you have any ideas for optimizing?
Back to top
View user's profile Send private message Visit poster's website
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Wed Dec 14, 2005 8:52 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Wed Dec 14, 2005 9:14 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Bob535



Joined: 04 Nov 2005
Posts: 56

PostPosted: Thu Dec 15, 2005 3:14 am    Post subject: Reply with quote

As far as I was aware they were still working on the save as function.
Back to top
View user's profile Send private message
ema



Joined: 07 Dec 2005
Posts: 11

PostPosted: Fri Dec 16, 2005 3:53 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Fri Dec 16, 2005 8:24 am    Post subject: Reply with quote

thnx, i see now. m.
Back to top
View user's profile Send private message
ema



Joined: 07 Dec 2005
Posts: 11

PostPosted: Wed Dec 21, 2005 2:50 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
Bob535



Joined: 04 Nov 2005
Posts: 56

PostPosted: Wed Dec 21, 2005 2:51 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ema



Joined: 07 Dec 2005
Posts: 11

PostPosted: Thu Dec 22, 2005 3:03 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website
Bob535



Joined: 04 Nov 2005
Posts: 56

PostPosted: Thu Dec 22, 2005 5:13 pm    Post subject: Reply with quote

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

Gimme a little while.
Back to top
View user's profile Send private message
Koba



Joined: 29 Sep 2005
Posts: 59

PostPosted: Fri Dec 23, 2005 11:55 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
liquid8d



Joined: 30 Jun 2005
Posts: 66

PostPosted: Wed Dec 28, 2005 2:10 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message AIM Address
kriswu



Joined: 28 Dec 2005
Posts: 1

PostPosted: Wed Dec 28, 2005 11:19 pm    Post subject: Reply with quote

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 + <-- -->
Back to top
View user's profile Send private message
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Tue Jan 03, 2006 12:17 am    Post subject: Reply with quote

E-ma, bob is right:
Quote:
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
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Wed Jan 04, 2006 1:51 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Fri Jan 06, 2006 2:25 am    Post subject: Reply with quote

Has anyone discovered a way to get this running under Fanjita / 2.0 yet?
Back to top
View user's profile Send private message
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Fri Jan 06, 2006 5:13 am    Post subject: Reply with quote

hi Arwin.

Quote:
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]
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Fri Jan 06, 2006 5:27 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
illfoundedmind



Joined: 24 Nov 2005
Posts: 22
Location: N/A

PostPosted: Mon Jan 09, 2006 2:21 am    Post subject: Reply with quote

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 Studio
Back to top
View user's profile Send private message Visit poster's website
ema



Joined: 07 Dec 2005
Posts: 11

PostPosted: Wed Jan 11, 2006 11:03 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
illfoundedmind



Joined: 24 Nov 2005
Posts: 22
Location: N/A

PostPosted: Thu Jan 12, 2006 10:02 am    Post subject: Reply with quote

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 Studio
Back to top
View user's profile Send private message Visit poster's website
mrn



Joined: 02 Nov 2005
Posts: 116

PostPosted: Fri Jan 13, 2006 12:00 am    Post subject: Reply with quote

Quote:
so now I'm adding OSK selector to TTLDE.


Perfect!!! Good Luck, Ema!
Back to top
View user's profile Send private message
liquid8d



Joined: 30 Jun 2005
Posts: 66

PostPosted: Fri Jan 13, 2006 10:17 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message AIM Address
modsyn



Joined: 27 Sep 2005
Posts: 28

PostPosted: Fri Jan 20, 2006 5:35 am    Post subject: Reply with quote

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:
in_text = ttlde:getInput()

or something similar? if there isn't, what advice would you give me for
creating one?

thanks in advance,
modsyn
Back to top
View user's profile Send private message
ema



Joined: 07 Dec 2005
Posts: 11

PostPosted: Sat Jan 21, 2006 5:26 pm    Post subject: Reply with quote

modsyn wrote:
is there any way
for me to easily use your functions?
something like:
Code:
in_text = ttlde:getInput()

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
Back to top
View user's profile Send private message Visit poster's website
ema



Joined: 07 Dec 2005
Posts: 11

PostPosted: Sat Jan 21, 2006 6:23 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group