The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old September 23rd, 2012 (02:12 PM). Edited October 20th, 2012 by Cilerba.
Cilerba
the hearts of lonely people
Community Supporter
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
My turn, Maruno! :D

Lately I've been working on something I feel you guys will either find incredibly useless, or incredibly useful. I present to you.. my PBS Editor! Here have some screenshots.







Right now I've only gotten the items.txt finished. pokemon.txt is kind of a huge WIP. I do plan on adding support for more than those three.
Another thing, the PBS Editor doesn't actually edit the .txt files (yet, maybe), it just generates new .txt files with the info you put in. You'll have to paste the info into your game's PBS files. I'm definitely open to suggestions/thoughts so fire away! As soon as I stop being lazy and playing Minecraft, I'll get to finishing it up and releasing it.
__________________

| relic castle - coming soon |
  #2    
Old September 23rd, 2012 (02:47 PM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
That thread name could be confusing. At least mine is literally about what I'm doing for Essentials (which could be all manner of things), whereas yours is probably just about this editor and is therefore non-descriptive. Plus, y'know, mine was here first!

I like this. I've never liked the Editor in Essentials, and if I was an utter code wizard, this is exactly one of the things I'd create. I like the item icon being shown, which I presume is the icon of the item currently being created (if it exists) and not just filler.

If I were you, I'd make it look more like RMXP's Database. That is, have a list of all defined <things> on the left (and an "Add New" at the bottom), and the input boxes on the right. If possible, there would be tabs/buttons along the top for each kind of <thing> so you can flick between editing them. This is for when you can load PBS files, of course.

It would also be nice to have more of the fields be drop-down boxes (i.e. the move, ability and pocket fields, plus whatever others aren't in the screenshots), so that you can only choose from existing <things>. Remember to include a "none" option. Maybe even hide the TM item's move field if the item isn't defined as a TM/HM. Again, this is for when you can load PBS files (but you can still do the pockets now).

The internal names could be filled in automatically, derived from the <thing> names, but are able to be modified if desired. This should probably check the internal names of other <things>, and automatically add a number on the end of the current <thing>'s derived internal name to make sure it doesn't clash. When saving, check for internal name clashes and refuse to save if there are any.

In terms of how you could expand on this, anything currently defined by a PBS file is fair game.
__________________
  #3    
Old September 24th, 2012 (05:53 AM).
Cilerba
the hearts of lonely people
Community Supporter
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
That's actually not the icon of the item being created, but I like that idea so it will be. Making it look like RMXP's Database is actually a good idea because I currently hate the layout of the program now.

The reason for not having a lot of drop-down boxes is because people may have custom abilities, types (Might change the types to be textboxes), etc.

And I just might do that to the internal names textboxes. Thanks!
__________________

| relic castle - coming soon |
  #4    
Old September 24th, 2012 (08:15 AM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
If you eventually expand this to include editing the abilities, types and so on, and you can load existing PBS files to do so, then any custom things the player wants to make can be done within your program. The drop-down boxes can list whatever's in the PBS files (more correctly, whatever data has been loaded/modified by the program), i.e. including custom things. I'm imagining creating a new ability in the Abilities tab, then going to the Pokémon tab, choosing a mon and giving it the new ability (like how the RMXP Database works).

I'm assuming here that you want your program to eventually cover everything and be as powerful/useful as it can be. If you don't want to go that far, then fair enough, disregard most of my previous comments.

If the appropriate item icon doesn't exist, show item000.png instead and make a little message saying you need to create the icon.

You could do the same for Pokémon, i.e. have a gallery of sprites/icons/footprints for the currently selected species. Just the basic ones are needed, though; you can forget about forms or gender differences or Shadowness - just show normal, shiny, normal back and shiny back, plus the icon and egg icon (usually the default one), plus the footprint.

The choice of Pokémon colors should be more vibrant, I think. They're all rather dull at the moment.

Are you including checks to make sure all the mandatory information exists before allowing it to be saved? I think a <thing> should be considered to exist (i.e. it needs putting in a PBS file) if it has a name/internal name set; if not, it can be ignored even if other information for that <thing> has been input.

A Pokémon's growth rate probably belongs with the rest of its stats.
__________________
  #5    
Old September 24th, 2012 (08:50 AM).
LenSho's Avatar
LenSho
 
Join Date: Sep 2012
Gender: Male
Nature: Modest
Oh God, this looks extremely helpful, especially for a noob like me. I can't wait to try it out :­D
  #6    
Old September 24th, 2012 (02:36 PM).
Seth Pegasus's Avatar
Seth Pegasus
 
Join Date: May 2012
Gender: Male
This is great! It will make things a little easier for me.
  #7    
Old September 24th, 2012 (04:39 PM).
koby12
Unhatched Egg
 
Join Date: Jun 2012
Gender: Male
This looks pretty great. It will be helpful with adding fakemon into someones game.
Keep it up!
  #8    
Old September 24th, 2012 (08:28 PM).
~JV~'s Avatar
~JV~
Dev of Pokémon Uranium
 
Join Date: Aug 2007
Location: Rio de Janeiro
Age: 20
Nature: Relaxed
Send a message via Skype™ to ~JV~
This is looking really good! However, I never minded adding pokémon and items through the notepad files. For me the most boring thing in entire essentials is making a list ok pokémon to EACH TM/HM. If I had enough skills right now to make a nice interface that made that easier it would be the first tool I would make... Well, maybe soon enough I'll get enough knowledge in college to do that.
__________________
  #9    
Old September 30th, 2012 (04:51 AM).
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Nice! More quickly and intuitive than Essentials Editor!
Quote:
Originally Posted by Cilerba View Post
Another thing, the PBS Editor doesn't actually edit the .txt files (yet, maybe), it just generates new .txt files with the info you put in. You'll have to paste the info into your game's PBS files. I'm definitely open to suggestions/thoughts so fire away! As soon as I stop being lazy and playing Minecraft, I'll get to finishing it up and releasing it.
This detail can annoys!

I agree with Maruno suggestions.
__________________
  #10    
Old September 30th, 2012 (08:22 AM).
Cilerba
the hearts of lonely people
Community Supporter
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
I'd love to make it edit actual PBS files but I have no idea how to go about doing that. This is kind of my first real program so I'm sort of learning as I go on.
__________________

| relic castle - coming soon |
  #11    
Old September 30th, 2012 (10:57 AM).
Umbreon's Avatar
Umbreon
Community Supporter
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 18
Gender: Male
Nature: Calm
Quote:
Originally Posted by Cilerba View Post
I'd love to make it edit actual PBS files but I have no idea how to go about doing that. This is kind of my first real program so I'm sort of learning as I go on.
Easy one:

Ruby Example:
Code:
# to retrieve
def get_item(item)
 array = IO.readlines("PBS/Items.txt")
 return array[item]
end

# to edit
def edit_item(item, data)
  array = = IO.readlines("PBS/Items.txt")
  array[item] = data
  file = File.open("PBS/Items.txt", 'wb')
  for i in 0..array.length-1
    file.write(array[i])
    file.writeln()
  end
  file.close
end
Sorry if this is wrong, but this is how I remember Ruby IOs to work. In the end run you will still need to convert the data somehow. Yes I know this is useless as of you are coding this in c++ probably, I just put it out there as an example of how the basis can go towards
  #12    
Old September 30th, 2012 (11:17 AM).
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
My Ruby test that write and read files:
Code:
def testIO 
  file_name="testIO.txt"
  array=[]
  1000.times do
    array.push(rand(100000))
  end
  p "array",array
  output=""
  for i in 0...array.size
    output+="\n" if(i%10==0 && i!=0)
    output+=sprintf("array[%03d]=%05d ",i,array[i])
  end
  out=[]
  open(file_name,"w"){|f| f.write(output)}
  open(file_name){|f| out=f.readlines(output)}
  array_final=[]
  for m in 0...out.size
    column=out[m].split(" ")
    for n in 0...column.size
      data=column[n]
      data.slice!(0,11)
      array_resposta.push(data)
    end
  end
  p "array_final",array_final
end
Also take a look in Compiler script section (a little complex). An expert can even manage to left the comments untouched.
__________________
  #13    
Old September 30th, 2012 (12:06 PM).
Ivee's Avatar
Ivee
Ask me about Trailblazer :3
 
Join Date: Oct 2009
Gender: Female
Nature: Naive
This will be a godsend for someone like me, who's very visual (I have trouble focusing and finding where I am in the text files). A suggestion for Pokemon height/weight is to show both standard and imperial. I agree with Maruno on making the color choices more saturated, too. Will you also display location, like Field, Rough Terrain, Water's Edge, etc?

Awesome job, thank you for creating these!
  #14    
Old September 30th, 2012 (06:59 PM).
IceGod64's Avatar
IceGod64
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 26
Gender: Male
Nature: Naive
I like the looks of this!

How does it work in terms of reading data? Does it go in the root folder of your project and just know where to look from there? Or is it just a builder?
__________________

  #15    
Old September 30th, 2012 (07:33 PM).
Cilerba
the hearts of lonely people
Community Supporter
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Quote:
Originally Posted by IceGod64 View Post
I like the looks of this!

How does it work in terms of reading data? Does it go in the root folder of your project and just know where to look from there? Or is it just a builder?
Taken from the first post:

Quote:
Originally Posted by cilerba
Another thing, the PBS Editor doesn't actually edit the .txt files (yet, maybe), it just generates new .txt files with the info you put in. You'll have to paste the info into your game's PBS files.
__________________

| relic castle - coming soon |
  #16    
Old October 1st, 2012 (03:51 AM).
IceGod64's Avatar
IceGod64
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 26
Gender: Male
Nature: Naive
Ah, I see. This would still be extremely handy to have around. A windows GUI is easily faster than pressing up, down, left, and right multiple times just to define a 2-digit number, and there isn't even a way to create Pokémon currently without messing with Pokemon.txt (Which, granted, isn't all that bad, but it's scary for a newbie).
__________________

  #17    
Old October 18th, 2012 (04:02 PM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Have you made any progress with this? What language are you writing this app in? It would be nice to include it in Essentials, providing it does enough useful things.
__________________
  #18    
Old October 20th, 2012 (08:49 AM).
Cilerba
the hearts of lonely people
Community Supporter
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
I took a break from working on Pokémon and Items, and I started working on encounters. Not much to show but I'll try and get a screenshot out as soon as possible. VB.NET is the language.
__________________

| relic castle - coming soon |
  #19    
Old October 29th, 2012 (06:31 AM).
Cilerba
the hearts of lonely people
Community Supporter
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
I've now got creating Pokémon and items fully working, and I'm finishing up encounters right now. Here's a screenshot of how it looks:

__________________

| relic castle - coming soon |
  #20    
Old October 30th, 2012 (08:53 PM).
IceGod64's Avatar
IceGod64
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 26
Gender: Male
Nature: Naive
Looking great Cilerba! I can't wait to try it out!
__________________

  #21    
Old November 1st, 2012 (10:38 AM).
ppooookkkkkkk
Banned
 
Join Date: May 2012
Location: Newbud town (Pokemon Morning/Night)
Age: 13
Gender: Male
Nature: Gentle
It will be a peace of cake now to add fakemons items
  #22    
Old November 26th, 2012 (05:30 PM).
Cilerba
the hearts of lonely people
Community Supporter
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Don't worry guys! I haven't abandoned this. I ran into a bit of trouble with the encounters and saving to encounters.txt. Rather than delaying the first release to figure out how I'll finish encounters, I'm going to add metadata, and/or trainers. I'm hoping to get the first release out no later than the end of december.
__________________

| relic castle - coming soon |
  #23    
Old November 29th, 2012 (01:20 PM).
Rayquaza.'s Avatar
Rayquaza.
Lead Dev in Pokémon Chaos
 
Join Date: Sep 2011
Location: United Kingdom
Age: 18
Gender: Male
Nature: Adamant
This is why I should visit the pokemon essentials subforum more often!
__________________
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 07:07 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 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 - 2014 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.