HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jass editor: JEdit 1.0. Come see!

06-03-2004, 01:22 AM#1
johnfn
Version 1.5 on this post.

The last time I made a Jass editor, it hardly did anything except load up Blizzard.j . This isnt so much as an extention of that program as a completely new program. This makes Jass writing/editing easier then ever before.

Features include: (New features in bold)
  • Syntax highlighing (not completely finished)
  • Formatting
  • Save/load capibilities, saving to a j file and loading them
  • Opening, and searching through both Blizzard.j & Common.J and viewing code from them
  • Syntax checking
  • Currently being edited: GUI conversion to JASS
  • Resizing controls
  • Simple but helpful interface
  • Includes the unextracted Blizzard.j+Common.j.
  • Syntax coloring modifier: customize it your way!
  • Color changer: Modify the background of the program.
  • The constant fomat helper suggested by Kattana.
  • A button to remove everything except the main textbox, also somewhat suggested by Kattana.
  • Auto helper - A nice feature that will help you occasionally with certain keywords. If you want to see an example, type in "function".
[Wow, thats getting long.]

Just unzip it and run!

And most importantly, leave comments! I worked for a long time, but all my work is pointless if people don't say what they think. Like it, hate it, I don't care. I'm just happy someone left feedback.

Thanks!

Version history, bug troubleshooting and more can be found in the readme.
06-03-2004, 02:24 AM#2
Shimrra
When I click "Load Blizzard.j" it gives me an error saying "File C:/Blizzard.j could not be found"

[edit] - I clicked check syntax and it said:
Quote:
Originally Posted by Jass Editor
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: File not found.
at Microsoft.VisualBasic.Interaction.Shell(String Pathname, AppWinStyle Style, Boolean Wait, Int32 Timeout)
at JassPrj2.Form1.CheckSyntax()
at JassPrj2.Form1.ToolBar1_ButtonClick(Object sender, ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
JassPrj2
Assembly Version: 1.0.1614.35795
Win32 Version: 1.0.1614.35795
CodeBase: file:///C:/Documents%20and%20Settings/Kyle%20McCarty/Desktop/Cheese/JEdit%20v%201.0.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.

[Edit 2] - The program is WAY to big. I can't even see most of the Output window even with the program maximized and my resolution set to 1680 x 1050. The sections should resize to fit the window size. Second, an explanation of what to put where would also be nice. I saw three windows and I didn't know which one was for the actual code...
06-03-2004, 05:28 AM#3
Xinlitik
I get a nasty error saying that "The application failed to initialize properly (0xc0000135)" when I try to run Jedit
06-03-2004, 10:26 AM#4
johnfn
@Xinlitik:
Alright. It sounds like you dont have the VB runtime files, but I'm not sure. Search for Vb.Net runtime files on google, or maybe I'll go find them.

@Shimrra:
That's strange, since I have a 1280x1048 resolution. Give me a few minutes and I'll go and make it smaller...
06-03-2004, 03:52 PM#5
Vidstige
Maybe you should make a README file which says what the program expects to be availible in order to run. ;-)

I also get the "The application failed to initialize properly (0xc0000135)".
06-03-2004, 07:05 PM#6
fugly
these is a really good program, seems to work awesome, btw just but blizzard,j and common.j into your C:\ directory just likes it expects
06-03-2004, 09:20 PM#7
johnfn
Quote:
Originally Posted by Vidstige
Maybe you should make a README file which says what the program expects to be availible in order to run. ;-)

I also get the "The application failed to initialize properly (0xc0000135)".

Problem solved! Out of the readme:
Quote:
Originally Posted by Readme

When you open JEdit, it says the following: "The application failed to initialize properly (0xc0000135)". This is because you do not have the .NET framework. You can download it here:

http://www.microsoft.com/downloads/d...DisplayLang=en

And now that I have said that, I've made a version coming out: 1.1. It makes the controls resizing, labels the textboxes, has a readme, and gives credit to the people who helped (sorry about that Shimrra, I was too eager to get the thing out :-( )

