Moonlite Map Studio open beta release

Vestras

Retired
Reaction score
249
Okay guys, so after I have released this version I will be adding extra features to make Moonlite more awesome and make you be able to code faster. I want you to take a look at the features and maybe suggest some stuff.

  • Auto recovery – saves projects into a backup directory every (x) minutes and if Moonlite crashes, the user will have an option to recover the “unsaved” project.
  • Code insight – a dialog on top of the editor window that has “insight” into the current file. Holds stats such as number of lines, number of methods, number of properties, etc. When the user hovers over for example the text saying “Properties: (x)”, a textbox should popup giving the type, name and signatures of the given objects.
  • Change Ribbon interface to Toolbar interface in order to save space and have a more IDE like and intuitive layout.
  • Add Build messages to the statusbar in order to indicate that the program is building the project rather than it has frozen.
  • Add an “Object Browser” for having a tree view of for example the stdlib’s classes/enrichments/structs. A class/enrichment/struct’s members can also be viewed.
  • Floating run button – having a Test Map button right next to the text editor instead of the top of the screen in order to make the distance the user has to move the cursor smaller.
  • Template toolbox – a dock window that contains a list of code templates. A code template is represented as an item that can be dragged into your code. When the item is dropped, the code of the item will be inserted at the place the item was dropped. Templates could be added via files (like the File Templates in the current Templates directory in the installation directory), so that the user can add custom made templates. The templates would use a special template markup language, e.g: “if (<cursor index=”0” />) {
    <cursor index=”1” />
    }”
    This would make the user’s cursor be first set to the “if” statement’s condition statement, and when he pressed a given “tabbing” key (maybe Ctrl + Shift + Right arrow key), the cursor would go to the next cursor statement.
  • Full keyboard support – all commands should have keyboard shortcuts. (http://www.devexpress.com/go/DevExpress_Newsletter29_CTOVideoMsg.aspx)
 

Moogle

New Member
Reaction score
1
Can I get a screenshot of this change of ribbon interface? if it makes it look less awesome then it does now, I will be sad.

Also, the randomly disappearing text bug is still happening! I copy pasted the unit enrichment for Andromeda into Moonlite, and the comments are all invisible, as is anything inside a function. It's like a folding bug, I would guess. You can get the code at: http://www.sc2mod.com/wiki/index.php?page=Article&articleID=49&languageID=1

Quite sad overall. I can view the .gx file fine though, so I suppose I will survive. It just seems copy paste has a couple of bugs. Also, when I tried deleting the invisible text, my cursor would not go towards the text. As if it wasnt there in truth, not just having a display problem. When I pushed delete, it claimed I tried to divide by zero and deleted the entire line with the text and is really weird in general. I'll get a screenie.
 

Attachments

  • Untitled.png
    Untitled.png
    136.9 KB · Views: 340
  • Untitled2.png
    Untitled2.png
    161.3 KB · Views: 325

Vestras

Retired
Reaction score
249
New version released. Should fix a lot of bugs, and should finally be somewhat usable.
Changelog:
  • Implemented code completion (only the OOP part of it is enabled right now, so basically it's just a "member viewer". Very early WIP, the full version will be featured in the next version)
  • Fixed an issue in the project manager causing it to crash on renaming files;
  • Fixed an issue in the project manager causing it to rename multiple files;
  • Fixed an issue in the project manager causing it to name files wrongly;
  • Increased the performance of the function list drastically - searching for "c_" the speed went from 1 minute to 1 second;
  • Made the text editor auto parse on paste - should fix a lot of bugs;
  • Made the application and the installer require administrator permissions in order to prevent crashes;
  • Fixed an "Attempted to divide by zero" crash.

Moogle:
It'd be toolbars instead of the huge ribbon. I need the space for something else :)
I think the auto parse fix should fix your problem. Please try again in the new version.
 

Moogle

New Member
Reaction score
1
I tried downloading it off your site again (I assume thats how we get the new version - the site still says the version is 1.0) and now it won't start. It just says it has stopped working :(.

Was I not supposed to change the directory when I installed it? Cause I noticed you added an awesome option to change it.

Also, the unsintaller doesn't seem to know the directory I installed it to. It's defaulting to C:\Program Files. Nothing huge, you just might want to add that kind of functionality.
 

Vestras

Retired
Reaction score
249
I tried downloading it off your site again (I assume thats how we get the new version - the site still says the version is 1.0) and now it won't start. It just says it has stopped working :(.

Was I not supposed to change the directory when I installed it? Cause I noticed you added an awesome option to change it.

Also, the unsintaller doesn't seem to know the directory I installed it to. It's defaulting to C:\Program Files. Nothing huge, you just might want to add that kind of functionality.

Yeah, preferably right now you should uninstall then reinstall as it doesn't know where it was installed to. Will add it in another version.
The crash is because I forgot to include a dll in the installer. Please redownload and reinstall now.
 

Moogle

New Member
Reaction score
1
I am overjoyed to report that my invisible text bug is fixed. Thank you so much! :D

Any chance of tabs auto defaulting to the number of spaces you seem to add whenever you push enter and it automatically gives you a place inside the block? Tabs from imported files currently seem huge.
 

Vestras

Retired
Reaction score
249
I am overjoyed to report that my invisible text bug is fixed. Thank you so much! :D

Any chance of tabs auto defaulting to the number of spaces you seem to add whenever you push enter and it automatically gives you a place inside the block? Tabs from imported files currently seem huge.

Nope, those are windows tabs. I don't know how to change the size :/
 

Gwypaas

hook DoNothing MakeGUIUsersCrash
Reaction score
50
Vestras: The andromeda.galaxy is in the map according to the import manager in GE :)
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
Note:

The Installer Says its still 1.0, So I have a hard time telling the difference., I Used my old installer to uninstall the old one, and the new one to install the new one.

Q And A From Me, Some With Out A.

Solved
1. If i save my project I can find the folder it saved to, but It can never open it. Like it only made empty folders or something.

Answer: It by default only looks for Jass Files, I just change that, Easy enough but I was stuck on it for 5 min.




Un-Solved
2. It Says When I Hit Run, Button.xml , mover, modeldata, actordata abildata ect Says are Unable To Import. I am runing Program as Admin On Windows 7
(I Created a Empty Galaxy Project, Meaning I added nothing, just the default files were in it)

3. When I Run This

Code:
static
{ 
    //Say Hello
    HelloWorld();
}

void HelloWorld()
{
	TriggerDebugOutput(1, StringToText("Hello World! (From MoonLight 1.0)"), true);
}

It Runs Great, But If I Change It Too...

Code:
static
{ 
    //Say Hello
    HelloWorld();
}

void HelloWorld()
{
	TriggerDebugOutput(1, StringToText("Hello World! (From MoonLight 2.0)"), true);
}

It Still says 1.0, in the text, even if i save the map and compile it again, and hit the green arrow. Any Idea?
 

Vestras

Retired
Reaction score
249
Vestras: The andromeda.galaxy is in the map according to the import manager in GE :)

Hmm... that's weird then.
What was the problem again? :D

Note:

The Installer Says its still 1.0, So I have a hard time telling the difference., I Used my old installer to uninstall the old one, and the new one to install the new one.

Q And A From Me, Some With Out A.

Solved
1. If i save my project I can find the folder it saved to, but It can never open it. Like it only made empty folders or something.

Answer: It by default only looks for Jass Files, I just change that, Easy enough but I was stuck on it for 5 min.




Un-Solved
2. It Says When I Hit Run, Button.xml , mover, modeldata, actordata abildata ect Says are Unable To Import. I am runing Program as Admin On Windows 7
(I Created a Empty Galaxy Project, Meaning I added nothing, just the default files were in it)

3. When I Run This

Code:
static
{ 
    //Say Hello
    HelloWorld();
}

void HelloWorld()
{
	TriggerDebugOutput(1, StringToText("Hello World! (From MoonLight 1.0)"), true);
}

It Runs Great, But If I Change It Too...

Code:
static
{ 
    //Say Hello
    HelloWorld();
}

void HelloWorld()
{
	TriggerDebugOutput(1, StringToText("Hello World! (From MoonLight 2.0)"), true);
}

It Still says 1.0, in the text, even if i save the map and compile it again, and hit the green arrow. Any Idea?

Yeah, I forgot to change the version. Doesn't matter much anyways.
Do you use x64?
I don't know why it doesn't display the new code. That would Andromeda's problem.
 

jwallstone

New Member
Reaction score
33
Great job. This is awesome.

I do have one suggestion though: Please add Zinc functionality to the Jass portion! Hopefully that's not too difficult, though I can understand if it's low on your priority list.

Edit: Also, some keyboard shortcuts don't seem to work. Right now, Ctrl-S doesn't even save (in fact, it "dirties" a file so that it's marked as being edited since the last save). Also I'd recommend Ctrl+W for closing a tab.
 

Vestras

Retired
Reaction score
249
Great job. This is awesome.

I do have one suggestion though: Please add Zinc functionality to the Jass portion! Hopefully that's not too difficult, though I can understand if it's low on your priority list.

Edit: Also, some keyboard shortcuts don't seem to work. Right now, Ctrl-S doesn't even save (in fact, it "dirties" a file so that it's marked as being edited since the last save). Also I'd recommend Ctrl+W for closing a tab.

I won't add Zinc. It's too big a job, and this is mainly focused on SC2.
Ctrl + S should work in this new version. I'll add Ctrl + W for closing tabs.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
Still, Unsure about Answer for Question 2, and 3. From Post Above.

Ya, I got a 64 bit windows. I used your new installer, and old installer to remove my old installation.
So how do I fix that?


I don't know why it doesn't display the new code. That would Andromeda's problem.

So.... You sure its just not saving or something? So should I bring this up to Andromeda's maker or how should i move forward on this.
Becuase I Change

Code:
static
{ 
    //Say Hello
    HelloWorld();
}

void HelloWorld()
{
	TriggerDebugOutput(1, StringToText("Hello World! (From MoonLight 1.0)"), true);
}

To

Code:
Dont Do Anything, As This shouldn't compile

They Both Say Moonlight 1.0
Because if i use note pad, and change my code and run it in Andromeda directly it works. But when i change something in moonlight and save it, its like it didn't change when it gets complied.
 

Moogle

New Member
Reaction score
1
Andromeda does not save files into the MPQ if it has errors. Thus, anything you wrote before will still be there if you make an error.

As for when you change 1.0 to 2.0, the MpqLib seems to be buggy for x64, which you seem to be on. That may be a problem that will be there for a while.

Vestras, have you considered trying to use StormLib? When I used it, it was C++, which as far as I know is a .Net language. I don't know the difficulty of converting something from normal C++ to .Net (never really used .Net besides a bit of VB) but it shouldn't require too much work, from what I can guess.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
What would be cool, (I am pretty sure wont work) Would be to have anything you can do in warcraft and in starcraft, be able to compile into both games. So Basically you code it for one game, But all the stuff that could be used in other would be converted to the other. It would be cool to be able to build a system that I can use in both, and code it only once.

It seems like someone would have to understand jass + galaxy language really well.
 

Moogle

New Member
Reaction score
1
Too bad it's impossible. SC2 has natives WC3 doesn't that WC3 doesn't. Simply impossible to convert, and not worth the work besides.

Also, I'm confused. How do I make my map use a script? I thought that Moonlite auto told Andromeda to include everything, but it doesn't appear to. None of my code shows up in game. :/ Although, it also yells at me that it cant import things when I compile the map script, so that may be part of it. I will try replacing a map with one already made with a list file and see if that does anything.

Also, auto generated maps dont have an included listfile.

In addition, Moonlite is seriously messing up files. Permanently, too. There seems to be a copy paste error: lines repeat themselves on the same line, like its pasting twice.

I get stuff like this:

Code:
	/**
	*	Changes the color of the unit.
	*	@param p2 The player's color you wish to change it to.
	*/	*/
	public void	public setTeamColorIndex(int p2) void setTeamColorIndex(int p2)
	{
		UnitSetTeamColorIndex(this, p2);		UnitSetTeamColorIndex(this, p2);
		}}

	/**
	*	Changes the unit's color back to what it was originally.
	*/
	public void resetTeamColorIndex()
	{
		UnitResetTeamColorIndex(this);
	}

And worse, Moonlite *saves* it. D:

A fix would be very much appreciated.
 

Vestras

Retired
Reaction score
249
Still, Unsure about Answer for Question 2, and 3. From Post Above.

Ya, I got a 64 bit windows. I used your new installer, and old installer to remove my old installation.
So how do I fix that?




So.... You sure its just not saving or something? So should I bring this up to Andromeda's maker or how should i move forward on this.
Becuase I Change

Code:
static
{ 
    //Say Hello
    HelloWorld();
}

void HelloWorld()
{
	TriggerDebugOutput(1, StringToText("Hello World! (From MoonLight 1.0)"), true);
}

To

Code:
Dont Do Anything, As This shouldn't compile

They Both Say Moonlight 1.0
Because if i use note pad, and change my code and run it in Andromeda directly it works. But when i change something in moonlight and save it, its like it didn't change when it gets complied.

I thought I had it fixed. Imma try to fix it again.
As Moogle said: "Andromeda does not save files into the MPQ if it has errors. Thus, anything you wrote before will still be there if you make an error."
Same with the code completion. If your code doesn't compile, it won't put up code completion. And your code would ofc not run when it has errors ;)

Andromeda does not save files into the MPQ if it has errors. Thus, anything you wrote before will still be there if you make an error.

As for when you change 1.0 to 2.0, the MpqLib seems to be buggy for x64, which you seem to be on. That may be a problem that will be there for a while.

Vestras, have you considered trying to use StormLib? When I used it, it was C++, which as far as I know is a .Net language. I don't know the difficulty of converting something from normal C++ to .Net (never really used .Net besides a bit of VB) but it shouldn't require too much work, from what I can guess.

Yeah, I have. The library I currently use is a wrapper for StormLib. So, yeah :/ I'm thinking of maybe using gex' mpq library, but it's in Java, so I would have to do some hackjobs or maybe even convert it to C# (doable)
If you don't want these errors, make sure you only have compilable files in your project (.jx, .gx, .a), and make sure all of their build actions are set to Compile and NOT Import.

Too bad it's impossible. SC2 has natives WC3 doesn't that WC3 doesn't. Simply impossible to convert, and not worth the work besides.

Also, I'm confused. How do I make my map use a script? I thought that Moonlite auto told Andromeda to include everything, but it doesn't appear to. None of my code shows up in game. :/ Although, it also yells at me that it cant import things when I compile the map script, so that may be part of it. I will try replacing a map with one already made with a list file and see if that does anything.

Also, auto generated maps dont have an included listfile.

In addition, Moonlite is seriously messing up files. Permanently, too. There seems to be a copy paste error: lines repeat themselves on the same line, like its pasting twice.

I get stuff like this:

Code:
	/**
	*	Changes the color of the unit.
	*	@param p2 The player's color you wish to change it to.
	*/	*/
	public void	public setTeamColorIndex(int p2) void setTeamColorIndex(int p2)
	{
		UnitSetTeamColorIndex(this, p2);		UnitSetTeamColorIndex(this, p2);
		}}

	/**
	*	Changes the unit's color back to what it was originally.
	*/
	public void resetTeamColorIndex()
	{
		UnitResetTeamColorIndex(this);
	}

And worse, Moonlite *saves* it. D:

A fix would be very much appreciated.

Please provide more info on the map script issue. Show me your code, etc.
Can you check whether it's only in the text editor or it also saves to the file? I'll look into it.
How would I reproduce it again?
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
I thought I had it fixed. Imma try to fix it again.
As Moogle said: "Andromeda does not save files into the MPQ if it has errors. Thus, anything you wrote before will still be there if you make an error."
Same with the code completion. If your code doesn't compile, it won't put up code completion. And your code would ofc not run when it has errors

Make Sense
1.If it has errors, it wont compile thus, it will run the last time it could.

Doesn't make Sense
After getting it to compile once It will...
1. Never show on the bottom errors when it should
2. Never compile again even if there are no errors. (At least as far as i can tell, The example of 1.0 to 2.0)


I still don't understand why When i change it from 1.0 to 2.0 it doesn't change. But Ill just wait for a future update to fix that. Other wise I am still unclear
Great job on things so far, cant wait to start using moonlight :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top