True Pokemon Starter Kit

Hello everyone! (Hope I'm allowed to post this here..)

To those who don't know, at PokeCommunity Forums, there's a guy named Poccil working on a Pokemon Starter Kit.

It's an amazing Starter Kit that's really easy to understand. It has so many features already of most (if not all) previous Pokemon games (Ex. Breeding, Bug Catching, Safari Zone, Day/Night, Full Battle System, plus so much more etc. etc.)

His website: To Download
Notes (how to use it): Notes.Html

If you need help, or have any questions, ask here. I'm quite experienced in using it, so just ask!
Credit Poccil, not me, if you use it, because I did not make it, just thought you guys should know about it =P

-Krobe
I just read the notes and it seems like its nearly complete, or fully cause I didn't read the whole thing :-/
From just reading the notes, I have to say that the guy has determination cause I would have been bored halfway through..Animation Editor? XD awesome.

@Poccil, great job!
Wow just played through the demo and it's great! Finally there's a complete(or maybe 99% complete) Pokemon Starter kit =D Makes me wanna start up a pokemon game, maybe I will as a side project.
Just don't go full screen or change the resolution because it does weird things on certain maps like in the cnnected maps demos characters will follow the map and it'll be half light and half dark, of raining on one side and snowing on the other XD
But besides the full screen thing it's perfect, I love it =D

Edit: Oh my god, looking into the files that are in the demo, there's already data and battlers and all that annoying to edit stuff for all 493 Pokemon(including the shiny versions), All 50 TMs, 8 HMs, 500 Items,  354 moves, 77 Abilities, and names and speech for over 100 trainers(you still need to set up their items and pokemon though), is all set up already. So all's that would need editing would be the trainers and graphics for a game(unless you plan on using custom pokemon and items etc. like most people will but still...). So a huge portion of the work is done for you already.
Ok my mind's made up, I'm starting a pokemon side project XD
@Mr.Mo - You would have been bored halfway, or you were? xD But nevertheless, it's not all complete, it still has a few minor bugs (like the one that thelongabcsong mentioned), and some more features to implement. (many contests, perhaps battle tent from Pokemon Emerald? o.o)

@thelongabcsong - I know right? And it's really easy to customize and add your own stuff (although I'm still learning how to add items, because that goes more into the scripts part). All those things you mentioned, theres more. If you look in the PBS folder, and open bttrainers.txt and btpokemon.txt, you'll notice that he even put in every trainer you could face in the Battle Tower, with all the edited Pokemon included (edited meaning what they hold etc. etc.).

To top it all off, if you test play it, you'll find 'test play only' features, like the in depth stats of your Pokemon (IVs EVs,), able to change the custom terrain tags on each tile set, (because Rpg Maker only goes up to 7, with this it can go up to 99), an individual code for each Pokemon you hold thats compatible with Visual Boy Advance (I'm guessing to transfer over? o.o), and online trading using NetPlay (but he's still working on that part, as it's buggy) and so much more. Explore each feature, and I'm sure everyone will make their own Pokemon Fan Game =P

-Krobe

[Edit] Also.. theres a weird mini-game in the cave in test play. Its kinda like Rock Paper Scissors, but with HP and Atk and such. Pretty neat if you ask me.
FINALLY!!!!!  A Pokemon starter kit!

I've been looking for one of these for about 2 months now!
umm, where do I download the starterkit on the site ?
..You are kidding, right? This has been posted on here tons of times..XD

Hey Krobe, Legend of Awesome from Pokecommunity. =D

Yes, Poccil is one of the Game Development Gods when it comes to Pokemon. ;\ It is super easy to add battles, battlers, edit the Terrain tags, Battle Animations (I.E. in the Database, make new Animations, name it MOVE=TACKLE (er I think) and add! :P), Tons of awesome features, The Breeding, Evolving, catching, battling, EVERYTHING! =D

Guy above me (:P):
On the site click pokestarter.zip
@Master Game Maker - Oh really? I only seen it posted in a necro topic here, lol. But glad to see you here =P.
I was talking about the guy who posted above the guy who posted above me..Confusing..XD

Yeah. You to. =D
Wow, tried it out, loved it, using it !!!

