Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
Reload this Page Essentials PBS 'Editor' (Lost all the code. Project's over.)

Notices
For all updates, view the main page.

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
 
Thread Tools
  #1    
Old September 23rd, 2012 (02:12 PM). Edited October 20th, 2012 by Cilerba.
Cilerba Cilerba is offline
the hearts of lonely people
Silver Tier
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Posts: 1,161
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.
__________________
  #2    
Old September 23rd, 2012 (02:47 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,058
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 Cilerba is offline
the hearts of lonely people
Silver Tier
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Posts: 1,161
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!
__________________
  #4    
Old September 24th, 2012 (08:15 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,058
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 LenSho is offline
 
Join Date: Sep 2012
Gender: Male
Nature: Modest
Posts: 93
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 Seth Pegasus is offline
 
Join Date: May 2012
Gender: Male
Posts: 38
This is great! It will make things a little easier for me.
  #7    
Old September 24th, 2012 (04:39 PM).
koby12 koby12 is offline
 
Join Date: Jun 2012
Gender: Male
Posts: 9
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~ ~JV~ is offline
Dev of Pokémon Uranium
 
Join Date: Aug 2007
Location: Rio de Janeiro
Age: 21
Nature: Relaxed
Posts: 712
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 FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,409
Nice! More quickly and intuitive than Essentials Editor!
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. 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 Cilerba is offline
the hearts of lonely people
Silver Tier
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Posts: 1,161
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.
__________________
  #11    
Old September 30th, 2012 (10:57 AM).
Umbreon's Avatar
Umbreon Umbreon is offline
Gold Tier
 
Join Date: Aug 2009
Location: Nearby my feet.
Age: 18
Gender: Male
Nature: Calm
Posts: 1,586
Quote originally posted by Cilerba:
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 FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,409
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 Ivee is offline
Ask me about Trailblazer :3
 
Join Date: Oct 2009
Gender: Female
Nature: Naive
Posts: 62
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 IceGod64 is offline
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 27
Gender: Male
Nature: Naive
Posts: 604
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 Cilerba is offline
the hearts of lonely people
Silver Tier
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Posts: 1,161
Quote originally posted by IceGod64:
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.
__________________
  #16    
Old October 1st, 2012 (03:51 AM).
IceGod64's Avatar
IceGod64 IceGod64 is offline
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 27
Gender: Male
Nature: Naive
Posts: 604
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 Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,058
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 Cilerba is offline
the hearts of lonely people
Silver Tier
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Posts: 1,161
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.
__________________
  #19    
Old October 29th, 2012 (06:31 AM).
Cilerba Cilerba is offline
the hearts of lonely people
Silver Tier
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Posts: 1,161
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:

__________________
  #20    
Old October 30th, 2012 (08:53 PM).
IceGod64's Avatar
IceGod64 IceGod64 is offline
My imagination.
 
Join Date: Oct 2008
Location: Castelia City
Age: 27
Gender: Male
Nature: Naive
Posts: 604
Looking great Cilerba! I can't wait to try it out!
__________________

  #21    
Old November 1st, 2012 (10:38 AM).
ppooookkkkkkk ppooookkkkkkk is offline
Banned
 
Join Date: May 2012
Location: Newbud town (Pokemon Morning/Night)
Age: 14
Gender: Male
Nature: Gentle
Posts: 229
It will be a peace of cake now to add fakemons items
  #22    
Old November 26th, 2012 (05:30 PM).
Cilerba Cilerba is offline
the hearts of lonely people
Silver Tier
 
Join Date: Feb 2010
Location: Massachusetts
Age: 18
Gender: Male
Nature: Quiet
Posts: 1,161
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.
__________________
  #23    
Old November 29th, 2012 (01:20 PM).
Rayquaza.'s Avatar
Rayquaza. Rayquaza. is offline
Lead Dev in Pokémon Chaos
 
Join Date: Sep 2011
Location: United Kingdom
Age: 18
Gender: Male
Nature: Adamant
Posts: 598
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

Forum Jump


All times are UTC -8. The time now is 01:14 AM.