Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TenhouViewer [dev.]
- Help:
- TenhouViewer -DHash - download game;
- TenhouViewer -dLog.txt - download all games from log Log.txt;
- mjlog=D - load .mjlog from specified folder if exists
- TenhouViewer -PHash - parse game;
- TenhouViewer -pLog.txt - parse all games from log Log.txt;
- force - force parsing (don't skip exists files);
- mjlog=D - check replays .mjlog in specified folder if exists (if not - from download folder);
- TenhouViewer -fLog.txt - find games from log Log.txt with query:
- reset - reset game list to default state (if previous search results are used);
- lobby=N - find all games from specified lobby (0-6);
- aka=N - only games with aka-dora nashi/ari (0-1);
- kuitan=N - only games with aka-dora nashi/ari (0-1);
- south=N - only games without/with south round (0-1);
- speedy=N - only normal/high speed games (0-1);
- dan - only games from 1+dan lobby;
- upperdan - only games from upper dan lobby;
- shanten=N - find all hands started with N shanten number (0-6);
- shantenmin=N - find all hands started with shanten number greater (or equal) than N (0-6);
- shantenmax=N - find all hands started with shanten number less (or equal) than N (0-6);
- ratingmin=N - find all players, who has rating greater (or equal) than N (1000-3000);
- ratingmax=N - find all players, who has rating less (or equal) than N (1000-3000);
- paymentmin=N - find all players, who receive or pay greater (or equal) than N pt (-1000000-1000000);
- paymentmax=N - find all players, who receive or pay less (or equal) than N pt (-1000000-1000000);
- waitmin=N - find all hands which has N or greater sides of winning waiting (1-13);
- waitmax=N - find all hands which has N or less sides of winning waiting (1-13);
- hanmin=N - find all hands which has han count greater (or equal) than N (1-13);
- hanmax=N - find all hands which has han count less (or equal) than N (1-13);
- fumin=N - find all hands which has fu count greater (or equal) than N (1-120);
- fumax=N - find all hands which has fu count less (or equal) than N (1-120);
- dangermin=N - find all hands which has danger tiles count greater (or equal) than N (0-14);
- dangermax=N - find all hands which has danger tiles count less (or equal) than N (0-14);
- deadoutsmin=N - find all hands which has count of outs in dead wall greater (or equal) than N (1-14);
- deadoutsmax=N - find all hands which has count of outs in dead wall less (or equal) than N (1-14);
- place=N - find all players, who took N place (1-4);
- rank=N - find all players, who has rank N (0-20);
- nickname=N - find player, who has nickname N (string);
- sex=N - find player of pecified sex N (char: f - female, m - male, c - computer);
- hash=N - find game with hash N (string);
- steps=N - find all hands, who exist less (or equal) than N steps (0-60);
- yaku=N,M,X - find all hands, which has N,M,X,... yaku (0-54);
- anyyaku=N,M,X - find all hands, which has any of N,M,X,... yaku (0-54 or name);
- wait=N,M,X - find all hands, which has at least one tile from list in waiting: N,M,X,... ((1p,1p,2m,6z,...);
- dealer=N - find all (not) dealer's hands (0-1);
- winner=N - find all (not) completed hands (0-1);
- loser=N - find all players (games), who (not) dealt into ron (0-1);
- riichi=N - find all hands with declared (or not) riichi (0-1);
- firstriichi=N - find all players who declared riichi (not) first (0-1);
- rononriichi=N - find all players who (not) drawn to ron on riichi declaration (0-1);
- oneside=N - find all lucker players who (not) won in all rounds (except draws) (0-1);
- dorawait=N - find all lucker players who has (not) dora in waiting (0-1);
- furiten=N - find all players (games), who has (has not) furiten (0-1);
- ron=N - find all rounds ended with ron (0-1);
- tsumo=N - find all rounds ended with tsumo (0-1);
- tempai=N - find all hands, which has (not) tempai (0-1);
- players=N - count of players in game (3-4);
- roundwind=N - wind of current round (0-3);
- round=N - index of current round (0:w1, 1:w2, 2:w3, 3: w4, 4: s1, ...);
- playerwind=N - player's wind (0-3);
- riichicount=N - find all rounds with N declared riichi (0-4);
- renchanstick=N - find all rounds with N renchan stick (0-30);
- nakicount=N - find all hands with N declared nakies (0-12);
- openedsets=N - find all hands with N opened sets (0-4);
- form=NNN - find all hands, which contains specified form in specified suits (numbers + suits m,p,s);
- drowntiles=N,M,X - find all hands, in which player drown specified tiles (1p,1p,2m,6z,...);
- color=m,p,s,M,P,S,0,1 - find all colored (>80% for lower case, 100% for upper case) hands;
- omotesuji=N - find all hands which has (not) omote-suji waiting to discard (0-1);
- senkisuji=N - find all hands which has (not) senki-suji waiting to discard (0-1);
- urasuji=N - find all hands which has (not) ura-suji waiting to discard (0-1);
- matagisuji=N - find all hands which has (not) matagi-suji waiting to discard (0-1);
- draw=N - round ended in draw with reason (yao9,reach4,ron3,kan4,kaze4,nm);
- last=N - find only last N games;
- limit=N - find omaximum N games;
- TenhouViewer -g<nickname> <fields> - graph rounds (which found by -f flag) with fields:
- lobby - lobby index;
- index - round index in list;
- players - player count;
- initshanten - shanten in start hand in round;
- pay - payment in round;
- tempai - is hand was tempai (1 or 0);
- dealer - is hand was dealer (1 or 0);
- loser - is player dealt in other hand (1 or 0);
- winner - is hand completed (1 or 0);
- riichi - is riichi declared (1 or 0);
- concealed - is hand was concealed (1 or 0);
- openedsets - amount of opened sets;
- cost - cost of hand;
- fu - count of minipoints in hand;
- han - count of game points in hand;
- step - count of steps to end in round;
- balance - balance in hand (pts);
- waiting - amount of tile types in waiting;
- round - index of round(0=1e,1=2e,2=3e...);
- roundwind - wind of current round;
- playerwind - player's wind;
- players - count of players in round;
- draw - round ended in draw;
- TenhouViewer -G<nickname> <fields> - graph games (which found by -f flag) with fields:
- index - game index in list;
- lobby - lobby index;
- rating - player rating before this game;
- rank - player rank before this game (1=1ku, 10=1dan,...);
- jrating - player rating before this game (1256R);
- jrank - player rank before this game (四段);
- place - place in game;
- result - game result with uma;
- balance - balance in the end of game;
- players - count of players in game;
- datetime - date of game;
- TenhouViewer -o<nickname> <fields> - format output results:
- Any field can be specified for any player. Sample: rank=0 rank=1 rank=2 rank=3 for table building
- link - link to the round;
- lobby - lobby index;
- type - lobby type (aka,kui,nan,dan,...);
- nickname - nickname of the player;
- rating - rating of the player (number);
- rank - rank of the player (number);
- jrating - rating of the player (1256R);
- jrank - rank of the player (四段);
- tablerating - average rating of players (number);
- jtablerating - average rating of players (1256R);
- place - place (result) in game;
- pay - player payment in round;
- resbalance - result balance;
- result - result (+uma/oka);
- dealer - is player dealer;
- winner - is player complete hand;
- loser - is player dealt in other player's hand;
- concealed - is hand concealed;
- tsumo - is tsumo-agari;
- ron - is ron-agari ;
- cost - cost of hand;
- han - amount of game points in hand;
- fu - amount of minipoints in hand;
- waiting - amount of tile types in waiting;
- step - amount of player steps in round;
- yaku - list of yaku;
- jyaku - list of yaku (japanese);
- round - current round (0-1e, 1-2e, ...);
- roundindex - index of round in game;
- place - player's place in game;
- roundwind - wind of current round;
- playerwind - player's wind;
- from - nickname of player who p[layed into ron;
- furiten - furiten hand;
- draw - round ended in draw;
- tempaicount - how many tempai;
- agaricount - how many agari;
- tsumocount - how many tsumo;
- TenhouViewer -l - list all games;
- TenhouViewer -y - yaku statistics [tournier mode];
- TenhouViewer -s<filename> - save find or graph result to specified file;
- TenhouViewer -U<hash> <params> - get paifu:
- dir - directory to save result (for all rounds);
- filename - filename to save result (for specified round, without extension);
- round - round index (from 0);
- shanten - add shanten info in paifu (+furiten marking; [0]-1);
- yaku - add yaku and cost info in paifu (0-[1]);
- nickname - add nicknames info in paifu instead A,B,C,D (0-[1]);
- danger - highlight danger tiles (0-[1]);
- color - mark shanten number by colorized rectangle (0-[1]);
- sex - mark player's sex by color ([0]-1);
- tileset=dir - alternate directory with tile images (folder name);
- TenhouViewer -u <params> - get paifu for all rounds, which was found before:
- dir - directory to save result (for all rounds);
- shanten - add shanten info in paifu (+furiten marking; [0]-1);
- yaku - add yaku and cost info in paifu (0-[1]);
- nickname - add nicknames info in paifu instead A,B,C,D (0-[1]);
- danger - highlight danger tiles (0-[1]);
- color - mark shanten number by colorized rectangle (0-[1]);
- sex - mark player's sex by color ([0]-1);
- tileset=dir - alternate directory with tile images (folder name);
- TenhouViewer -I<hash> <params> - get discard:
- dir - directory to save result (for all rounds);
- filename - filename to save result (for specified round, without extension);
- round - round index (from 0);
- player - player index (from 0);
- riichi - limit discard to riichi declaration
- naki - highlight tiles got other players;
- tsumogiri - highlight tiles discarded from wall;
- hand - output hand image for this discard;
- tileset=dir - alternate directory with tile images (folder name);
- TenhouViewer -i <params> - get discards for all rounds, which was found before:
- dir - directory to save result (for all rounds);
- riichi - limit discard to riichi declaration;
- naki - highlight tiles got by other players;
- tsumogiri - highlight tiles discarded from wall;
- hand - output hand image for this discard;
- tileset=dir - alternate directory with tile images (folder name);
- TenhouViewer -t <params> - get results table for all rounds, which was found before (tournier mode):
- mingames=N - only players, who has at least N games;
- sort=N - sort by parameter (place,points,balance,loss,acq,rank,rating);
- sortdesc=N - sort by parameter by descending (place,points,balance,loss,acq,rank,rating);
- index - player's index (in table, from 1);
- nickname - player's nickname;
- rank - player's rank;
- rating - player's rating;
- games - player's games count;
- placelist - player's places as string (1123412);
- place - player's average place;
- points - player's total points;
- balance - player's balance (+uma);
- ron - how many times player dealt in ron;
- agari - player's completed hands count;
- rounds - how many rounds was played;
- ronperc - dealt in ron percent;
- agariperc - player's completed hands percent;
- acq - player's total acquisitions;
- acqron - player's acquisitions by ron;
- acqtsumo - player's acquisitions by tsumo;
- acqdraw - player's acquisitions by draw;
- loss - player's total losses;
- lossron - player's losses by ron;
- losstsumo - player's losses by tsumo;
- lossdraw - player's losses by draw;
- lossriichi - player's losses by riichi declaration;
- riichi - how many times player declared riichi;
- riichiwin - how many times player win by riichi;
- ippatsu - how many times player got ippatsu;
- opened - round count where player has opened sets;
- 1st - percent of first place;
- 2nd - percent of second place;
- 3rd - percent of third place;
- 4th - percent of fourth place;
- TenhouViewer -b<directory> - build log from directory's content with mjlog files;
- TenhouViewer -c<directory> <options> - convert to mjlog from log;
- dir - directory to save result (for all replays);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement