Page 1 of 9

SMBX NPC Code Editor [Final Tiebreaker Vote]

Posted: Sat Mar 29, 2014 7:47 pm
by Axiom
Spoiler: show
(if you're here about the rules for the design the next icon contest, see this post: http://www.supermariobrosx.org/forums/v ... p70450)
If you'd like to give me some feedback on the editor, click here

Image

Hey guys I'm back again. This time, I've coded a nice NPC editor for SMBX. This has to do with those custom NPC text files you find in episodes or make yourself. In this case, pictures speak louder than words so here's one

[rimg]http://i.gyazo.com/81a655cd4735334aa4a944dd5b930f71.png[/rimg]
[rimg]http://i.gyazo.com/3f1e00fe51b17d9ae0385470f6c0d58c.png[/rimg]
Spoiler: show
Image Image
As you can see, I've got a test NPC of my own open. All coded in C# thanks to the .NET Framework 4.0. Supports all the custom NPC tag goodness, opening existing ones, etc. Everything you'd expect out of an NPC editor.
Now, I can't say this was 100% my idea; I got the idea from Wohlstand as the latest version of his engine includes an NPC viewer. It does not yet support saving. So I took a friday night and coded the reading capabilities and took today to write the UI and stuff.

Please note, this application does NOT auto update like my Episode Manager. Instead, you can check here every so often and compare your version found in Help>About (pictured below) to the current one in the changelog and re-download if necessary.
Spoiler: show
Image
Downloads
Latest from GitHub
If you don't have it, .NET Framework 4.0: http://www.microsoft.com/en-us/download ... x?id=17851

Changelogs
Initial Release: 1.0.0.0
-Basic UI with 3 groupboxes and a bunch of controls for enabling/disabling various NPC codes
-Supports opening, saving, save as, etc
-.NET 4.0
1.0.0.1
-Fixed a bug where the "Don't Hurt" checkbox wouldn't be enabled

NOTE: I am not 100% sure if I'm going to release the source code yet so stay tuned!
Please leave any bugs you find, screenshots on other OS'es, etc below
1.0.0.2
-Increased the max value of the graphics height/width and physics height/width to 300. Any larger values being requested and I will change it.

1.1.0.0
-Adds support for the "0" score
-Adds support for negative GFX Offset values
-Adds support for a two-decimal place speed value (1.25 instead of 1.2)
-Adds the changelog form
-Removed the dialog asking if you wanted to quit, it was annoying and didn't work right
-Added support for drag/drop the NPC Text files onto the form

1.2.0.0
-Added support for animating an NPC (thanks a bunch GhostHawk!)
-Tries to automatically find the corresponding image in the same directory as .TXT
-Can edit how fast the NPC is animated with the "Frames Speed" checkbox
-Uncheck the check box to not have it write
-Can manually load an NPC file if needed
-Also shows the name of the NPC's gif file if loaded
-Added tooltips to explain each of the values. Hover your mouse over the label or box/numeric box/etc to see

1.3.0.0
-Updated the UI to reflect the Windows 7/8 Desktop guidelines (segoe ui 9pt, white background, etc)
-Added a config file that contains every single NPC in SMBX. Now, you can find out what NPC this replaces and in the future this will have more functionality
-Changed the way reading is handled. It looks alot nicer now

1.3.1.0
-You can now choose to enable or disable NPC Animation Pane if it's too wide for you
-Added support for Wohlstand's "NPC Name"
-Added Knux's forum and a license to the about box
-Cleans up after it exits
-Fixed a bug under Linux where apparently it can't load the config so it threw an eror whenever it tried to load something
-Added a check to see if you're running on Linux. If so, it'll warn you about NPC-Configs not working

1.4.0.0
-Fixed a bug where the application would ask you twice if you wanted to exit
-Fixed a bug where if you tried to open a file you already opened, you would get an AccessDenied error
-Fixed a bug where the "Changed SMBX Directory" would append "\graphics\npc" to the path (lolwut)
-Added a database (thanks to Wohl's configuration) of built in NPC's from SMBX
-Added warnings for when you try to animate and you don't have these values set (gfxheight, gfxwidth, frames)
-Tweaked the save as algorithm
-Implemented an algorithm that determines whether or not to use the default values or defined values for gfxheight, gfxwidth, or frames for the animator
-Implemented a status bar
-Changed the animator algorithm to use the "Graphics" Height/Width, which is the gfxheight and gfxwidth in game
-Changed the "SMBX Forums" link to the official program's forums
1.4.2.0
-Lots of minor tweaks and stuff to saving, loading, etc
-Fixed a bug where Windows 8 users had cutoff windows (ffs)
-Added a "clear" and "reflect sprite" button to the NPC Animation pane. Reflect sprite literally reflects, is just for previewing only
-Finally updated this changelog ffs
-Updated the About box too
1.4.2.1
-Fixed a bug where on Windows XP, the ini file would try to be read from the file your opening from's directory instead of the executables. (Thanks a bunch Wohlstand!)
-Added support for using Alt and letters to navigate the menus.
1.4.2.2
-Fixed a math error on my part in calculating framespeed
-New config menu won't show if it can't find the sprites folder with all the appropriate sprites in it
1.4.2.3
-Fixed yet ANOTHER math error pertaining to framespeed
-Fixed the ugly font used on the MainForm which shouldn't have happened but yet it did anyway so.


IF YOU NEED HELP
I'd seriously considering visiting the projects official forums for support and such. It's a community I setup for this purpose.
http://forums.smbxepisodes.tk/


Spoiler: show
Vote for the next icon for the SMBX Episode Manager!

At the top of this post is a poll, look through each of the entries and pick your favourite and submit! The one with the most votes will win and get their choice of how they want to be credited in my SMBX NPC Editor! If there is a tie, I will use each icon for a different size (which I may have to make modifications for)


And now, the entries (I'm going from latest to earliest)

Astronaut
Image

Wohlstand
Wohlstand has offered us multiple sizes, and an ICO file for you to download and look at all the variations of
Image
ICO: http://engine.wohlnet.ru/docs/Images/Ic ... pcedit.ico

SnifitGuy
(it's a big one!)
Spoiler: show
Image
zernicalohd

Power-Up Binary Mushroom
Image

1-Up binary mushroom
Image

Luigifan2010

The original, for nostalgia's sake

Image

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sat Mar 29, 2014 8:49 pm
by moemoe02
What's this? Instead of making a TXT file of the NPC, you can use this program? I can't believe when I was browsing the forum as a guest, and saw that you can like, adjust the height and width of the NPC and have it like, not fall or pass through it, I think this would be more useful for creating graphics! Im glad I saw this before I posted it! I will definitely be using this tool you made up! :D

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sat Mar 29, 2014 8:59 pm
by Axiom
moemoe02 wrote:What's this? Instead of making a TXT file of the NPC, you can use this program? I can't believe when I was browsing the forum as a guest, and saw that you can like, adjust the height and width of the NPC and have it like, not fall or pass through it, I think this would be more useful for creating graphics! Im glad I saw this before I posted it! I will definitely be using this tool you made up! :D
Haha yes, it makes the txt file for you to make things less confusing. But thank you thank you! And if you have any issues, suggestions, etc please leave them here and I'll work on adding them :)

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sun Mar 30, 2014 2:08 am
by zlaker
So with his I can even make the NPC's speed like 1.2?

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sun Mar 30, 2014 2:59 am
by icez
zlakerboy357 wrote:So with his I can even make the NPC's speed like 1.2?
I don't think, the whole issue with the decimals probably won't change. I think this is more something like a npc txt generator

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sun Mar 30, 2014 4:57 am
by Mable
TBH this one looks far better then the other one made by that guy who left a long time ago.

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sun Mar 30, 2014 7:04 am
by RudeGuy
Finally something that generate NPC codes! This is better than write in a .txt.

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sun Mar 30, 2014 7:55 am
by Wohlstand
Good job, Luigifan2010 ;)
but i found bugs, please, fix it:
- you forgot add "0" score, i tested it, it is disable the score adding on NPC kill/take:
Image Image

- you forgot about GFX Offset: it can using negative values, but you using only >=0.
Image Image

- make two decimals on speed multiplier (I found some versions with 0.00 decumals and tested it),
and don't forget to add support for negative value too:
Image Image
Don't forgot set increment as 0.1 instead 0.3, you can rotate mouse wheel with mouse over for fast change value ;-)

And, started from 0.0.3 my editor support to saving NPC, but not support creation of new (i will release it after create NPC dynamic config for using default NPC settings for making preview animation with using his degault settings), (use save and save As buttons, or Ctrl+S and Ctrl+Shift+S for write):
Saved file:
Image

Your tool is useful for simply and fast editing NPC configs. My editor is big program, and need for editing episodes/levels and NPC editor is small part of it. And your NPC configs tool will saving time, what editor using for itself loading.
Good job ;)

Don't forgot append me into "thanks", if you using my ideas, and I will add you, because I have idea to make Big Games Repo for my engine, and your Episode Manager is a great idea - finding and download/install interests games(Game dynamic configurations)/episodes(worlds) with one click into Episode managers, as Package manager for Linux, using for install interests programs into your system:
Image
but I will make it later.

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sun Mar 30, 2014 9:53 am
by Axiom
zlakerboy357 wrote:So with his I can even make the NPC's speed like 1.2?
You can set it to that and it will save like that HOWEVER, any previous issues with decimals and SMBX are not magically solved with this sadly
Wohlstand wrote:Good job, Luigifan2010 ;)
but i found bugs, please, fix it:
- you forgot add "0" score, i tested it, it is disable the score adding on NPC kill/take:
Image Image
Didn't know you could do 0 score; will fix that in the next update!
- you forgot about GFX Offset: it can using negative values, but you using only >=0.
Image Image
Will fix that too. Again, I didn't know you could do that
- make two decimals on speed multiplier (I found some versions with 0.00 decumals and tested it),
and don't forget to add support for negative value too:
Image Image
Don't forgot set increment as 0.1 instead 0.3, you can rotate mouse wheel with mouse over for fast change value ;-)
Again, I didn't know about the negative values for speed. However , I was a little weary about adding support for decimals because of all the problems people have had (I believe it is a simple cultural difference with the decimal character). I will fix all of this in the coming update
You tool is useful for simply and fast editing NPC configs. My editor is big program, and need for editing episodes/levels and NPC editor is small part of it. And your NPC configs tool will saving time, what editor using for itself loading.
Good job ;)
Thank you thank you ;) the whole purpose was for it to be quick and easy. There's always going to be those people that'll stick by the original SMBX even after your engine is released however so I figured the tool wouldn't be useless when yours was released.
Don't forgot append me into "thanks", if you using my ideas, and I will add you, because I have idea to make Big Games Repo for my engine, and your Episode Manager is a great idea - finding and download/install interests games(Game dynamic configurations)/episodes(worlds) with one click into Episode managers, as Package manager for Linux, using for install interests programs into your system:
Image
but I will make it later.
I will append you into the help>about document alongside all these other updates in time
As for this on Linux, I'm not sure how well that would work out. This uses the .NET Framework and I'm not sure how much of it I could rewrite in Mono/GTK C# I'll do some research when I have a day off from school. I am very excitedbfor your engine and everything you are doing ;)