This is EXACTLY what I want !!!
The one problem I had with this is when I tried to use the Visual Editor to make a linked map, when I pushed A, I got an error.  I also cant go into a battle without getting a error message.  Help?!
hi122neo wrote:
The one problem I had with this is when I tried to use the Visual Editor to make a linked map, when I pushed A, I got an error.  I also cant go into a battle without getting a error message.  Help?!


You might have done it wrong, it's a bit easier to open up PBS > connections.txt, and do it from there.

The error message you get, might be because you put the encounters.txt there might be an error in there. The error message was probably recorded in error.txt, open it up, and copy the errors in a reply. =P

-Krobe
this isnt as hard to use as he says.

And, it has more bugs than A Bug's Life.

I was encountering battles in the room where the game starts.  WTF?
OMG THANK YOU!

Oh, but what's the Outline for Connecting maps for the .txt?  I'll experiment, but Im not sure If I can!
Yeah, Poccil's kit is amazing. He's actually a member here, and a very helpful one. Since he hasn't made a topic for this himself, I don't know if he really wants one. I'd like to see what he has to say.

I've downloaded it and messed with his sample game a long time ago, but haven't done more than that. There are a couple of bugs that I found, but the amount of detail in it is amazing. I plan to use it for a Pokemon project I've been planning for a long time, but it's a much lower priority than my other projects.
hi122neo wrote:
OMG THANK YOU!

Oh, but what's the Outline for Connecting maps for the .txt?  I'll experiment, but Im not sure If I can!

You should be able to find that question over on the Notes.html, it shows you how to edit almost every feature in detail.

xephyr14 wrote:
this isnt as hard to use as he says.

And, it has more bugs than A Bug's Life.

I was encountering battles in the room where the game starts.  WTF?


It's a demo.. what'dya expect?

Despain wrote:
Yeah, Poccil's kit is amazing. He's actually a member here, and a very helpful one. Since he hasn't made a topic for this himself, I don't know if he really wants one. I'd like to see what he has to say.


Well he's very active over on Pkmncommunity, and he made a thread there quite awhile ago about this. So I figured as such that he wouldn't mind it being posted here, as long as it was linked to his site (just as the thread over on PC).
Thanks so much, I got it to work!  It's so COOL!
What are the bugs that everyone's been finding?
I've been screwing around with it for 2 days now and only found the one about the resolution which could easily be fixed with a script that disables the full screen feature.
thelongabcsong wrote:
What are the bugs that everyone's been finding?
I've been screwing around with it for 2 days now and only found the one about the resolution which could easily be fixed with a script that disables the full screen feature.


Yea, I noticed that, too!  Super buggy my ass!
thelongabcsong wrote:
What are the bugs that everyone's been finding?
I've been screwing around with it for 2 days now and only found the one about the resolution which could easily be fixed with a script that disables the full screen feature.


Just minor things, if you look at the dates in Notes.html where he posted the updated version, you'll see all the scripts/buggs he's fixed. Theres also a bug with the online trading (something about it not working). Theres a bug for me, that I can't seem to find out how to fix it. I sent a pm to Poccil but he's been away for quite awhile now, so I'm not sure. I'll post it here, perhaps someone could help me? (not too experienced with scripts heh).

Content Hidden Spoiler
Exception: Hangup
Message: The script is taking too long.  The game will restart.
PBIntl:43:in `pbSetTextMessages'
PBIntl:36:in `each'
PBIntl:36:in `pbSetTextMessages'
Compiler:2353
Section051:43:in `pbSetTextMessages'
Section051:36:in `each'
Section051:36:in `pbSetTextMessages'
Section113:2353


If you can't help, then it doesn't matter, I'm just not good with scripting =P

-Krobe
Oh yea, thanks for the help with Map linking Krobe, I owe you my life!
*dies from uncontrollable drooling*

Very impressive. The Mode 7 map style seems a little pointless though... I hope it can be disabled easily.
The bug I had before, about the hangup, it's fixed. You just need to replace PBIntl in the scripts database with:
Content Hidden Spoiler
def pbAddScriptTexts(items,script)
               script.scan(/(?:_I)\s*\(\s*"((?:[^\\"]*\\"?)*[^"]*)"/){|s|
                string=s[0]
                string.gsub!(/\\"/,""")
                string.gsub!(/\\\\/,"\")
                items.push(string)
               }
