lua: fix #734 by adding emu.getpath() and emu.loadrom()

update help

[[Split portion of a mixed commit.]]
This commit is contained in:
feos-tas 2016-07-03 12:01:17 +00:00
parent 2cbcae6f6d
commit 40206ce1fd
85 changed files with 168 additions and 125 deletions

View File

@ -1604,7 +1604,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -86,7 +86,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -79,7 +79,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -163,7 +163,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -190,7 +190,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -233,7 +233,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -256,7 +256,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -113,7 +113,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -194,7 +194,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -70,7 +70,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -113,7 +113,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -99,7 +99,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -294,7 +294,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -118,7 +118,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -56,22 +56,22 @@
<p><br/></p> <p><br/></p>
<p>Information regarding various concepts such as TAS, ROM Hacking, RAM Mapping.</p> <p>Information regarding various concepts such as TAS, ROM Hacking, RAM Mapping.</p>
<p><br/></p> <p><br/></p>
<p><a class="rvts75" href="ToolAssistedSpeedruns.html">Troubleshooting FAQ</a></p> <p><a class="rvts80" href="ToolAssistedSpeedruns.html">Troubleshooting FAQ</a></p>
<p><br/></p> <p><br/></p>
<p>A guide to common problems people experience, and what to do about them.</p> <p>A guide to common problems people experience, and what to do about them.</p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><a class="rvts75" href="ToolAssistedSpeedruns.html">Tool Assisted Speedruns (TAS)</a></p> <p><a class="rvts80" href="ToolAssistedSpeedruns.html">Tool Assisted Speedruns (TAS)</a></p>
<p><br/></p> <p><br/></p>
<p>Information regarding Tool Assisted Speedruns and the TAS community.</p> <p>Information regarding Tool Assisted Speedruns and the TAS community.</p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><a class="rvts75" href="ROMHacking.html">ROM Hacking</a></p> <p><a class="rvts80" href="ROMHacking.html">ROM Hacking</a></p>
<p><br/></p> <p><br/></p>
<p>Information regarding making ROM Hacks and the ROM Hacking community.</p> <p>Information regarding making ROM Hacks and the ROM Hacking community.</p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><a class="rvts75" href="NESRAMMappingFindingValues.html">NES RAM Mapping</a></p> <p><a class="rvts80" href="NESRAMMappingFindingValues.html">NES RAM Mapping</a></p>
<p><br/></p> <p><br/></p>
<p>A guide to the layout of NES RAM, and how to interpret its contents.</p> <p>A guide to the layout of NES RAM, and how to interpret its contents.</p>
<p><br/></p> <p><br/></p>
@ -84,7 +84,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -141,7 +141,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -103,7 +103,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -112,7 +112,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -96,7 +96,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -92,7 +92,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -86,7 +86,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -102,7 +102,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -120,7 +120,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -115,7 +115,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -68,7 +68,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -105,7 +105,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -211,7 +211,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -149,6 +149,16 @@
<p><span class="rvts37">Note: This might result in an error if the medium of the movie file is not writeable (such as in an archive file).</span></p> <p><span class="rvts37">Note: This might result in an error if the medium of the movie file is not writeable (such as in an archive file).</span></p>
<p><span class="rvts37"><br/></span></p> <p><span class="rvts37"><br/></span></p>
<p><span class="rvts37">While this variable only applies to movies, it is stored as a global variable and can be modified even without a movie loaded. &nbsp;Hence, it is in the emu library rather than the movie library.</span></p> <p><span class="rvts37">While this variable only applies to movies, it is stored as a global variable and can be modified even without a movie loaded. &nbsp;Hence, it is in the emu library rather than the movie library.</span></p>
<p><span class="rvts76"><br/></span></p>
<p><span class="rvts77">emu.getdir()</span></p>
<p><span class="rvts78"><br/></span></p>
<p><span class="rvts78">Returns the path of fceux.exe as a string.</span></p>
<p><span class="rvts77"><br/></span></p>
<p><span class="rvts77">emu.loadrom(string filename)</span></p>
<p><span class="rvts78"><br/></span></p>
<p><span class="rvts78">Loads the ROM from the directory relative to the lua script or from the absolute path. Hence, the filename parameter can be absolute or relative path.</span></p>
<p><span class="rvts78"><br/></span></p>
<p><span class="rvts78">If the ROM can't e loaded, loads the most recent one.</span></p>
<p><span class="rvts37"><br/></span></p> <p><span class="rvts37"><br/></span></p>
<p><span class="rvts62">emu.registerbefore(function func)</span></p> <p><span class="rvts62">emu.registerbefore(function func)</span></p>
<p><span class="rvts37"><br/></span></p> <p><span class="rvts37"><br/></span></p>
@ -221,7 +231,12 @@
<p><span class="rvts37"><br/></span></p> <p><span class="rvts37"><br/></span></p>
<p><span class="rvts37">This includes the header! It's the same as opening the file in a hex-editor.</span></p> <p><span class="rvts37">This includes the header! It's the same as opening the file in a hex-editor.</span></p>
<p><span class="rvts37"><br/></span></p> <p><span class="rvts37"><br/></span></p>
<p class="rvps7"><span class="rvts74">rom.writebyte()</span></p>
<p><span class="rvts37"><br/></span></p> <p><span class="rvts37"><br/></span></p>
<p><span class="rvts37">Write the value to the ROM at the given address. The value is modded with 256 before writing (so writing 257 will actually write 1). Negative values allowed.</span></p>
<p><span class="rvts37"><br/></span></p>
<p><span class="rvts37">Editing the header is not available.</span></p>
<p><span class="rvts75"><br/></span></p>
<p><span class="rvts71">Memory Library</span></p> <p><span class="rvts71">Memory Library</span></p>
<p><span class="rvts37"><br/></span></p> <p><span class="rvts37"><br/></span></p>
<p><span class="rvts62">memory.readbyte(int address)</span></p> <p><span class="rvts62">memory.readbyte(int address)</span></p>
@ -812,7 +827,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -99,7 +99,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -67,7 +67,7 @@
<p><br/></p> <p><br/></p>
<p>Usage example: \luaScripts\GUI-iup_example.lua </p> <p>Usage example: \luaScripts\GUI-iup_example.lua </p>
<p><br/></p> <p><br/></p>
<p><a class="rvts74" href="http://www.tecgraf.puc-rio.br/iup/" target="_blank">http://www.tecgraf.puc-rio.br/iup/</a></p> <p><a class="rvts79" href="http://www.tecgraf.puc-rio.br/iup/" target="_blank">http://www.tecgraf.puc-rio.br/iup/</a></p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><span class="rvts61">IM library</span></p> <p><span class="rvts61">IM library</span></p>
@ -75,7 +75,7 @@
<p>IM is a toolkit for Digital Imaging. The main goal of the library is to provide a simple API and abstraction of images for applications.</p> <p>IM is a toolkit for Digital Imaging. The main goal of the library is to provide a simple API and abstraction of images for applications.</p>
<p>File formats supported: TIFF, BMP, PNG, JPEG, GIF and AVI. Image representation includes scientific data types. About a hundred Image Processing operations are available.</p> <p>File formats supported: TIFF, BMP, PNG, JPEG, GIF and AVI. Image representation includes scientific data types. About a hundred Image Processing operations are available.</p>
<p><br/></p> <p><br/></p>
<p><a class="rvts74" href="http://www.tecgraf.puc-rio.br/im/" target="_blank">http://www.tecgraf.puc-rio.br/im/</a></p> <p><a class="rvts79" href="http://www.tecgraf.puc-rio.br/im/" target="_blank">http://www.tecgraf.puc-rio.br/im/</a></p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><span class="rvts61">CD library</span></p> <p><span class="rvts61">CD library</span></p>
@ -83,7 +83,7 @@
<p>Canvas Draw is a graphics library.</p> <p>Canvas Draw is a graphics library.</p>
<p>The library contains functions to support both vector and image applications, and the visualization surface can be either a window or a more abstract surface, such as Image, Clipboard, Metafile, PS, and so on.</p> <p>The library contains functions to support both vector and image applications, and the visualization surface can be either a window or a more abstract surface, such as Image, Clipboard, Metafile, PS, and so on.</p>
<p><br/></p> <p><br/></p>
<p><a class="rvts74" href="http://www.tecgraf.puc-rio.br/cd/" target="_blank">http://www.tecgraf.puc-rio.br/cd/</a></p> <p><a class="rvts79" href="http://www.tecgraf.puc-rio.br/cd/" target="_blank">http://www.tecgraf.puc-rio.br/cd/</a></p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><span class="rvts61">LuaSocket library</span></p> <p><span class="rvts61">LuaSocket library</span></p>
@ -92,7 +92,7 @@
<p><br/></p> <p><br/></p>
<p>Usage: netplay, local data transmission.</p> <p>Usage: netplay, local data transmission.</p>
<p><br/></p> <p><br/></p>
<p><a class="rvts74" href="http://w3.impa.br/~diego/software/luasocket/home.html" target="_blank">http://w3.impa.br/~diego/software/luasocket/home.html</a></p> <p><a class="rvts79" href="http://w3.impa.br/~diego/software/luasocket/home.html" target="_blank">http://w3.impa.br/~diego/software/luasocket/home.html</a></p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><span class="rvts61">WinAPI library</span></p> <p><span class="rvts61">WinAPI library</span></p>
@ -101,7 +101,7 @@
<p><br/></p> <p><br/></p>
<p>Usage example: \luaScripts\JumpingFCEUXWindow.lua</p> <p>Usage example: \luaScripts\JumpingFCEUXWindow.lua</p>
<p><br/></p> <p><br/></p>
<p><a class="rvts74" href="https://github.com/stevedonovan/winapi" target="_blank">https://github.com/stevedonovan/winapi</a></p> <p><a class="rvts79" href="https://github.com/stevedonovan/winapi" target="_blank">https://github.com/stevedonovan/winapi</a></p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
@ -115,7 +115,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -89,7 +89,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -72,7 +72,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -125,7 +125,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -110,7 +110,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -149,7 +149,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -72,7 +72,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -112,7 +112,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -74,7 +74,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -232,7 +232,7 @@
<p>These distinctions are easier to see in a visual example. &nbsp;This is the enemy/player stats as they are mapped in the game <span class="rvts29">Teenage Mutant Ninja Turtles</span>.</p> <p>These distinctions are easier to see in a visual example. &nbsp;This is the enemy/player stats as they are mapped in the game <span class="rvts29">Teenage Mutant Ninja Turtles</span>.</p>
<p><br/></p> <p><br/></p>
<p><span class="rvts32">Block 4</span></p> <p><span class="rvts32">Block 4</span></p>
<p><span class="rvts76"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="rvts76"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="rvts76"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;P &nbsp;W1 W2 W3 E1 E2 E3 E4 E5 E6 E7 E8 X &nbsp;X &nbsp;X &nbsp;X &nbsp;</span></p> <p><span class="rvts81"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="rvts81"> &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="rvts81"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;P &nbsp;W1 W2 W3 E1 E2 E3 E4 E5 E6 E7 E8 X &nbsp;X &nbsp;X &nbsp;X &nbsp;</span></p>
<p><span class="rvts28">Sprite ID: &nbsp; &nbsp; &nbsp; &nbsp;040x: 09 00 00 00 00 9E 9E 9E 9E 00 00 00 00 00 00 00</span></p> <p><span class="rvts28">Sprite ID: &nbsp; &nbsp; &nbsp; &nbsp;040x: 09 00 00 00 00 9E 9E 9E 9E 00 00 00 00 00 00 00</span></p>
<p><span class="rvts28">ID counter: &nbsp; &nbsp; &nbsp; 041x: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00</span></p> <p><span class="rvts28">ID counter: &nbsp; &nbsp; &nbsp; 041x: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00</span></p>
<p><span class="rvts28">Timer/sp change: &nbsp;042x: 02 00 00 00 00 03 03 03 03 00 00 00 00 00 00 00</span></p> <p><span class="rvts28">Timer/sp change: &nbsp;042x: 02 00 00 00 00 03 03 03 03 00 00 00 00 00 00 00</span></p>
@ -271,7 +271,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -118,7 +118,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -88,7 +88,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -614,7 +614,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -109,7 +109,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -400,7 +400,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -88,7 +88,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -70,7 +70,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -70,7 +70,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -121,7 +121,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -359,7 +359,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -92,7 +92,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -69,9 +69,7 @@
<p><span class="rvts16">Load Palette</span></p> <p><span class="rvts16">Load Palette</span></p>
<p>Allows you to load a custom color palette (.pal) file to use for the current game loaded.</p> <p>Allows you to load a custom color palette (.pal) file to use for the current game loaded.</p>
<p><br/></p> <p><br/></p>
<p>A note on on the format of external palettes; Palette files are expected to contain 64 or 512 8-bit RGB triplets (each in that order; red comes first in the triplet in the file, then green, then blue). Each 8-bit value represents brightness for that particular color. 0 is minimum, 255 is maximum.</p> <p>A note on on the format of external palettes; Palette files are expected to contain 64 8-bit RGB triplets (each in that order; red comes first in the triplet in the file, then green, then blue). Each 8-bit value represents brightness for that particular color. 0 is minimum, 255 is maximum.</p>
<p><br/></p>
<p>A palette file with 64 entries while have emphasis colors generated automatically. A 512 entry file will specify a set of 64 colors to use with each emphasis state. The high 3 bits of $2001 correspond to 8 different 64 color palettes.</p>
<p><br/></p> <p><br/></p>
<p>Palettes can be set on a per-game basis. To do this, put a palette file in the same directory the game is in, and add the extension "pal". Examples:</p> <p>Palettes can be set on a per-game basis. To do this, put a palette file in the same directory the game is in, and add the extension "pal". Examples:</p>
<p><br/></p> <p><br/></p>
@ -109,7 +107,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -96,7 +96,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -75,7 +75,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -70,7 +70,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -90,7 +90,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -71,7 +71,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -107,7 +107,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -75,7 +75,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -66,7 +66,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -159,7 +159,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -85,7 +85,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -197,7 +197,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -119,7 +119,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -100,7 +100,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -96,7 +96,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -120,7 +120,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -158,7 +158,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -170,7 +170,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -78,7 +78,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -158,7 +158,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -118,7 +118,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -238,7 +238,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -148,7 +148,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -128,7 +128,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -124,7 +124,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -171,7 +171,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -140,7 +140,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -244,7 +244,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -178,7 +178,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -187,7 +187,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -373,39 +373,66 @@ span.rvts73
font-weight: bold; font-weight: bold;
text-decoration: underline; text-decoration: underline;
} }
a.rvts74, span.rvts74 span.rvts74
{
font-size: 12pt;
font-family: 'Courier New', 'Courier', monospace;
color: #00007f;
}
span.rvts75
{
font-size: 14pt;
font-family: 'Courier New', 'Courier', monospace;
}
span.rvts76
{
font-size: 12pt;
font-family: 'Courier New', 'Courier', monospace;
}
span.rvts77
{
font-size: 12pt;
font-family: 'Courier New', 'Courier', monospace;
color: #00007f;
}
span.rvts78
{
font-family: 'Courier New', 'Courier', monospace;
color: ;
}
a.rvts79, span.rvts79
{ {
color: #0000ff; color: #0000ff;
text-decoration: underline; text-decoration: underline;
} }
a.rvts74:hover { color: #0000ff; } a.rvts79:hover { color: #0000ff; }
a.rvts75, span.rvts75 a.rvts80, span.rvts80
{ {
font-size: 12pt; font-size: 12pt;
color: #0000ff; color: #0000ff;
text-decoration: underline; text-decoration: underline;
} }
a.rvts75:hover { color: #0000ff; } a.rvts80:hover { color: #0000ff; }
span.rvts76 span.rvts81
{ {
font-family: 'Lucida Console', 'Monaco', monospace; font-family: 'Lucida Console', 'Monaco', monospace;
text-decoration: underline; text-decoration: underline;
} }
span.rvts77 span.rvts82
{ {
font-weight: bold; font-weight: bold;
text-decoration: underline; text-decoration: underline;
} }
span.rvts78 span.rvts83
{ {
font-size: 11pt; font-size: 11pt;
text-decoration: underline; text-decoration: underline;
} }
span.rvts79 span.rvts84
{ {
font-size: 5pt; font-size: 5pt;
} }
span.rvts80 span.rvts85
{ {
font-size: 5pt; font-size: 5pt;
font-weight: bold; font-weight: bold;
@ -448,3 +475,6 @@ p,ul,ol /* Paragraph Style */
text-indent: 48px; text-indent: 48px;
margin: 0px 0px 0px 48px; margin: 0px 0px 0px 48px;
} }
.rvps7 /* Paragraph Style */
{
}

View File

@ -93,7 +93,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -219,7 +219,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

View File

@ -90,41 +90,41 @@
<p>Integer keys (also used for booleans, with a 1 for true and 0 for false) must have a value that can be stored as int32:</p> <p>Integer keys (also used for booleans, with a 1 for true and 0 for false) must have a value that can be stored as int32:</p>
<p><br/></p> <p><br/></p>
<p> <span class="rvts32">- version</span> (required) - the version of the movie file format; for now it is always 3</p> <p> <span class="rvts32">- version</span> (required) - the version of the movie file format; for now it is always 3</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> <span class="rvts32">- emuVersion</span> (required) - the version of the emulator used to produce the movie</p> <p> <span class="rvts32">- emuVersion</span> (required) - the version of the emulator used to produce the movie</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> <span class="rvts32">- rerecordCount</span> (optional) - the rerecord count</p> <p> <span class="rvts32">- rerecordCount</span> (optional) - the rerecord count</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> -<span class="rvts32"> palFlag</span> (bool) (optional) - true if the movie uses PAL timing</p> <p> -<span class="rvts32"> palFlag</span> (bool) (optional) - true if the movie uses PAL timing</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> -<span class="rvts32"> NewPPU</span> (bool) (optional) - true if the movie uses New PPU</p> <p> -<span class="rvts32"> NewPPU</span> (bool) (optional) - true if the movie uses New PPU</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> <span class="rvts32">- FDS</span> (bool) (optional) - true if movie was recorded on a Famicom Disk System (FDS) game</p> <p> <span class="rvts32">- FDS</span> (bool) (optional) - true if movie was recorded on a Famicom Disk System (FDS) game</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> <span class="rvts32">- fourscore</span> (bool) - true if a fourscore was used. If fourscore is not used, then port0 and port1 are required</p> <p> <span class="rvts32">- fourscore</span> (bool) - true if a fourscore was used. If fourscore is not used, then port0 and port1 are required</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> <span class="rvts32">- port0 </span>- indicates the type of input device attached to the port 0. Supported values are:</p> <p> <span class="rvts32">- port0 </span>- indicates the type of input device attached to the port 0. Supported values are:</p>
<p> &nbsp; &nbsp; SI_NONE = 0</p> <p> &nbsp; &nbsp; SI_NONE = 0</p>
<p> &nbsp; &nbsp; SI_GAMEPAD = 1</p> <p> &nbsp; &nbsp; SI_GAMEPAD = 1</p>
<p> &nbsp; &nbsp; SI_ZAPPER = 2</p> <p> &nbsp; &nbsp; SI_ZAPPER = 2</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> <span class="rvts32">- port1</span> - indicates the type of input device attached to the port 1. Supported values are:</p> <p> <span class="rvts32">- port1</span> - indicates the type of input device attached to the port 1. Supported values are:</p>
<p> &nbsp; &nbsp; SI_NONE = 0</p> <p> &nbsp; &nbsp; SI_NONE = 0</p>
<p> &nbsp; &nbsp; SI_GAMEPAD = 1</p> <p> &nbsp; &nbsp; SI_GAMEPAD = 1</p>
<p> &nbsp; &nbsp; SI_ZAPPER = 2</p> <p> &nbsp; &nbsp; SI_ZAPPER = 2</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p><span class="rvts32"> - port2</span> (required) - indicates the type of the FCExp port device which was attached. Supported values are:</p> <p><span class="rvts32"> - port2</span> (required) - indicates the type of the FCExp port device which was attached. Supported values are:</p>
<p> &nbsp; &nbsp; SIFC_NONE = 0</p> <p> &nbsp; &nbsp; SIFC_NONE = 0</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> <span class="rvts32">- binary</span> (bool) (optional) - true if input log is stored in binary format</p> <p> <span class="rvts32">- binary</span> (bool) (optional) - true if input log is stored in binary format</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p> <span class="rvts32">- length</span> (optional) - movie size (number of frames in the input log). If this key is specified and the number is &gt;= 0, the input log ends after specified number of records, and any remaining data should not be parsed. This key is used in <span class="rvts77">fm3</span> format to allow storing extra data after the end of input log</p> <p> <span class="rvts32">- length</span> (optional) - movie size (number of frames in the input log). If this key is specified and the number is &gt;= 0, the input log ends after specified number of records, and any remaining data should not be parsed. This key is used in <span class="rvts82">fm3</span> format to allow storing extra data after the end of input log</p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p>String keys have values that consist of the remainder of the key-value pair line. As a consequence, string values cannot contain newlines.</p> <p>String keys have values that consist of the remainder of the key-value pair line. As a consequence, string values cannot contain newlines.</p>
<p><br/></p> <p><br/></p>
<p><span class="rvts32"> - romFilename</span> (required) - the name of the file used to record the movie</p> <p><span class="rvts32"> - romFilename</span> (required) - the name of the file used to record the movie</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p><span class="rvts32"> - comment </span>(optional) - simply a memo</p> <p><span class="rvts32"> - comment </span>(optional) - simply a memo</p>
<ul style="text-indent: 0px; margin-left: 36px; list-style-position: outside;"> <ul style="text-indent: 0px; margin-left: 36px; list-style-position: outside;">
<li>by convention, the first token in the comment value is the subject of the comment</li> <li>by convention, the first token in the comment value is the subject of the comment</li>
@ -135,7 +135,7 @@
<ul style="text-indent: 0px; margin-left: 24px; list-style-position: outside;"> <ul style="text-indent: 0px; margin-left: 24px; list-style-position: outside;">
<li>comment author adelikat</li> <li>comment author adelikat</li>
</ul> </ul>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p><span class="rvts32"> - subtitle </span>(optional) - a message that will be displayed on screen when movie is played back (unless Subtitles are turned off, see <a class="rvts18" href="MovieOptions.html">Movie options</a>)</p> <p><span class="rvts32"> - subtitle </span>(optional) - a message that will be displayed on screen when movie is played back (unless Subtitles are turned off, see <a class="rvts18" href="MovieOptions.html">Movie options</a>)</p>
<ul style="text-indent: 0px; margin-left: 36px; list-style-position: outside;"> <ul style="text-indent: 0px; margin-left: 36px; list-style-position: outside;">
<li>by convention, subtitles begin with the word "subtitle"</li> <li>by convention, subtitles begin with the word "subtitle"</li>
@ -147,12 +147,12 @@
<li>subtitle 1000 Level Two</li> <li>subtitle 1000 Level Two</li>
</ul> </ul>
<p>At frame 1000 the words "Level Two" will be displayed on the screen</p> <p>At frame 1000 the words "Level Two" will be displayed on the screen</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p><span class="rvts32"> - guid </span>(required) - a unique identifier for a movie, generated when the movie is created, which is used when loading a savestate to make sure it belongs to the current movie</p> <p><span class="rvts32"> - guid </span>(required) - a unique identifier for a movie, generated when the movie is created, which is used when loading a savestate to make sure it belongs to the current movie</p>
<p>GUID keys have a value which is in the standard guide format: 452DE2C3-EF43-2FA9-77AC-0677FC51543B</p> <p>GUID keys have a value which is in the standard guide format: 452DE2C3-EF43-2FA9-77AC-0677FC51543B</p>
<p><span class="rvts80"><br/></span></p> <p><span class="rvts85"><br/></span></p>
<p><span class="rvts32"> - romChecksum </span>(required) - the base64 of the hexified MD5 hash of the ROM which was used to record the movie</p> <p><span class="rvts32"> - romChecksum </span>(required) - the base64 of the hexified MD5 hash of the ROM which was used to record the movie</p>
<p><span class="rvts79"><br/></span></p> <p><span class="rvts84"><br/></span></p>
<p><span class="rvts32"> - savestate </span>(optional) - a <a class="rvts18" href="fcs.html">fcs</a> savestate blob, in case a movie was recorded from savestate &nbsp;</p> <p><span class="rvts32"> - savestate </span>(optional) - a <a class="rvts18" href="fcs.html">fcs</a> savestate blob, in case a movie was recorded from savestate &nbsp;</p>
<p>Hex string keys (used for binary blobs) have a value that is like 0x0123456789ABCDEF...</p> <p>Hex string keys (used for binary blobs) have a value that is like 0x0123456789ABCDEF...</p>
<p><br/></p> <p><br/></p>
@ -162,7 +162,7 @@
<p>The input log section consists of movie records either in the form of text lines or in the form of binary data.</p> <p>The input log section consists of movie records either in the form of text lines or in the form of binary data.</p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><span class="rvts78">Text format (default format):</span></p> <p><span class="rvts83">Text format (default format):</span></p>
<p><br/></p> <p><br/></p>
<p>Every frame of the movie is represented by line of text beginning and ending with a | (pipe).</p> <p>Every frame of the movie is represented by line of text beginning and ending with a | (pipe).</p>
<p>The fields in the line are as follows, except when fourscore is used.</p> <p>The fields in the line are as follows, except when fourscore is used.</p>
@ -207,7 +207,7 @@
<p>{commands, player1, player2, player3, player4, port2}</p> <p>{commands, player1, player2, player3, player4, port2}</p>
<p><br/></p> <p><br/></p>
<p><br/></p> <p><br/></p>
<p><span class="rvts78">Binary format:</span></p> <p><span class="rvts83">Binary format:</span></p>
<p><br/></p> <p><br/></p>
<p>Input log section starts with a | (pipe).</p> <p>Input log section starts with a | (pipe).</p>
<p>Every frame of the movie is represented by a record of a fixed length which can be determined by the devices on port0 and port1.</p> <p>Every frame of the movie is represented by a record of a fixed length which can be determined by the devices on port0 and port1.</p>
@ -265,7 +265,7 @@
<div id="topic_footer"> <div id="topic_footer">
<div id="topic_footer_content"> <div id="topic_footer_content">
2013</div> 2016</div>
</div> </div>
</body> </body>

File diff suppressed because one or more lines are too long