ZiNc input plugins: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
*>Upy
(Created)
 
*>Upy
(→‎Input recorder/player: Updated, added Linux version (temporary links))
Line 2: Line 2:


=Input recorder/player=
=Input recorder/player=
Grab it [http://nihon.se/upy/controller.znc here], source [http://nihon.se/upy/jamma_driver_keyboard.cpp here] (Linux version soon to follow)
* [http://www.sendspace.com/file/y9ov2i Source]
* [http://www.sendspace.com/file/0y8set Windows]
* [http://www.sendspace.com/file/zz2ccy Linux]


This is a proxy or filter plugin that stands between ZiNc and the actual input plugin. As such, it doesn't run by itself. Here's the instructions:
This is a proxy or filter plugin that stands between ZiNc and the actual input plugin. As such, it doesn't run by itself. Here's the instructions:


'''Installing'''
'''Installing'''
# Rename your actual input plugin to realcontroller.znc
# Rename your actual input plugin to realcontroller.znc (Windows) or librealcontrolznc.so (Linux)
# Put this file in place of the actual plugin
# Put this file in place of the actual plugin



Revision as of 13:50, 10 June 2009

Although ZiNc is currently the best option to play TGM, it is known for its frame input delay and it doesn't have a recording/playback capability of its own. However, you'll find here an input plugin for recording/playback.

Input recorder/player

This is a proxy or filter plugin that stands between ZiNc and the actual input plugin. As such, it doesn't run by itself. Here's the instructions:

Installing

  1. Rename your actual input plugin to realcontroller.znc (Windows) or librealcontrolznc.so (Linux)
  2. Put this file in place of the actual plugin

Recording

  1. Before running ZiNc, backup your game's .cfg file
  2. The first time you run a game, the plugin will create a .znp file
    • Actually, this happens when the respective .znp file doesn't exist
    • Remember, the backed up .cfg pairs with the created .znp file

Replaying

  1. Put the backed up .cfg in place
  2. The second time you run a game, the plugin will read the respective .znp file
    • Actually, this happens when the respective .znp file exists

Here are two batch files that might help:

@rem record.bat
@echo off
copy /y cfg\tgmj.cfg cfg\tgmj-before.cfg
del tgmj.znp
ZiNc 24
@rem playback.bat
@echo off
copy /y cfg\tgmj.cfg cfg\tgmj.bak
copy /y cfg\tgmj-before.cfg cfg\tgmj.cfg
ZiNc 24
move /y cfg\tgmj.bak cfg\tgmj.cfg