Jump to content




LuaIDE 1.0 - You Might Actually Like Editing In Game


221 replies to this topic

#1 GravityScore

  • Members
  • 793 posts
  • LocationLand of Meh

Posted 21 April 2013 - 04:53 AM

LuaIDE

Version 1.0



Try out a live demo using 1lann and my HTML5 emulator online!
Visit here!

Hey all!

I present a project I've been working on for a while - a concoction of procrastination and code. It's LuaIDE, an in game Integrated Development Environment. Fully featured with things like live errors, code highlighting, go to line function, automatic saving, error aid, running with and without arguments, and a functional clipboard. You might actually want to edit in game more often.

Features
- See errors in your code pop up live as you type
- Click on the ! on a line with an error to see what's wrong
- Syntax highlighting
- Set syntax function
- Brainf**k Interpreter
- Re-indent function (by Engineer and I)
- Go to line function
- Run your program from within LuaIDE with or without arguments
- Got an error in your program? Use the in app error aid to help diagnose the problem!
- Cut, copy, paste, delete and clear lines of code
- Keyboard shortcuts (such as control+n for a new file, or control+o to open a file)
- Customisable themes
- Disable live errors and syntax highlighting for normal text documents
- Use the command (mac) or control key to execute keyboard shortcuts

Feedback is greatly appreciated! Please leave a comment below suggesting anything you'd like to see added, changed, amended, modified, removed, etc...

Coming Soon
See all planned features in the GitHub Features List

Known Bugs
Tracked using the GitHub Bug Tracker

Usage
Either use LuaIDE just like the edit program, by including the file you want to edit as an argument, or just run the file, and open a file or create a new one from within the program.

Screenshots - Need Updating
Editor:
Posted Image

Main Menu:
Spoiler

Creating a File:
Spoiler

Settings:
Spoiler

Open Menu Bar when Editing:
Spoiler

Download
Download LuaIDE from Pastebin or Hastebin, with the Pastebin ID: vyAZc6tJ or the Hastebin ID: munewakine.lua
Or just type into your computer:
pastebin get vyAZc6tJ luaide

Credits
- Code by GravityScore
- 1lann, for his keyboard shortcut monitoring function (a solid 1.8% of the entire program)
- Engineer, for the re-indent function
- Cruor, for his simplified theme loading function (using regex)

Edited by GravityScore, 24 March 2014 - 11:12 AM.


#2 lieudusty

  • Members
  • 415 posts

Posted 21 April 2013 - 04:58 AM

Been waiting for this, Grav :P

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 6,952 posts
  • LocationAustralia

Posted 21 April 2013 - 05:01 AM

Very nice! I always like seeing what you have done, and you never disappoint. Always works well and looks fantastic! Great work!

P.S. Now that a decent editor is around I may start to code in-game again ;) :P

#4 GravityScore

  • Members
  • 793 posts
  • LocationLand of Meh

Posted 21 April 2013 - 05:03 AM

View Posttheoriginalbit, on 21 April 2013 - 05:01 AM, said:

P.S. Now that a decent editor is around I may start to code in-game again ;) :P

That was the purpose! :P

#5 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,304 posts
  • LocationPennsylvania

Posted 21 April 2013 - 05:04 AM

Well done Grav! I think this beats the Taco Editor by far. I still don't like to edit in game though :P

EDIT: I take that back... Yours is much better than Sublime :)

#6 M4sh3dP0t4t03

  • Members
  • 255 posts
  • LocationGermany

Posted 21 April 2013 - 05:04 AM

definitely the best in-game editor I have seen so far

#7 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 6,952 posts
  • LocationAustralia

Posted 21 April 2013 - 05:09 AM

View PostGravityScore, on 21 April 2013 - 05:03 AM, said:

That was the purpose! :P
I know, I read the title :P

btw you need to wrap the text http://puu.sh/2DGA4.png
also idk how you have implemented it, but maybe the error help should give a little more detail, for example, for 'end' expected to close 'function' at line 1, you only state in the help about missing the end (http://puu.sh/2DGCU.png) maybe you should also mention that it was missed for the function and what the name of the function is.
I do like the 'Go To Line' button that you provide...
Lastly, however you do the error checking for the line as typing needs to be tweaked a little I think. I'm getting it showing an error mid type, it probably should have some kind of delay so as to not make the user think something is wrong when its not, its just that the error checker is checking before they have finished typing out the line.
EDIT: Oh and since you got the multi keyboard shortcut going, should add a shortcut for us awesome Apple people with laptops, ⌘ + → as the 'end' key, and ⌘ + ← as the 'home' key...
EDIT 2: http://puu.sh/2DGQF.png I'm assuming the error there is because you are making sure there are no nested block comments? also block comments don't highlight.

Edited by theoriginalbit, 21 April 2013 - 05:13 AM.


#8 GravityScore

  • Members
  • 793 posts
  • LocationLand of Meh

Posted 21 April 2013 - 05:18 AM

1. For the delay on the error system, maybe something like it doesn't detect errors on the line you're typing? Or a timer delay? Or both?

2. I'll get onto wrapping those errors

3. The help is not very detailed at all. It's sorta in prototyping version at the moment (the help), I need a list of Lua errors that are possible to get...

4. I'm using a similar highlighting system found in the edit program, which also doesn't highlight block comments. I'll look into changing it so I can support it.

5. Those keyboard commands for us Apple people should be easy to do, on it right away :P

Thanks for the feedback!

#9 GravityScore

  • Members
  • 793 posts
  • LocationLand of Meh

Posted 21 April 2013 - 05:19 AM

View PostSuicidalSTDz, on 21 April 2013 - 05:04 AM, said:

Well done Grav! I think this beats the Taco Editor by far. I still don't like to edit in game though :P

EDIT: I take that back... Yours is much better than Sublime :)