end

def pbSetTextMessages
   Graphics.update
begin
   mapinfos = load_data("Data/MapInfos.rxdata")
   t = Time.now.to_i
   messages=[]
   texts=[]
   for script in $RGSS_SCRIPTS
     if Time.now.to_i - t >= 5
      t = Time.now.to_i
      Graphics.update
     end
     scr=Zlib::Inflate.inflate(script[2])
     scr.scan(/(?:_INTL|_ISPRINTF)\s*\(\s*"((?:[^\\"]*\\"?)*[^"]*)"/){|s|
      string=s[0]
      string.gsub!(/\\r/,"\r")
      string.gsub!(/\\n/,"\n")
      string.gsub!(/\\"/,""")
      string.gsub!(/\\\\/,"\")
      texts.push(string)
     }
   end
   mapnames=[]
   for id in mapinfos.keys
    mapnames[id]=mapinfos[id].name
   end
   MessageTypes.setMessages(MessageTypes::MapNames,mapnames)
   MessageTypes.setMapMessagesAsHash(0,texts)
   for id in mapinfos.keys
     if Time.now.to_i - t >= 5
        t = Time.now.to_i
        Graphics.update
     end
     filename=sprintf("Data/Map%03d.rxdata",id)
     next if !FileTest.exist?(filename)
     map = load_data(filename)
     items=[]
     choices=[]
     for event in map.events.values
       if Time.now.to_i - t >= 5
         t = Time.now.to_i
         Graphics.update
       end
       begin
         for i in 0...event.pages.size
           neednewline=false
           lastitem=""
           for j in 0...event.pages[i].list.size
             list = event.pages[i].list[j]
             if neednewline && list.code!=401
               if lastitem!=""
                 lastitem.gsub!(/([^\.\!\?])\s\s+/){|m| $1+" "}
                 items.push(lastitem)
                 lastitem=""
               end        
               neednewline=false
             end
             if list.code == 101
               lastitem+="#{list.parameters[0]}"
               neednewline=true
             elsif list.code == 102
               for k in 0...list.parameters[0].length
                 choices.push(list.parameters[0][k])
               end
               neednewline=false
             elsif list.code == 401
               lastitem+=" #{list.parameters[0]}"
               neednewline=true
             elsif list.code == 355 || list.code==655
               pbAddScriptTexts(items,list.parameters[0])
             elsif list.code == 111 && list.parameters[0]==12
               pbAddScriptTexts(items,list.parameters[1])
             elsif list.code==209
              route=list.parameters[1]
              for k in 0...route.list.size
               if route.list[k].code==45
                pbAddScriptTexts(items,route.list[k].parameters[0])
               end
              end
             end
           end
           if neednewline
             if lastitem!=""
                items.push(lastitem)
                lastitem=""
             end        
           end
         end
       end
     end
     if Time.now.to_i - t >= 5
        t = Time.now.to_i
        Graphics.update
     end
     items|=[]
     choices|=[]
     items.concat(choices)
     MessageTypes.setMapMessagesAsHash(id,items)
     if Time.now.to_i - t >= 5
        t = Time.now.to_i
        Graphics.update
     end
   end
rescue Hangup
end
   Graphics.update
end


