The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Game Dev Resources (https://www.pokecommunity.com/forumdisplay.php?f=505)
-   -   Pokémon Editor for Essentials (https://www.pokecommunity.com/showthread.php?t=390288)

Marin March 17th, 2017 1:03 PM

Pokémon Editor for Essentials
 
Hello Pokécommunity,

I've recently made a PBS Generator app for Pokémon. You are able to edit already existing Pokémon from pokemon.txt and create new ones, as well as delete them. You get a big overview of all fields for each and every Pokémon in your master text file in detail. You can now also play and set a Pokémon's cry and see all its sprites, including different forms. You cannot change these inside the editor yet. I don't think this would be a very wanted addition anyways, but if someone wants this I will add it in.

Installation:
Spoiler:
The download link will give a .rar file, for which I recommend WinRar to open it. It has a wonderful infinite 40-day trial to work with you.
In the .rar file, you will find just one folder, which contains the executables and hosts.
You are supposed to drag this one whole folder to your main project folder.
It should sit alongside other organizing folders such as PBS, Audio, and Data.

I have here a GIF to assure correct installation (Because out of the five people who tried this, approximately 100% failed to install it correctly)

If you've installed it incorrectly, you should be given a proper error message saying so. If you followed the GIF and it does not work, you can contact me here. If you have not followed the GIF, I will not be able to assist you. Be sure to have read this whole spoiler before asking questions. Also, read posts from other people who might have the same problem as you.

There is a very good chance that anti-virus software will state this download is not safe, I run Windows Defender and it did notify me. I can assure you this download is completely safe and there were no intentions of doing bad stuff to other people.

If you choose to be given errors when compiling the game because you purposely gave the generator fields that will not normally work within the pokemon.txt file, I will not be responsible for this.

I HIGHLY RECOMMEND BACKING UP YOUR POKEMON.TXT FILE. THIS IS THE ONLY ONE THAT CAN BE OVERWRITTEN. IF YOU ACT CARELESSLY AND HAPPEN TO RUN INTO A BUG, IT JUST MAY POTENTIALLY BREAK YOUR FILE.

Download Link (read this whole spoiler s.v.p.)


Features:
Spoiler:
- You get a big overview of every single Pokémon in pokemon.txt with every single detail.
- When adding or editing a Pokémon, you are given options for types, abilities, moves and items based on their text files in your project folder, in case you might not exactly recall the name.
- Very easy access to all your Pokémon via a bunch of sorting options.
- A variety of ways to generate the pokemon.txt file.
- When first exporting the file, it will get rid of all unnecessary fields to make your file as small as possible while still acting the exact same way as before.
- Some more which I forgot.
- You can add and set cries.
- You can see all the Pokémon's sprites, including different forms.
- You can very easily edit Pokémon Pokedex numbers.


Important:
Spoiler:
- Before running the editor/generator, make sure all PBS is valid when the game is compiled.
- Items.txt, Moves.txt and Abilities.txt cannot have blank lines at the end. The last line should be a valid item/move/ability.


Future Plans:
Spoiler:
[Done] - Show the Pokémon's sprite (if it has one) and animate it if possible.
- Make another version of this editor, but with much much more information describing each field and showing information for every selected move or ability.
[Done] - Allow the user to see the Pokémon's sprite and animate it where possible.


Known Bugs:
Spoiler:
- Characters like “ and ” will be converted into an é. Note: These are not normal quotes. Pokémon like Azelf, Mesprit, and Uxie have these in their description by default as “The Being Of ...”.


Changelog (for those interested):
Spoiler:
- Versionless (1.0). Main release.
- v1.1
--- Added scrolling functionality for smaller screens.
--- The size is saved upon closing and loaded upon opening.
- v1.2
--- The Pokémon's sprites - including all its forms - can now be seen at the right-hand side of the screen.
--- Thes sprites are animated where possible. Supports GIFs, PNGs, and PNG-Sheets as used by EBS.
--- The Pokédex numbers can be easily edited in a new form.
--- Added an options menu where future options will put; currently only holds the Default Sprite option.
--- Added an automatic update checker to see what version you're running; when a new update is out, you will be told so on startup.
--- Last selected Pokémon will be selected if its internal name still exists.
--- Changed the name to "Pokémon Editor". This has to be the biggest addition yet.

If you have any more questions, you can contact me on Discord @|M3rein| or post a message down below.

NOTE: When editing this page, something very important came to my mind. The issue here is, I forgot it. If something doesn't work, contact me please.

NEW! Credits:
Pinkcatdragon (Discord: FluffyDragon) for adding animated PNG-Sheet support.

out written March 17th, 2017 3:30 PM

Might you be able to add a scroll bar to the right side of the Field Entry part so that the whole thing can be seen in one screen? Otherwise the program runs outside of the view.

Marin March 17th, 2017 10:52 PM

Quote:

Originally Posted by out written (Post 9595376)
Might you be able to add a scroll bar to the right side of the Field Entry part so that the whole thing can be seen in one screen? Otherwise the program runs outside of the view.

I didn't consider that, I'm at 1200 and it's quite large. I'll try to do what you said, but it'll be a seperate download since I don't think people at 1200 like that. I can see where you're coming from though.

Edit: My screen res isn't 1080 high but actually 1200. It's also not a seperate download, I could make an autoscroll property to make it work.

out written March 17th, 2017 11:11 PM

Quote:

Originally Posted by M3rein (Post 9595571)
I didn't consider that, I'm at 1080 and it's quite large. I'll try to do what yo said, but it'll be a seperate download since I don't think people at 1080 like that. I can see where you're coming from though.

Ah, thank you! Didn't even occur, never thought about my own screen resolution {XD}

mattia2000 March 18th, 2017 12:58 AM

I'm sorry but i've got this problem:
---------------------------
Error
---------------------------
Something went wrong while loading "items.txt".

Make sure the app is installed correctly

And the data inside the file is valid.
---------------------------
OK
---------------------------


I followed the GIF and I've already tried to substitute the items PBS. Any idea?

out written March 18th, 2017 1:21 AM

Quote:

Originally Posted by mattia2000 (Post 9595610)
I'm sorry but i've got this problem:
---------------------------
Error
---------------------------
Something went wrong while loading "items.txt".

Make sure the app is installed correctly

And the data inside the file is valid.
---------------------------
OK
---------------------------


I followed the GIF and I've already tried to substitute the items PBS. Any idea?

I had that issue initially as well. I think it might be to do with edited or outdated versions of the items.txt? I don't seem to have that issue with vanilla Essentials...

Marin March 18th, 2017 1:39 AM

Quote:

Originally Posted by out written (Post 9595614)
I had that issue initially as well. I think it might be to do with edited or outdated versions of the items.txt? I don't seem to have that issue with vanilla Essentials...

I'm a spoon for not having mentioned the fact that items.txt, moves.txt and abilities.txt cannot have blank lines underneath. The last line has to be a valid item, so do not press enter at the last item.
This should fix the problem. If it doesn't - Make sure, before opening the editor, that all PBS is valid when the game is compiled - I'll test around more.

I've also updated the main post to include this information. I felt like I forgot to mention something...

mattia2000 March 18th, 2017 1:39 AM

Neither i do, using vanilla. But i'm using gen 7 PBS and i'd really prefer not reinsert them... again :(

out written March 18th, 2017 1:41 AM

Quote:

Originally Posted by M3rein (Post 9595619)
I'm a spoon for not having mentioned the fact that items.txt, moves.txt and abilities.txt cannot have blank lines underneath. The last line has to be a valid item, so do not press enter at the last item.
This should fix the problem. If it doesn't - Make sure, before opening the editor, that all PBS is valid when the game is compiled - I'll test around more.

A spoon, haha. Ahh that makes sense now, yeah its running fine now. Not just the last line but apparently anywhere through the .txt file as well.

Marin March 18th, 2017 1:47 AM

Quote:

Originally Posted by out written (Post 9595624)
A spoon, haha. Ahh that makes sense now, yeah its running fine now. Not just the last line but apparently anywhere through the .txt file as well.

Yes, that's how I set it up. If I recall correctly, it does skip #'s. I'm not sure on that though, and I'll update it if it doesn't.
I double checked and moves, items and abilities will skip #'s. If you want to have blank lines, just add a hashtag. This does not apply to pokemon.txt in this version.

out written March 18th, 2017 1:58 AM

Quote:

Originally Posted by M3rein (Post 9595626)
Yes, that's how I set it up. If I recall correctly, it does skip #'s. I'm not sure on that though, and I'll update it if it doesn't.
I double checked and moves, items and abilities will skip #'s. If you want to have blank lines, just add a hashtag. This does not apply to pokemon.txt in this version.

Ah, no stress! Thanks mate!

Marin March 18th, 2017 4:37 AM

Quote:

Originally Posted by out written (Post 9595631)
Ah, no stress! Thanks mate!

I've updated the Generator (I should've called it Editor, since you can edit all fields). I tested the GIF to make sure everything is dandy (I made other changes I had to revert, I got some new errors). All should be good now.

You can now resize the Height (not the width) to 300 pixels (anyone with resolution lower than 300 pixels in height should consider upgrading). When it's even 1 pixel smaller than the max height, 999, the width will extend 13 pixels -- exactly enough to show a scroll bar. This should fix your size problem. Forgot: Your screen size is also saved. When you load it again, it will be the same size as how you closed it.

out written March 18th, 2017 4:44 AM

Quote:

Originally Posted by M3rein (Post 9595687)
I've updated the Generator (I should've called it Editor, since you can edit all fields). I tested the GIF to make sure everything is dandy (I made other changes I had to revert, I got some new errors). All should be good now.

You can now resize the Height (not the width) to 300 pixels (anyone with resolution lower than 300 pixels in height should consider upgrading). When it's even 1 pixel smaller than the max height, 999, the width will extend 13 pixels -- exactly enough to show a scroll bar. This should fix your size problem. Forgot: Your screen size is also saved. When you load it again, it will be the same size as how you closed it.

Brilliant! Works a treat, thanks for the updated version!

khkramer March 18th, 2017 5:06 AM

Cool.

I was actually working on something similar (but in Electron) a while back.
Thanks for releasing, I'll test it out and let you know if I find any bugs.

Marin March 20th, 2017 9:40 AM

I know I should wait with this message, but I'll edit it once I actually do update this app. There's going to be a very big new update coming today or tomorrow, depends on when I can finish them. It's going to include the following (and probably more I forgot):

- Sprites can now be seen on the right-hand side on the screen. GIFs and PNGs are supported. PNG-strips are animated if they have multiple frames. The cropping technique isn't always perfect, though, so keep that in mind. GIFs also have a lower framerate because they're using a completely different control which I cannot control the framerate of.
- Every sprite can be seen; front, back, shiny front, shiny back. This for all different forms (if you're at form 1 and the Pokémon only has one form (0), it will be blank).
- You get a whole new form for very easy editing of the Pokédex Numbers, this so you don't need to go into every single Pokémon and add a number in yourself.
- You can play and set cries.
- You get an "Options" menu. Currently limited to what sprites to show when switching Pokémon.
- Added an "About" section just to show people who actually made this.
- Added an automatic update checker (note: not auto-updater). Whenever your version is out of date, you'll be given a message saying so. You can still continue the app without updating, though.
- When closing the app, your selected Pokémon will be saved and is loaded on startup if this Pokémon's internal name still exists (you haven't edited the pokemon.txt outside of the editor and removed this Pokémon). If not, it will default to 0 again.

I forgot to mention this in the first place, but some of these things were suggestions by other people. If you'd like to see something in this generator/editor, feel free to leave it down below!

Marin March 21st, 2017 3:55 AM

Quote:

Originally Posted by M3rein (Post 9597338)
I know I should wait with this message, but I'll edit it once I actually do update this app. There's going to be a very big new update coming today or tomorrow, depends on when I can finish them. It's going to include the following (and probably more I forgot):

- Sprites can now be seen on the right-hand side on the screen. GIFs and PNGs are supported. PNG-strips are animated if they have multiple frames. The cropping technique isn't always perfect, though, so keep that in mind. GIFs also have a lower framerate because they're using a completely different control which I cannot control the framerate of.
- Every sprite can be seen; front, back, shiny front, shiny back. This for all different forms (if you're at form 1 and the Pokémon only has one form (0), it will be blank).
- You get a whole new form for very easy editing of the Pokédex Numbers, this so you don't need to go into every single Pokémon and add a number in yourself.
- You can play and set cries.
- You get an "Options" menu. Currently limited to what sprites to show when switching Pokémon.
- Added an "About" section just to show people who actually made this.
- Added an automatic update checker (note: not auto-updater). Whenever your version is out of date, you'll be given a message saying so. You can still continue the app without updating, though.
- When closing the app, your selected Pokémon will be saved and is loaded on startup if this Pokémon's internal name still exists (you haven't edited the pokemon.txt outside of the editor and removed this Pokémon). If not, it will default to 0 again.

I forgot to mention this in the first place, but some of these things were suggestions by other people. If you'd like to see something in this generator/editor, feel free to leave it down below!

After a few days of work, I've finally finished everything I wanted to do for this version. I think I got rid of all the standard error messages as well to make sure they're descriptive and easy to understand.
Also updated the main post's changelog and download link.

IceGod64 March 21st, 2017 12:00 PM

This is awesome! I've been playing around with it, and it works like a dream so far!

KaratGaming March 21st, 2017 2:45 PM

Haven't tried it yet, but I heard it's good.

IceGod64 March 22nd, 2017 10:09 AM

So, I want to know it you could impliment a certain sorting method, one that I think would be REALLY useful.
Alphabetical order, with respect to evolutions: In other words, all Pokemon that are first-stage evolutions are listed in alphabetical order, but their evolutions are always put right after them.
So, for example,
Abra starts with A, so it would appear in the list before Beartic, but so would Kadabra and Alakazam both, because they evolve from Abra.

Marin March 22nd, 2017 10:23 AM

Quote:

Originally Posted by IceGod64 (Post 9598671)
So, I want to know it you could impliment a certain sorting method, one that I think would be REALLY useful.
Alphabetical order, with respect to evolutions: In other words, all Pokemon that are first-stage evolutions are listed in alphabetical order, but their evolutions are always put right after them.
So, for example,
Abra starts with A, so it would appear in the list before Beartic, but so would Kadabra and Alakazam both, because they evolve from Abra.

I'll see what I can do about that. It's not going to be entirely possible as you said - if even - but I'll give it a shot.

IceGod64 March 22nd, 2017 1:02 PM

Quote:

Originally Posted by M3rein (Post 9598676)
I'll see what I can do about that. It's not going to be entirely possible as you said - if even - but I'll give it a shot.

Yeah, I figured such a thing would be very difficult if possible. Thank you for trying, though!

khkramer March 22nd, 2017 2:34 PM

Quote:

Originally Posted by IceGod64 (Post 9598737)
Yeah, I figured such a thing would be very difficult if possible. Thank you for trying, though!

It should be doable with some kind of custom sort function I believe.

@m3rein I assume this is developed in C# with windows forms?

Marin March 22nd, 2017 11:00 PM

Quote:

Originally Posted by khkramer (Post 9598800)
It should be doable with some kind of custom sort function I believe.

@m3rein I assume this is developed in C# with windows forms?

Correct. Originally used Visual Studio 2015, but I'm upgrading to 2017. This is what I use for sorting:
pokes.Sort(delegate (Poke p1, Poke p2) { return p1.id.CompareTo(p2.id); });
I'm not sure how I can work with that since I don't really know how I can work with CompareTo. I'll look into it, though, like I said.

My next release will be an all-in-one with the other generators/editors. It's going to take a bit because I'm redesigning some of them.

khkramer March 28th, 2017 5:21 AM

Quote:

Originally Posted by M3rein (Post 9599087)
I'm not sure how I can work with that since I don't really know how I can work with CompareTo. I'll look into it, though, like I said.

Something just came to mind, what if you group by Evolutionary family first, sort that array/collection alphabetically by the first member and afterward flatten the array structure.

DaviRx March 28th, 2017 12:45 PM

Cool program, works like a charm, but you see, the side list is quite glitched in smaller screens like mine.

http://i.imgur.com/JGtoUjJ.png


All times are GMT -8. The time now is 10:55 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.