Cheers

Mike

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Sun Mar 30, 2014 5:32 pm
by Axiom
Just released the 1.1.0.0 Update guys, just use the same link as above to download it
1.1.0.0 Changelog wrote:-Adds support for the "0" score
-Adds support for negative GFX Offset values
-Adds support for a two-decimal place speed value (1.25 instead of 1.2)
-Adds the changelog form
-Removed the dialog asking if you wanted to quit, it was annoying and didn't work right
-Added support for drag/drop the NPC Text files onto the form
Frozen wrote:TBH this one looks far better then the other one made by that guy who left a long time ago.
What one are you talking about?

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Mon Mar 31, 2014 1:34 am
by MECHDRAGON777
Luigifan2010 wrote:Just released the 1.1.0.0 Update guys, just use the same link as above to download it
1.1.0.0 Changelog wrote:-Adds support for the "0" score
-Adds support for negative GFX Offset values
-Adds support for a two-decimal place speed value (1.25 instead of 1.2)
-Adds the changelog form
-Removed the dialog asking if you wanted to quit, it was annoying and didn't work right
-Added support for drag/drop the NPC Text files onto the form
Frozen wrote:TBH this one looks far better then the other one made by that guy who left a long time ago.
What one are you talking about?
Good to see that you are making good programs still, thank you!

