Advertisement
feasel

Using the SGL Lua script with Bizhawk

Jun 6th, 2015
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. Here is Bizhawk. Make sure you download the latest version if you don't have it already:
  2. http://sourceforge.net/projects/bizhawk/
  3.  
  4. Here is the prerequisites package that you must install before installing Bizhawk.
  5. http://sourceforge.net/projects/bizhawk/files/Prerequisites/bizhawk_prereqs_v1.1.zip/download
  6.  
  7. We will send you the SGL Lua script. This is the script that you'll run during the match in order to get the on-screen timer and to submit the runs that you've completed. You can save the Lua script anywhere.
  8.  
  9. You should also download the uploader tool from the player page:
  10. http://speedgaming.tv/player/
  11. And save it in the directory "C:\SGL\" with the file name "sgl-upload.exe". It is important that the uploader tool is in the correct directory or else the Lua script will not know where to look for it. If you'd like to put the uploader tool somewhere besides "C:\SGL\", you can edit the Lua script to change the path. The uploader tool is a program that uploads your finished runs to our server. You won't ever need to run this program directly; it gets run by the Lua script when you press the submit key.
  12.  
  13. Make sure you configure Bizhawk so that you can capture the window with your broadcast software (XSplit, OBS, etc) without causing the emulator to lag or show up as a blank screen on stream. You may need to experiment with different screen capture methods (Window Capture, Game Capture, Monitor Capture, ...). You might also need to change the display settings of Bizhawk (go to Config -> Display -> Display Method and switch between OpenGL and GDI+). Don't wait until the last minute to test this. Some people have had problems streaming Bizhawk.
  14.  
  15. IMPORTANT STEP: Before you can use the SGL Lua script you need to make sure you have configured the hotkeys so that "Y" is mapped to "Save Movie". To do this go to "Config -> Hotkeys". Under the "Movies" tab set "Save Movie" to the "Y" key. Then hit the Save button to close the dialog. You only need to do this once when you first set up Bizhawk.
  16.  
  17. To run the Lua script, do the following steps:
  18. Load the ROM if it's not already loaded ("File -> Open ROM" or "Ctrl-O").
  19. Pause the emulator ("Pause" key, or "Emulation -> Pause").
  20. Load the savestate ("File -> Load State -> Load Named State").
  21. Start a movie recording ("File -> Movie -> Record Movie"). In the "Record From" field, choose "Now". The movie filename doesn't matter, just use the default filename.
  22. Go to the Lua Console ("Tools -> Lua Console"). In the Lua Console go to "Script -> Open Script" and select the Lua script that you were given.
  23. Leave the Lua Console open and click on the main emulator window again so that it has focus. Unpause the game and begin playing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement