file: mok.ini

Last update: 2005-09-01

This information is for v2.3.1+. Older v2.3.0 information here.


This file includes the main settings for MokCC. All MokCC information is saved in to simple text format. To edit these, use a text editor you like. When configuring MokCC the first time, you need only to change path settings in [media section] to get started.

The file is divided in to sections.
- [MOK] section has all the basic parameters
- [PLAYERS] section has the paths to the players you're using.
- [PLUGIN] section as the name says, tells MokCC which plugins are to be loaded when MokCC starts. These plugins can be anything from user interfaces to external applications. You can create your own plugins with the SDK (link not available yet).
- [media section] defines the paths, filetypes and the player that is to be used when playing certain types of video or audio. It can be named as anything (eg. [MP3]).
- [CORE] section includes all the extra, fun and undocumented features you can do with MokCC: This is only for the advanced users.


Section: [MOK]

Section / parameter

Description

[MOK]

This is the main section.

Username

User name of the owner of this copy of MOK.ini

Username=Jorma Koski

Code

Registration code received from MOK developers

Code=12345676543

CoverPath

Path where your covers (cd/dvd/movie) are saved.

CoverPath=.\covers

CoverType

The types of images that are to considered as covers.

CoverType=*.bmp;*.jpg



Section: [PLUGIN]

[PLUGIN]

This section defines the plugins that are loaded and used by MokCC.

path\plugin.dll

The parh and name of a mok-dll to load. These are the UIs you want to use. You can use multiple UIs at the same time.

[PLUGIN]
.\MOD_tvgui\tvgui.dll
.\MOD_lcdemu\lcdemu.dll



Section: [PLAYERS]

[PLAYERS]

This section defines the players that MokCC can use

eugene

path\station.exe (eg. .\eugene's dvd player\station.exe

hplus

path\station.exe

goatcd

path\goatcd.exe

winamp

path\winamp.exe

zoomplayer

path\zplayer.exe

bsplayer

path\bsplay.exe (currently not supported)



Section: [MEDIA]

[MEDIA section]

Description

[identifier]

Identifier of the section. The identifier can be anything. The identifier is the reference for user interfaces. See also building themes (tbd).

[MP3]

db

Path and name of the file which includes the media database. For information on how to configure your own database, see here. You can have all of them in one file or split to multiple files.

db=.\db\db.ini

path

Path where your media is found. The scan routine will start from this directory and go through all sub-directories. Multiple paths can be added with a separator ‘;’.

path=C:\mp3\
path=C:\mp3\;D:\more_mp3\

type

The types of files that are to be identified as media. Multiple entries can be added with a separator ';'. Media can be in CD/DVD-drive or HDD directories.

- Music: *.mp3; *.ogg; *.wma
- MPEG1/2: *.mpg, *.mpeg
- DVD: video_ts.ifo (Both from CD/DVD-drive and HDD directory)
- VCD: info.vcd (Only from CD/DVD-drive)
- SVCD: info.svcd (Only from CD/DVD-drive)
- Movies: *.avi; *.wmv, *.mov (not supported with H+ or Eugene)
- Playlists: *.m3u
- CD audio: *.cda (Only from CD/DVD-drive)

type=*.mp3;*.ogg

plr_id

The identifier for the player to use. You can configure any player to play any type of media. Notice thought that the chosen player might not know how to do it (eg. cd audio player can't play DVD-movies).

The plr_id list can be found from [PLAYERS] section.

plr_id=winamp


Examples of [media sections]

[MP3 section]

Section tag for DVD play. The name can be anything. See also building themes (tbd).

[MP3]

db

db=.\db\db.ini

path

path=E:\new\mp3\;Z:\

plr_id

Plr_Id=winamp

type

Type=*.mp3;*.ogg



[DVD section]

Section tag for DVD play. The name can be anything. See also building themes (tbd).

[DVD]

db

db=.\db\db.ini

path

Path=Z:\;D:\movies\DVD\

type

Type=video_ts.ifo;*.mpeg

plr_id

Plr_Id=eugene



[CDAUDIO section]

Section tag for cd audio play. The name can be anything. See also building themes (tbd).

[CD AUDIO]

db

db=.\db\db.ini

path

Path=Z:\

Playing from complete path from a HDD is not supported.

plr_id

plr_id=goatcd



[MOVIE section]

Section tag for movie play. The name can be anything. See also building themes (tbd).

[MOVIE]

db

db=.\db\db.ini

path

Path=Z:\;D:\movies\

type

Type=*.avi;*.mpg

plr_id

Plr_id=zoomplayer



Section: [CORE]

This section is only for the professionals.

[CORE]

Sectiong tag

X

X coordinate (Left) for MokCC form. Use this to hide MokCC from screen.

X=800

Y

Y coordinate (Top) for MokCC form. Use this to hide MokCC from screen.

Y=0

BrowseTime

The amount of seconds to wait before a browsed list (eg. a long mp3 list) returns to the currently played position in the list.

BrowseTime=0 disables this feature

BrowseTime=10

BrowseValue

The amount of jumps done in a list if kLeft or kRight is pressed. This makes it possible to browse the faster than the normal kUp and kDown which moves the list by one.

BrowseValue=5

ZoomPlayerSecondsToSkip

Amount of seconds to Fast forward or rewind when kFwd or kRwd is pressed. Works only with Zoomplayer.

ZoomPlayerSecondsToSkip=30

ZoomPlayerSecondsToJump

Amount of seconds to move forward or backward when kNext or kPrev is pressed. Works only with Zoomplayer.

ZoomPlayerSecondsToJump=150

PlayerLoadRetry

Amount of tries to try to load a player before reporting an error.

PlayerLoadRetry=5

CycleTimeOrig

The default cycle time for MokCC. Everything happens in MokCC in this cycletime; calling dll's, updating lists, etc.

CycleTimeOrig=1000

ErrorWaitTime

Amount of seconds to wait before an error screen automatically presses kStop making MokCC to return to previous state.

ErrorWaitTime=10

A lot of more parameters here