Re: [TOOL] SMBX NPC Editor (New!)

Posted: Mon Mar 31, 2014 4:03 pm
by Axiom
MECHDRAGON777 wrote:Good to see that you are making good programs still, thank you!
Hey, you know what they say! Once a programmer, always a programmer ;)

Re: [TOOL] SMBX NPC Code Editor (New!)

Posted: Tue Apr 01, 2014 4:20 am
by Veudekato
This is my idea :) i want to creat this.... but you first. well ,good job!

Re: [TOOL] SMBX NPC Code Editor (New!)

Posted: Tue Apr 01, 2014 10:10 am
by Wohlstand
Veudekato wrote:This is my idea :) i want to creat this.... but you first. well ,good job!
Veudekato, don't forget about that all of us independently have this idea, but not all decided to try to realize it.

Re: [TOOL] SMBX NPC Code Editor (New!)

Posted: Thu Apr 03, 2014 5:45 pm
by Axiom
Just released an update guys! And I'd like to throw a HUGE shoutout to GhostHawk for contributing the code used for what you'll see in the changelog. It was a great collaboration buddy :)

First, gawk at the updated UI:
Spoiler: show
Image
Second, the changelog
1.2.0.0 wrote:-Added support for animating an NPC (thanks a bunch GhostHawk!)
-Tries to automatically find the corresponding image in the same directory as .TXT
-Can edit how fast the NPC is animated with the "Frames Speed" checkbox
-Uncheck the check box to not have it write
-Can manually load an NPC file if needed
-Also shows the name of the NPC's gif file if loaded
-Added tooltips to explain each of the values. Hover your mouse over the label or box/numeric box/etc to see
You guys can use the existing download link to redownload or you can click here to download the update.

Re: [TOOL] SMBX NPC Code Editor (New!)

Posted: Mon Apr 07, 2014 3:05 am
by Keddy
Now that's useful, a little preview window to see how the NPC will look; that'll definitely cut the time out of testing the NPC in SMBX. Now I see an actual use for this. Keep up le good work.

Re: [TOOL] SMBX NPC Code Editor (New!)

Posted: Mon Apr 07, 2014 6:03 am
by Yoshibrothers
Luigifan2010 wrote:Just released an update guys! And I'd like to throw a HUGE shoutout to GhostHawk for contributing the code used for what you'll see in the changelog. It was a great collaboration buddy :)

First, gawk at the updated UI:
Spoiler: show
Image
This makes npc editing and animation testing look a whole lot greater. Keep on your works.

Re: [TOOL] SMBX NPC Code Editor (New!)

Posted: Mon Apr 07, 2014 8:36 am
by Axiom
Dusk/Yoshibrothers™ wrote:
Luigifan2010 wrote:Just released an update guys! And I'd like to throw a HUGE shoutout to GhostHawk for contributing the code used for what you'll see in the changelog. It was a great collaboration buddy :)

First, gawk at the updated UI:
Spoiler: show
Image
This makes npc editing and animation testing look a whole lot greater. Keep on your works.
elitalianoverde wrote:Now that's useful, a little preview window to see how the NPC will look; that'll definitely cut the time out of testing the NPC in SMBX. Now I see an actual use for this. Keep up le good work.
Thanks guys, I will certainly keep this up ;)

Re: [TOOL] SMBX NPC Code Editor (New!)

Posted: Sat Apr 19, 2014 3:51 pm
by wyldfox
This looks so much better than my npc code editor that I done a couple years ago. Much easier to understand and read. Nice work.

Re: [TOOL] SMBX NPC Code Editor (New!)

Posted: Sun Apr 20, 2014 6:23 am
by AKA.GywGod133
wow NC :D