Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
ItemDex
TrainerDex
TypeDex
UnownDex
More

Major Glitches
Trainer escape glitch
Old man trick
Celebi Egg trick
Select glitches (Japan)
SRAM glitch
CoolTrainer♀ corruption
LOL glitch
Rival LOL glitch
Super Glitch
ZZAZZ glitch
Pomeg corruption glitch (Glitzer Popping)
Tweaking
Elite Four door glitch (Japan)
Pokémon merge glitch
Pokémon cloning
Time Capsule exploit
Arbitrary code execution
Coin Case glitches
More

Other Glitch Categories
Glitches by generation
Glitches between two generations
Japan-only/language specific glitches
Music glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Officially acknowledged glitches
Recurring glitches
Dead glitches

References
Pokémon GameShark codes
The Big HEX List
Glitch Pokémon cries
GB programming
Curiosities
Debugging features
Easter eggs
Error traps
Glitch areas
Glitch myths
Non-glitch exploits
Placeholder texts
Pokémon glitch terminology
Unused content and prerelease information

Useful Tools
8F Helper
GBz80 to Items
Old man trick name generator
PATH (Prama's Advanced Tweaking Heaven)
Save file editors
Special stat/Pokémon converter
Trainer escape Trainer Pokémon finder

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site Source Code

Search Wiki

 

Search Forums

 

Author Topic: Pok?mon Battle Simulator Beta (Bugfix 0.4.1 now available!)  (Read 5606 times)

0 Members and 1 Guest are viewing this topic.

ACE91

  • Vanished
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Glitch Guru of the Old GC
    • View Profile
    • SECTOR91
Pok?mon Battle Simulator Beta (Bugfix 0.4.1 now available!)
« on: November 24, 2006, 12:18:51 am »
This is a project that I've been working on in secret for a while now. It's a fully D/P-compliant Pok?mon battle simulator written in Java. You battle agaisnt a computer foe that currently only picks moves at random. Download the attached ZIP files and check it out. I don't have time to explain much about it now, but the INSTRUCTIONS.txt file in battlesim_beta_0.x.zip has all the info you need. Remember, this is a BETA, so a lot of stuff doesn't work and the graphics look pretty bad. You can add your own teams, Pok?mon, and moves if you want, but you have to know the syntax of the data files.

To use the program, first download battlesim_beta_0.x.zip and unzip it. Then, download the two image ZIP files and unzip them to the images folder in the program's directory. Front and back sprites for all 493 Pok?mon take up a lot of space... Your should be able to double-click the JAR file and run the program, otherwise read in the instructions how to run it from the command line. If you don't want to download all of the images, read in the instructions how to run the program in text mode.

Screenshots:


Latest version: 0.4.1
« Last Edit: February 12, 2007, 05:55:47 pm by ACE91 »
First to discover and name the following glitches:
* Super Glitch
* ZZAZZ Glitch
* Q Glitch
* Level-100+ Glitch Evolutions and Moves

Abwayax

  • Founder/Technical Support
  • Interim Head Administrator
  • *****
  • Offline Offline
    • View Profile
Re: Pok?mon Battle Simulator Beta 1
« Reply #1 on: November 24, 2006, 02:00:55 am »
your data files look way too much like GlitchBattle's alpha format :/

Damn thing's taking way too long to load, although, with 400-something Pokemon and a sizable attack file to parse, I can't exactly blame it. Also, MissingNo. is not in D/P.

Aside from that though... I swear, the data file formats look extremely similar to my program's. Take, for example, the team files:

Battle Simulator:
Code: [Select]
Pok?mon Name|Move 1|Move 2|Move 3|Move 4|HP EV|Attack EV|Defense EV|Sp. Attack EV|Sp. Defense EV|Speed EV
GlitchBattle:
Code: [Select]
Pok?mon ID or Name|Nickname|Level|Move 1|Move 2|Move 3|Move 4
Assuming I'm right to assume R/B/Y don't have effort values (which would make them impractical to emulate in GlitchBattle, which is a mostly R/B/Y simulator), the two formats are interchangable with minor changes.

Perhaps I can add an exporter for your format in 0.7, as it does seem a bit of an inconvenience to have to edit the team files by hand.

I'm going to say it again: It's taking way too much time to load. Granted, GlitchBattle takes much less time because it only has to load a fourth of the data the D/P simulator does (disregarding the fact that it also stores type and effect data in separate files), but... it's taking as long to load a single team file than it does to start GlitchBattle and begin a battle. You might also want to consider using a JFileChooser to select team files.
A. Malacoda, http://monarch-pass.net

Free Software Foundation member #8136
Electronic Frontier Foundation member
American Civil Liberties Union member

ACE91

  • Vanished
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Glitch Guru of the Old GC
    • View Profile
    • SECTOR91
Re: Pok?mon Battle Simulator Beta 1
« Reply #2 on: November 24, 2006, 10:14:37 am »
The "MissingNo." is just a placeholder, sort of a joke. Perhaps I should change it to "Blank"...

I had no idea that I had accidentally copied your GlitchBattle file format... O_O It's been so long since I looked at your program that I had forgotten what its file format looked like, so it was completely unintentional. (Although using the .DAT extention was an idea I stole from it.)

And yes, one thing that wasn't fixed in this beta was the load time. I plan to fix it somehow in the final version. My dad suggested using a SQL database, but I think that that would defeat the purpose of this program--that is,  for everything to be editable. I could shave a lot off of the load time by making the Pok?mon load into memory at the beginning like the attacks do instead of making it go back to the file every time it loads a team, but I didn't bother to do that with the beta becuase the current loading method is so tightly integrated into the program. Also, the final version will have a team editor.

How did you lke my random-select team files? In case you haven't noticed, when you select the files "kanto.dat" or "johto.dat," the program randomly generates a team of Pok?mon from the file, each with randomly generated attacks.
First to discover and name the following glitches:
* Super Glitch
* ZZAZZ Glitch
* Q Glitch
* Level-100+ Glitch Evolutions and Moves

Abwayax

  • Founder/Technical Support
  • Interim Head Administrator
  • *****
  • Offline Offline
    • View Profile
Re: Pok?mon Battle Simulator Beta 1
« Reply #3 on: November 24, 2006, 01:27:28 pm »
I had a hunch you were loading the Pokemon every time a team was loaded. I think you should move Pokemon loading to the beginning.

And actually, that was GlitchBattle's alpha format. Version 0.6 onwards use XML to store data (pokemon.dat is now pokemon.xml, for example). The team file format's the same to allow interchangablility between versions, but that's about it.

After the extremely long load, it's quite enjoyable, actually.
A. Malacoda, http://monarch-pass.net

Free Software Foundation member #8136
Electronic Frontier Foundation member
American Civil Liberties Union member

ACE91

  • Vanished
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Glitch Guru of the Old GC
    • View Profile
    • SECTOR91
Re: Pok?mon Battle Simulator Beta 1
« Reply #4 on: November 24, 2006, 05:02:59 pm »
BattleSim 0.2 is now available! I've fixed it up, and it now loads EXTREMELY fast compared to the previous version. This one loads the Pok?mon into memory along with the attacks at the start, and therefore the teams load instantly and the only wait is at the beginning. I also greatly reduced load time and file size by removing the unused descriptions from the move database. Check it out! (You'll still need the images from the first version; just copy over the images folder.)

