Jump to content


Photo

External Code Editor


  • Please log in to reply
34 replies to this topic

#21 lukesterspy

lukesterspy

    Robofish

  • GMC Member
  • 762 posts
  • Version:Unknown

Posted 09 August 2012 - 06:10 AM

I think having a tab system to open multiple files in the same window would be a nice feature. Most other code editors have this, and I know I use it when I am doing web programing. I'm sure it would be useful for editing GML.

Also, if you made it so that you could execute and test your code from within the app it would be pretty useful. You could make a "run" button that would take you to an empty room with a single object that would execute the code from the currently open tab. I would definitely use this feature when coding graphical effects, among other things.

Edited by lukesterspy, 09 August 2012 - 06:16 AM.

  • 0

#22 Insert Name Here

Insert Name Here

    The Unknown Ninja

  • GMC:Member
  • 599 posts
  • Version:GM8

Posted 13 August 2012 - 01:16 PM

So it would be pointless to you if it didn't make your game for you?
You're asking for advanced artificial intelligence - somewhat like Siri on iPhone 4S - just so you won't have to use Google.



This is a question of whether I want to use a homemade editor? Without something like that to help, I see no improvement.

#23 nujuat

nujuat

    Alex Tritt Games

  • GMC Member
  • 251 posts
  • Version:GM:Studio

Posted 14 August 2012 - 01:24 PM

The code editor in flash has these cool buttons that automatically comment out what is highlighted. I would use that in a custom editor.
  • 0

#24 Lukasmah

Lukasmah

    ^^ VV <> <> BA Start

  • GMC Member
  • 536 posts
  • Version:GM8

Posted 14 August 2012 - 01:41 PM

The code editor in flash has these cool buttons that automatically comment out what is highlighted. I would use that in a custom editor.

That sounds hard to make...
  • 0

#25 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2417 posts
  • Version:GM:Studio

Posted 14 August 2012 - 03:14 PM


The code editor in flash has these cool buttons that automatically comment out what is highlighted. I would use that in a custom editor.

That sounds hard to make...

Not at all. You fetch the selected string, look for "\n" then simply add "//" after it.
Simply put.
  • 0

#26 Insert Name Here

Insert Name Here

    The Unknown Ninja

  • GMC:Member
  • 599 posts
  • Version:GM8

Posted 14 August 2012 - 04:34 PM


So it would be pointless to you if it didn't make your game for you?
You're asking for advanced artificial intelligence - somewhat like Siri on iPhone 4S - just so you won't have to use Google.



This is a question of whether I want to use a homemade editor? Without something like that to help, I see no improvement.



Look, when I use Notepad all the time, what else could really help? I'm practicality doing it in my head. People say 3d is hard. For me it is easy as long as I can find a plane everything functions on. Right now, in fact, I am coming up with how to make certain things "float". With only my brain as an editor. So, other than something to help when I get "stuck", what could provide me with a usefull improvement?

#27 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2417 posts
  • Version:GM:Studio

Posted 14 August 2012 - 05:14 PM

Look, when I use Notepad all the time, what else could really help? I'm practicality doing it in my head. People say 3d is hard. For me it is easy as long as I can find a plane everything functions on. Right now, in fact, I am coming up with how to make certain things "float". With only my brain as an editor. So, other than something to help when I get "stuck", what could provide me with a usefull improvement?

First of all, how poetic of you. I guess you don't realise it's common human behaviour to evaluate topics before continuing with them.
We all look for a solution in our mind before we program it.

With that said, this is not a tool that's supposed to help you program without programming. This is a tool you program in.

People say 3d is hard. For me it is easy as long as I can find a plane everything functions on.

3D is relatively easy given the tools you want. GameMaker does not have 3D vectors built-in, which makes it difficult.
C# and Java both have the very pleasing Vector3 class (or Vec3 in Java, I believe).

Right now, in fact, I am coming up with how to make certain things "float".

Really? All you have to do is alter the y-axis to move things up and down in 3D space.
  • 1

#28 MikadoRyugamine

MikadoRyugamine

    GMC Member

  • GMC Member
  • 16 posts
  • Version:GM8

Posted 15 August 2012 - 01:23 AM



The code editor in flash has these cool buttons that automatically comment out what is highlighted. I would use that in a custom editor.

That sounds hard to make...

Not at all. You fetch the selected string, look for "\n" then simply add "//" after it.
Simply put.

Exactly, and I added that shortly after I first made this thread/topic. :)

I've been really busy working on my own version of Intellisense for GML, it's almost done and then I'm going to add real time error monitoring and such. :P

By the way, this tool is multithreaded and I'm optimizing everything as much as I can so it will be much faster than the editor built into GM, it's already
a lot faster to be completely honest. I've tested it with 50,000 lines of code and it didn't lag at all. n_n
  • 0

#29 Insert Name Here

Insert Name Here

    The Unknown Ninja

  • GMC:Member
  • 599 posts
  • Version:GM8

Posted 15 August 2012 - 12:32 PM

Look, when I use Notepad all the time, what else could really help? I'm practicality doing it in my head. People say 3d is hard. For me it is easy as long as I can find a plane everything functions on. Right now, in fact, I am coming up with how to make certain things "float". With only my brain as an editor. So, other than something to help when I get "stuck", what could provide me with a usefull improvement?