def pbEachIntlSection(file)
  lineno=1
  re=/^\s*\[\s*([^\]]+)\s*\]\s*$/
  havesection=false
  sectionname=nil
  lastsection=[]
  file.each_line {|line|
   if lineno==1&&line[0]==0xEF&&line[1]==0xBB&&line[2]==0xBF
    line=line[3,line.length-3]
   end
   if !line[/^\#/] && !line[/^\s*$/]
    if line[re]
     if havesection
      yield lastsection,sectionname
     end
     lastsection.clear
     sectionname=$~[1]
     havesection=true
    else
     if sectionname==nil
      raise _INTL("Expected a section at the beginning of the file (line {1})",lineno)
     end
     lastsection.push(line.gsub(/\s+$/,""))
    end
   end
   lineno+=1
   if lineno%500==0
    Graphics.update
   end
  }
  if havesection
   yield lastsection,sectionname
  end
end

def pbGetText(infile)
begin
  file=File.open(infile,"rb")
rescue
  raise _INTL("Can't find {1}",infile)
end
intldat=[]
begin
  pbEachIntlSection(file){|section,name|
   index=name
   if section.length==0
    next
   end
   if !name[/^([Mm][Aa][Pp])?(\d+)$/]
    raise _INTL("Invalid section name {1}",name)
   end
   ismap=$~[1] && $~[1]!=""
   id=$~[2].to_i
   itemlength=0
   if section[0][/^\d+$/]
    intlhash=[]
    itemlength=3
    if ismap
     raise _INTL("Section {1} can't be an ordered list (section was recognized as an ordered list because its first line is a number)",name)
    end
    if section.length%3!=0
     raise _INTL("Section {1}'s line count is not divisible by 3 (section was recognized as an ordered list because its first line is a number)",name)
    end
   else
    intlhash=OrderedHash.new
    itemlength=2
    if section.length%2!=0
     raise _INTL("Section {1} has an odd number of entries (section was recognized as a hash because its first line is not a number)",name)
    end
   end
   i=0;loop do break unless i<section.length
    if itemlength==3
     if !section[i][/^\d+$/]
      raise _INTL("Expected a number in section {1}, got {2} instead",name,section[i])
     end
     key=section[i].to_i
     i+=1
    else
     key=section[i] # key is already normalized
    end
    intlhash[key]=MessageTypes.denormalizeValue(section[i+1])
    i+=2
   end
   if ismap
    intldat[0]=[] if !intldat[0]
    intldat[0][id]=intlhash
   else
    intldat[id]=intlhash
   end
  }
ensure
  file.close
end
return intldat
end

def pbCompileText
outfile=File.open("intl.dat","wb")
begin
  intldat=pbGetText("intl.txt")
  Marshal.dump(intldat,outfile)
rescue
  raise
ensure
  outfile.close
end
end



class OrderedHash < Hash
def initialize
  @keys=[]
  super
end
def keys
  return @keys.clone
end
def inspect
  str="{"
  for i in [email hidden]
   str+=", " if i>0
   str+=@keys[i].inspect+"=>"+self[@keys[i]].inspect
  end
  str+="}"
  return str
end
alias :to_s :inspect
def []=(key,value)
  oldvalue=self[key]
  if !oldvalue && value
   @keys.push(key)
  elsif !value
   @keys|=[]
   @keys-=[key]
  end
  return super(key,value)
end
def self._load(string)
  ret=self.new
  keysvalues=Marshal.load(string)
  keys=keysvalues[0]
  values=keysvalues[1]
  for i in 0...keys.length
   ret[keys[i]]=values[i]
  end
  return ret
end
def _dump(depth=100)
  values=[]
  for key in @keys
   values.push(self[key])
  end
  return Marshal.dump([@keys,values])
end
end

module MessageTypes
Species=1
Items=2
Entries=3
Kinds=4
Moves=5
StorageCreator=6
TrainerTypes=7
TrainerNames=8
RegionNames=9
PlaceNames=10
ItemDescriptions=11
MoveDescriptions=12
Abilities=13
AbilityDescs=14
PhoneMessages=15
MapNames=16
@@messages=nil
def self.stringToKey(str)
  if str[/[\r\n\t]|^\s+|\s+$|\s{2,}/]
    key=str.clone
    key.gsub!(/^\s+/,"")
    key.gsub!(/\s+$/,"")
    key.gsub!(/\r/,"<r>")
    key.gsub!(/\n/,"<n>")
    key.gsub!(/\t/,"<t>")
    key.gsub!(/\s{2,}/," ")
    return key
  end
  return str
end
def self.normalizeValue(value)
  if value[/[\r\n\t]/]
   ret=value.clone
   ret.gsub!(/\r/,"<r>")
   ret.gsub!(/\n/,"<n>")
   ret.gsub!(/\t/,"<t>")
   return ret
  end
  return value
end
def self.denormalizeValue(value)
  if value[/<[rnt]>/]
   ret=value.clone
   ret.gsub!(/<r>/,"\r")
   ret.gsub!(/<n>/,"\n")
   ret.gsub!(/<t>/,"\t")
   return ret
  end
  return value
end
def self.writeObject(f,msgs,secname)
    return if !msgs
    if msgs.is_a?(Array)
     f.write("[#{secname}]\r\n")
     for j in 0...msgs.length
      next if msgs[j]==nil || msgs[j]==""
      value=self.normalizeValue(msgs[j])
      f.write("#{j}\r\n")
      f.write(value+"\r\n")
      f.write(value+"\r\n")
     end
    elsif msgs.is_a?(OrderedHash)
     f.write("[#{secname}]\r\n")
     keys=msgs.keys
     for key in keys
      next if msgs[key]==nil || msgs[key]==""
      value=self.normalizeValue(msgs[key])
      # key is already serialized
      f.write(key+"\r\n")
      f.write(value+"\r\n")
     end
    end
end
def self.extract(outfile)
  return if !@@messages
  File.open(outfile,"wb"){|f|
   f.write(0xef.chr)
   f.write(0xbb.chr)
   f.write(0xbf.chr)
   f.write("# To localize this text for a particular language, please\r\n")
   f.write("# translate every second line of this file.\r\n")
   if @@messages[0]
    for i in 0...@@messages[0].length
     msgs=@@messages[0][i]
     self.writeObject(f,msgs,"Map#{i}")
    end
   end
   for i in 1...@@messages.length
    msgs=@@messages[i]
    self.writeObject(f,msgs,"#{i}")
   end
  }
end
def self.setMessages(type,array)
  arr=[]
  @@messages=[] if !@@messages
  for i in 0...array.length
   arr[i]=(array[i]) ? array[i] : ""
  end
  @@messages[type]=arr
end
def self.createHash(type,array)
  arr=OrderedHash.new
  for i in 0...array.length
   if array[i]
    key=self.stringToKey(array[i])
    arr[key]=array[i]
   end
  end
  return arr
end
def self.setMapMessagesAsHash(type,array)
  @@messages=[] if !@@messages
  @@messages[0]=[] if !@@messages[0]
  @@messages[0][type]=self.createHash(type,array)
end
def self.setMessagesAsHash(type,array)
  @@messages=[] if !@@messages
  @@messages[type]=self.createHash(type,array)
end
def self.saveMessages
  File.open("Data/messages.dat","wb"){|f|
   Marshal.dump(@@messages,f)
  }
end
def self.loadMessageFile(filename)
  begin
   pbRgssOpen(filename,"rb"){|f|
    @@messages=Marshal.load(f)
   }
   return @@messages
  rescue
   @@messages=nil
   return nil
  end
end
def self.loadMessages
  if !@@messages
   begin
    pbRgssOpen("Data/messages.dat","rb"){|f|
     @@messages=Marshal.load(f)
    }
   rescue Errno::ENOENT
    return nil
   end
  end
  return @@messages
end
def self.get(type,id)
  self.loadMessages
  return "" if !@@messages
  return "" if !@@messages[type]
  return "" if !@@messages[type][id]
  return @@messages[type][id]
end
def self.getFromHash(type,key)
  self.loadMessages
  id=self.stringToKey(key)
  return key if !@@messages
  return key if !@@messages[type]
  return key if !@@messages[type][id]
  return @@messages[type][id]
end
def self.getFromMapHash(type,key)
  self.loadMessages
  id=self.stringToKey(key)
  return key if !@@messages
  return key if !@@messages[0]
  return key if !@@messages[0][type]
  return key if !@@messages[0][type][id]
  return @@messages[0][type][id]
end
end

def pbLoadMessages(file)
return MessageTypes.loadMessageFile(file)
end
def pbGetMessage(type,id)
return MessageTypes.get(type,id)
end
def pbGetMessageFromHash(type,id)
return MessageTypes.getFromHash(type,id)
end

def _INTL(*arg)
string=MessageTypes.getFromMapHash(0,arg[0])
string=string.clone
for i in 1...arg.length
  string.gsub!(/\{#{i}\}/,"#{arg[i]}")
end
return string
end

def _ISPRINTF(*arg)
string=MessageTypes.getFromMapHash(0,arg[0])
string=string.clone
for i in 1...arg.length
  string.gsub!(/\{#{i}\:([^\}]+?)\}/){|m|
   next sprintf("%"+$1,arg[i])
  }
end
return string
end

def _I(str)
return _MAPINTL($game_map.map_id,str)
end

def _MAPINTL(mapid,*arg)
string=MessageTypes.getFromMapHash(mapid,arg[0])
string=string.clone
for i in 1...arg.length
  string.gsub!(/\{#{i}\}/,"#{arg[i]}")
end
return string
end

def _MAPISPRINTF(mapid,*arg)
string=MessageTypes.getFromMapHash(mapid,arg[0])
string=string.clone
for i in 1...arg.length
  string.gsub!(/\{#{i}\:([^\}]+?)\}/){|m|
   next sprintf("%"+$1,arg[i])
  }
end
return string
end

def pbGetStringFile(filename)
ret=[]
File.open(filename,"rb"){|f|
  length=f.fgetdw>>3
  for i in 0...length
   ret.push(f.readName(i))
  end
}
return ret
end
Expand to see the code.


After that, it shouldn't have any hangup errors upon startup.

hi122neo wrote:
Oh yea, thanks for the help with Map linking Krobe, I owe you my life!


Your welcome! But I don't want your life... =P

Jirbytaylor wrote:
*dies from uncontrollable drooling*

Very impressive. The Mode 7 map style seems a little pointless though... I hope it can be disabled easily.


It's not activated at all. Only if you choose so. It also give a different perspective, like when your in a Gym in Pokemon Diamond and Pearl. I'm not sure if you can activate/deactivate it using a call script, but I'll check into it.

-Krobe

[Edit]
A new version is available.

Changes:

Audio module was replaced with a custom one
More changes to adapt to "Graphics.width/
Graphics.height" convention
Various bug fixes in data compiler
Fixed bugs in animation generation routine
Added option "Use PC" to debug menu
Input module was replaced
[/Edit]
Krobelus:

You should always wrap code blocks in "code" and not just "spoiler", since the code may be interpreted incorrectly otherwise.
Oh hey Poccil! Didn't think you would mind me making a thread here about your starterkit for support for people here as long as I linked to your site yea?

And I'll put it in code aswell, (didn't think it mattered)

-Krobe
Hey I was just wondering if there's a way to make certain pokemon only catchable in a certain kind of ball and in battle(like using snag balls on shadow pokemon in colloseum and gale of darkness)??
It'd be great if someone could help me out
Hehehehe, i love this kit, I bet Mr. Mo would be glad to see this, him and I once worked on an update of Blizzys Starter kit, but it never got as far as poccils, im now proudly a poccil user too. And im only about a  week away from a 3 gym demo of my game.
How in god's name do you use the Town Map Editor?  I have just about every thing done in my game demo so far, and the Town Map is so damn confusing. . .
@thelongabcsong - Uhmmm, not too sure, I'm not all that good with scripts, pm Poccil and ask him.

@hi122neo - It's pretty easy.

Content Hidden Spoiler
When the editor is started, it loads the file at Graphics/Pictures/Map.png. You can replace that file with the map of your game's region, keeping in mind that the map should be drawn in terms of 16x16 tiles. The example map in the distribution is the map of Hoenn; and filling the map will give you a good idea on how the Town Map Editor works.

Start by clicking any point on the map; for instance a city. Once you have done so, fill in details about the point:

    * Name: Name described by this point.
    * Point of Interest: Name of a point of interest described by this point.
    * Healing Spot: This field specifies the map ID and the X and Y coordinates of the entrance of a healing spot, such as a Pokemon Center, separated by commas. This location is where the player will travel to when Fly is used and if the map indicated by the map ID was visited before. Generally set only if the location is a city or town.
    * Switch: Number of a switch (in RPG Maker XP). If this is set, the point will not be shown until the switch is on. This field is generally set for locations outside of the main storyline, where special Pokemon can be found.

After completing the fields, click Save. You will notice that the point is added to the text below the Save button. This text is meant to be pasted to townmap.txt after you are done with the editor. You can put the text in a new or existing section of the file. (Sections begin with a number within brackets, for example: [1])
Expand to see the code.


That's pretty much it. If it's anymore complicated, then point out where.

-Krobe
Ah, thanks alot!

Also, how do you change the battle music/victory music PERMENTALY?!

I get rrrrrrrreeeeeeeaaaaaaaalllllllllyyyyyyyy tired of the RPT music. . .

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=36983