Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

EverOddish/PokeStreamer-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NO LONGER SUPPORTED

This project has been decommissioned as of 2022-01-03 and is no longer supported or maintained. I want to devote my time to other projects, and PokeLink (no affiliation with me) is a better alternative to PokeStreamer-Tools. Please visit https://twitter.com/PokelinkApp for more details.

Thank you to all those that used PokeStreamer-Tools in the past.

PokeStreamer-Tools

A set of scripts and tools for Pokemon streamers.

Automatic Layout Updating

If you're streaming a Pokemon game and like to display your current party on your layout, it can be tedious to modify which image files are displayed, while you are live. I've modified several existing tools (and created new ones) to detect when in-game party slots change, which can then copy sprite image files on your computer automatically. Your streaming software can be configured to watch these files for modification, and update the layout accordingly. There is also a "Soul Link" version that will update paired sprites at the same time.

SOS Counter Tool

If you're doing SOS chains in Sun/Moon or Ultra Sun/Ultra Moon, this tool will display the current chain length. It will also write the value to a text file that can be monitored by streaming software and displayed on stream layouts. Note: This requires a version of Citra that supports Python scripting.

Setup Instructions

Requirements

  • Windows operating system (in the case of VBA-RR or Desmume)
  • An emulator with Lua scripting support (in the case of Gen 3-5)
    • VBA-RR (for Gen 3 games)
    • Desmume (for Gen 4/Gen 5 games)
  • A version of Citra with Python scripting support (in the case of Gen 6-7), and Python 3

VBA-RR Setup

  1. Download the latest release of VBA-RR: https://github.com/TASVideos/vba-rerecording/releases
  2. Edit the first line of auto_layout_gen3.lua file from this repository with your favourite text editor (you can right-click the file and Open With > Notepad): Set game=1 to 1 for Ruby/Sapphire, 2 for Emerald, 3 for FireRed/LeafGreen
  3. Copy auto_layout_gen3.lua to the same directory that contains your sprite image files.
    • The script expects sprite files to be named as follows: <pokemon_name>.png (for example, pikachu.png)
    • The script expects party slot image files (that are monitored by OBS) to be named as follows: p<slot_number>.png (for example, p1.png)
    • The script expects a Pokeball image to be named 000.png
  4. Copy auto_layout_gen3_tables.lua to the same directory
    • Note: The auto_layout_gen3_tables.lua file still needs to exist in the same directory, but you do not need to open it in VBA-RR
  5. Open VBA-RR and your Pokemon ROM, and load your save file
  6. In VBA-RR, open Tools > Lua Scripting > New Lua Script Window...
  7. Click Browse... and locate auto_layout_gen3.lua on your computer, open it, and click Run. If you see "script returned but is still running registered fuctions", this is normal and expected.
  8. You should now be able to switch party slots, deposit/withdraw Pokemon from the PC, and catch Pokemon to see your party images update automatically!
  9. The Lua script output window should display all slot changes in text form. As a bonus, you can press "Q" to see Pokemon EV/IV values in your party

Desmume Setup

  1. Download the latest release of Desmume: http://desmume.org/download/
  2. Make note of whether you downloaded 32-bit (x86) or 64-bit (x86-64) Desmume
  3. Download the Lua DLL that matches your Desmume: https://sourceforge.net/projects/luabinaries/files/5.1.5/Windows%20Libraries/Dynamic/
    • lua-5.1.5_Win32_dll14_lib.zip for x86 Desmume
    • lua-5.1.5_Win64_dll14_lib.zip for x86-64 Desmume
  4. Extract lua5.1.dll from the .zip file to the same folder where your DeSmuME_0.9.11_x86.exe or DeSmuME_0.9.11_x64.exe is
  5. Rename lua5.1.dll to lua51.dll
  6. Copy the correct script to the same directory that contains your sprite image files
    • auto_layout_gen4_gen5.lua for regular automatic layout update
    • auto_layout_gen4_gen5_soul_link.lua for Soul Link automatic layout update (paired sprites)
    • Copy auto_layout_gen4_gen5_tables.lua to the same directory
    • The script expects sprite files to be named as follows: <pokemon_name>.png (for example, pikachu.png)
    • The script expects party slot image files (that are monitored by OBS) to be named as follows: p<slot_number>.png (for example, p1.png)
    • The script expects a Pokeball image to be named 000.png
    • The Soul Link version of the script expects soul_links.txt containing which Pokemon are linked (see example file)
  7. Edit the first line of the chosen .lua file from this repository with your favourite text editor (you can right-click the file and Open With > Notepad) and set game to the appropriate value, as described in the file
  8. Open Desmume and your Pokemon ROM, and load your save file
  9. In Desmume, open Tools > Lua Scripting > New Lua Script Window...
  10. Click Browse... and locate auto_layout_gen4_gen5.lua (or other chosen version of the script) on your computer, open it, and click Run. If you see "script returned but is still running registered fuctions", this is normal and expected.
    • Note: The auto_layout_gen4_gen5_tables.lua file still needs to exist in the same directory, but you do not need to open it in Desmume
  11. You should now be able to switch party slots, deposit/withdraw Pokemon from the PC, and catch Pokemon to see your party images update automatically!
  12. The Lua script output window should display all slot changes in text form.

Citra Setup

  1. If not already installed, install the latest release of Python 3: https://www.python.org/downloads/
  2. Download the latest release of Citra: https://citra-emu.org/download/
  3. Verify that the following file exists: <your Citra directory>/scripting/citra.py
    • Usually your Citra directory resides under C:\Users\Name\AppData\Local\Citra\nightly-mingw
  4. Copy the correct script to <your Citra directory>/scripting
    • auto_layout_gen6_gen7.py for auto-layout
    • sos_counter.py for SOS chain length counting
  5. If using auto-layout, copy the sprite files to <your Citra directory>/scripting
    • The script expects sprite files to be named as follows: <pokemon_name>.png (for example, pikachu.png) OR <pokedex_number.png> (for example, 25.png)
    • The script expects party slot image files (that are monitored by OBS) to be named as follows: p<slot_number>.png (for example, p1.png)
    • The script expects a Pokeball image to be named 000.png
  6. If using auto-layout, edit the first line of the auto_layout_gen6_gen7.py file from this repository with your favourite text editor (you can right-click the file and Open With > Notepad) and set current_game to the appropriate value, as described in the file
  7. Open Citra and your Gen 6 or Gen 7 Pokemon ROM, and load your save file
  8. Double-click the auto_layout_gen6_gen7.py or sos_counter.py file (or both!) to run the script(s)
  9. If using auto-layout, you should now be able to deposit/withdraw Pokemon from the PC and catch Pokemon to see your party images update, whenever you re-run the script. The Python script output window should display all Pokemon party information in text form. To update the sprites again, just press Enter.
  10. If using the SOS Counter, you should see a running count in the script window, and a file in the scripting directory called sos_count.txt that contains the running count.

FAQ

Credits

About

A set of scripts and tools for Pokemon streamers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published