Apollo text editor

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

Moderators: Shine, Insert_witty_name

Post Reply
Soban
Posts: 14
Joined: Sat Aug 06, 2005 12:08 pm

Apollo text editor

Post by Soban »

In case anyone remembers or cares about my original post about a psp text editor, I was unable to post it last weekend because not only was I unable to access the internet that week, but also the following week because my worthless wireless router went crazy. But everything is fixed now and I can finally access the internet for more than 10 seconds at a time. Yay!

Also for anyone who remembers that post, new features have been put on hold while I improve the window system, make it more customizable, and create a bookmarking system.

You can download the latest working version (in the sense that it works, not that it has loads of bleeding-edge but untested features) here in Lowser compatible format. Be sure to take a look at the config.lua. If there is anything at all you don't like about the interface(and the keyboard, hint hint), it can probably be changed there.

Features currently include most of the stuff notepad does and also a whole mess of bugs. Notably missing features include find and replace. It used to have find and replace, but when I was most of the way done with it I discovered that it sucked ass, so I scrapped it and now it will be incorporated into the bookmarking system.

Features to expect in the next version:
-a better windowing system instead whatever crap I have in there now
-a really awesome bookmarking system for quick file navigation
-automatic bookmarking of important stuff like function definitions
-find and replace
-an alternate macro keyboard with lua keywords, lualib functions, and luaplayer lib functions, as well as random other stuff that may be useful
-better looking normal keyboard
-tabbing and autotabbing
-much easier customization of menus and functions with the improved windows system

Features not to expect in the next version, but to expect eventually:
-syntax highlighting
-a godlike all powerful interactive debugger
-less bugs

Any questions, comments, suggestions, etc. are more than welcome, unless they have something to do with the code in index.lua which while functionally the same as my current code, is almost completely different.

Bug reports about the text viewing part will be appreciated, however I am quite aware of the plethora of bugs in the menus so please don't remind me of them.

ps: Being off of the internet for two weeks, I did all of my development so far on version 7.something, so blame any really bad glitches on that. I am currently updating my toolchain and luaplayer.

Also, use the save and USB functions at your own risk. I haven't had any trouble and I doubt anyone else will, but just in case anyone's memory card blows up, don't blame me.

pps: By default, controls are as follows:
In text mode:
d-pad: moves cursor
triangle: home
square: delete
circle: carriage return
cross: highlight
L: open keyboard
select: open menu
In keyboard:
R: shift
d-pad and face buttons: select a smaller layout then press again for a letter
In menus and windows:
circle: ok, select
cross: cancel, ok in the folder browser
Last edited by Soban on Wed Aug 31, 2005 5:03 am, edited 1 time in total.
liquid8d
Posts: 66
Joined: Thu Jun 30, 2005 6:29 am

Post by liquid8d »

awesome... 2 text editors in one day! Really needed this as I can get some things done at lunch on the psp.. one problem. Both yours and the notepad editor that was released, I am getting 'error: cannot read index.lua' .. not sure why.
Soban
Posts: 14
Joined: Sat Aug 06, 2005 12:08 pm

Post by Soban »

That's really weird...it works fine for me. I uploaded the file again exactly as it is on my psp, so try downloading it now.
liquid8d
Posts: 66
Joined: Thu Jun 30, 2005 6:29 am

Post by liquid8d »

actually its bizarre.. it's working now. I had a bunch of garbled files and things so I think something goofed during the copy to the PSP. Is this pSprint I take it? I am really confused as to how to input anything.
Soban
Posts: 14
Joined: Sat Aug 06, 2005 12:08 pm

Post by Soban »

It's like p-sprint, but with a more visual interface. It prints out a set of layouts that map to the d-pad and face buttons. Push one button to pick a smaller layout then push another one to pick a specific letter.

Oooh... I forgot to mention something rather big... Push select to open the menu. When you first open the editor there is no file open so you need to go to the menu and hit either new or open to start doing stuff.
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

not working

Post by Bob535 »

I am getting

error: cannot read index.lua:
Error: No scripte file found.

Press start to restart


Any ideas why?
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

and now it works, although not great, Ima tweak the code a bit and post what I do.

Your code is a mess btw. But an appreciated mess none the less

First thing changed, in config, changed text colours to white and background to black as the menus would not display the black text on a black background. Changed the cursor colour to something other than black so it can be seen.

This is due to the fact that screen:clear(color) only clears to black in the current lua release due to an error.



and now for some reason the code doesnt work again. Even tried recovering using the original files and nada, code wont run anymore

powercycled the psp and it works again. Hmmm.


argh, your program is messing with my mind
Last edited by Bob535 on Sun Nov 06, 2005 5:24 am, edited 1 time in total.
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

Okay, this isnt working, I cant figure out the logic behind some of your code, Ima stick with playing with the colour settings because everything I try to do somehow breaks the rest of the code.

Looking forward to seeing this updated.

Features I would like to see,
Single Tap of the L key to bring up the window, not holding it down
Have the program put spaces in between each button press, it is too easy to double hit buttons right now. ( Fixed partially by adding 5vsync pauses almost everywhere the code does stuff )
Have the program read Tabs correctly, also, interting tabs

Also, if you would like some help coding this, feel free to give me a shout.
DigitalGenius@Shaw.ca for e-mail
Bob535@Hotmail.com for MSN
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

Soban are you planning on continuing development of this project?
If not, can I have permission to take it over?
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

mkay

Post by Bob535 »

Since I have received no response, and it looks like soban has abondoned this project I will be taking it over. I have already cleaned up the code and added a little bit of a delay( so doublekeypresses dont happen ) which have improved it slightly. I will next be working on figuring out what code works, and what code does not work.

I will start a new thread for this program to get feature requsts/bug reports. Then I will work on those
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

Ok, Bob. Good news. Hope, you'll also implement PSP - FOSK,
the fast on-screen keyboard concept...
http://forums.ps2dev.org/viewtopic.php?t=3973
mrn
Post Reply