First of all, how poetic of you. I guess you don't realise it's common human behaviour to evaluate topics before continuing with them.
We all look for a solution in our mind before we program it.

With that said, this is not a tool that's supposed to help you program without programming. This is a tool you program in.

People say 3d is hard. For me it is easy as long as I can find a plane everything functions on.

3D is relatively easy given the tools you want. GameMaker does not have 3D vectors built-in, which makes it difficult.
C# and Java both have the very pleasing Vector3 class (or Vec3 in Java, I believe).

Right now, in fact, I am coming up with how to make certain things "float".

Really? All you have to do is alter the y-axis to move things up and down in 3D space.



Well yeah, but I have to work it around other stuff, and even if everyone does it in thier head, the point is wether I use this tool. Correct? If I don't really care about extra features, what is there that could make me want to switch?

#30 Jobo

Jobo

    No neurons left today

  • GMC Member
  • 2417 posts
  • Version:GM:Studio

Posted 15 August 2012 - 02:48 PM




The code editor in flash has these cool buttons that automatically comment out what is highlighted. I would use that in a custom editor.

That sounds hard to make...

Not at all. You fetch the selected string, look for "\n" then simply add "//" after it.
Simply put.

Exactly, and I added that shortly after I first made this thread/topic. :)

I've been really busy working on my own version of Intellisense for GML, it's almost done and then I'm going to add real time error monitoring and such. :P

By the way, this tool is multithreaded and I'm optimizing everything as much as I can so it will be much faster than the editor built into GM, it's already
a lot faster to be completely honest. I've tested it with 50,000 lines of code and it didn't lag at all. n_n


That's fascinating!
Be sure to keep the design neat, light and clean and I'll definitely try it. Might even stick with it!

Can we has screenshots? :thumbsup:
  • 0

#31 Yal

Yal

    Gun Princess

  • Global Moderators
  • 5865 posts
  • Version:GM8.1

Posted 05 September 2012 - 11:16 AM

Really? All you have to do is alter the y-axis to move things up and down in 3D space.

Using the default 3D projection, that would be the z axis.




How is the editor coming along? Are you still working on it?

Feature suggestion: switch(){ } statement folding (each case-break pair would fold like a pair of curlies { }, and obviously the default-break pair in the end of the switch loop too, if any). It would be really useful for LUT-ish scripts which I use a lot in my current project. And the previous project. And likely my next project too.


Example:

Not folded
case 0:
  script4(x,y,z)
  show_message("MSG")
break;

case 1:
  more_code()
break

Folded
case 0:[...]
case 1:[...]

  • 2

#32 MikadoRyugamine

MikadoRyugamine

    GMC Member

  • GMC Member
  • 16 posts
  • Version:GM8

Posted 05 September 2012 - 06:20 PM

Really? All you have to do is alter the y-axis to move things up and down in 3D space.

Using the default 3D projection, that would be the z axis.




How is the editor coming along? Are you still working on it?

Feature suggestion: switch(){ } statement folding (each case-break pair would fold like a pair of curlies { }, and obviously the default-break pair in the end of the switch loop too, if any). It would be really useful for LUT-ish scripts which I use a lot in my current project. And the previous project. And likely my next project too.


Example:

Not folded
case 0:
  script4(x,y,z)
  show_message("MSG")
break;

case 1:
  more_code()
break

Folded
case 0:[...]
case 1:[...]

Yep still working on it, I'm working on multiple projects at once though so I'm not making as much progress as I could be. I'd estimate that I'm a little over half done with this project. :P

I hadn't thought about folding case switches. That's not a bad idea so I'll definitely be adding that, thank you for the suggestion. n_n

As for screenshots, I'll edit this post later with some, I'm not at home right now and only have my phone. I will say that the UI has been changed quite a bit, not sure if you'll all like it, but
I guess we'll find out when I post some more screenshots. ;)
  • 0

#33 Lukasmah

Lukasmah

    ^^ VV <> <> BA Start

  • GMC Member
  • 536 posts
  • Version:GM8

Posted 05 September 2012 - 06:24 PM

Ability to move selected pieces of code would be SO awesome.
  • 0

#34 Yal

Yal

    Gun Princess

  • Global Moderators
  • 5865 posts
  • Version:GM8.1

Posted 06 September 2012 - 07:14 AM

I hadn't thought about folding case switches. That's not a bad idea so I'll definitely be adding that, thank you for the suggestion. n_n


Great! ^__^
One thing I forgot about: remember that multi-case cases are valid. You could write either of these:

case 0:
case 1:
  do_thing()
break;

case 0:
  setvar(4)
case 1:
  usevar()
break;

I think the best way to handle this would be to fold everything until the next break, but if there is a case or a default keyword inside the block there should be a little notification symbol added to the unfold button that displays some text like "Folded multi-case. Some case statements are hidden." when hovered with the mouse.
  • 0

#35 NinjaBril

NinjaBril

    Many games, little time

  • GMC Member
  • 2332 posts
  • Version:Unknown

Posted 09 September 2012 - 01:59 AM

Was thinking about one of these yesterday and how more convenient it would be than "execute code" in debug mode. I would fully support it.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users