Edit: Version 0.2 is out of date and no longer available. Download 0.3, which is now attached to the title post.
« Last Edit: November 25, 2006, 10:12:50 pm by ACE91 »
First to discover and name the following glitches:
* Super Glitch
* ZZAZZ Glitch
* Q Glitch
* Level-100+ Glitch Evolutions and Moves

Newo

  • Glitch Scientist
  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Mewthree is Dwnage
    • View Profile
    • Glitchcity
Re: Pok?mon Battle Simulator Beta 1
« Reply #5 on: November 24, 2006, 05:48:36 pm »
It sounds good. but a picture says a 1000 words or something

I would like pictures or I will be forced to add them.
R/S/Lg/Fr/E Extended Hacker 1.5 for Decamark research ~  New interface and features added!

ACE91

  • Vanished
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Glitch Guru of the Old GC
    • View Profile
    • SECTOR91
Re: Pok?mon Battle Simulator Beta 1
« Reply #6 on: November 24, 2006, 05:49:39 pm »
It sounds good. but a picture says a 1000 words or something

I would like pictures or I will be forced to add them.
You mean screenshots of the program in action? I'll try to get some.
First to discover and name the following glitches:
* Super Glitch
* ZZAZZ Glitch
* Q Glitch
* Level-100+ Glitch Evolutions and Moves

ACE91

  • Vanished
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Glitch Guru of the Old GC
    • View Profile
    • SECTOR91
Re: Pok?mon Battle Simulator Beta 1
« Reply #7 on: November 25, 2006, 10:11:18 pm »
Version 0.3 is now available! This includes a major bugfix for the random-select team files, as well as some new team files. Also, new attacks and abilities work now--most significantly, Protect and Detect. You can download it from the attachment on the first post. (BTW, previous versions will be removed as new ones are added, so you will no longer be able to get version 0.2 as of now.)
« Last Edit: November 25, 2006, 10:15:04 pm by ACE91 »
First to discover and name the following glitches:
* Super Glitch
* ZZAZZ Glitch
* Q Glitch
* Level-100+ Glitch Evolutions and Moves

ACE91

  • Vanished
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Glitch Guru of the Old GC
    • View Profile
    • SECTOR91