You can't be serious!??!?!?! Sublime is the most sublimely epically astonishing fantastic amazing impressive intuitive awesome text editor know to man. This can't possibly be better!

#10 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,304 posts
  • LocationPennsylvania

Posted 21 April 2013 - 05:21 AM

View PostGravityScore, on 21 April 2013 - 05:19 AM, said:

You can't be serious!??!?!?! Sublime is the most sublimely epically astonishing fantastic amazing impressive intuitive awesome text editor know to man. This can't possibly be better!
I am dead serious. I love this text editor. The colours are soo nice, the highlighting is superb. I am just speechless ^_^

Nice big words Grav :P

#11 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 6,952 posts
  • LocationAustralia

Posted 21 April 2013 - 05:24 AM

1. I think a timer delay, but only after you have stopped typing, like maybe a couple of seconds after no keystrokes, or clicks, but not scrolling, scrolling should force a check...

3. Ahh ok fair enough, like I said, didn't know how you did it, just thought it might be a nice addition.

4. Yeh I figured that was why, I assume it wouldn't be too hard, boolean flag.

5. Yay! :) :P


View PostGravityScore, on 21 April 2013 - 05:18 AM, said:

Thanks for the feedback!
Your welcome! Thanks for the program! :)
And you know me, always willing to help :)

#12 ZudoMC

  • Members
  • 788 posts
  • LocationUK

Posted 21 April 2013 - 05:34 AM

OMG! Ive been waiting for something like this for ages! If its ok I might include this in my new OS :) :) :) :)

#13 GravityScore

  • Members
  • 793 posts
  • LocationLand of Meh

Posted 21 April 2013 - 05:35 AM

View PostZudoHackz, on 21 April 2013 - 05:34 AM, said:

OMG! Ive been waiting for something like this for ages! If its ok I might include this in my new OS :) :) :) :)
Sure go ahead!

The command key on a mac can now be substituted for the control key, and added a go to start and go to end of line functions under the functions menu (with keyboard shortcuts) :D

To update, go to settings in the menu, then hit the update button in there.

#14 NDFJay

  • Members
  • 216 posts
  • LocationLeeds, England

Posted 21 April 2013 - 05:37 AM

Oh gravity, top work as always! loving it! think it might be time to redownload minecraft and actually start playing and programming in game again!

#15 Symmetryc

  • Members
  • 431 posts

Posted 21 April 2013 - 05:41 AM

Fantastic Job! I really like it. Maybe someday you could make it so that there are plugins, just like Sublime Text ;).

View PostNDFJay, on 21 April 2013 - 05:37 AM, said:

Oh gravity, top work as always! loving it! think it might be time to redownload minecraft and actually start playing and programming in game again!
Not only is it helping people program in-game, but also playing minecraft itself! :P.

#16 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 6,952 posts
  • LocationAustralia

Posted 21 April 2013 - 05:41 AM

I do love how you have themes! You can't click anything in that menu though :( only keys, also a scroll bar to indicate there are more themes might be nice.
Lastly, it wont update, it says there is an update, but it just exists to the shell.... what happened to the yellow thank you message :(

EDIT: Oh a way to get back to the main menu from the editor would be nice :)
EDIT 2: In the original theme the line numbers are unreadable on the selected line http://puu.sh/2DHSw.png
EDIT 3: A visual bug... in the themes the 'exit' button is different colours to the rest, except in the fire theme, it is the same colour.

Edited by theoriginalbit, 21 April 2013 - 05:45 AM.


#17 diegodan1893

  • Members
  • 164 posts
  • LocationSpain

Posted 21 April 2013 - 05:45 AM

I found a bug on error checking:

http://i.imgur.com/30T8a5d.png?1

#18 GravityScore

  • Members
  • 793 posts
  • LocationLand of Meh

Posted 21 April 2013 - 05:57 AM

View Postdiegodan1893, on 21 April 2013 - 05:45 AM, said:

I found a bug on error checking:

http://i.imgur.com/30T8a5d.png?1

I noticed that in testing too. No clue why Lua does that.

BIT... help? :P

EDIT: Anyway, got the error wrapping working, and the themes list is now clickable and scrollable. Can't believe I forgot about mouse interactions in my scrollingList function... :P

#19 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 6,952 posts
  • LocationAustralia

Posted 21 April 2013 - 06:04 AM

View PostGravityScore, on 21 April 2013 - 05:57 AM, said:

BIT... help? :P
You're using loadstring right?

View PostGravityScore, on 21 April 2013 - 05:57 AM, said:

Can't believe I forgot about mouse interactions in my scrollingList function... :P
Lol!

#20 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 21 April 2013 - 06:08 AM

Oh so this is one of the secret projects you've been working on.

Well, as always - no disappointment. This is amazing Grav!
I'm speechless xD

Keep up the work :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users