Hope you like it.
06-03-2004, 11:03 PM#8
fugly
wait, now the thing crashes when to check the syntax
06-03-2004, 11:21 PM#9
johnfn
Ok, I think this is probably because you moved pjass. Just a guess. Anyway. I'll say this once just in case:

All files should be in the same directory as the main program.

Otherwise, nothing will work.

Anyway. Open up this new version and copy the program to where v 1.1 is and see what error it gives you.


This will be helpful, so thanks in advance.
06-04-2004, 12:24 AM#10
Vidstige
The program only seems to be able to load the .j files if they are in the C: \ directory, the program will crash otherway. If one copy the files to C: \, it loads the files, but gives: JassPr2 - Error has occured. Error message is File not found. . Error number is 53

If one puts everythin in C: \ it seems to work though, it even checks the syntax. :) I suppose you have to check your file handling code. It would also be useful if there where a scrollbar at the Blizzard/Common function code textbox.

This program actually seems like something that I could think of using, there are two thing that annoy me somewhat though: No ability to load common.ai and no possibility to type tabs. Tabs are really a handy feature when programming. :)
06-04-2004, 01:37 AM#11
johnfn
Vidstige - That was a very helpful post, you detailed everything. Very helpful.

Anyway, I fixed the bug. It was a sneaky little thing that would save a certain file to C:\ but look for it in the current directory. I have to go soon, but here's version 1.2 . I put it in the first post because posting new versions everytime I imagine is very annoying.

Thanks all who responded so far!
06-04-2004, 02:20 AM#12
Shimrra
OK, this new version works well. Only two things I found:

1) It doesn't detect GetSpellTargetLoc
2) It might be a good idea to be able to unload the .j files after they are loaded.

Overall, excelent work.
06-04-2004, 12:45 PM#13
KaTTaNa
I think the layout needs some serious improvement. Try to make the actual code box as big as possible. The "Blizzard/Common Function Code" box doesn't seem to serve any purpose, and if you can place the syntax checking box and the Blizzard.j/Common.j are into a resizable tab control, you should be well underway.
Some bug:
  • I get an error every time I edit the search word for the common.j searcher
  • In the common.j viewer, every line starts with a small box
  • If you select the entire text in the search box and hit delete, it doesn't update the list
  • When using Auto Format, the ending tokens are indented as well (they shouldn't be that imho).
Suggestions:
  • The Auto format is a good idea, but the indent space should be decreased or be modifiable in preferences
  • Implement auto-indent. That is, when you hit enter, it copies the number of spaces in the start of the previous line to the new line (made sense?)
06-05-2004, 03:52 AM#14
johnfn
I havent responded in a while because i was working on this version. This has the upgrades that Kattana mentioned (Well, some of them).


@Kattana:
Your first two bugs are very wierd. I havent heard anyone replicate them... although the edit the common bug I think I know.

Auto-Indent - Thats a good idea. It gave me a lot of grief, but now it finally works well, so on to other matters. I suppose I can put the amount of spaces in preferences, although I actually used the 9th ASCII code (Press alt+ numberkey 9, and some textboxes will support it).

@Shimrra:
1. I have no idea why that is. Perhaps it is in another one of blizzards files...
2. It sounds easy, but counter-intuitively this would be a pretty difficult and cpu-eating task.


Anyway, version 1.4 is on the main post, check it out and I hope you like it :-)
06-05-2004, 06:25 PM#15
Vidstige
Search and replace just seems to wipe out all my code... this happens wheter there is an actual match or not.

When I select and copy all code, there is an exception reported. This seems to be because you have the infamous _off by one error_ on your Edit->copy command. If I select and copy using this meny, let's say I select _unction_, do a copy and paste using your menus, then _function_ is pasted. Which explains why the programs get upset when one tries to access characters before the first character in the textbox.

Edit: The Check Syntax choice on the menu bar does not seem to work, but the button do work. Do you think that it is possible to learn the program to load common.ai? A suggestion: you might want to compare the editing capabilities with a simple editor like notepad.