Re: Pokémon Battle Simulator Beta 1
« Reply #8 on: December 30, 2006, 12:18:16 pm »
Version 0.4 is now available! Nearly all attacks work now, with the exception of attacks with charge-up turns and a few other gimmicky attacks. Also, lots of abilities work now, Accuracy and Evasion work now, the formulas for status effects have been corrected, many bugs have been squashed, and the interface has become far more user-friendly. It's also capable of running without the images installed if you don't want to download them. As you can see, this is a MAJOR update. Download it from the first post--you'll be pleasantly surprised at how much this release has improved from the last.

Also, check out the options page. There's an animated spinning Poké Ball background that you can enable, but only do so if you have a fast computer--animations in Java are notoriously CPU-intensive.

Edit: Version 0.4 is out of date and no longer available. Download 0.4.1, a bugfix release that is available in the title post.
« Last Edit: February 11, 2007, 12:09:37 pm by ACE91 »
First to discover and name the following glitches:
* Super Glitch
* ZZAZZ Glitch
* Q Glitch
* Level-100+ Glitch Evolutions and Moves

Newo

  • Glitch Scientist
  • Veteran Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Mewthree is Dwnage
    • View Profile
    • Glitchcity
Re: Pok?mon Battle Simulator Beta (Version 0.4 now available!)
« Reply #9 on: December 31, 2006, 12:06:39 pm »
Very good
I like it.....And this version, I can actually work it.
R/S/Lg/Fr/E Extended Hacker 1.5 for Decamark research ~  New interface and features added!

Master_M

  • Thine worst bad dream.
  • Oldbie
  • *
  • Offline Offline
  • Gender: Male
  • Beware, Spammers! You shall be nullified by Teh_M
    • View Profile
    • thesolarflare
Re: Pok?mon Battle Simulator Beta (Version 0.4 now available!)
« Reply #10 on: February 05, 2007, 09:55:56 pm »
It can't load the pokedex.dat file.  What do I do?
OMG!  I found out what the M in Master_M means!
All forum spammers: Prepare for nullification.

   
    Kioko the Level 0 Chisai-u [4]
    Get your own Glitch Pokemon at Glitch City Labs!

My diamond friend code:3737 6116 9418.

Abwayax

  • Founder/Technical Support
  • Interim Head Administrator
  • *****
  • Offline Offline
    • View Profile
Re: Pok?mon Battle Simulator Beta (Version 0.4 now available!)
« Reply #11 on: February 05, 2007, 11:16:23 pm »
Well, first you should make sure you haven't misplaced your pokedex.dat somewheres. If you just download and unzip it, then run it it should work.
A. Malacoda, http://monarch-pass.net

Free Software Foundation member #8136
Electronic Frontier Foundation member
American Civil Liberties Union member

Master_M

  • Thine worst bad dream.
  • Oldbie
  • *
  • Offline Offline
  • Gender: Male
  • Beware, Spammers! You shall be nullified by Teh_M
    • View Profile
    • thesolarflare
Re: Pok?mon Battle Simulator Beta (Version 0.4 now available!)
« Reply #12 on: February 05, 2007, 11:46:07 pm »
I got the situation figured out.  It's a Win/Mac difference.  The program is looking for Data\blah, but since I have a MAC, it's actually at Data/blah.  Dang backslash.
OMG!  I found out what the M in Master_M means!
All forum spammers: Prepare for nullification.

   
    Kioko the Level 0 Chisai-u [4]
    Get your own Glitch Pokemon at Glitch City Labs!

My diamond friend code:3737 6116 9418.

ACE91

  • Vanished
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Glitch Guru of the Old GC
    • View Profile
    • SECTOR91
Re: Pok?mon Battle Simulator Beta (Version 0.4 now available!)
« Reply #13 on: February 06, 2007, 12:20:41 pm »
I'll fix that in the next version, although the next version's coming along fairly slowly... Keep posting bugs that you find so that I can fix them.
First to discover and name the following glitches:
* Super Glitch
* ZZAZZ Glitch
* Q Glitch
* Level-100+ Glitch Evolutions and Moves

Master_M

  • Thine worst bad dream.
  • Oldbie
  • *
  • Offline Offline
  • Gender: Male
  • Beware, Spammers! You shall be nullified by Teh_M
    • View Profile
    • thesolarflare
Re: Pok?mon Battle Simulator Beta (Version 0.4 now available!)
« Reply #14 on: February 06, 2007, 07:17:23 pm »
Sweet.  I was wondering, although I think I already know the answer:  Can you add pokemon to the list?
OMG!  I found out what the M in Master_M means!
All forum spammers: Prepare for nullification.

   
    Kioko the Level 0 Chisai-u [4]
    Get your own Glitch Pokemon at Glitch City Labs!

My diamond friend code:3737 6116 9418.