text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
import { cyan, red } from 'nanocolors';
import { relative } from 'path';
export function getSelectFilesMenu(succeededFiles: string[], failedFiles: string[]) {
const maxI = succeededFiles.length + failedFiles.length;
const minWidth = maxI.toString().length + 1;
function formatTestFile(file: string, i: number, offset: number, failed: boolean) {
const relativePath = relative(process.cwd(), file);
return `[${i + offset}]${' '.repeat(Math.max(0, minWidth - (i + offset).toString().length))}${
failed ? red(relativePath) : cyan(relativePath)
}`;
}
const entries: string[] = [
'Test files:\n',
...succeededFiles.map((f, i) => formatTestFile(f, i, failedFiles.length + 1, false)),
'',
];
if (failedFiles.length > 0) {
entries.push(
'Failed test files:\n',
...failedFiles.map((f, i) => formatTestFile(f, i, 1, true)),
);
}
return entries;
}
| modernweb-dev/web/packages/test-runner-core/src/cli/getSelectFilesMenu.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/cli/getSelectFilesMenu.ts",
"repo_id": "modernweb-dev",
"token_count": 329
} | 197 |
import { nanoid } from 'nanoid';
import path from 'path';
import { SESSION_STATUS } from '../test-session/TestSessionStatus.js';
import { TestSession } from '../test-session/TestSession.js';
import { TestRunnerCoreConfig } from '../config/TestRunnerCoreConfig.js';
import { TestRunnerGroupConfig } from '../config/TestRunnerGroupConfig.js';
import { BrowserLauncher } from '../browser-launcher/BrowserLauncher.js';
import { collectTestFiles } from './collectTestFiles.js';
import { TestSessionGroup } from '../test-session/TestSessionGroup.js';
interface GroupConfigWithoutOptionals extends TestRunnerGroupConfig {
name: string;
configFilePath?: string;
files: string | string[];
browsers: BrowserLauncher[];
}
export function createTestSessions(
config: TestRunnerCoreConfig,
groupConfigs: TestRunnerGroupConfig[],
) {
const groups: GroupConfigWithoutOptionals[] = [];
if (config.files) {
groups.push({
name: 'default',
files: config.files,
browsers: config.browsers,
});
}
for (const groupConfig of groupConfigs) {
// merge group with config defaults
const mergedGroupConfig: GroupConfigWithoutOptionals = {
name: groupConfig.name,
configFilePath: groupConfig.configFilePath,
testRunnerHtml: config.testRunnerHtml,
browsers: config.browsers,
files: config.files ?? [],
};
if (typeof mergedGroupConfig.name !== 'string') {
throw new Error('Group in config is missing a name.');
}
if (groupConfig.browsers != null) {
mergedGroupConfig.browsers = groupConfig.browsers;
}
if (groupConfig.files != null) {
mergedGroupConfig.files = groupConfig.files;
}
if (groupConfig.testRunnerHtml != null) {
mergedGroupConfig.testRunnerHtml = groupConfig.testRunnerHtml;
}
groups.push(mergedGroupConfig);
}
const sessionGroups: TestSessionGroup[] = [];
const testSessions: TestSession[] = [];
const testFiles = new Set<string>();
const browsers = new Set<BrowserLauncher>();
for (const group of groups) {
const baseDir = group.configFilePath ? path.dirname(group.configFilePath) : process.cwd();
const testFilesForGroup = collectTestFiles(group.files, baseDir)
// Normalize file path because glob returns windows paths with forward slashes:
// C:/foo/bar -> C:\foo\bar
.map(testFile => path.normalize(testFile));
if (testFilesForGroup.length === 0) {
throw new Error(`Could not find any test files with pattern(s): ${group.files}`);
}
for (const file of testFilesForGroup) {
testFiles.add(file);
}
const sessionGroup: TestSessionGroup = {
name: group.name,
browsers: group.browsers,
testFiles: testFilesForGroup,
testRunnerHtml: group.testRunnerHtml,
sessionIds: [],
};
for (const browser of group.browsers) {
browsers.add(browser);
}
for (const testFile of testFilesForGroup) {
for (const browser of group.browsers) {
const session: TestSession = {
id: nanoid(),
group: sessionGroup,
debug: false,
testRun: -1,
browser,
status: SESSION_STATUS.SCHEDULED,
testFile,
errors: [],
logs: [],
request404s: [],
};
testSessions.push(session);
sessionGroup.sessionIds.push(session.id);
}
}
}
if (testFiles.size === 0 || testSessions.length === 0) {
throw new Error('Did not find any tests to run.');
}
return {
sessionGroups,
testSessions,
testFiles: Array.from(testFiles),
browsers: Array.from(browsers),
};
}
| modernweb-dev/web/packages/test-runner-core/src/runner/createSessionGroups.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/runner/createSessionGroups.ts",
"repo_id": "modernweb-dev",
"token_count": 1345
} | 198 |
/* eslint-disable no-async-promise-executor, no-inner-declarations */
import { getPortPromise } from 'portfinder';
import path from 'path';
import { TestRunner, TestRunnerCoreConfig } from './index.js';
import { Logger } from './logger/Logger.js';
import { TestResult, TestSession, TestSuiteResult } from './test-session/TestSession.js';
import { SESSION_STATUS } from './test-session/TestSessionStatus.js';
import { TestRunnerGroupConfig } from './config/TestRunnerGroupConfig.js';
const logger: Logger = {
...console,
debug() {
//
},
logSyntaxError(error) {
console.error(error);
},
};
const secondMs = 1000;
const minuteMs = secondMs * 60;
const defaultBaseConfig: Partial<TestRunnerCoreConfig> = {
watch: false,
rootDir: path.join(__dirname, '..', '..', '..'),
testFramework: {
path: require.resolve('@web/test-runner-mocha/dist/autorun.js'),
},
protocol: 'http:',
hostname: 'localhost',
reporters: [],
concurrentBrowsers: 2,
concurrency: 10,
browserStartTimeout: minuteMs / 2,
testsStartTimeout: secondMs * 20,
testsFinishTimeout: minuteMs * 2,
browserLogs: true,
logger,
};
export async function runTests(
config: Partial<TestRunnerCoreConfig>,
groupConfigs?: TestRunnerGroupConfig[],
{
allowFailure = false,
reportErrors = true,
}: { allowFailure?: boolean; reportErrors?: boolean } = {},
): Promise<{ runner: TestRunner; sessions: TestSession[] }> {
return new Promise(async (resolve, reject) => {
const port = await getPortPromise({ port: 9000 + Math.floor(Math.random() * 1000) });
const finalConfig = {
port,
...defaultBaseConfig,
...config,
testFramework: {
...defaultBaseConfig.testFramework,
...config.testFramework,
},
} as TestRunnerCoreConfig;
const runner = new TestRunner(finalConfig, groupConfigs);
let finished = false;
runner.on('test-run-finished', ({ testRun, testCoverage }) => {
for (const reporter of finalConfig.reporters) {
reporter.onTestRunFinished?.({
testRun,
sessions: Array.from(runner.sessions.all()),
testCoverage,
focusedTestFile: runner.focusedTestFile,
});
}
});
runner.on('finished', async () => {
for (const reporter of finalConfig.reporters) {
await reporter.stop?.({
sessions: Array.from(runner.sessions.all()),
focusedTestFile: runner.focusedTestFile,
});
}
finished = true;
runner.stop();
});
setTimeout(() => {
finished = true;
if (!finished) {
runner.stop();
}
}, 20000);
runner.on('stopped', passed => {
const sessions = Array.from(runner.sessions.all());
if (reportErrors) {
for (const session of sessions) {
if (!session.passed || session.request404s.length > 0) {
console.log('');
console.log(
'Failed test file:',
session.browser.name,
path.relative(process.cwd(), session.testFile),
);
}
for (const log of session.logs) {
if (log.length !== 0) {
console.log(
'[Browser log]',
...log.map(l => (l.__WTR_BROWSER_ERROR__ ? l.stack : l)),
);
}
}
for (const request404 of session.request404s) {
console.log('[Request 404]', request404);
}
if (!session.passed) {
for (const error of session.errors) {
console.error(error.stack ?? error.message);
}
function iterateTests(tests: TestResult[]) {
for (const test of tests) {
if (!test.passed) {
console.log(test.name, test.error?.stack ?? test.error?.message);
}
}
}
function iterateSuite(suite: TestSuiteResult) {
iterateTests(suite.tests);
for (const s of suite.suites) {
iterateSuite(s);
}
}
if (session.testResults) {
iterateSuite(session.testResults);
}
}
}
}
if (!sessions.every(s => s.status === SESSION_STATUS.FINISHED)) {
reject(new Error('Tests did not finish'));
return;
}
if (allowFailure || passed) {
resolve({ runner, sessions });
} else {
reject(new Error('Test run did not pass'));
}
});
runner.start();
});
}
| modernweb-dev/web/packages/test-runner-core/src/test-helpers.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/test-helpers.ts",
"repo_id": "modernweb-dev",
"token_count": 2027
} | 199 |
import path from 'path';
const REGEXP_TO_FILE_PATH = new RegExp('/', 'g');
export function toFilePath(browserPath: string) {
return browserPath.replace(REGEXP_TO_FILE_PATH, path.sep);
}
| modernweb-dev/web/packages/test-runner-coverage-v8/src/utils.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-coverage-v8/src/utils.ts",
"repo_id": "modernweb-dev",
"token_count": 66
} | 200 |
import '../../../../../node_modules/chai/chai.js';
import { fail } from './simple-source.js';
describe('real numbers forming a monoid', function() {
it('under addition', function() {
chai.expect(1 + 1).to.equal(2);
});
});
describe('off-by-one boolean logic errors', function() {
it('null hypothesis', function() {
chai.expect(true).to.be.true;
});
it('asserts error', function() {
chai.expect(false).to.be.true;
});
it.skip('tbd: confirm true positive', function() {
chai.expect(false).to.be.false;
});
});
describe('logging during a test', function() {
it('reports logs to JUnit', function() {
const actual = '🤷♂️';
console.log('actual is ', actual);
chai.expect(typeof actual).to.equal('string');
});
it('fails with source trace', function() {
chai.expect(fail()).to.equal('string');
});
});
| modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/simple/simple-test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/simple/simple-test.js",
"repo_id": "modernweb-dev",
"token_count": 321
} | 201 |
const { runTests } = require('@web/test-runner-core/test-helpers');
const { chromeLauncher } = require('@web/test-runner-chrome');
const { resolve } = require('path');
const { expect } = require('chai');
it('can run tests with standalone', async function () {
this.timeout(50000);
const { sessions } = await runTests(
{
files: [resolve(__dirname, 'fixtures', 'standalone.html')],
browsers: [chromeLauncher()],
concurrency: 10,
},
[],
{ allowFailure: true, reportErrors: false },
);
expect(sessions.length).to.equal(1);
expect(sessions[0].passed).to.equal(false);
expect(sessions[0].testResults.tests.length).to.equal(2);
expect(sessions[0].testResults.tests[0].name).to.equal('test 1');
expect(sessions[0].testResults.tests[0].passed).to.equal(true);
expect(sessions[0].testResults.tests[1].name).to.equal('test 2');
expect(sessions[0].testResults.tests[1].passed).to.equal(false);
expect(sessions[0].testResults.tests[1].error.message).to.equal('test 2 error');
expect(sessions[0].testResults.suites.length).to.equal(1);
expect(sessions[0].testResults.suites[0].tests.length).to.equal(2);
expect(sessions[0].testResults.suites[0].tests[0].name).to.equal('test a 1');
expect(sessions[0].testResults.suites[0].tests[0].passed).to.equal(true);
expect(sessions[0].testResults.suites[0].tests[1].name).to.equal('test a 2');
expect(sessions[0].testResults.suites[0].tests[1].passed).to.equal(false);
expect(sessions[0].testResults.suites[0].tests[1].error.message).to.equal('test a 2 error');
expect(sessions[0].testResults.suites[0].suites.length).to.equal(1);
expect(sessions[0].testResults.suites[0].suites[0].tests.length).to.equal(2);
expect(sessions[0].testResults.suites[0].suites[0].tests[0].name).to.equal('test b 1');
expect(sessions[0].testResults.suites[0].suites[0].tests[0].passed).to.equal(true);
expect(sessions[0].testResults.suites[0].suites[0].tests[1].name).to.equal('test b 2');
expect(sessions[0].testResults.suites[0].suites[0].tests[1].passed).to.equal(true);
});
it('captures errors during setup', async function () {
this.timeout(50000);
const { sessions } = await runTests(
{
files: [resolve(__dirname, 'fixtures', 'standalone-setup-fail.html')],
browsers: [chromeLauncher()],
concurrency: 10,
},
[],
{ allowFailure: true, reportErrors: false },
);
expect(sessions.length).to.equal(1);
expect(sessions[0].passed).to.equal(false);
expect(sessions[0].errors.length).to.equal(1);
expect(sessions[0].errors[0].message).to.equal('error during setup');
});
| modernweb-dev/web/packages/test-runner-mocha/test/standalone.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-mocha/test/standalone.test.js",
"repo_id": "modernweb-dev",
"token_count": 982
} | 202 |
import * as puppeteer from 'puppeteer';
import * as puppeteerCore from 'puppeteer-core';
import { Browser, Page, PuppeteerNodeLaunchOptions } from 'puppeteer-core';
import { BrowserLauncher, TestRunnerCoreConfig } from '@web/test-runner-core';
import { chromeLauncher } from '@web/test-runner-chrome';
export interface PuppeteerLauncherConfig {
launchOptions?: PuppeteerNodeLaunchOptions;
createPage?: (args: { config: TestRunnerCoreConfig; browser: Browser }) => Promise<Page>;
concurrency?: number;
}
export function puppeteerLauncher({
launchOptions,
createPage,
concurrency,
}: PuppeteerLauncherConfig = {}): BrowserLauncher {
return chromeLauncher({
launchOptions,
puppeteer: (puppeteer as any).default as typeof puppeteerCore,
createPage,
concurrency,
});
}
| modernweb-dev/web/packages/test-runner-puppeteer/src/puppeteerLauncher.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-puppeteer/src/puppeteerLauncher.ts",
"repo_id": "modernweb-dev",
"token_count": 251
} | 203 |
import { BrowserLauncher } from '@web/test-runner-core';
import SaucelabsAPI, {
SauceLabsOptions,
SauceConnectOptions,
SauceConnectInstance,
} from 'saucelabs';
import ip from 'ip';
/**
* Wraps a Promise with a timeout, rejecing the promise with the timeout.
*/
export function withTimeout<T>(promise: Promise<T>, message: string): Promise<T> {
return new Promise<T>((resolve, reject) => {
const timeoutId = setTimeout(() => {
reject(new Error(message));
}, 5 * 60 * 1000);
promise
.then(val => resolve(val))
.catch(err => reject(err))
.finally(() => clearTimeout(timeoutId));
});
}
export class SauceLabsLauncherManager {
private api: SaucelabsAPI;
private launchers = new Set<BrowserLauncher>();
private connectionPromise?: Promise<SauceConnectInstance>;
private connection?: SauceConnectInstance;
private options: SauceLabsOptions;
private connectOptions?: SauceConnectOptions;
constructor(options: SauceLabsOptions, connectOptions?: SauceConnectOptions) {
this.options = options;
this.connectOptions = connectOptions;
this.api = new SaucelabsAPI(this.options);
process.on('SIGINT', this.closeConnection);
process.on('SIGTERM', this.closeConnection);
process.on('beforeExit', this.closeConnection);
process.on('exit', this.closeConnection);
}
async registerLauncher(launcher: BrowserLauncher) {
this.launchers.add(launcher);
if (this.connectionPromise != null) {
await this.connectionPromise;
return;
}
console.log('[Saucelabs] Setting up Sauce Connect proxy...');
this.connectionPromise = withTimeout(
this.api.startSauceConnect({
...this.connectOptions,
noSslBumpDomains: `127.0.0.1,localhost,${ip.address()}`,
}),
'[Saucelabs] Timed out setting up Sauce Connect proxy after 5 minutes.',
);
this.connection = await this.connectionPromise;
}
async deregisterLauncher(launcher: BrowserLauncher) {
this.launchers.delete(launcher);
if (this.launchers.size === 0) {
return this.closeConnection();
}
}
private closeConnection = async () => {
if (this.connection == null && this.connectionPromise == null) {
// already closed
return;
}
if (this.connection == null) {
// wait for connection to finish opening
await this.connectionPromise;
}
const connection = this.connection;
this.connection = undefined;
this.connectionPromise = undefined;
if (connection != null) {
await connection.close();
}
};
}
| modernweb-dev/web/packages/test-runner-saucelabs/src/SauceLabsLauncherManager.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-saucelabs/src/SauceLabsLauncherManager.ts",
"repo_id": "modernweb-dev",
"token_count": 880
} | 204 |
import path from 'path';
import { VisualRegressionPluginOptions, DiffResult } from './config.js';
import { VisualRegressionError } from './VisualRegressionError.js';
function resolveImagePath(baseDir: string, name: string) {
const finalName = path.extname(name) ? name : `${name}.png`;
if (path.isAbsolute(finalName)) {
return finalName;
}
return path.join(baseDir, finalName);
}
export interface VisualDiffCommandResult {
errorMessage?: string;
diffPercentage: number;
passed: boolean;
}
export interface VisualDiffCommandContext {
browser: string;
testFile: string;
}
function passesFailureThreshold(
{ diffPercentage, diffPixels }: DiffResult,
{ failureThresholdType, failureThreshold }: VisualRegressionPluginOptions,
): { passed: boolean; message?: string } {
if (failureThresholdType === 'percent') {
return diffPercentage <= failureThreshold
? { passed: true }
: {
passed: false,
// if diff is suitably small, output raw value, otherwise to two decimal points.
// this avoids outputting a failure value of "0.00%"
message: `${diffPercentage < 0.005 ? diffPercentage : diffPercentage.toFixed(2)}%`,
};
}
if (failureThresholdType === 'pixel') {
return diffPixels <= failureThreshold
? { passed: true }
: { passed: false, message: `${diffPixels} pixels` };
}
throw new VisualRegressionError(`Unrecognized failureThresholdType: ${failureThresholdType}`);
}
export async function visualDiffCommand(
options: VisualRegressionPluginOptions,
image: Buffer,
name: string,
{ browser, testFile }: VisualDiffCommandContext,
): Promise<VisualDiffCommandResult> {
const baseDir = path.resolve(options.baseDir);
const baselineName = options.getBaselineName({ browser, name, testFile });
const baselineImage = await options.getBaseline({
filePath: resolveImagePath(baseDir, baselineName),
baseDir,
name: baselineName,
});
if (options.update) {
await options.saveBaseline({
filePath: resolveImagePath(baseDir, baselineName),
baseDir,
name: baselineName,
content: image,
});
return { diffPercentage: -1, passed: true };
}
const diffName = options.getDiffName({ browser, name, testFile });
const failedName = options.getFailedName({ browser, name, testFile });
const diffFilePath = resolveImagePath(baseDir, diffName);
const saveFailed = async () => {
await options.saveFailed({
filePath: resolveImagePath(baseDir, failedName),
baseDir,
name: failedName,
content: image,
});
};
const saveDiff = async () => {
await options.saveDiff({
filePath: diffFilePath,
baseDir,
name: diffName,
content: diffImage,
});
};
if (!baselineImage) {
await saveFailed();
return {
errorMessage: 'There was no baseline image to compare against.',
diffPercentage: -1,
passed: false,
};
}
const result = await options.getImageDiff({
name,
baselineImage,
image,
options: options.diffOptions,
});
const { error, diffImage } = result;
if (error) {
// The diff has failed, be sure to save the new image.
await saveFailed();
await saveDiff();
return {
passed: false,
errorMessage: error,
diffPercentage: -1,
};
}
const { passed, message } = passesFailureThreshold(result, options);
if (!passed) {
await saveDiff();
}
if (!passed || options.buildCache) {
await saveFailed();
}
return {
errorMessage: !passed
? `Visual diff failed. New screenshot is ${message} different.\nSee diff for details: ${diffFilePath}`
: undefined,
diffPercentage: -1,
passed,
};
}
| modernweb-dev/web/packages/test-runner-visual-regression/src/visualDiffCommand.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-visual-regression/src/visualDiffCommand.ts",
"repo_id": "modernweb-dev",
"token_count": 1292
} | 205 |
import { BrowserLauncher, TestRunnerCoreConfig } from '@web/test-runner-core';
import { Browser, remote, RemoteOptions } from 'webdriverio';
import { IFrameManager } from './IFrameManager.js';
import { SessionManager } from './SessionManager.js';
import { getBrowserLabel } from './utils.js';
type MouseButton = 'left' | 'middle' | 'right';
function getMouseButtonCode(button: MouseButton) {
switch (button) {
case 'left':
return 0;
case 'middle':
return 1;
case 'right':
return 2;
}
}
export class WebdriverLauncher implements BrowserLauncher {
public name = 'Initializing...';
public type = 'webdriver';
private config?: TestRunnerCoreConfig;
private driver?: Browser;
private debugDriver: undefined | Browser = undefined;
private driverManager?: IFrameManager | SessionManager;
private __managerPromise?: Promise<IFrameManager | SessionManager>;
private isIE = false;
private pendingHeartbeat?: ReturnType<typeof setInterval>;
constructor(private options: RemoteOptions) {}
async initialize(config: TestRunnerCoreConfig) {
this.config = config;
const cap = this.options.capabilities as WebDriver.DesiredCapabilities;
this.name = getBrowserLabel(cap);
const browserName = cap.browserName?.toLowerCase().replace(/_/g, ' ') || '';
this.isIE =
(browserName.includes('internet') && browserName.includes('explorer')) ||
browserName === 'ie' ||
browserName === 'ie11';
}
async stop() {
try {
if (this.pendingHeartbeat != null) {
clearInterval(this.pendingHeartbeat);
}
await this.driver?.deleteSession();
await this.debugDriver?.deleteSession();
this.driver = undefined;
this.debugDriver = undefined;
this.driverManager = undefined;
} catch {
//
}
}
async startSession(id: string, url: string) {
await this.ensureManagerInitialized();
return this.driverManager!.queueStartSession(id, url);
}
isActive(id: string) {
return !!this.driverManager?.isActive(id);
}
getBrowserUrl(sessionId: string) {
if (!this.driverManager) {
throw new Error('Not initialized');
}
return this.driverManager.getBrowserUrl(sessionId);
}
async stopSession(id: string) {
return this.driverManager!.queueStopSession(id);
}
async startDebugSession(_: string, url: string) {
if (this.debugDriver) {
await this.debugDriver.deleteSession();
}
this.debugDriver = (await remote(this.options)) as Browser;
await this.debugDriver.navigateTo(url);
}
private async ensureManagerInitialized(): Promise<void> {
if (this.driverManager) {
return;
}
if (this.__managerPromise) {
await this.__managerPromise;
return;
}
this.__managerPromise = this.createDriverManager();
await this.__managerPromise;
this.__managerPromise = undefined;
}
private async createDriverManager() {
if (!this.config) throw new Error('Not initialized');
const options: RemoteOptions = { logLevel: 'error', ...this.options };
try {
this.driver = (await remote(options)) as Browser;
this.driverManager =
this.config.concurrency === 1
? new SessionManager(this.config, this.driver, this.isIE)
: new IFrameManager(this.config, this.driver, this.isIE);
this.setupHeartbeat();
return this.driverManager;
} catch (e) {
this.stop();
throw e;
}
}
/**
* Sets up a heartbeat to avoid the session from expiring due to
* inactivity because of a long running test.
*/
private setupHeartbeat() {
this.pendingHeartbeat = setInterval(async () => {
if (!this.driver) return;
try {
await this.driver.getTitle();
} catch (e) {
// Do nothing, just clear the timeout
if (this.pendingHeartbeat != null) {
clearInterval(this.pendingHeartbeat);
}
}
}, 60000);
}
sendMouseMove(sessionId: string, x: number, y: number) {
if (!this.driverManager) {
throw new Error('Not initialized');
}
return this.driverManager.performActions(sessionId, [
{
type: 'pointer',
id: 'finger1',
actions: [{ type: 'pointerMove', duration: 0, x, y }],
},
]);
}
sendMouseClick(sessionId: string, x: number, y: number, button: MouseButton = 'left') {
if (!this.driverManager) {
throw new Error('Not initialized');
}
const buttonCode = getMouseButtonCode(button);
return this.driverManager.performActions(sessionId, [
{
type: 'pointer',
id: 'finger1',
actions: [
{ type: 'pointerMove', duration: 0, x, y },
{ type: 'pointerDown', button: buttonCode },
{ type: 'pointerUp', button: buttonCode },
],
},
]);
}
sendMouseDown(sessionId: string, button: MouseButton = 'left') {
if (!this.driverManager) {
throw new Error('Not initialized');
}
const buttonCode = getMouseButtonCode(button);
return this.driverManager.performActions(sessionId, [
{
type: 'pointer',
id: 'finger1',
actions: [{ type: 'pointerDown', button: buttonCode }],
},
]);
}
sendMouseUp(sessionId: string, button: MouseButton = 'left') {
if (!this.driverManager) {
throw new Error('Not initialized');
}
const buttonCode = getMouseButtonCode(button);
return this.driverManager.performActions(sessionId, [
{
type: 'pointer',
id: 'finger1',
actions: [{ type: 'pointerUp', button: buttonCode }],
},
]);
}
resetMouse(sessionId: string) {
if (!this.driverManager) {
throw new Error('Not initialized');
}
return this.driverManager.performActions(sessionId, [
{
type: 'pointer',
id: 'finger1',
actions: [
{ type: 'pointerUp', button: getMouseButtonCode('left') },
{ type: 'pointerUp', button: getMouseButtonCode('middle') },
{ type: 'pointerUp', button: getMouseButtonCode('right') },
{ type: 'pointerMove', duration: 0, x: 0, y: 0 },
],
},
]);
}
sendKeys(sessionId: string, keys: string[]) {
if (!this.driverManager) {
throw new Error('Not initialized');
}
return this.driverManager.sendKeys(sessionId, keys);
}
takeScreenshot(sessionId: string, locator: string) {
if (!this.driverManager) {
throw new Error('Not initialized');
}
return this.driverManager.takeScreenshot(sessionId, locator);
}
}
export function webdriverLauncher(options: RemoteOptions) {
if (!options?.capabilities) {
throw new Error(`Webdriver launcher requires a capabilities property.`);
}
return new WebdriverLauncher(options);
}
| modernweb-dev/web/packages/test-runner-webdriver/src/webdriverLauncher.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-webdriver/src/webdriverLauncher.ts",
"repo_id": "modernweb-dev",
"token_count": 2534
} | 206 |
function a() {
throw new Error('error thrown in a.js')
}
function b() {
throw new Error('error thrown in b.js')
}
export { a, b };
//# sourceMappingURL=index.js.map
| modernweb-dev/web/packages/test-runner/demo/source-maps/bundled/dist/index.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/source-maps/bundled/dist/index.js",
"repo_id": "modernweb-dev",
"token_count": 62
} | 207 |
{
"version": 3,
"file": "fail-source-maps-separate.test.js",
"sourceRoot": "",
"sources": [
"./fail-source-maps-separate.test.ts"
],
"names": [],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEhD,QAAQ,CAAC,2BAA2B,EAAE;IACpC,EAAE,CAAC,WAAW,EAAE;QACd,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,WAAW,EAAE;;;;;oBACR,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;oBAC9B,qBAAM,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAA;;oBAA3B,SAA2B,CAAC;;;;SAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"
}
| modernweb-dev/web/packages/test-runner/demo/source-maps/separate/test/fail-source-maps-separate.test.js.map/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/source-maps/separate/test/fail-source-maps-separate.test.js.map",
"repo_id": "modernweb-dev",
"token_count": 330
} | 208 |
import { expect } from './chai.js';
beforeEach(() => {
throw new Error('error thrown in beforeEach hook');
});
it('true is true', () => {
expect(true).to.equal(true);
});
it('true is really true', () => {
expect(true).to.equal(true);
});
| modernweb-dev/web/packages/test-runner/demo/test/fail-before-each.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/fail-before-each.test.js",
"repo_id": "modernweb-dev",
"token_count": 87
} | 209 |
foo' | modernweb-dev/web/packages/test-runner/demo/test/fail-syntax-error-dependency.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/fail-syntax-error-dependency.js",
"repo_id": "modernweb-dev",
"token_count": 2
} | 210 |
import { expect } from './chai.js';
it('test 1', () => {
if (
/^((?!chrome|android).)*safari/i.test(navigator.userAgent) ||
navigator.userAgent.toLowerCase().includes('firefox')
) {
expect(true).to.be.false;
}
expect(true).to.be.true;
});
| modernweb-dev/web/packages/test-runner/demo/test/pass-log-non-chrome.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/pass-log-non-chrome.test.js",
"repo_id": "modernweb-dev",
"token_count": 108
} | 211 |
export declare class MyClass {
doFoo(foo: string, bar: number): Promise<void>;
}
export declare function doBar(bar: string, foo: number): void;
| modernweb-dev/web/packages/test-runner/demo/tsc/dist/src/MyClass.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/src/MyClass.d.ts",
"repo_id": "modernweb-dev",
"token_count": 47
} | 212 |
import './shared-a.js';
import './shared-b.js';
| modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-3.test.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-3.test.d.ts",
"repo_id": "modernweb-dev",
"token_count": 20
} | 213 |
import { readConfig, ConfigLoaderError } from '@web/config-loader';
import { TestRunnerStartError } from '../TestRunnerStartError.js';
export interface ReadFileConfigParams {
/**
* The config name to use. Defaults to web-test-runner.config.{mjs,cjs,js}
*/
configName?: string;
/**
* Path to the config file. If this is not set, the config is looked up in the
* current working directory using the config name.
*/
configPath?: string;
}
/**
* Reads the config from disk, defaults to process.cwd() + web-test-runner.config.{mjs,js,cjs} or
* a custom config path.
* @param customConfig the custom location to read the config from
*/
export async function readFileConfig({
configName = 'web-test-runner.config',
configPath,
}: ReadFileConfigParams = {}) {
try {
return await readConfig(configName, typeof configPath === 'string' ? configPath : undefined);
} catch (error) {
if (error instanceof ConfigLoaderError) {
throw new TestRunnerStartError(error.message);
}
throw error;
}
}
| modernweb-dev/web/packages/test-runner/src/config/readFileConfig.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/config/readFileConfig.ts",
"repo_id": "modernweb-dev",
"token_count": 329
} | 214 |
import { TestResult, TestSuiteResult } from '@web/test-runner-core';
export function getPassedFailedSkippedCount(testResults: TestSuiteResult) {
let passed = 0;
let failed = 0;
let skipped = 0;
function collectTests(tests: TestResult[]) {
for (const test of tests) {
if (test.skipped) {
skipped += 1;
} else if (test.passed) {
passed += 1;
} else {
failed += 1;
}
}
}
function collectSuite(suite: TestSuiteResult) {
collectTests(suite.tests);
for (const childSuite of suite.suites) {
collectSuite(childSuite);
}
}
collectSuite(testResults);
return { passed, failed, skipped };
}
| modernweb-dev/web/packages/test-runner/src/reporter/utils/getPassedFailedSkippedCount.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/reporter/utils/getPassedFailedSkippedCount.ts",
"repo_id": "modernweb-dev",
"token_count": 270
} | 215 |
www.opendota.com | odota/web/CNAME/0 | {
"file_path": "odota/web/CNAME",
"repo_id": "odota",
"token_count": 7
} | 216 |
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Слой_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" xml:space="preserve">
<style type="text/css">
.st0{fill:#5A7079;}
</style>
<g>
<path class="st0" d="M457.8,250c0,121.1-93.1,219.2-207.8,219.2S42.2,371.1,42.2,250S135.2,30.8,250,30.8S457.8,128.9,457.8,250z
M250,48.8C144.6,48.8,59.2,138.9,59.2,250S144.6,451.2,250,451.2S440.8,361.1,440.8,250S355.4,48.8,250,48.8z"/>
<g>
<g>
<path class="st0" d="M249.1,163.8c0,0,27.4-13.8,27.7-16.9c2.2-24.5,40-61.5,47.4-61.4c1.3,1.2-7.4,36-11,44.4
c-2.9,7-10.8,22.8-17.2,27.2c-2.9,2-14.3,3.6-21.4,6.1c-8,2.7-11.6,6.3-12.7,8.9c-2,5.1-1.3,58.2,0,58.2c3.5,0,24-15.9,24-15.9
s32.5,0.9,33.4-1.7c2.2-6.4,14.8-20.1,29.3-31.4c19-14.8,40.8-26.9,41.9-26.7c1.2,0.2-11,26.5-25.5,46.1
c-10.4,14-22.6,23.2-29,23.9c-15.5,1.7-46.7,1.2-46.7,1.2l-27,19.9c0,0-1.9,55.7-0.3,56.4c1.5,0.7,15-9.4,18.9-11
c3.9-1.5,45.9-0.2,48.3-1.2s9.3-12.1,12.8-16s26.2-16.9,37.5-21.8c11.3-4.9,36.1-10.1,37.6-8.9c1.5,1.2-42.2,54-54.2,56.9
s-71.7,2.6-77.9,4.6s-21.6,13-22.6,15.7s-1.9,69,0,69.9c1.9,0.8,14.3-10.6,20.6-13.5c6.2-2.9,20.2-3.7,24-4.7
c3.7-1,13.4-14.2,26.3-22.1c9.5-5.9,46.1-10.8,55.3-5c3.8,2.4-51.6,39.5-59.2,41.2s-37.2-0.2-41.9,1.5
c-4.7,1.7-22.4,15.5-24,23.6c-1.5,8.1,0,43.9,0,43.9h-14.2V163.8H249.1z"/>
<path class="st0" d="M250.9,163.8c0,0-27.4-13.8-27.7-16.9c-2.2-24.5-40-61.5-47.4-61.4c-1.3,1.2,7.4,36,11,44.4
c2.9,7,10.8,22.8,17.2,27.2c2.9,2,14.3,3.6,21.4,6.1c8,2.7,11.6,6.3,12.7,8.9c2,5.1,1.3,58.2,0,58.2c-3.5,0-24-15.9-24-15.9
s-32.5,0.9-33.4-1.7c-2.2-6.4-14.8-20.1-29.3-31.4c-19-14.8-40.8-26.9-41.9-26.7c-1.2,0.2,11,26.5,25.5,46.1
c10.4,14,22.6,23.2,29,23.9c15.5,1.7,46.7,1.2,46.7,1.2l27,19.9c0,0,1.9,55.7,0.3,56.4c-1.5,0.7-15-9.4-18.9-11
c-3.9-1.5-45.9-0.2-48.3-1.2c-2.4-1-9.3-12.1-12.8-16s-26.2-16.9-37.5-21.8c-11.3-4.9-36.1-10.1-37.6-8.9
c-1.5,1.2,42.2,54,54.2,56.9s71.7,2.6,77.9,4.6s21.6,13,22.6,15.7s1.9,69,0,69.9c-1.9,0.8-14.3-10.6-20.6-13.5
c-6.2-2.9-20.2-3.7-24-4.7c-3.7-1-13.4-14.2-26.3-22.1c-9.5-5.9-46.1-10.8-55.3-5c-3.8,2.4,51.6,39.5,59.2,41.2
c7.6,1.7,37.2-0.2,41.9,1.5c4.7,1.7,22.4,15.5,24,23.6c1.5,8.1,0,43.9,0,43.9h14.2V163.8H250.9z"/>
</g>
</g>
</g>
</svg>
| odota/web/public/assets/images/dota2/talent_tree.svg/0 | {
"file_path": "odota/web/public/assets/images/dota2/talent_tree.svg",
"repo_id": "odota",
"token_count": 1855
} | 217 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M106.25 0h1133.3v850H106.25z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" transform="matrix(.56472 0 0 .56482 -60.002 -.1)">
<path d="M0 0h1300v850H0z" fill="#0053a5"/>
<g fill="#ffce00">
<path d="M400 0h250v850H400z"/>
<path d="M0 300h1300v250H0z"/>
</g>
<g fill="#d21034">
<path d="M475 0h100v850H475z"/>
<path d="M0 375h1300v100H0z"/>
</g>
</g>
</svg>
| odota/web/public/assets/images/flags/ax.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ax.svg",
"repo_id": "odota",
"token_count": 302
} | 218 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="480" width="640" viewBox="0 0 640 480">
<path fill="#007a5e" d="M0 0h213.333v480H0z"/>
<path fill="#ce1126" d="M213.333 0h213.333v480H213.333z"/>
<path fill="#fcd116" d="M426.667 0H640v480H426.667z"/>
<g transform="translate(320 240) scale(7.1111)" fill="#fcd116">
<g id="b">
<path id="a" d="M0-8L-2.472-.392 1.332.845z"/>
<use height="100%" width="100%" xlink:href="#a" transform="scale(-1 1)"/>
</g>
<use height="100%" width="100%" xlink:href="#b" transform="rotate(72)"/>
<use height="100%" width="100%" xlink:href="#b" transform="rotate(144)"/>
<use height="100%" width="100%" xlink:href="#b" transform="rotate(-144)"/>
<use height="100%" width="100%" xlink:href="#b" transform="rotate(-72)"/>
</g>
</svg>
| odota/web/public/assets/images/flags/cm.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/cm.svg",
"repo_id": "odota",
"token_count": 370
} | 219 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#fff" d="M0 0h640v480H0z"/>
<path fill="#ce1124" d="M281.6 0h76.8v480h-76.8z"/>
<path fill="#ce1124" d="M0 201.6h640v76.8H0z"/>
</svg>
| odota/web/public/assets/images/flags/gb-eng.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/gb-eng.svg",
"repo_id": "odota",
"token_count": 120
} | 220 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M0 0h120v90H0z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="scale(5.33)" stroke-width="1pt">
<path fill="#0d5eaf" d="M0 0h135v10H0z"/>
<path fill="#fff" d="M0 10h135v10H0z"/>
<path fill="#0d5eaf" d="M0 20h135v10H0z"/>
<path fill="#fff" d="M0 30h135v10H0z"/>
<path fill="#0d5eaf" d="M0 40h135v10H0z"/>
<path fill="#fff" d="M0 50h135v10H0z"/>
<path fill="#0d5eaf" d="M0 60h135v10H0z"/>
<path fill="#fff" d="M0 70h135v10H0z"/>
<path fill="#0d5eaf" d="M0 80h135v10H0zM0 0h50v50H0z"/>
<g fill="#fff">
<path d="M20 0h10v50H20z"/>
<path d="M0 20h50v10H0z"/>
</g>
</g>
</svg>
| odota/web/public/assets/images/flags/gr.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/gr.svg",
"repo_id": "odota",
"token_count": 438
} | 221 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="480" width="640" viewBox="0 0 640 480">
<path fill="#f93" d="M0 0h640v160H0z"/>
<path fill="#fff" d="M0 160h640v160H0z"/>
<path fill="#128807" d="M0 320h640v160H0z"/>
<g transform="matrix(3.2 0 0 3.2 320 240)">
<circle r="20" fill="#008"/>
<circle r="17.5" fill="#fff"/>
<circle r="3.5" fill="#008"/>
<g id="d">
<g id="c">
<g id="b">
<g id="a" fill="#008">
<circle r=".875" transform="rotate(7.5 -8.75 133.5)"/>
<path d="M0 17.5L.6 7 0 2l-.6 5L0 17.5z"/>
</g>
<use height="100%" width="100%" xlink:href="#a" transform="rotate(15)"/>
</g>
<use height="100%" width="100%" xlink:href="#b" transform="rotate(30)"/>
</g>
<use height="100%" width="100%" xlink:href="#c" transform="rotate(60)"/>
</g>
<use height="100%" width="100%" xlink:href="#d" transform="rotate(120)"/>
<use height="100%" width="100%" xlink:href="#d" transform="rotate(-120)"/>
</g>
</svg>
| odota/web/public/assets/images/flags/in.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/in.svg",
"repo_id": "odota",
"token_count": 526
} | 222 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M5.077.1h682.53V512H5.077z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(-4.761 -.094) scale(.93768)">
<path stroke="#000" stroke-width="1.014" fill="#fff" d="M775.94 511.52H-75.92V.57h851.86z"/>
<path fill="#3e5698" d="M775.94 419.07H-75.92v92.457h851.86z"/>
<path fill="#c60000" d="M775.94 397.65H-75.92V114.44h851.86z"/>
<path fill="#3e5698" d="M775.94.576H-75.92v92.457h851.86z"/>
<path d="M328.518 256.07c0 63.45-53.108 114.886-118.619 114.886-65.512 0-118.618-51.437-118.618-114.886 0-63.45 53.108-114.885 118.618-114.885 65.512 0 118.619 51.436 118.619 114.885z" fill="#fff"/>
<path fill="#c40000" d="M175.83 270.567l-57.06-40.618 71.056-.289 22.636-66.367 21.164 66.147 71.057-.407-57.978 41.177 21.275 66.117-56.998-40.696-57.908 41.264z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/kp.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/kp.svg",
"repo_id": "odota",
"token_count": 504
} | 223 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#c1272d" d="M640 0H0v480h640z"/>
<path d="M320 179.452l-35.574 109.496 93.12-67.647H262.453l93.122 67.648z" fill="none" stroke="#006233" stroke-width="11.704"/>
</svg>
| odota/web/public/assets/images/flags/ma.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ma.svg",
"repo_id": "odota",
"token_count": 122
} | 224 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M-54.667 0h682.67v512h-682.67z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(51.25) scale(.9375)" stroke-width="1pt">
<path fill="#002170" d="M-140 0H884v512H-140z"/>
<path fill="#ffb20d" d="M-140 234.11H884v43.783H-140z"/>
<path fill="#fff" d="M161.81 437.989l-32.916-32.971-10.604 45.363-12.008-45.015-31.875 33.978 12.107-44.989-44.59 13.498 32.972-32.907-45.365-10.613 45.016-12.008L40.56 320.45l44.989 12.108-13.49-44.591 32.907 32.971 10.614-45.364 12.008 45.015 31.866-33.977-12.098 44.988 44.59-13.498-32.98 32.908 45.363 10.613-45.015 12.009 33.987 31.874-44.989-12.108z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/nr.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/nr.svg",
"repo_id": "odota",
"token_count": 410
} | 225 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M-70.28 0h640v480h-640z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(70.28)" stroke-width="1pt">
<path fill="#4aadd6" d="M-173.44 0h846.32v480h-846.32z"/>
<path d="M335.633 232.117a135.876 130.111 0 1 1-271.752 0 135.876 130.111 0 1 1 271.752 0z" fill="#ffde00"/>
</g>
</svg>
| odota/web/public/assets/images/flags/pw.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/pw.svg",
"repo_id": "odota",
"token_count": 237
} | 226 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M0 0h682.67v512H0z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" fill-rule="evenodd" transform="scale(.9375)">
<path fill="#ffe300" d="M0 0h767.63v512H0z"/>
<path fill="#118600" d="M0 208.14h767.63v102.81H0zM0 .248h767.63v102.81H0z"/>
<path fill="#d80000" d="M0 .248h306.51v310.71H0z"/>
<path d="M134.42 128.43c0-.856 18.836-53.083 18.836-53.083l17.124 52.227s57.365 1.713 57.365.856-45.378 34.248-45.378 34.248 21.404 59.933 20.549 58.221c-.856-1.712-49.659-35.96-49.659-35.96s-49.658 34.248-48.802 34.248c.856 0 18.835-56.508 18.835-56.508l-44.522-33.392 55.652-.856z" fill="#fff"/>
<path fill="#118600" d="M0 409.19h767.63V512H0z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/tg.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/tg.svg",
"repo_id": "odota",
"token_count": 433
} | 227 |
import React from 'react';
import propTypes from 'prop-types';
import styled from 'styled-components';
import constants from '../constants';
import { styleValues, formatValues } from '../../utility';
import AbilityBehaviour from './AbilityBehaviour';
import config from '../../config';
const Wrapper = styled.div`
position: relative;
width: 300px;
background: #131519;
background: linear-gradient(135deg, #131519, #1f2228);
overflow: hidden;
border: 2px solid #27292b;
& > div:nth-child(2) {
position: relative;
border-top: 1px solid #080D15;
}
`;
const Header = styled.div`
background: linear-gradient(to right, #51565F , #303338);
position: relative;
`;
const HeaderContent = styled.div`
position: relative;
height: 50px;
padding: 13px;
white-space: nowrap;
& img {
display: inline-block;
height: 100%;
border: 1px solid #080D15;
}
& .name {
display: inline-block;
position: relative;
left: 15px;
bottom: 1px;
height: 50px;
width: 220px;
font-size: ${constants.fontSizeCommon};
text-transform: uppercase;
color: ${constants.primaryTextColor};
font-weight: bold;
text-shadow: 1px 1px black;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
line-height: 50px;
letter-spacing: 1px;
}
`;
const HeaderBgImg = styled.div`
position: absolute;
left: -20px;
height: 100%;
width: 20%;
background: ${({ img }: any) => `linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('${config.VITE_IMAGE_CDN}${img}')`};
background-color: transparent;
background-repeat: no-repeat;
transform: scale(4);
filter: blur(15px);
`;
const Description = styled.div`
position: relative;
padding: 13px;
color: #95a5a6;
text-shadow: 1px 1px black;
`;
const Attributes = styled.div`
position: relative;
padding: 13px;
& .attribute {
text-shadow: 1px 1px black;
padding: 2px 0;
color: #95a5a6;
& #value {
color: ${constants.primaryTextColor};
font-weight: 500;
}
}
`;
const Resources = styled.div`
padding: 6px 13px 13px 13px;
& span {
margin-right: 7px;
}
.values {
font-weight: 500;
}
`;
const ResourceIcon = styled.img`
width: 16px;
height: 16px;
vertical-align: sub;
margin-right: 5px;
`;
const Break = styled.div`
margin-left: 13px;
margin-right: 13px;
height: 1px;
background-color: #080D15;
`;
const AbilityTooltip = ({ ability, inflictor }: any) => (
<Wrapper>
<Header>
{/*@ts-ignore*/}
<HeaderBgImg img={ability.img} />
<HeaderContent>
{inflictor && inflictor.startsWith('special_') ?
<img id="ability-img" src="/assets/images/dota2/talent_tree.svg" alt="Talent Tree" /> :
<img id="ability-img" src={`${config.VITE_IMAGE_CDN}${ability.img}`} alt="Talent Tree" />
}
<div className="name">{ability.dname}</div>
</HeaderContent>
</Header>
{(ability.behavior || ability.dmg_type || ability.bkbpierce) &&
<div>
<AbilityBehaviour ability={ability} />
<Break />
</div>
}
{ability.desc &&
<Description
//@ts-ignore
ref={(el: any) => styleValues(el)}>
{ability.desc}
</Description>
}
{ability.attrib && ability.attrib.length > 0 &&
<div>
<Break />
<Attributes>
<div>
{(ability.attrib || []).map((attrib: any) => (
<div className="attribute" key={attrib.key}>
<span id="header">{attrib.header} </span>
<span id="value">{formatValues(attrib.value)}</span>
<span id="footer"> {attrib.footer || ''}</span>
</div>))}
{ability.dmg ? <div className="attribute">DAMAGE: <span id="value">{formatValues(ability.dmg)}</span></div> : ''}
</div>
</Attributes>
</div>
}
{(ability.mc || ability.cd) &&
<Resources>
{ability.mc &&
<span>
<ResourceIcon src={`${config.VITE_IMAGE_CDN}/apps/dota2/images/tooltips/mana.png`} alt="Mana" />
<span className="values">{formatValues(ability.mc)}</span>
</span>
}
{ability.cd &&
<span>
<ResourceIcon src={`${config.VITE_IMAGE_CDN}/apps/dota2/images/tooltips/cooldown.png`} alt="Cooldown" />
<span className="values">{formatValues(ability.cd)}</span>
</span>
}
</Resources>
}
</Wrapper>
);
AbilityTooltip.propTypes = {
ability: propTypes.shape({}).isRequired,
inflictor: propTypes.string,
};
export default AbilityTooltip;
| odota/web/src/components/AbilityTooltip/index.tsx/0 | {
"file_path": "odota/web/src/components/AbilityTooltip/index.tsx",
"repo_id": "odota",
"token_count": 2124
} | 228 |
import App from './App';
export default App;
| odota/web/src/components/App/index.js/0 | {
"file_path": "odota/web/src/components/App/index.js",
"repo_id": "odota",
"token_count": 14
} | 229 |
import Error from './Error';
export default Error;
| odota/web/src/components/Error/index.js/0 | {
"file_path": "odota/web/src/components/Error/index.js",
"repo_id": "odota",
"token_count": 14
} | 230 |
import React from 'react';
import { IconGithub, IconDiscord } from '../Icons';
import config from '../../config';
export default ({ strings }) => {
const links = [
{
tooltip: strings.app_github,
path: `//github.com/${config.GITHUB_REPO}`,
icon: <IconGithub aria-hidden />,
},
];
if (config.DISCORD_LINK) {
links.push({
tooltip: strings.app_discord,
path: `//discord.gg/${config.DISCORD_LINK}`,
icon: <IconDiscord aria-hidden />,
});
}
return links.map((link) => (
<a
key={link.path}
target="_blank"
rel="noopener noreferrer"
data-hint-position="top"
data-hint={link.tooltip}
href={link.path}
aria-label={link.tooltip}
>
{link.icon}
</a>
));
};
| odota/web/src/components/Footer/SocialLinks.jsx/0 | {
"file_path": "odota/web/src/components/Footer/SocialLinks.jsx",
"repo_id": "odota",
"token_count": 350
} | 231 |
import Heatmap from './Heatmap';
export default Heatmap;
| odota/web/src/components/Heatmap/index.js/0 | {
"file_path": "odota/web/src/components/Heatmap/index.js",
"repo_id": "odota",
"token_count": 17
} | 232 |
import React from 'react';
import { bool, func, arrayOf, shape, number, string } from 'prop-types';
import { connect } from 'react-redux';
import { getHeroPlayers } from '../../actions';
import Table, { TableLink } from '../Table';
import PlayersSkeleton from '../Skeletons/PlayersSkeleton';
import { wilsonScore } from '../../utility';
import { proPlayersSelector } from '../../reducers/selectors';
class Players extends React.Component {
static propTypes = {
isLoading: bool,
data: arrayOf(shape({
account_id: number,
games_played: number,
wins: number,
})),
match: shape({
params: shape({
heroId: string,
}),
}),
onGetHeroPlayers: func,
proPlayers: shape({}),
strings: shape({}),
};
componentDidMount() {
const { onGetHeroPlayers, match } = this.props;
if (match.params && match.params.heroId) {
onGetHeroPlayers(match.params.heroId);
}
}
render() {
const {
data, isLoading, proPlayers, strings,
} = this.props;
const playersColumns = [
{
field: 'account_id',
displayName: strings.th_account_id,
displayFn: (row, col, field) => <TableLink to={`/players/${field}`}>{row.name || field}</TableLink>,
},
{
field: 'games_played',
displayName: strings.th_games_played,
relativeBars: true,
sortFn: true,
},
{
field: 'wins',
displayName: strings.th_win,
relativeBars: true,
sortFn: true,
displayFn: (row, col, field) => `${field}`,
},
{
tooltip: strings.tooltip_advantage,
field: 'advantage',
displayName: strings.th_advantage,
relativeBars: true,
sortFn: true,
displayFn: (row, col, field) => `${field}`,
},
];
if (isLoading) {
return <PlayersSkeleton />;
}
const preparedData = data
.map((item) => {
const wins = Math.max(0, Math.min(100, (item.wins / item.games_played * 100).toFixed(2)));
const advantage = Math.round(wilsonScore(item.wins, item.games_played - item.wins) * 100);
const proPlayer = proPlayers[item.account_id];
const name = proPlayer ? proPlayer.name : undefined;
return {
...item,
wins,
advantage,
name,
};
})
.sort((a, b) => b.games_played - a.games_played);
return <Table data={preparedData} columns={playersColumns} paginated />;
}
}
const mapStateToProps = state => ({
isLoading: state.app.heroPlayers.loading,
data: Object.values(state.app.heroPlayers.data),
proPlayers: proPlayersSelector(state),
strings: state.app.strings,
});
const mapDispatchToProps = {
onGetHeroPlayers: getHeroPlayers,
};
export default connect(mapStateToProps, mapDispatchToProps)(Players);
| odota/web/src/components/Hero/Players.jsx/0 | {
"file_path": "odota/web/src/components/Hero/Players.jsx",
"repo_id": "odota",
"token_count": 1194
} | 233 |
import React from 'react';
export default props => (
// Taked from http://game-icons.net/skoll/originals/fist.html
// by Skoll under CC BY 3.0
<svg viewBox="0 0 512 512" {...props}>
<path
fill="#f44336"
d="M329.8 235.69l62.83-82.71 42.86 32.56-62.83 82.75zm-12.86-9.53l66.81-88-45-34.15-66.81
88zm-27.48-97.78l-19.3 39.57 57-75-42.51-32.3-36.24 47.71zm-20.74-73.24l-46.64-35.43-42 55.31
53.67 26.17zm107 235.52l-139-102.71-9.92.91 4.56 2 62.16 138.43-16.52 2.25-57.68-128.5-40-17.7-4-30.84
39.41 19.42 36.36-3.33 17-34.83-110.9-54.09-80.68 112.51L177.6 346.67l-22.7 145.62H341V372.62l35.29-48.93L387
275.77z"
/>
</svg>
);
| odota/web/src/components/Icons/AttrStrength.jsx/0 | {
"file_path": "odota/web/src/components/Icons/AttrStrength.jsx",
"repo_id": "odota",
"token_count": 378
} | 234 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import ReactTooltip from 'react-tooltip';
import { Tooltip } from '@material-ui/core';
import heroes from 'dotaconstants/build/heroes.json';
import {
formatSeconds,
getHeroesById,
formatTemplateToString,
} from '../../utility';
import FormField from '../Form/FormField';
import { StyledLogFilterForm } from './StyledMatch';
import HeroImage from '../Visualizations/HeroImage';
import sword from '../Icons/Sword.svg';
import { IconBloodDrop, IconRoshan } from '../Icons';
import lightning from '../Icons/Lightning.svg';
const StyledLogContainer = styled.div`
display: flex;
justify-content: center;
flex-direction: column;
position: relative;
align-items: center;
margin-top: 20px;
letter-spacing: 0.044em;
& .timeDivider {
display: flex;
max-width: 800px;
width: 100%;
justify-content: center;
align-items: center;
margin-top: 24px;
margin-bottom: 24px;
color: rgba(255, 255, 255, 0.8);
& div {
height: 1px;
width: 100%;
background rgba(255, 255, 255, 0.08);
flex-shrink: 0;
&:nth-of-type(1) {
background: linear-gradient(to left,rgba(255,255,255,0.08), transparent);
}
&:nth-of-type(2) {
background: linear-gradient(to right,rgba(255,255,255,0.08), transparent);
}
}
& span {
font-size: 14px;
margin-left: 16px;
margin-right: 16px;
color: rgba(255, 255, 255, 0.8);
}
}
.entry:hover {
& .time {
color: rgba(255, 255, 255, 0.9);
}
}
.entry {
display: flex;
max-width: 800px;
width: 100%
margin-top: 8px;
margin-bottom: 8px;
& .smallMutedText {
font-size: 12px;
color: rgba(255, 255, 255, 0.6);
}
& .smallBoldText {
font-size: 12px;
font-weight: bold;
color: rgba(255, 255, 255, 0.8);
}
& .time {
font-size: 12px;
color: rgba(255, 255, 255, 0.3);
}
& .entryMessagesContainer {
display: flex;
flex-direction: column;
border-radius: 4px;
&.radiant {
background: linear-gradient(to right, #21812c26, transparent);
}
&.dire {
background: linear-gradient(to left, #9d361f26, transparent);
padding-right: 7px;
}
}
& .heroImage {
width: 72px;
height: 40px;
border-radius: 4px;
}
& .detailIcon {
height: 16px;
width: 16px;
margin-right: 6px;
margin-left: 6px;
}
& .entryMessage {
display: flex;
margin-top: 12px;
margin-bottom: 12px;
& .icon {
height: 16px;
width: 16px;
margin-left: 6px;
margin-right: 6px;
}
& .dropIcon {
fill: #ff5555;
}
& .roshanIcon {
fill: #9dddcc;
}
}
}
`;
const DIVIDER_SECONDS = 30; // insert a divider if two consecutive entries are X seconds apart
const isRadiant = (entry) => {
if (entry.isRadiant) {
return true;
}
if (entry.alt_key === 'CHAT_MESSAGE_COURIER_LOST') {
return entry.team !== 2;
}
return (
(entry.unit && entry.unit.indexOf('goodguys') !== -1) || entry.team === 2
);
};
const heroNames = getHeroesById();
const typeConfig = {
kills: 0,
objectives: 1,
runes: 2,
};
const getObjectiveDesc = (objective, strings) =>
objective.key && objective.type === 'CHAT_MESSAGE_BARRACKS_KILL'
? strings[`barracks_value_${objective.key}`]
: '';
const getObjectiveBase = (objective, strings) => {
if (objective.type === 'building_kill') {
const desc =
objective.key.indexOf('npc_dota_badguys') === 0
? strings.general_dire
: strings.general_radiant;
return `${desc} ${(objective.key.split('guys_') || [])[1]}`;
}
return (
strings[objective.subtype || objective.type] ||
objective.subtype ||
objective.type
);
};
const generateLog = (match, { types, players }, strings) => {
let log = [];
const matchPlayers = !players.length
? match.players
: match.players.filter((p, i) => players.includes(i));
if (types.includes(typeConfig.objectives)) {
log = (match.objectives || []).reduce((objectivesLog, objective) => {
if (!players.length || players.includes(objective.slot)) {
/*
let name;
if (objective.slot === -1) {
if (objective.team === 2) {
name = strings.general_radiant;
} else if (objective.team === 3) {
name = strings.general_dire;
}
}
*/
if (objective.type === 'CHAT_MESSAGE_COURIER_LOST') {
// Adjust for incorrect data from post 7.23 core bug
// Here the team value is killer id
if (objective.killer === undefined) {
const team = objective.team > 4 ? 2 : 3;
objective.killer = (team === 2 ? 123 : 0) + objective.team;
objective.team = team;
}
const killer = match.players.find(player => player.player_slot === objective.killer)?.hero_id || -1;
if (killer !== -1) {
objective.hero_id = killer;
}
}
objectivesLog.push({
...objective,
...matchPlayers[objective.slot],
type: 'objectives',
alt_key: objective.type,
detail: `${getObjectiveDesc(objective, strings)} ${getObjectiveBase(
objective,
strings
)}`,
});
}
return objectivesLog;
}, log);
}
matchPlayers.forEach((player) => {
if (types.includes(typeConfig.kills)) {
log = log.concat(
(player.kills_log || []).map((entry) => ({
...entry,
...player,
type: 'kills',
detail: `${entry.key}`,
}))
);
}
if (types.includes(typeConfig.runes)) {
log = log.concat(
(player.runes_log || []).map((entry) => ({
...entry,
...player,
type: 'runes',
detail: `${entry.key}`,
}))
);
}
/*
log = log.concat((player.obs_log || []).map(entry => ({
...entry,
...player,
type: 'obs_ward',
detail: `${entry.key}`,
})));
*/
});
log = log.sort((a, b) => a.time - b.time);
return log;
};
class MatchLog extends React.Component {
static propTypes = {
match: PropTypes.shape({
players: PropTypes.arrayOf({}),
}),
strings: PropTypes.shape({}),
};
constructor(props) {
super(props);
this.state = {
types: Object.values(typeConfig),
players: [],
};
const { strings } = props;
this.typesSource = [
{ text: strings.heading_kills, value: 0 },
{ text: strings.tab_objectives, value: 1 },
{ text: strings.heading_runes, value: 2 },
];
this.playersSource = this.props.match.players.map((player, index) => ({
text: heroes[player.hero_id]
? heroes[player.hero_id].localized_name
: strings.general_no_hero,
value: index,
}));
}
addChip = (name, input, limit) => {
const currentChips = this.state[name];
const newChips = [input.value].concat(currentChips).slice(0, limit);
this.setState({ [name]: newChips });
};
deleteChip = (name, index) => {
const currentChips = this.state[name];
const newChips = [
...currentChips.slice(0, index),
...currentChips.slice(index + 1),
];
this.setState({ [name]: newChips });
};
render() {
const { strings } = this.props;
const runeTooltips = Object.keys(strings)
.filter((str) => str.indexOf('rune_') === 0)
.map((runeKey) => {
const runeString = strings[runeKey];
return (
<ReactTooltip id={runeString} key={runeString}>
<span>{runeString}</span>
</ReactTooltip>
);
});
const logData = generateLog(this.props.match, this.state, strings);
const groupedEntries = [];
let lastEntryTime = Number.MIN_SAFE_INTEGER;
return (
<div>
{runeTooltips}
<StyledLogFilterForm>
<div className="title">{strings.filter_button_text_open}</div>
<FormField
name="types"
label={strings.ward_log_type}
dataSource={this.typesSource}
addChip={this.addChip}
deleteChip={this.deleteChip}
formSelectionState={this.state}
strict
/>
<FormField
name="players"
label={strings.log_heroes}
dataSource={this.playersSource}
addChip={this.addChip}
deleteChip={this.deleteChip}
formSelectionState={this.state}
strict
/>
</StyledLogFilterForm>
<StyledLogContainer>
{logData.map((entry, index) => {
groupedEntries.push(entry);
const nextEntry = logData[index + 1];
if (
index === logData.length - 1 ||
nextEntry.player_slot !== entry.player_slot || // group consecutive log entries by the same player together
nextEntry.time - entry.time > DIVIDER_SECONDS // unless they're more than DIVIDER_SECONDS seconds apart
) {
const renderEntries = [...groupedEntries];
groupedEntries.length = 0;
let renderFirst;
if (entry.hero_id === undefined) {
renderFirst = (
<img
src={`/assets/images/${
isRadiant(renderEntries[0]) ? 'radiant' : 'dire'
}.png`}
alt=""
className="heroImage"
/>
);
} else {
renderFirst = (
<HeroImage id={entry.hero_id} className="heroImage"/>
);
}
let timeDivider = null;
if (renderEntries[0].time - lastEntryTime >= DIVIDER_SECONDS) {
timeDivider = (
<div className="timeDivider">
<div />
<span>{formatSeconds(renderEntries[0].time)}</span>
<div />
</div>
);
}
let renderSecond = (
<div
className={`entryMessagesContainer ${
isRadiant(renderEntries[0]) ? 'radiant' : 'dire'
}`}
>
{renderEntries.map((e) => {
lastEntryTime = e.time;
if (isRadiant(renderEntries[0])) {
return (
<div className="entryMessage">
<EntryMessage entry={e} strings={strings} />
<span className="time" style={{ marginLeft: 15 }}>
{formatSeconds(e.time)}
</span>
</div>
);
}
return (
<div className="entryMessage">
<span className="time" style={{ marginRight: 15 }}>
{formatSeconds(e.time)}
</span>
<EntryMessage entry={e} strings={strings} />
</div>
);
})}
</div>
);
if (!isRadiant(renderEntries[0])) {
const temp = renderFirst;
renderFirst = renderSecond;
renderSecond = temp;
}
return (
<>
{timeDivider}
<div
className="entry"
style={{
justifyContent: isRadiant(renderEntries[0])
? 'flex-start'
: 'flex-end',
}}
>
{renderFirst}
<div style={{ width: 16 }} />
{renderSecond}
</div>
</>
);
}
return null;
})}
</StyledLogContainer>
</div>
);
}
}
function EntryMessage({ entry, strings }) {
const translateBuildings = (isRad, key) => {
const team = isRad ? strings.general_radiant : strings.general_dire;
const k = key.split('_').slice(3).join('_');
const dict = {
fort: ` ${strings.building_ancient}`,
healers: ` ${strings.heading_shrine}`,
tower1_top: ` ${strings.top_tower} ${strings.tier1}`,
tower2_top: ` ${strings.top_tower} ${strings.tier2}`,
tower3_top: ` ${strings.top_tower} ${strings.tier3}`,
towerenderSecond_top: ` ${strings.top_tower} ${strings.tierenderSecond}`,
tower1_mid: ` ${strings.mid_tower} ${strings.tier1}`,
tower2_mid: ` ${strings.mid_tower} ${strings.tier2}`,
tower3_mid: ` ${strings.mid_tower} ${strings.tier3}`,
towerenderSecond_mid: ` ${strings.mid_tower} ${strings.tierenderSecond}`,
tower1_bot: ` ${strings.bot_tower} ${strings.tier1}`,
tower2_bot: ` ${strings.bot_tower} ${strings.tier2}`,
tower3_bot: ` ${strings.bot_tower} ${strings.tier3}`,
towerenderSecond_bot: ` ${strings.bot_tower} ${strings.tierenderSecond}`,
tower4: ` ${strings.heading_tower} ${strings.tier4}`,
melee_rax_top: ` ${'Top'} ${strings.building_melee_rax}`,
melee_rax_mid: ` ${'Mid'} ${strings.building_melee_rax}`,
melee_rax_bot: ` ${'Bot'} ${strings.building_melee_rax}`,
range_rax_top: ` ${'Top'} ${strings.building_range_rax}`,
range_rax_mid: ` ${'Mid'} ${strings.building_range_rax}`,
range_rax_bot: ` ${'Bot'} ${strings.building_range_rax}`,
};
return team + dict[k];
};
switch (entry.type) {
case 'kills': {
const hero = heroNames[entry.detail] || {};
return (
<>
<img src={sword} className="swordIcon icon" />
<span className="smallMutedText">{strings.killed}</span>
<HeroImage id={hero.id} className="detailIcon" isIcon />
<span className="smallBoldText">{hero.localized_name}</span>
</>
);
}
case 'runes': {
const runeType = entry.detail;
const runeString = strings[`rune_${runeType}`];
return (
<>
<Tooltip title={runeString}>
<img
src={`/assets/images/dota2/runes/${runeType}.png`}
alt={`${runeString} rune`}
className="detailIcon"
/>
</Tooltip>
<span
className="smallMutedText"
style={{ textTransform: 'lowercase' }}
>
{strings.activated}
</span>
<span className="smallBoldText">
{runeString} {strings.rune}
</span>
</>
);
}
case 'objectives':
if (entry.alt_key === 'CHAT_MESSAGE_FIRSTBLOOD') {
return (
<>
<IconBloodDrop className="dropIcon icon" />
<span className="smallBoldText">
{strings.drew_first_blood}
</span>
</>
);
}
if (entry.alt_key === 'building_kill') {
return (
<>
{/* #e5cf11 */}
<img src={lightning} className="icon" style={{ filter: 'invert(87%) sepia(98%) saturate(4073%) hue-rotate(341deg) brightness(90%) contrast(100%)'}} />
<span className="smallMutedText">{strings.destroyed} </span>
<span className="smallBoldText">
{translateBuildings(entry.key.indexOf('goodguys') !== -1, entry.key)}{' '}
{(isRadiant(entry) && entry.key.indexOf('goodguys') !== -1) ||
(!isRadiant(entry) && entry.key.indexOf('badguys') !== -1)
? `(${strings.building_denied})`
: ''}
</span>
</>
);
}
if (entry.alt_key === 'CHAT_MESSAGE_AEGIS') {
return (
<>
<img
src="/assets/images/dota2/aegis_icon.png"
alt="Aegis of Immortality"
className="detailIcon"
/>
<span className="smallBoldText">{strings.CHAT_MESSAGE_AEGIS}</span>
</>
);
}
if (entry.alt_key === 'CHAT_MESSAGE_ROSHAN_KILL') {
return (
<>
<IconRoshan className="roshanIcon icon" />
<span className="smallBoldText">{strings.slain_roshan}</span>
</>
);
}
if (entry.alt_key === 'CHAT_MESSAGE_COURIER_LOST') {
const team =
entry.team === 2 ? strings.general_radiant : strings.general_dire;
return (
<>
<img src={sword} className="swordIcon icon" />
<span className="smallMutedText">{strings.killed}</span>
<img
src={`/assets/images/dota2/${
entry.team === 2 ? 'radiant' : 'dire'
}courier.png`}
alt="Courier"
className="detailIcon"
/>
<span className="smallBoldText">
{formatTemplateToString(strings.team_courier, {
team,
})}
</span>
</>
);
}
return null;
default:
return null;
}
}
const mapStateToProps = (state) => ({
strings: state.app.strings,
});
export default connect(mapStateToProps)(MatchLog);
| odota/web/src/components/Match/MatchLog.jsx/0 | {
"file_path": "odota/web/src/components/Match/MatchLog.jsx",
"repo_id": "odota",
"token_count": 8912
} | 235 |
import React from 'react';
import PropTypes from 'prop-types';
import ReactTooltip from 'react-tooltip';
import styled from 'styled-components';
import {
gameCoordToUV,
formatSeconds,
getWardSize
} from '../../../utility';
import PlayerThumb from '../PlayerThumb';
import DotaMap from '../../DotaMap';
import constants from '../../constants';
const Styled = styled.div`
.tooltipContainer {
display: flex;
align-items: center;
flex-direction: row;
padding: 10px;
margin: -8px -12px;
& > * {
margin: 0 5px;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
}
& > div {
margin: 0;
color: ${constants.colorMutedLight};
}
}
.radiantWardTooltip {
border-width: 2px !important;
border-color: ${constants.colorSuccess} !important;
}
.direWardTooltip {
border-width: 2px !important;
border-color: ${constants.colorDanger} !important;
}
div > img {
width: 18px;
}
`;
const wardStyle = (width, log) => {
const gamePos = gameCoordToUV(log.entered.x, log.entered.y);
const stroke = log.entered.player_slot < 5 ? constants.colorGreen : constants.colorRed;
let fill;
let strokeWidth;
const wardSize = getWardSize(log.type, width);
if (log.type === 'observer') {
fill = constants.colorYelorMuted;
strokeWidth = 2.5;
} else {
fill = constants.colorBlueMuted;
strokeWidth = 2;
}
return {
position: 'absolute',
width: wardSize,
height: wardSize,
top: ((width / 127) * gamePos.y) - (wardSize / 2),
left: ((width / 127) * gamePos.x) - (wardSize / 2),
background: fill,
borderRadius: '50%',
border: `${strokeWidth}px solid ${stroke}`,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
};
};
const wardIcon = (log) => {
const side = log.entered.player_slot < 5 ? 'goodguys' : 'badguys';
return `/assets/images/dota2/map/${side}_${log.type}.png`;
};
const WardTooltipEnter = ({ player, log, strings }) => (
<div className="tooltipContainer">
<PlayerThumb {...player} />
<div>{log.type === 'observer' ? strings.vision_placed_observer : strings.vision_placed_sentry}</div>
<div>{` ${formatSeconds(log.entered.time)}`}</div>
</div>
);
WardTooltipEnter.propTypes = {
player: PropTypes.shape({}),
log: PropTypes.shape({}),
strings: PropTypes.shape({}),
};
const WardTooltipLeft = ({ log, strings }) => {
let expired;
const age = log.left.time - log.entered.time;
if (log.type === 'observer') {
expired = age > 360;
} else {
expired = age > 240;
}
return (
<div className="tooltipContainer">
<div>{expired ? strings.vision_expired : strings.vision_destroyed}</div>
<div>{` ${formatSeconds(age)}`}</div>
</div>
);
};
WardTooltipLeft.propTypes = {
log: PropTypes.shape({}),
strings: PropTypes.shape({}),
};
const WardPin = ({
match, width, log, strings,
}) => {
const id = `ward-${log.entered.player_slot}-${log.entered.time}`;
const sideName = log.entered.player_slot < 5 ? 'radiant' : 'dire';
return (
<Styled>
<div
style={wardStyle(width, log)}
data-tip
data-for={id}
>
<img
src={wardIcon(log)}
alt={log.type === 'observer' ? 'O' : 'S'}
/>
</div>
<ReactTooltip
id={id}
effect="solid"
border
class={`${sideName}WardTooltip`}
>
<WardTooltipEnter player={match.players[log.player]} log={log} strings={strings} />
{log.left && <WardTooltipLeft log={log} strings={strings} />}
</ReactTooltip>
</Styled>
);
};
WardPin.propTypes = {
match: PropTypes.shape({}),
width: PropTypes.number,
log: PropTypes.shape({}),
strings: PropTypes.shape({}),
};
class VisionMap extends React.Component {
static propTypes = {
match: PropTypes.shape({
start_time: PropTypes.number,
}),
wards: PropTypes.arrayOf({}),
strings: PropTypes.shape({}),
}
shouldComponentUpdate(newProps) {
return newProps.wards.length !== this.props.wards.length;
}
render() {
const { strings } = this.props;
const width = 550;
return (
<div style={{ height: width }}>
<DotaMap
startTime={this.props.match.start_time}
maxWidth={width}
width={width}
>
{this.props.wards.map(w => <WardPin match={this.props.match} key={w.key} width={width} log={w} strings={strings} />)}
</DotaMap>
</div>
);
}
}
VisionMap.defaultProps = {
width: 400,
};
export default VisionMap;
| odota/web/src/components/Match/Vision/VisionMap.jsx/0 | {
"file_path": "odota/web/src/components/Match/Vision/VisionMap.jsx",
"repo_id": "odota",
"token_count": 1875
} | 236 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Box } from '@material-ui/core';
import FlatButton from 'material-ui/FlatButton';
import ActionUpdate from 'material-ui/svg-icons/navigation/refresh';
import styled from 'styled-components';
import { toggleShowForm as toggleShowFormAction } from '../../../actions/formActions';
import GamemodeToggle from '../../../components/GamemodeToggle';
import config from '../../../config';
const Styled = styled.div`
display: flex;
flex-direction: row;
flex-wrap: nowrap;
font-size: 14px;
@media only screen and (max-width: 660px) {
justify-content: center;
& a {
min-width: 50px !important;
}
& button {
min-width: 50px !important;
}
& * {
margin: auto !important;
}
& span {
margin: 0 !important;
}
}
`;
class PlayerButtons extends React.Component {
static propTypes = {
playerId: PropTypes.string,
strings: PropTypes.shape({}),
};
state = { disableRefresh: false };
render() {
const { playerId, strings } = this.props;
return (
<Styled>
<div data-hint={strings.app_refresh} data-hint-position="top">
<FlatButton
icon={<ActionUpdate />}
disabled={this.state.disableRefresh}
onClick={() => {
fetch(
`${config.VITE_API_HOST}/api/players/${playerId}/refresh`,
{ method: 'POST' },
);
this.setState({ disableRefresh: true });
}}
label={strings.app_refresh_label}
/>
</div>
<Box ml="16px">
<GamemodeToggle />
</Box>
</Styled>
);
}
}
const mapStateToProps = state => ({
showForm: state.app.form.show,
strings: state.app.strings,
});
const mapDispatchToProps = dispatch => ({
toggleShowForm: () => dispatch(toggleShowFormAction('tableFilter')),
});
export default connect(mapStateToProps, mapDispatchToProps)(PlayerButtons);
| odota/web/src/components/Player/Header/PlayerButtons.jsx/0 | {
"file_path": "odota/web/src/components/Player/Header/PlayerButtons.jsx",
"repo_id": "odota",
"token_count": 850
} | 237 |
import { transformations, displayHeroId } from '../../../../utility';
import matchesColumns from '../../../Match/matchColumns';
export default (strings, isShowItems) => ([{
displayName: strings.th_hero_id,
tooltip: strings.tooltip_hero_id,
field: 'hero_id',
displayFn: displayHeroId,
}, {
displayName: strings.th_result,
tooltip: strings.tooltip_result,
field: 'radiant_win',
sortFn: true,
displayFn: transformations.radiant_win_and_game_mode,
}, {
displayName: strings.filter_game_mode,
tooltip: strings.tooltip_game_mode,
field: 'game_mode',
sortFn: true,
displayFn: transformations.mode,
}, {
displayName: strings.th_duration,
tooltip: strings.tooltip_duration,
field: 'duration',
sortFn: true,
displayFn: transformations.duration,
}, {
displayName: strings.th_kills,
tooltip: strings.tooltip_kills,
field: 'kills',
sortFn: true,
displayFn: transformations.kda,
}, {
displayName: strings.th_deaths,
tooltip: strings.tooltip_deaths,
field: 'deaths',
sortFn: true,
}, {
displayName: strings.th_assists,
tooltip: strings.tooltip_assists,
field: 'assists',
sortFn: true,
}, ...isShowItems ? [{
displayName: strings.th_items,
tooltip: strings.tooltip_items,
field: 'items',
displayFn: matchesColumns(strings).itemsTd,
}] : [],
]);
| odota/web/src/components/Player/Pages/Matches/playerMatchesColumns.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Matches/playerMatchesColumns.jsx",
"repo_id": "odota",
"token_count": 463
} | 238 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getPlayerWordcloud } from '../../../../actions';
import Container from '../../../Container';
import Wordcloud from '../../../Wordcloud';
const getData = (props) => {
props.getPlayerWordcloud(props.playerId, props.location.search);
};
class RequestLayer extends React.Component {
static propTypes = {
playerId: PropTypes.string,
location: PropTypes.shape({
key: PropTypes.string,
}),
error: PropTypes.string,
loading: PropTypes.bool,
data: PropTypes.shape({}),
strings: PropTypes.shape({}),
}
componentDidMount() {
getData(this.props);
}
componentDidUpdate(prevProps) {
if (this.props.playerId !== prevProps.playerId || this.props.location.key !== prevProps.location.key) {
getData(this.props);
}
}
render() {
const {
error, loading, data, strings,
} = this.props;
return (
<div>
<Container title={strings.heading_wordcloud_said} error={error} loading={loading}>
<Wordcloud counts={data.my_word_counts} />
</Container>
<Container title={strings.heading_wordcloud_read} error={error} loading={loading}>
<Wordcloud counts={data.all_word_counts} />
</Container>
</div>
);
}
}
const mapStateToProps = state => ({
data: state.app.playerWordcloud.data,
loading: state.app.playerWordcloud.loading,
error: state.app.playerWordcloud.error,
strings: state.app.strings,
});
const mapDispatchToProps = dispatch => ({
getPlayerWordcloud: (playerId, options) => dispatch(getPlayerWordcloud(playerId, options)),
});
export default connect(mapStateToProps, mapDispatchToProps)(RequestLayer);
| odota/web/src/components/Player/Pages/Wordcloud/Wordcloud.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Wordcloud/Wordcloud.jsx",
"repo_id": "odota",
"token_count": 637
} | 239 |
import { inflictorWithValue } from '../Visualizations';
import { displayHeroId, formatSeconds, abbreviateNumber } from '../../utility';
const computeWinRate = row => (row.wins / row.games);
export const getTimeRange = (field, metadata) => {
let lower;
if (metadata.indexOf(field) !== 0) {
lower = metadata[metadata.indexOf(field) - 1];
} else {
lower = 0;
}
return `${formatSeconds(lower)} - ${formatSeconds(field)}`;
};
const getColumns = (f, metadata, strings) => {
const columns = {
itemTimings: [{
displayName: strings.filter_hero_id,
field: 'hero_id',
sortFn: true,
displayFn: displayHeroId,
}, {
displayName: strings.scenarios_time,
field: 'time',
sortFn: row => row.time,
displayFn: (row, col, field) => getTimeRange(field, metadata.timings),
}, {
displayName: strings.scenarios_item,
field: 'item',
sortFn: true,
displayFn: (row, col, field) => inflictorWithValue(field),
}, {
displayName: strings.heading_win_rate,
field: 'games',
sortFn: computeWinRate,
percentBarsWithValue: row => abbreviateNumber(Number(row.games)),
tooltip: strings.tooltip_winrate_samplesize,
}],
laneRoles: [{
displayName: strings.filter_hero_id,
field: 'hero_id',
sortFn: true,
displayFn: displayHeroId,
}, {
displayName: strings.heading_lane_role,
field: 'lane_role',
sortFn: true,
displayFn: (row, col, field) => strings[`lane_role_${field}`] || field,
}, {
displayName: strings.scenarios_game_duration,
field: 'time',
sortFn: true,
displayFn: (row, col, field) => getTimeRange(field, metadata.gameDurationBucket),
}, {
displayName: strings.heading_win_rate,
field: 'games',
sortFn: computeWinRate,
percentBarsWithValue: row => abbreviateNumber(Number(row.games)),
tooltip: strings.tooltip_winrate_samplesize,
}],
misc: [{
displayName: strings.scenarios_scenario,
field: 'scenario',
sortFn: true,
displayFn: (row, col, field) => strings[`scenarios_${field}`] || field,
}, {
displayName: strings.heading_win_rate,
field: 'games',
sortFn: computeWinRate,
percentBarsWithValue: row => abbreviateNumber(Number(row.games)),
tooltip: strings.tooltip_winrate_samplesize,
}],
};
return columns[f];
};
export default getColumns;
| odota/web/src/components/Scenarios/ScenariosColumns.jsx/0 | {
"file_path": "odota/web/src/components/Scenarios/ScenariosColumns.jsx",
"repo_id": "odota",
"token_count": 1009
} | 240 |
import React from 'react';
import PropTypes from 'prop-types';
import TableHeaderColumn from './TableHeaderColumn';
const TableHeader = ({
columns, sortState, sortField, sortClick, totalWidth, setHighlightedCol,
}) => (
<tr>
{columns.map((column, index) => (
<TableHeaderColumn
key={index}
column={column}
sortClick={sortClick}
sortField={sortField}
sortState={sortState}
totalWidth={totalWidth}
index={index}
setHighlightedCol={setHighlightedCol}
/>
))}
</tr>
);
TableHeader.propTypes = {
columns: PropTypes.arrayOf(PropTypes.shape({})),
sortState: PropTypes.string,
sortField: PropTypes.string,
sortClick: PropTypes.func,
totalWidth: PropTypes.number,
setHighlightedCol: PropTypes.func,
};
export default TableHeader;
| odota/web/src/components/Table/TableHeader.jsx/0 | {
"file_path": "odota/web/src/components/Table/TableHeader.jsx",
"repo_id": "odota",
"token_count": 313
} | 241 |
import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { abbreviateNumber } from '../../utility';
const Styled = styled.div`
font-size: 60%;
margin: 5px 19px 15px 5px;
position: relative;
display: inline-block;
:last-child {
margin-right: 5px !important;
}
.gauge {
display:inline-block;
position:relative;
width:10em;
height:5em;
overflow:hidden;
}
.gauge:before, .gauge:after, .meter {
position:absolute;
display:block;
content:"";
}
.gauge:before, .meter { width:10em; height:5em; }
.gauge:before { border-radius:5em 5em 0 0; background:#2a2a2a; }
.gauge:after {
position:absolute;
bottom:0;
left:2.5em;
width:5em;
height:2.5em;
background:rgb(33, 34, 44);
border-radius:2.5em 2.5em 0 0;
}
.meter {
top:100%;
transform-origin:center top;
border-radius:0 0 6em 6em;
transform:rotate(${props => props.percent}turn);
}
.percentage .meter { background:${props => props.meterColor}; }
.percentage-container {
position:absolute;
bottom:-.75em;
left:2.5em;
z-index:1;
width:5em;
height:2.5em;
overflow:hidden;
}
.percentage-indicator {
font:bold 1.25em/1.6 sans-serif;
color:${props => props.meterColor};
white-space:pre;
vertical-align:baseline;
user-select:none;
text-align: center;
}
.caption {
position: relative;
text-align: center;
color: rgb(179,179,179);
font-size: 12px;
bottom: 5px;
text-transform: uppercase;
width: 96px;
max-height: 16px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-top: 2px;
}
.win-number {
position:absolute;
left:0px;
text-align: center;
color: rgb(144, 144, 144);
font-family: Tahoma;
width: 24px;
::before {
position: absolute;
bottom: 1.8em;
left: 8px;
content: "W";
color: white;
text-shadow: 1px 1px black;
}
}
.loss-number {
position:absolute;
right:0px;
text-align: center;
color: rgb(144, 144, 144);
font-family: Tahoma;
width: 24px;
::before {
position: absolute;
bottom: 1.8em;
right: 8px;
content: "L";
color: white;
text-shadow: 1px 1px black;
}
}
`;
const computeMeterPercent = value => 0.005 * value;
const computeMeterColor = (value) => {
if (value < 45) {
return 'rgb(179,132,91)';
} else if (value < 50) {
return 'rgb(156,148,96)';
} else if (value < 53) {
return 'rgb(140,159,99)';
}
return 'rgb(117,176,103)';
};
const GaugeChart = ({ number, percent, caption }) => (
<Styled className="gauge-chart" percent={computeMeterPercent(percent)} meterColor={computeMeterColor(percent)}>
<div className="caption">{caption}</div>
<div className="gauge percentage">
<div className="meter" />
<div className="percentage-container">
<div className="percentage-indicator">
{`${Math.round(percent * 10) / 10}%`}
</div>
</div>
</div>
<div className="win-number">{abbreviateNumber(Math.round((number / 100) * percent))}</div>
<div className="loss-number">{abbreviateNumber(Math.round((number / 100) * (100 - percent)))}</div>
</Styled>
);
GaugeChart.propTypes = {
percent: PropTypes.number,
number: PropTypes.number,
caption: PropTypes.string,
};
export default GaugeChart;
| odota/web/src/components/Visualizations/GaugeChart.jsx/0 | {
"file_path": "odota/web/src/components/Visualizations/GaugeChart.jsx",
"repo_id": "odota",
"token_count": 1556
} | 242 |
export { default as TablePercent } from './Table/Percent';
export { default as TableSparkline } from './Table/Sparkline';
export { default as KDA } from './Table/KDA';
export { default as TableHeroImage } from './Table/HeroImage';
export { default as FromNowTooltip } from './FromNowTooltip';
export { default as inflictorWithValue } from './inflictorWithValue';
export * from './Graph';
| odota/web/src/components/Visualizations/index.js/0 | {
"file_path": "odota/web/src/components/Visualizations/index.js",
"repo_id": "odota",
"token_count": 112
} | 243 |
{
"yes": "sí",
"no": "no",
"abbr_thousand": "ok",
"abbr_million": "m",
"abbr_billion": "b",
"abbr_trillion": "t",
"abbr_quadrillion": "q",
"abbr_not_available": "N/A",
"abbr_pick": "P",
"abbr_win": "W",
"abbr_number": "No.",
"analysis_eff": "Eficiencia en línea",
"analysis_farm_drought": "Menor GPM en un intervalo de 5 minutos",
"analysis_skillshot": "Skillshots acertados",
"analysis_late_courier": "Retraso en mejora del mensajero",
"analysis_wards": "Guardianes colocados",
"analysis_roshan": "Roshans asesinados",
"analysis_rune_control": "Runas obtenidas",
"analysis_unused_item": "Objetos activos no usados",
"analysis_expected": "de",
"announce_dismiss": "Despedir",
"announce_github_more": "Ver en Github",
"api_meta_description": "The OpenDota API gives you access to all the advanced Dota 2 stats offered by the OpenDota platform. Access performance graphs, heatmaps, wordclouds, and more. Get started for free.",
"api_title": "The OpenDota API",
"api_subtitle": "Build on top of the OpenDota platform. Bring advanced stats to your app and deep insights to your users.",
"api_details_free_tier": "Free Tier",
"api_details_premium_tier": "Premium Tier",
"api_details_price": "Price",
"api_details_price_free": "Free",
"api_details_price_prem": "$price per $unit calls",
"api_details_key_required": "Key Required?",
"api_details_key_required_free": "No",
"api_details_key_required_prem": "Yes -- requires payment method",
"api_details_call_limit": "Call Limit",
"api_details_call_limit_free": "$limit per month",
"api_details_call_limit_prem": "Unlimited",
"api_details_rate_limit": "Rate Limit",
"api_details_rate_limit_val": "$num calls per minute",
"api_details_support": "Support",
"api_details_support_free": "Community support via Discord group",
"api_details_support_prem": "Priority support from core developers",
"api_get_key": "Get my key",
"api_docs": "Read the docs",
"api_header_details": "Details",
"api_charging": "You're charged $cost per call, rounded up to the nearest cent.",
"api_credit_required": "Getting an API key requires a linked payment method. We'll automatically charge the card at the beginning of the month for any fees owed.",
"api_failure": "500 errors don't count as usage, since that means we messed up!",
"api_error": "There was an error with the request. Please try again. If it continues, contact us at support@opendota.com.",
"api_login": "Login to access API Key",
"api_update_billing": "Update billing method",
"api_delete": "Delete key",
"api_key_usage": "To use your key, add $param as a query parameter to your API request:",
"api_billing_cycle": "The current billing cycle ends on $date.",
"api_billed_to": "We'll automatically bill the $brand ending in $last4.",
"api_support": "Need support? Email $email.",
"api_header_usage": "Your Usage",
"api_usage_calls": "# API calls",
"api_usage_fees": "Estimated Fees",
"api_month": "Month",
"api_header_key": "Your Key",
"api_header_table": "Get started for free. Keep going at a ridiculously low price.",
"app_name": "OpenDota",
"app_language": "Idioma",
"app_localization": "Localización",
"app_description": "Plataforma de datos de código abierto para Dota 2",
"app_about": "Acerca de",
"app_privacy_terms": "Términos y privacidad",
"app_api_docs": "Documentación de la API",
"app_blog": "Blog",
"app_translate": "Traducir",
"app_donate": "Donate",
"app_gravitech": "A Gravitech LLC Site",
"app_powered_by": "funciona con",
"app_donation_goal": "Meta de Donación Mensual",
"app_sponsorship": "Tu patrocinio ayuda a mantener el servicio gratis para todo el mundo.",
"app_twitter": "Seguir en Twitter",
"app_github": "Código fuente en GitHub",
"app_discord": "Chat en Discord",
"app_steam_profile": "Perfil de Steam",
"app_confirmed_as": "Confirmado como",
"app_untracked": "Este usuario no ha visitado la web recientemente, y sus repeticiones de nuevas partidas no serán analizadas automáticamente.",
"app_tracked": "Este usuario ha visitado la web recientemente, y sus repeticiones de nuevas partidas serán analizadas automáticamente.",
"app_cheese_bought": "Queso comprado",
"app_contributor": "This user has contributed to the development of the OpenDota project",
"app_dotacoach": "Pregunta a un Entrenador",
"app_pvgna": "Find a Guide",
"app_pvgna_alt": "Find a Dota 2 Guide on Pvgna",
"app_rivalry": "Bet on Pro Matches",
"app_rivalry_team": "Bet on {0} Matches",
"app_refresh": "Actualizar Historial de Partidas: Añade a la cola una búsqueda para encontrar partidas que faltan debido a la configuración de privacidad",
"app_refresh_label": "Refresh",
"app_login": "Iniciar sesión",
"app_logout": "Cerrar sesión",
"app_results": "result(s)",
"app_report_bug": "Report Bug",
"app_pro_players": "Jugadores profesionales",
"app_public_players": "Public Players",
"app_my_profile": "My Profile",
"barracks_value_1": "Dire Bot Melee",
"barracks_value_2": "Dire Bot Ranged",
"barracks_value_4": "Dire Mid Melee",
"barracks_value_8": "Dire Mid Ranged",
"barracks_value_16": "Dire Top Melee",
"barracks_value_32": "Dire Top Ranged",
"barracks_value_64": "Radiant Bot Melee",
"barracks_value_128": "Radiant Bot Ranged",
"barracks_value_256": "Radiant Mid Melee",
"barracks_value_512": "Radiant Mid Ranged",
"barracks_value_1024": "Radiant Top Melee",
"barracks_value_2048": "Radiant Top Ranged",
"benchmarks_description": "{0} {1} is equal or higher than {2}% of recent performances on this hero",
"fantasy_description": "{0} for {1} points",
"building_melee_rax": "Barracones de Cuerpo a Cuerpo",
"building_range_rax": "Barracones a Distancia",
"building_lasthit": "obtuviste el último golpe",
"building_damage": "daño recibido",
"building_hint": "Los iconos en el mapa tienen información adicional",
"building_denied": "denegado",
"building_ancient": "Ancient",
"CHAT_MESSAGE_TOWER_KILL": "Torre",
"CHAT_MESSAGE_BARRACKS_KILL": "Barracones",
"CHAT_MESSAGE_ROSHAN_KILL": "Roshan",
"CHAT_MESSAGE_AEGIS": "Picked up the Aegis",
"CHAT_MESSAGE_FIRSTBLOOD": "Primera sangre",
"CHAT_MESSAGE_TOWER_DENY": "Tower Deny",
"CHAT_MESSAGE_AEGIS_STOLEN": "Stole the Aegis",
"CHAT_MESSAGE_DENIED_AEGIS": "Denied the Aegis",
"distributions_heading_ranks": "Rank Tier Distribution",
"distributions_heading_mmr": "Distribución de MMR Individual",
"distributions_heading_country_mmr": "Media de MMR Individual por País",
"distributions_tab_ranks": "Rank Tiers",
"distributions_tab_mmr": "MMR Individual",
"distributions_tab_country_mmr": "MMR Individual por País",
"distributions_warning_1": "Este conjunto de datos está limitado a jugadores que tienen expuesto su MMR en su perfil y comparten los datos de sus partidas de forma pública.",
"distributions_warning_2": "Los jugadores no tienen que registrarse, pero debido a que los datos provienen de los que deciden compartirlos explícitamente, las medias son probablemente más altas de lo esperado.",
"error": "Error",
"error_message": "¡Ups! Algo ha fallado.",
"error_four_oh_four_message": "La página que estás buscando no se ha encontrado.",
"explorer_title": "Data Explorer",
"explorer_subtitle": "Professional Dota 2 Stats",
"explorer_description": "Run advanced queries on professional matches (excludes amateur leagues)",
"explorer_schema": "Schema",
"explorer_results": "Results",
"explorer_num_rows": "row(s)",
"explorer_select": "Select",
"explorer_group_by": "Group By",
"explorer_hero": "Héroe",
"explorer_patch": "Parche",
"explorer_min_patch": "Min Patch",
"explorer_max_patch": "Max Patch",
"explorer_min_mmr": "Min MMR",
"explorer_max_mmr": "Max MMR",
"explorer_min_rank_tier": "Min Tier",
"explorer_max_rank_tier": "Max Tier",
"explorer_player": "Jugador",
"explorer_league": "League",
"explorer_player_purchased": "Player Purchased",
"explorer_duration": "Duración",
"explorer_min_duration": "Min Duration",
"explorer_max_duration": "Max Duration",
"explorer_timing": "Timing",
"explorer_uses": "Uses",
"explorer_kill": "Kill Time",
"explorer_side": "Side",
"explorer_toggle_sql": "Toggle SQL",
"explorer_team": "Current Team",
"explorer_lane_role": "Línea",
"explorer_min_date": "Min Date",
"explorer_max_date": "Max Date",
"explorer_hero_combos": "Hero Combos",
"explorer_hero_player": "Hero-Player",
"explorer_player_player": "Player-Player",
"explorer_sql": "SQL",
"explorer_postgresql_function": "PostgreSQL Function",
"explorer_table": "Table",
"explorer_column": "Column",
"explorer_query_button": "Table",
"explorer_cancel_button": "Cancel",
"explorer_table_button": "Table",
"explorer_api_button": "API",
"explorer_json_button": "JSON",
"explorer_csv_button": "CSV",
"explorer_donut_button": "Donut",
"explorer_bar_button": "Bar",
"explorer_timeseries_button": "Timeseries",
"explorer_chart_unavailable": "Chart not available, try adding a GROUP BY",
"explorer_value": "Value",
"explorer_category": "Categoría",
"explorer_region": "Región",
"explorer_picks_bans": "Picks/Bans",
"explorer_counter_picks_bans": "Counter Picks/Bans",
"explorer_organization": "Organization",
"explorer_order": "Order",
"explorer_asc": "Ascending",
"explorer_desc": "Descending",
"explorer_tier": "Tier",
"explorer_having": "At Least This Many Matches",
"explorer_limit": "Limit",
"explorer_match": "Match",
"explorer_is_ti_team": "Is TI{number} Team",
"explorer_mega_comeback": "Won Against Mega Creeps",
"explorer_max_gold_adv": "Max Gold Advantage",
"explorer_min_gold_adv": "Min Gold Advantage",
"farm_heroes": "Heroes asesinados",
"farm_creeps": "Creeps de linea asesinados",
"farm_neutrals": "Creeps neutrales asesinados (incluye Ancients)",
"farm_ancients": "Creeps ancestrales asesinados",
"farm_towers": "Torres destruidas",
"farm_couriers": "Mensajeros asesinados",
"farm_observers": "Observadores destruidos",
"farm_sentries": "Centinelas destruidos",
"farm_roshan": "Roshans asesinados",
"farm_necronomicon": "Unidades del Necronomicon asesinadas",
"filter_button_text_open": "Filter",
"filter_button_text_close": "Close",
"filter_hero_id": "Héroe",
"filter_is_radiant": "Side",
"filter_win": "Resultado",
"filter_lane_role": "Línea",
"filter_patch": "Parche",
"filter_game_mode": "Modo de juego",
"filter_lobby_type": "Tipo de sala",
"filter_date": "Fecha",
"filter_region": "Región",
"filter_with_hero_id": "Héroes aliados",
"filter_against_hero_id": "Héroes enemigos",
"filter_included_account_id": "Included Account ID",
"filter_excluded_account_id": "Excluded Account ID",
"filter_significant": "Insignificant",
"filter_significant_include": "Include",
"filter_last_week": "Last week",
"filter_last_month": "Last month",
"filter_last_3_months": "Last 3 months",
"filter_last_6_months": "Last 6 months",
"filter_error": "Please select an item from the dropdown",
"filter_party_size": "Party Size",
"game_mode_0": "Desconocido",
"game_mode_1": "Elección libre",
"game_mode_2": "Modo capitán",
"game_mode_3": "Selección Aleatoria",
"game_mode_4": "Selección simple",
"game_mode_5": "Todos aleatorio",
"game_mode_6": "Intro",
"game_mode_7": "Despertar Dire",
"game_mode_8": "Modo capitán inverso",
"game_mode_9": "La Greevilación",
"game_mode_10": "Tutorial",
"game_mode_11": "Solo medio",
"game_mode_12": "Menos Jugados",
"game_mode_13": "Selección Limitada",
"game_mode_14": "Compendio",
"game_mode_15": "Personalizado",
"game_mode_16": "Selección con capitán",
"game_mode_17": "Selección equilibrada",
"game_mode_18": "Selección de habilidades",
"game_mode_19": "Evento",
"game_mode_20": "All Random Deathmatch",
"game_mode_21": "1v1 Solo Mid",
"game_mode_22": "All Draft",
"game_mode_23": "Turbo",
"game_mode_24": "Mutation",
"general_unknown": "Desconocido",
"general_no_hero": "Ningún héroe",
"general_anonymous": "Anónimo",
"general_radiant": "Radiant",
"general_dire": "Dire",
"general_standard_deviation": "Desviación estándar",
"general_matches": "Partidas",
"general_league": "League",
"general_randomed": "Randomed",
"general_repicked": "Repicked",
"general_predicted_victory": "Predicted Victory",
"general_show": "Show",
"general_hide": "Hide",
"gold_reasons_0": "Otros",
"gold_reasons_1": "Muerte",
"gold_reasons_2": "Buyback",
"NULL_gold_reasons_5": "Abandono",
"NULL_gold_reasons_6": "Vender",
"gold_reasons_11": "Edificio",
"gold_reasons_12": "Héroe",
"gold_reasons_13": "Creep",
"gold_reasons_14": "Roshan",
"NULL_gold_reasons_15": "Mensajero",
"header_request": "Solicitar",
"header_distributions": "Ranks",
"header_heroes": "Héroes",
"header_blog": "Blog",
"header_ingame": "En la partida",
"header_matches": "Partidas",
"header_records": "Récords",
"header_explorer": "Explorer",
"header_teams": "Teams",
"header_meta": "Meta",
"header_scenarios": "Scenarios",
"header_api": "API",
"heading_lhten": "Last Hits @ 10",
"heading_lhtwenty": "Last Hits @ 20",
"heading_lhthirty": "Last Hits @ 30",
"heading_lhforty": "Last Hits @ 40",
"heading_lhfifty": "Last Hits @ 50",
"heading_courier": "Mensajero",
"heading_roshan": "Roshan",
"heading_tower": "Torre",
"heading_barracks": "Barracones",
"heading_shrine": "Shrine",
"heading_item_purchased": "Item Purchased",
"heading_ability_used": "Ability Used",
"heading_item_used": "Item Used",
"heading_damage_inflictor": "Damage Inflictor",
"heading_damage_inflictor_received": "Damage Inflictor Received",
"heading_damage_instances": "Damage Instances",
"heading_camps_stacked": "Camps Stacked",
"heading_matches": "Partidas Recientes",
"heading_heroes": "Héroes Jugados",
"heading_mmr": "Historial de MMR",
"heading_peers": "Jugadores con los que has jugado",
"heading_pros": "Pros con los que has jugado",
"heading_rankings": "Hero Rankings",
"heading_all_matches": "In All Matches",
"heading_parsed_matches": "In Parsed Matches",
"heading_records": "Récords",
"heading_teamfights": "Peleas de equipo",
"heading_graph_difference": "Ventaja Radiant",
"heading_graph_gold": "Oro",
"heading_graph_xp": "Experiencia",
"heading_graph_lh": "Últimos golpes",
"heading_overview": "Resumen",
"heading_ability_draft": "Abilities Drafted",
"heading_buildings": "Mapa de edificios",
"heading_benchmarks": "Benchmarks",
"heading_laning": "Laning",
"heading_overall": "En general",
"heading_kills": "Asesinatos",
"heading_deaths": "Muertes",
"heading_assists": "Asistencias",
"heading_damage": "Daño",
"heading_unit_kills": "Asesinatos de Unidades",
"heading_last_hits": "Últimos golpes",
"heading_gold_reasons": "Fuentes de Oro",
"heading_xp_reasons": "Fuentes de XP",
"heading_performances": "Rendimientos",
"heading_support": "Apoyo",
"heading_purchase_log": "Registro de Compra",
"heading_casts": "Usos",
"heading_objective_damage": "Daño a objetivos",
"heading_runes": "Runas",
"heading_vision": "Visión",
"heading_actions": "Acciones",
"heading_analysis": "Análisis",
"heading_cosmetics": "Cosméticos",
"heading_log": "Registro",
"heading_chat": "Chat",
"heading_story": "Story",
"heading_fantasy": "Fantasy",
"heading_wardmap": "Mapa de guardianes",
"heading_wordcloud": "Nube de palabras",
"heading_wordcloud_said": "Palabras dichas (chat global)",
"heading_wordcloud_read": "Palabras leídas (chat global)",
"heading_kda": "KMA",
"heading_gold_per_min": "Oro por minuto",
"heading_xp_per_min": "Experiencia por minuto",
"heading_denies": "Denegaciones",
"heading_lane_efficiency_pct": "EFF@10",
"heading_duration": "Duración",
"heading_level": "Nivel",
"heading_hero_damage": "Daño a Héroes",
"heading_tower_damage": "Daño a Torres",
"heading_hero_healing": "Hero Healing",
"heading_tower_kills": "Tower Kills",
"heading_stuns": "Stuns",
"heading_neutral_kills": "Neutral Kills",
"heading_courier_kills": "Courier Kills",
"heading_purchase_tpscroll": "TPs Purchased",
"heading_purchase_ward_observer": "Observadores comprados",
"heading_purchase_ward_sentry": "Centinelas comprados",
"heading_purchase_gem": "Gemas compradas",
"heading_purchase_rapier": "Estoques divinos comprados",
"heading_pings": "Map Pings",
"heading_throw": "Throw",
"heading_comeback": "Comeback",
"heading_stomp": "Stomp",
"heading_loss": "Derrota",
"heading_actions_per_min": "Acciones por minuto",
"heading_leaver_status": "Leaver Status",
"heading_game_mode": "Modo de juego",
"heading_lobby_type": "Tipo de sala",
"heading_lane_role": "Lane Role",
"heading_region": "Región",
"heading_patch": "Parche",
"heading_win_rate": "Win Rate",
"heading_is_radiant": "Side",
"heading_avg_and_max": "Averages/Maximums",
"heading_total_matches": "Total Matches",
"heading_median": "Median",
"heading_distinct_heroes": "Distinct Heroes",
"heading_team_elo_rankings": "Team Elo Rankings",
"heading_ability_build": "Ability Build",
"heading_attack": "Base attack",
"heading_attack_range": "Attack range",
"heading_attack_speed": "Attack speed",
"heading_projectile_speed": "Projectile speed",
"heading_base_health": "Health",
"heading_base_health_regen": "Health regen",
"heading_base_mana": "Mana",
"heading_base_mana_regen": "Mana regen",
"heading_base_armor": "Base armor",
"heading_base_mr": "Magic resistance",
"heading_move_speed": "Move speed",
"heading_turn_rate": "Turn speed",
"heading_legs": "Number of legs",
"heading_cm_enabled": "CM enabled",
"heading_current_players": "Current Players",
"heading_former_players": "Former Players",
"heading_damage_dealt": "Damage Dealt",
"heading_damage_received": "Damage Received",
"show_details": "Show details",
"hide_details": "Hide details",
"subheading_avg_and_max": "in last {0} displayed matches",
"subheading_records": "In ranked matches. Records reset monthly.",
"subheading_team_elo_rankings": "k=32, init=1000",
"hero_pro_tab": "Professional",
"hero_public_tab": "Public",
"hero_pro_heading": "Heroes in Professional Matches",
"hero_public_heading": "Heroes in Public Matches (Sampled)",
"hero_this_month": "matches in last 30 days",
"hero_pick_ban_rate": "Pro P+B%",
"hero_pick_rate": "Pro Pick%",
"hero_ban_rate": "Pro Ban%",
"hero_win_rate": "Pro Win%",
"hero_5000_pick_rate": ">5K P%",
"hero_5000_win_rate": ">5K W%",
"hero_4000_pick_rate": "4K P%",
"hero_4000_win_rate": "4K W%",
"hero_3000_pick_rate": "3K P%",
"hero_3000_win_rate": "3K W%",
"hero_2000_pick_rate": "2K P%",
"hero_2000_win_rate": "2K W%",
"hero_1000_pick_rate": "<2K P%",
"hero_1000_win_rate": "<2K W%",
"home_login": "Iniciar sesión",
"home_login_desc": "para análisis automático de repeticiones",
"home_parse": "Solicitar",
"home_parse_desc": "una partida específica",
"home_why": "",
"home_opensource_title": "Código Abierto",
"home_opensource_desc": "Todo el proyecto es de código abierto y está disponible para ser modificado y mejorado por los contribuidores.",
"home_indepth_title": "Datos en profundidad",
"home_indepth_desc": "Analizar repeticiones proporciona datos de partidas altamente detallados.",
"home_free_title": "Gratis",
"home_free_desc": "Los servidores son financiados por patrocinadores y el código es mantenido por voluntarios, así que el servicio ofrecido es gratuito.",
"home_background_by": "Imagen de fondo por",
"home_sponsored_by": "Patrocinado por",
"home_become_sponsor": "Sé un Patrocinador",
"items_name": "Nombre del objeto",
"items_built": "Número de veces que este objeto se ha fabricado",
"items_matches": "Número de partidas donde este objeto se ha fabricado",
"items_uses": "Número de veces que este objeto se ha usado",
"items_uses_per_match": "Media de veces que este objeto se ha usado en partidas donde se ha fabricado",
"items_timing": "Media de tiempo que tarda en construir este objeto",
"items_build_pct": "Porcentaje de partidas donde este objeto se ha fabricado",
"items_win_pct": "Porcentaje de partidas ganadas donde este objeto se ha fabricado",
"lane_role_0": "Desconocido",
"lane_role_1": "Segura",
"lane_role_2": "Medio",
"lane_role_3": "Off",
"lane_role_4": "Jungla",
"lane_pos_1": "Bot",
"lane_pos_2": "Medio",
"lane_pos_3": "Top",
"lane_pos_4": "Radiant Jungle",
"lane_pos_5": "Dire Jungle",
"leaver_status_0": "Nignuno",
"leaver_status_1": "Left Safely",
"leaver_status_2": "Abandoned (DC)",
"leaver_status_3": "Abandonado",
"leaver_status_4": "Abandoned (AFK)",
"leaver_status_5": "Never Connected",
"leaver_status_6": "Never Connected (Timeout)",
"lobby_type_0": "Normal",
"lobby_type_1": "Práctica",
"lobby_type_2": "Torneo",
"lobby_type_3": "Tutorial",
"lobby_type_4": "Co-Op Bots",
"lobby_type_5": "Ranked Team MM (Legacy)",
"lobby_type_6": "Ranked Solo MM (Legacy)",
"lobby_type_7": "Clasificatoria",
"lobby_type_8": "1v1 medio",
"lobby_type_9": "Battle Cup",
"match_radiant_win": "Victoria Radiant",
"match_dire_win": "Victoria Dire",
"match_team_win": "Victoria",
"match_ended": "Finalizada",
"match_id": "ID de la Partida",
"match_region": "Región",
"match_avg_mmr": "Media de MMR",
"match_button_parse": "Analizar",
"match_button_reparse": "Volver a analizar",
"match_button_replay": "Repetición",
"match_button_video": "Obtener vídeo",
"match_first_tower": "Primera torre",
"match_first_barracks": "Primeros barracones",
"match_pick": "Pick",
"match_ban": "Ban",
"matches_highest_mmr": "Top Public",
"matches_lowest_mmr": "Low MMR",
"meta_title": "Meta",
"meta_description": "Run advanced queries on data from sampled public matches in previous 24h",
"mmr_not_up_to_date": "Why is the MMR not up to date?",
"npc_dota_beastmaster_boar_#": "Jabalí",
"npc_dota_lesser_eidolon": "Eidolon Menor",
"npc_dota_eidolon": "Eidolon",
"npc_dota_greater_eidolon": "Gran Eidolon",
"npc_dota_dire_eidolon": "Eidolon Dire",
"npc_dota_invoker_forged_spirit": "Espíritu Forjado",
"npc_dota_furion_treant_large": "Gran Ent",
"npc_dota_beastmaster_hawk_#": "Halcón",
"npc_dota_lycan_wolf#": "Lobo Licántropo",
"npc_dota_neutral_mud_golem_split_doom": "Fragmento de Doom",
"npc_dota_broodmother_spiderling": "Cría de Araña",
"npc_dota_broodmother_spiderite": "Arañita",
"npc_dota_furion_treant": "Ent",
"npc_dota_unit_undying_zombie": "Zombi",
"npc_dota_unit_undying_zombie_torso": "Zombi",
"npc_dota_brewmaster_earth_#": "Earth Brewling",
"npc_dota_brewmaster_fire_#": "Fire Brewling",
"npc_dota_lone_druid_bear#": "Espíritu Oso",
"npc_dota_brewmaster_storm_#": "Storm Brewling",
"npc_dota_visage_familiar#": "Familiar",
"npc_dota_warlock_golem_#": "Gólem de Warlock",
"npc_dota_warlock_golem_scepter_#": "Gólem de Warlock",
"npc_dota_witch_doctor_death_ward": "Guardián de la muerte",
"npc_dota_tusk_frozen_sigil#": "Sello helado",
"npc_dota_juggernaut_healing_ward": "Guardián sanador",
"npc_dota_techies_land_mine": "Mina terrestre",
"npc_dota_shadow_shaman_ward_#": "Guardián Serpiente",
"npc_dota_pugna_nether_ward_#": "Guardián Abisal",
"npc_dota_venomancer_plague_ward_#": "Guardián de la Plaga",
"npc_dota_rattletrap_cog": "Engranaje Electrificado",
"npc_dota_templar_assassin_psionic_trap": "Trampa Psiónica",
"npc_dota_techies_remote_mine": "Mina remota",
"npc_dota_techies_stasis_trap": "Trampa Estática",
"npc_dota_phoenix_sun": "Supernova",
"npc_dota_unit_tombstone#": "Lápida",
"npc_dota_treant_eyes": "Eyes in the Forest",
"npc_dota_gyrocopter_homing_missile": "Misil Buscador",
"npc_dota_weaver_swarm": "El Enjambre",
"objective_tower1_top": "T1",
"objective_tower1_mid": "M1",
"objective_tower1_bot": "B1",
"objective_tower2_top": "T2",
"objective_tower2_mid": "M2",
"objective_tower2_bot": "B2",
"objective_tower3_top": "T3",
"objective_tower3_mid": "M3",
"objective_tower3_bot": "B3",
"objective_rax_top": "RaxT",
"objective_rax_mid": "RaxM",
"objective_rax_bot": "RaxB",
"objective_tower4": "T4",
"objective_fort": "Anc",
"objective_shrine": "Shr",
"objective_roshan": "Rosh",
"tooltip_objective_tower1_top": "Damage dealt to top Tier 1 tower",
"tooltip_objective_tower1_mid": "Damage dealt to middle Tier 1 tower",
"tooltip_objective_tower1_bot": "Damage dealt to bottom Tier 1 tower",
"tooltip_objective_tower2_top": "Damage dealt to top Tier 2 tower",
"tooltip_objective_tower2_mid": "Damage dealt to middle Tier 2 tower",
"tooltip_objective_tower2_bot": "Damage dealt to bottom Tier 2 tower",
"tooltip_objective_tower3_top": "Damage dealt to top Tier 3 tower",
"tooltip_objective_tower3_mid": "Damage dealt to middle Tier 3 tower",
"tooltip_objective_tower3_bot": "Damage dealt to bottom Tier 3 tower",
"tooltip_objective_rax_top": "Damage dealt to top barracks",
"tooltip_objective_rax_mid": "Damage dealt to middle barracks",
"tooltip_objective_rax_bot": "Damage dealt to bottom barracks",
"tooltip_objective_tower4": "Damage dealt to middle Tier 4 towers",
"tooltip_objective_fort": "Damage dealt to ancient",
"tooltip_objective_shrine": "Damage dealt to shrines",
"tooltip_objective_roshan": "Damage dealt to Roshan",
"pagination_first": "Primero \t",
"pagination_last": "Último",
"pagination_of": "de",
"peers_none": "This player has no peers.",
"rank_tier_0": "Uncalibrated",
"rank_tier_1": "Herald",
"rank_tier_2": "Guardian",
"rank_tier_3": "Crusader",
"rank_tier_4": "Archon",
"rank_tier_5": "Legend",
"rank_tier_6": "Ancient",
"rank_tier_7": "Divine",
"rank_tier_8": "Immortal",
"request_title": "Request a Parse",
"request_match_id": "ID de la Partida",
"request_invalid_match_id": "Invalid Match ID",
"request_error": "Failed to get match data",
"request_submit": "Submit",
"roaming": "Roaming",
"rune_0": "Doble Daño",
"rune_1": "Velocidad",
"rune_2": "Ilusión",
"rune_3": "Invisibilidad",
"rune_4": "Regeneración",
"rune_5": "Recompensa",
"rune_6": "Arcana",
"rune_7": "Agua",
"search_title": "Search by player name, match ID...",
"skill_0": "Unknown Skill",
"skill_1": "Normal Skill",
"skill_2": "High Skill",
"skill_3": "Very High Skill",
"story_invalid_template": "(invalid template)",
"story_error": "An error occured while compiling the story for this match",
"story_intro": "on {date}, two teams decided to play {game_mode_article} {game_mode} game of Dota 2 in {region}. Little did they know, the game would last {duration_in_words}",
"story_invalid_hero": "Unrecognized Hero",
"story_fullstop": ".",
"story_list_2": "{1} and {2}",
"story_list_3": "{1}, {2}, and {3}",
"story_list_n": "{i}, {rest}",
"story_firstblood": "first blood was drawn when {killer} killed {victim} at {time}",
"story_chatmessage": "\"{message}\", {player} {said_verb}",
"story_teamfight": "{winning_team} won a teamfight by trading {win_dead} for {lose_dead}, resulting in a net worth increase of {net_change}",
"story_teamfight_none_dead": "{winning_team} won a teamfight by killing {lose_dead} without losing any heroes, resulting in a net worth increase of {net_change}",
"story_teamfight_none_dead_loss": "{winning_team} somehow won a teamfight without killing anyone, and losing {win_dead}, resulting in a net worth increase of {net_change}",
"story_lane_intro": "At 10 minutes into the game, the lanes had gone as follows:",
"story_lane_radiant_win": "{radiant_players} won {lane} Lane against {dire_players}",
"story_lane_radiant_lose": "{radiant_players} lost {lane} Lane to {dire_players}",
"story_lane_draw": "{radiant_players} drew even in {lane} Lane with {dire_players}",
"story_lane_free": "{players} had a free {lane} lane",
"story_lane_empty": "there was nobody in {lane} lane",
"story_lane_jungle": "{players} farmed the jungle",
"story_lane_roam": "{players} roamed",
"story_roshan": "{team} killed Roshan",
"story_aegis": "{player} {action} the aegis",
"story_gameover": "The match ended in a {winning_team} victory at {duration} with a score of {radiant_score} to {dire_score}",
"story_during_teamfight": "during the fight, {events}",
"story_after_teamfight": "after the fight, {events}",
"story_expensive_item": "at {time}, {player} purchased {item}, which was the first item in the game with a price greater than {price_limit}",
"story_building_destroy": "{building} was destroyed",
"story_building_destroy_player": "{player} destroyed {building}",
"story_building_deny_player": "{player} denied {building}",
"story_building_list_destroy": "{buildings} were destroyed",
"story_courier_kill": "{team}'s courier was killed",
"story_tower": "{team}'s Tier {tier} {lane} tower",
"story_tower_simple": "one of {team}'s towers",
"story_towers_n": "{n} of {team}'s Towers",
"story_barracks": "{team}'s {lane} {rax_type}",
"story_barracks_both": "both of {team}'s {lane} Barracks",
"story_time_marker": "{minutes} Minutes In",
"story_item_purchase": "{player} purchased a {item} at {time}",
"story_predicted_victory": "{players} predicted {team} would win",
"story_predicted_victory_empty": "No one",
"story_networth_diff": "{percent}% / {gold} Diff",
"story_gold": "gold",
"story_chat_asked": "asked",
"story_chat_said": "said",
"tab_overview": "Resumen",
"tab_matches": "Partidas",
"tab_heroes": "Héroes",
"tab_peers": "Compañeros",
"tab_pros": "Pros",
"tab_activity": "Actividad",
"tab_records": "Récords",
"tab_totals": "Totals",
"tab_counts": "Cuentas",
"tab_histograms": "Histogramas",
"tab_trends": "Tendencias",
"tab_items": "Objetos",
"tab_wardmap": "Mapa de guardianes",
"tab_wordcloud": "Nube de palabras",
"tab_mmr": "MMR",
"tab_rankings": "Clasificaciones",
"tab_drafts": "Draft",
"tab_benchmarks": "Benchmarks",
"tab_performances": "Rendimientos",
"tab_damage": "Daño",
"tab_purchases": "Purchases",
"tab_farm": "Farm",
"tab_combat": "Combate",
"tab_graphs": "Gráficas",
"tab_casts": "Usos",
"tab_vision": "Visión",
"tab_objectives": "Objetivos",
"tab_teamfights": "Peleas de equipo",
"tab_actions": "Acciones",
"tab_analysis": "Análisis",
"tab_cosmetics": "Cosméticos",
"tab_log": "Registro",
"tab_chat": "Chat",
"tab_story": "Story",
"tab_fantasy": "Fantasy",
"tab_laning": "Laning",
"tab_recent": "Recent",
"tab_matchups": "Matchups",
"tab_durations": "Durations",
"tab_players": "Players",
"placeholder_filter_heroes": "Filter Heroes",
"td_win": "Won Match",
"td_loss": "Lost Match",
"td_no_result": "Sin Resultado",
"th_hero_id": "Héroe",
"th_match_id": "ID",
"th_account_id": "Account ID",
"th_result": "Resultado",
"th_skill": "Habilidad",
"th_duration": "Duración",
"th_games": "MP",
"th_games_played": "Games",
"th_win": "% de Victorias",
"th_advantage": "Advantage",
"th_with_games": "Con",
"th_with_win": "Victoria con %",
"th_against_games": "Contra",
"th_against_win": "Victoria contra %",
"th_gpm_with": "GPM With",
"th_xpm_with": "XPM With",
"th_avatar": "Jugador",
"th_last_played": "Último",
"th_record": "Récord",
"th_title": "Título",
"th_category": "Categoría",
"th_matches": "Partidas",
"th_percentile": "Percentil",
"th_rank": "Rango",
"th_items": "Objetos",
"th_stacked": "Campos stackeados",
"th_multikill": "Multiasesinato",
"th_killstreak": "Racha de asesinatos",
"th_stuns": "Stuns",
"th_dead": "Muerto",
"th_buybacks": "Buybacks",
"th_biggest_hit": "Golpe más grande",
"th_lane": "Línea",
"th_map": "Mapa",
"th_lane_efficiency": "EFF@10",
"th_lhten": "UG@10",
"th_dnten": "DN@10",
"th_tpscroll": "TP",
"th_ward_observer": "Observador",
"th_ward_sentry": "Centinela",
"th_smoke_of_deceit": "Humo",
"th_dust": "Polvo",
"th_gem": "Gema",
"th_time": "Tiempo",
"th_message": "Mensaje",
"th_heroes": "Héroes",
"th_creeps": "Creeps",
"th_neutrals": "Neutrales",
"th_ancients": "Ancients",
"th_towers": "Torres",
"th_couriers": "Mensajeros",
"th_roshan": "Roshan",
"th_necronomicon": "Necronomicon",
"th_other": "Otros",
"th_cosmetics": "Cosméticos",
"th_damage_received": "Recibido",
"th_damage_dealt": "Provocado",
"th_players": "Jugadores",
"th_analysis": "Análisis",
"th_death": "Muerte",
"th_damage": "Daño",
"th_healing": "Curación",
"th_gold": "O",
"th_xp": "XP",
"th_abilities": "Habilidades",
"th_target_abilities": "Ability Targets",
"th_mmr": "MMR",
"th_level": "NVL",
"th_kills": "K",
"th_kills_per_min": "KPM",
"th_deaths": "M",
"th_assists": "A",
"th_last_hits": "UG",
"th_last_hits_per_min": "UGM",
"th_denies": "DN",
"th_gold_per_min": "OPM",
"th_xp_per_min": "EPM",
"th_stuns_per_min": "SPM",
"th_hero_damage": "DH",
"th_hero_damage_per_min": "DHM",
"th_hero_healing": "CH",
"th_hero_healing_per_min": "CHM",
"th_tower_damage": "DT",
"th_tower_damage_per_min": "DTM",
"th_kda": "KMA",
"th_actions_per_min": "APM",
"th_pings": "PNG (M)",
"th_DOTA_UNIT_ORDER_MOVE_TO_POSITION": "MV (P)",
"th_DOTA_UNIT_ORDER_MOVE_TO_TARGET": "MV (T)",
"th_DOTA_UNIT_ORDER_ATTACK_TARGET": "ATK (T)",
"th_DOTA_UNIT_ORDER_ATTACK_MOVE": "ATK (P)",
"th_DOTA_UNIT_ORDER_CAST_POSITION": "CST (P)",
"th_DOTA_UNIT_ORDER_CAST_TARGET": "CST (T)",
"th_DOTA_UNIT_ORDER_CAST_NO_TARGET": "CST (N)",
"th_DOTA_UNIT_ORDER_HOLD_POSITION": "HLD",
"th_DOTA_UNIT_ORDER_GLYPH": "GLYPH",
"th_DOTA_UNIT_ORDER_RADAR": "SCN",
"th_ability_builds": "AB",
"th_purchase_shorthand": "PUR",
"th_use_shorthand": "USE",
"th_duration_shorthand": "DUR",
"th_country": "País",
"th_count": "Cuenta",
"th_sum": "Sum",
"th_average": "Media",
"th_name": "Nombre",
"th_team_name": "Team Name",
"th_score": "Puntuación",
"th_casts": "Usos",
"th_hits": "Golpes",
"th_wins": "Victorias",
"th_losses": "Derrotas",
"th_winrate": "Porcentaje de Victorias",
"th_solo_mmr": "MMR Individual",
"th_party_mmr": "MMR de Grupo",
"th_estimated_mmr": "MMR Estimado",
"th_permanent_buffs": "Buffs",
"th_winner": "Winner",
"th_played_with": "My Record With",
"th_obs_placed": "Observer Wards Placed",
"th_sen_placed": "Sentry Wards Placed",
"th_obs_destroyed": "Observer Wards Destroyed",
"th_sen_destroyed": "Sentry Wards Destroyed",
"th_scans_used": "Scans Used",
"th_glyphs_used": "Glyphs Used",
"th_legs": "Legs",
"th_fantasy_points": "Fantasy Pts",
"th_rating": "Rating",
"th_teamfight_participation": "Participation",
"th_firstblood_claimed": "First Blood",
"th_observers_placed": "Observers",
"th_camps_stacked": "Stacks",
"th_league": "League",
"th_attack_type": "Attack Type",
"th_primary_attr": "Primary Attribute",
"th_opposing_team": "Opposing Team",
"ward_log_type": "Tipo",
"ward_log_owner": "Dueño",
"ward_log_entered_at": "Colocado",
"ward_log_left_at": "Restantes",
"ward_log_duration": "Esperanza de vida",
"ward_log_killed_by": "Asesinado por",
"log_detail": "Detail",
"log_heroes": "Specify Heroes",
"tier_professional": "Professional",
"tier_premium": "Premium",
"time_past": "{0} ago",
"time_just_now": "justo ahora",
"time_s": "a second",
"time_abbr_s": "{0}s",
"time_ss": "{0} seconds",
"time_abbr_ss": "{0}s",
"time_m": "a minute",
"time_abbr_m": "{0}m",
"time_mm": "{0} minutes",
"time_abbr_mm": "{0}m",
"time_h": "an hour",
"time_abbr_h": "{0}h",
"time_hh": "{0} hours",
"time_abbr_hh": "{0}h",
"time_d": "a day",
"time_abbr_d": "{0}d",
"time_dd": "{0} days",
"time_abbr_dd": "{0}d",
"time_M": "a month",
"time_abbr_M": "{0}mo",
"time_MM": "{0} months",
"time_abbr_MM": "{0}mo",
"time_y": "a year",
"time_abbr_y": "{0}y",
"time_yy": "{0} years",
"time_abbr_yy": "{0}y",
"timeline_firstblood": "derramó la primera sangre",
"timeline_firstblood_key": "derramó la primera sangre al matar a",
"timeline_aegis_picked_up": "recogido",
"timeline_aegis_snatched": "robado",
"timeline_aegis_denied": "denegado",
"timeline_teamfight_deaths": "Muertes",
"timeline_teamfight_gold_delta": "oro delta",
"title_default": "OpenDota - Dota 2 Statistics",
"title_template": "%s - OpenDota - Dota 2 Statistics",
"title_matches": "Partidas",
"title_request": "Request a Parse",
"title_search": "Search",
"title_status": "Status",
"title_explorer": "Data Explorer",
"title_meta": "Meta",
"title_records": "Récords",
"title_api": "The Opendota API: Advanced Dota 2 stats for your app",
"tooltip_mmr": "MMR Individual del jugador",
"tooltip_abilitydraft": "Ability Drafted",
"tooltip_level": "Nivel alcanzado por héroe",
"tooltip_kills": "Número de asesinatos por héroe",
"tooltip_deaths": "Número de muertes por héroe",
"tooltip_assists": "Número de asistencias por héroe",
"tooltip_last_hits": "Número de últimos golpes por héroe",
"tooltip_denies": "Número de creeps denegados",
"tooltip_gold": "Total de oro farmeado",
"tooltip_gold_per_min": "Oro farmeado por minuto",
"tooltip_xp_per_min": "Experiencia ganada por minuto",
"tooltip_stuns_per_min": "Seconds of hero stuns per minute",
"tooltip_last_hits_per_min": "Últimos golpes por minuto",
"tooltip_kills_per_min": "Asesinatos por minuto",
"tooltip_hero_damage_per_min": "Daño a héroes por minuto",
"tooltip_hero_healing_per_min": "Curacion a héroes por minuto",
"tooltip_tower_damage_per_min": "Daño a torres por minuto",
"tooltip_actions_per_min": "Acciones realizadas por minuto",
"tooltip_hero_damage": "Cantidad de daño héreoes",
"tooltip_tower_damage": "Cantidad de daño torres",
"tooltip_hero_healing": "Cantidad de vida restaurada a héroes",
"tooltip_duration": "Duración de la partida",
"tooltip_first_blood_time": "El tiempo en el que se produjo la primera sangre",
"tooltip_kda": "(Asesinatos + Asistencias) / (Muertes + 1)",
"tooltip_stuns": "Segundos de disable en héroes",
"tooltip_dead": "Tiempo muerto",
"tooltip_buybacks": "Number of buybacks",
"tooltip_camps_stacked": "Campamentos stackeados",
"tooltip_tower_kills": "Número de torres destruidas",
"tooltip_neutral_kills": "Número de creeps neutrales asesinados",
"tooltip_courier_kills": "Número de mensajeros asesinados",
"tooltip_purchase_tpscroll": "Pergaminos de Teletransporte comprados",
"tooltip_purchase_ward_observer": "Guardianes Observadores comprados",
"tooltip_purchase_ward_sentry": "Guardianes Centinelas comprados",
"tooltip_purchase_smoke_of_deceit": "Humos del Engaño comprados",
"tooltip_purchase_dust": "Polvos de la Revelación comprados",
"tooltip_purchase_gem": "Gemas de Visión Verdadera compradas",
"tooltip_purchase_rapier": "Estoques Divinos comprados",
"tooltip_purchase_buyback": "Buybacks comprados",
"tooltip_duration_observer": "Average lifespan of Observer Wards",
"tooltip_duration_sentry": "Average lifespan of Sentry Wards",
"tooltip_used_ward_observer": "Número de Guardianes Observadores colocados durante la partida",
"tooltip_used_ward_sentry": "Número de Guardianes Centinelas colocados durante la partida",
"tooltip_used_dust": "Number of times Dust of Appearance was used during the game",
"tooltip_used_smoke_of_deceit": "Number of times Smoke of Deceit was used during the game",
"tooltip_parsed": "La repetición se ha analizado para obtener datos adicionales",
"tooltip_unparsed": "La repetición de esta partida no se ha analizado aún. No todos los datos están disponibles.",
"tooltip_hero_id": "The hero played",
"tooltip_result": "Si el jugador ganó o perdió",
"tooltip_match_id": "El ID de la partida",
"tooltip_game_mode": "El modo de juego de la partida",
"tooltip_skill": "Los límites de MMR aproximados para las divisiones son 0, 3200 y 3700",
"tooltip_ended": "El tiempo cuando la partida terminó",
"tooltip_pick_order": "Orden en el que el jugador ha elegido",
"tooltip_throw": "Ventaja de oro máxima en una partida perdida",
"tooltip_comeback": "Desventaja de oro máxima en una partida ganada",
"tooltip_stomp": "Ventaja de oro máxima en una partida ganada",
"tooltip_loss": "Desventaja de oro máxima en una partida perdida",
"tooltip_items": "Objetos fabricados",
"tooltip_permanent_buffs": "Permanent buffs such as Flesh Heap stacks or Tomes of Knowledge used",
"tooltip_lane": "Línea basada en la posición en early game",
"tooltip_map": "Mapa de calor de la posición del jugador en el early game",
"tooltip_lane_efficiency": "Porcentaje de oro de línea (creeps+pasivo+inicial) obtenido en los primeros 10 minutos",
"tooltip_lane_efficiency_pct": "Porcentaje de oro de línea (creeps+pasivo+inicial) obtenido en los primeros 10 minutos",
"tooltip_pings": "Número de veces que el jugador hizo ping en el mapa",
"tooltip_DOTA_UNIT_ORDER_MOVE_TO_POSITION": "Número de veces que el jugador se movió a una posición",
"tooltip_DOTA_UNIT_ORDER_MOVE_TO_TARGET": "Número de veces que el jugador se movió a un objetivo",
"tooltip_DOTA_UNIT_ORDER_ATTACK_MOVE": "Número de veces que el jugador atacó a una posición (attack move)",
"tooltip_DOTA_UNIT_ORDER_ATTACK_TARGET": "Número de veces que el jugador atacó a un objetivo",
"tooltip_DOTA_UNIT_ORDER_CAST_POSITION": "Número de veces que el jugador casteó en una posición",
"tooltip_DOTA_UNIT_ORDER_CAST_TARGET": "Número de veces que el jugador casteó en un objetivo",
"tooltip_DOTA_UNIT_ORDER_CAST_NO_TARGET": "Número de veces que el jugador casteó en ningún objetivo",
"tooltip_DOTA_UNIT_ORDER_HOLD_POSITION": "Número de veces que el jugador mantuvo la posición",
"tooltip_DOTA_UNIT_ORDER_GLYPH": "Número de veces que el jugador usó el glifo",
"tooltip_DOTA_UNIT_ORDER_RADAR": "Número de veces que el jugador usó escanear",
"tooltip_last_played": "La última vez que se jugó una partida con este jugador/héroe",
"tooltip_matches": "Partidas jugadas con/contra este jugador",
"tooltip_played_as": "Número de partidas jugadas con este héroe",
"tooltip_played_with": "Número de partidas jugadas con este héroe/jugador en el equipo",
"tooltip_played_against": "Número de partidas jugadas con este jugador/héroe en el equipo enemigo",
"tooltip_tombstone_victim": "Here Lies",
"tooltip_tombstone_killer": "asesinado por",
"tooltip_win_pct_as": "Porcentaje de victorias con este héroe",
"tooltip_win_pct_with": "Porcentaje de victorias con este jugador/héroe",
"tooltip_win_pct_against": "Porcentaje de victorias contra este jugador/héroe",
"tooltip_lhten": "Últimos golpes a los 10 minutos",
"tooltip_dnten": "Denegaciones a los 10 minutos",
"tooltip_biggest_hit": "Mayor daño infligido a un héroe",
"tooltip_damage_dealt": "Daño causado a héroes por objetos/habilidades",
"tooltip_damage_received": "Daño recibido de héroes por objetos/habilidades",
"tooltip_registered_user": "Usuario registrado",
"tooltip_ability_builds": "Builds de habilidades",
"tooltip_ability_builds_expired": "Los datos de las mejoras de habilidades han expirado para esta partida. Utiliza el formulario de solicitud para recargar los datos.",
"tooltip_multikill": "Multi-kill más larga",
"tooltip_killstreak": "Racha de muertes más larga",
"tooltip_casts": "Número de veces que esta habilidad/objeto fue casteado",
"tooltip_target_abilities": "How many times each hero was targeted by this hero's abilities",
"tooltip_hits": "Número de instancias de daño a héroes causados por esta habilidad/objeto",
"tooltip_damage": "Cantidad de daño infligido a héroes por esta habilidad/objeto",
"tooltip_autoattack_other": "Auto Ataque/Otro",
"tooltip_estimated_mmr": "MMR estimado basado en la media de MMR visible de las últimas partidas jugadas por este usuario",
"tooltip_backpack": "Backpack",
"tooltip_others_tracked_deaths": "tracked deaths",
"tooltip_others_track_gold": "gold earned from Track",
"tooltip_others_greevils_gold": "gold earned from Greevil's Greed",
"tooltip_advantage": "Calculated by Wilson score",
"tooltip_winrate_samplesize": "Win rate and sample size",
"tooltip_teamfight_participation": "Amount of participation in teamfights",
"histograms_name": "Histogramas",
"histograms_description": "Percentages indicate win rates for the labeled bin",
"histograms_actions_per_min_description": "Actions performed by player per minute",
"histograms_comeback_description": "Maximum gold disadvantage in a won game",
"histograms_lane_efficiency_pct_description": "Percentage of lane gold (creeps+passive+starting) obtained at 10 minutes",
"histograms_gold_per_min_description": "Gold farmed per minute",
"histograms_hero_damage_description": "Amount of damage dealt to heroes",
"histograms_hero_healing_description": "Amount of health restored to heroes",
"histograms_level_description": "Level achieved in a game",
"histograms_loss_description": "Maximum gold disadvantage in a lost game",
"histograms_pings_description": "Number of times the player pinged the map",
"histograms_stomp_description": "Maximum gold advantage in a won game",
"histograms_stuns_description": "Seconds of disable on heroes",
"histograms_throw_description": "Maximum gold advantage in a lost game",
"histograms_purchase_tpscroll_description": "Town Portal Scroll purchases",
"histograms_xp_per_min_description": "Experience gained per minute",
"trends_name": "Tendencias",
"trends_description": "Cumulative average over last 500 games",
"trends_tooltip_average": "Avg.",
"trends_no_data": "Sorry, no data for this graph",
"xp_reasons_0": "Otros",
"xp_reasons_1": "Hero",
"xp_reasons_2": "Creep",
"xp_reasons_3": "Roshan",
"rankings_description": "",
"rankings_none": "This player is not ranked on any heroes.",
"region_0": "Automática",
"region_1": "EE. UU. Oeste",
"region_2": "EE. UU. Este",
"region_3": "Luxemburgo",
"region_5": "Singapur",
"region_6": "Dubái",
"region_7": "Australia",
"region_8": "Estocolmo",
"region_9": "Austria",
"region_10": "Brasil",
"region_11": "Sudáfrica",
"region_12": "China TC Shanghái",
"region_13": "China UC",
"region_14": "Chile",
"region_15": "Perú",
"region_16": "India",
"region_17": "China TC Cantón",
"region_18": "China TC Zhejiang",
"region_19": "Japón",
"region_20": "China TC Wuhan",
"region_25": "China UC 2",
"vision_expired": "Expired after",
"vision_destroyed": "Destroyed after",
"vision_all_time": "All time",
"vision_placed_observer": "placed Observer at",
"vision_placed_sentry": "placed Sentry at",
"vision_ward_log": "Ward Log",
"chat_category_faction": "Faction",
"chat_category_type": "Type",
"chat_category_target": "Target",
"chat_category_other": "Other",
"chat_filter_text": "Text",
"chat_filter_phrases": "Phrases",
"chat_filter_audio": "Audio",
"chat_filter_spam": "Spam",
"chat_filter_all": "All",
"chat_filter_allies": "Allies",
"chat_filter_spectator": "Spectator",
"chat_filtered": "Filtered",
"advb_almost": "almost",
"advb_over": "over",
"advb_about": "about",
"article_before_consonant_sound": "a",
"article_before_vowel_sound": "an",
"statement_long": "hypothesised",
"statement_shouted": "shouted",
"statement_excited": "exclaimed",
"statement_normal": "said",
"statement_laughed": "laughed",
"question_long": "raised, in need of answers",
"question_shouted": "inquired",
"question_excited": "interrogated",
"question_normal": "asked",
"question_laughed": "laughed mockingly",
"statement_response_long": "advised",
"statement_response_shouted": "responded in frustration",
"statement_response_excited": "exclaimed",
"statement_response_normal": "replied",
"statement_response_laughed": "laughed",
"statement_continued_long": "ranted",
"statement_continued_shouted": "continued furiously",
"statement_continued_excited": "continued",
"statement_continued_normal": "added",
"statement_continued_laughed": "continued",
"question_response_long": "advised",
"question_response_shouted": "asked back, out of frustration",
"question_response_excited": "disputed",
"question_response_normal": "countered",
"question_response_laughed": "laughed",
"question_continued_long": "propositioned",
"question_continued_shouted": "asked furiously",
"question_continued_excited": "lovingly asked",
"question_continued_normal": "asked",
"question_continued_laughed": "asked joyfully",
"hero_disclaimer_pro": "Data from professional matches",
"hero_disclaimer_public": "Data from public matches",
"hero_duration_x_axis": "Minutes",
"top_tower": "Top Tower",
"bot_tower": "Bottom Tower",
"mid_tower": "Mid Tower",
"top_rax": "Top Barracks",
"bot_rax": "Bottom Barracks",
"mid_rax": "Mid Barracks",
"tier1": "Tier 1",
"tier2": "Tier 2",
"tier3": "Tier 3",
"tier4": "Tier 4",
"show_consumables_items": "Show consumables",
"activated": "Activated",
"rune": "Rune",
"placement": "Placement",
"exclude_turbo_matches": "Exclude Turbo matches",
"scenarios_subtitle": "Explore win rates of combinations of factors that happen in matches",
"scenarios_info": "Data compiled from matches in the last {0} weeks",
"scenarios_item_timings": "Item Timings",
"scenarios_misc": "Misc",
"scenarios_time": "Time",
"scenarios_item": "Item",
"scenarios_game_duration": "Game Duration",
"scenarios_scenario": "Scenario",
"scenarios_first_blood": "Team drew First Blood",
"scenarios_courier_kill": "Team sniped the enemy courier before the 3-minute mark",
"scenarios_pos_chat_1min": "Team all chatted positive words before the 1-minute mark",
"scenarios_neg_chat_1min": "Team all chatted negative words before the 1-minute mark",
"gosu_default": "Get personal recommendations",
"gosu_benchmarks": "Get detailed benchmarks for your hero, lane and role",
"gosu_performances": "Get your map control performance",
"gosu_laning": "Get why you missed last hits",
"gosu_combat": "Get why kills attempts were unsuccessful",
"gosu_farm": "Get why you missed last hits",
"gosu_vision": "Get how many heroes were killed under your wards",
"gosu_actions": "Get your lost time from mouse usage vs hotkeys",
"gosu_teamfights": "Get who to target during teamfights",
"gosu_analysis": "Get your real MMR bracket",
"back2Top": "Back to Top",
"activity_subtitle": "Click on a day for detailed information"
} | odota/web/src/lang/es-US.json/0 | {
"file_path": "odota/web/src/lang/es-US.json",
"repo_id": "odota",
"token_count": 19593
} | 244 |
{
"yes": "да",
"no": "нет",
"abbr_thousand": "тыс.",
"abbr_million": "млн",
"abbr_billion": "млрд",
"abbr_trillion": "трлн",
"abbr_quadrillion": "квадрлн",
"abbr_not_available": "Н/Д",
"abbr_pick": "В",
"abbr_win": "П",
"abbr_number": "Ном.",
"analysis_eff": "Эффективность на линии",
"analysis_farm_drought": "Самый низкий показатель ЗВМ в интервале 5 минут",
"analysis_skillshot": "Успешных скиллшотов",
"analysis_late_courier": "Задержка улучшения курьера",
"analysis_wards": "Вардов установлено",
"analysis_roshan": "Убито Рошанов",
"analysis_rune_control": "Рун собрано",
"analysis_unused_item": "Неиспользованных активных вещей",
"analysis_expected": "из",
"announce_dismiss": "Пропустить",
"announce_github_more": "Подробнее на GitHub",
"api_meta_description": "OpenDota API дает вам доступ к расширенной статистике Dota 2, предоставляемой платформой OpenDota. Доступ к графикам, диаграммам, облакам слов и многому другому. Начните бесплатно.",
"api_title": "OpenDota API",
"api_subtitle": "Построен на платформе OpenDota. Преподнесите расширенную статистику для вашего приложения и глубокое понимание для ваших пользователей.",
"api_details_free_tier": "Бесплатный уровень",
"api_details_premium_tier": "Расширенный уровень",
"api_details_price": "Цена",
"api_details_price_free": "Бесплатно",
"api_details_price_prem": "$price за $unit вызовов",
"api_details_key_required": "Необходим ключ?",
"api_details_key_required_free": "Нет",
"api_details_key_required_prem": "Да -- требуется способ оплаты",
"api_details_call_limit": "Количество запросов",
"api_details_call_limit_free": "$limit в месяц",
"api_details_call_limit_prem": "Неограниченно",
"api_details_rate_limit": "Частота запросов",
"api_details_rate_limit_val": "$num вызовов в минуту",
"api_details_support": "Поддержка",
"api_details_support_free": "Поддержка сообщества в Discord",
"api_details_support_prem": "Приоритетная поддержка от разработчиков",
"api_get_key": "Получить ключ",
"api_docs": "Документация",
"api_header_details": "Подробнее",
"api_charging": "Вы платите $cost за каждый вызов, округляется до ближайшего цента.",
"api_credit_required": "Для получения API Ключа требуется прикрепленный способ оплаты. Мы автоматически взимаем плату в начале месяца.",
"api_failure": "500 ошибки не засчитываются за использование, поскольку это наше упущение!",
"api_error": "Произошла ошибка при выполнении запроса. Пожалуйста, попробуйте снова. Если проблема не решится, свяжитесь с нами по адресу support@opendota.com.",
"api_login": "Войдите для доступа к API Ключу",
"api_update_billing": "Обновить способ оплаты",
"api_delete": "Удалить ключ",
"api_key_usage": "Для использования вашего ключа, добавьте $param в качестве параметра вашего запроса к API:",
"api_billing_cycle": "Текущий биллинговый цикл заканчивается $date.",
"api_billed_to": "Мы автоматически выставим счёт за $brand, заканчивающейся $last4.",
"api_support": "Нужна помощь? Напишите нам: $email.",
"api_header_usage": "Ваше использование",
"api_usage_calls": "# Вызовы API",
"api_usage_fees": "Предполагаемая комиссия",
"api_month": "Месяц",
"api_header_key": "Ваш ключ",
"api_header_table": "Начните бесплатно. Продолжайте по смехотворно низкой цене.",
"app_name": "OpenDota",
"app_language": "Язык",
"app_localization": "Локализация",
"app_description": "Информационная платформа Dota 2 с открытым исходным кодом",
"app_about": "О проекте",
"app_privacy_terms": "Конфиденциальность и условия",
"app_api_docs": "Документация API",
"app_blog": "Блог",
"app_translate": "Перевести",
"app_donate": "Пожертвовать",
"app_gravitech": "Сайт Gravitech LLC",
"app_powered_by": "работает на платформе",
"app_donation_goal": "Ежемесячная цель пожертвований",
"app_sponsorship": "Ваше спонсорство помогает оставаться сервису бесплатным для всех.",
"app_twitter": "Следите за нами в Twitter",
"app_github": "Исходный код на GitHub",
"app_discord": "Чат в Discord",
"app_steam_profile": "Профиль в Steam",
"app_confirmed_as": "Подтвержден как",
"app_untracked": "Этот пользователь давно не посещал сайт, поэтому повторы новых матчей не будут обработаны автоматически.",
"app_tracked": "Этот пользователь недавно заходил на сайт, и повторы его новых матчей будут обработаны автоматически.",
"app_cheese_bought": "Сыра куплено",
"app_contributor": "Этот пользователь сделал вклад в разработку проекта OpenDota",
"app_dotacoach": "Запросить тренера",
"app_pvgna": "Найти руководство",
"app_pvgna_alt": "Найти руководство на Pvgna",
"app_rivalry": "Поставить на про-матч",
"app_rivalry_team": "Ставки на {0} киберспорт",
"app_refresh": "Обновить историю матчей: Запросить сканирование пропущенных матчей из-за настроек приватности",
"app_refresh_label": "Обновить",
"app_login": "Войти",
"app_logout": "Выйти",
"app_results": "результаты",
"app_report_bug": "Сообщить об ошибке",
"app_pro_players": "Профессиональные игроки",
"app_public_players": "Игроки",
"app_my_profile": "Мой профиль",
"barracks_value_1": "Нижний ближнего боя сил Тьмы",
"barracks_value_2": "Нижний дальнего боя сил Тьмы",
"barracks_value_4": "Средний ближнего боя сил Тьмы",
"barracks_value_8": "Средний дальнего боя сил Тьмы",
"barracks_value_16": "Верхний ближнего боя сил Тьмы",
"barracks_value_32": "Верхний дальнего боя сил Тьмы",
"barracks_value_64": "Нижний ближнего боя сил Света",
"barracks_value_128": "Нижний дальнего боя сил Света",
"barracks_value_256": "Средний ближнего боя сил Света",
"barracks_value_512": "Средний дальнего боя сил Света",
"barracks_value_1024": "Верхний ближнего боя сил Света",
"barracks_value_2048": "Верхний дальнего боя сил Света",
"benchmarks_description": "{0} {1} равен либо больше чем {2}% от недавних показателей на этом герое",
"fantasy_description": "{0} на {1} очков",
"building_melee_rax": "Казармы ближнего боя",
"building_range_rax": "Казармы дальнего боя",
"building_lasthit": "добито",
"building_damage": "полученный урон",
"building_hint": "У иконок на карте есть подсказки",
"building_denied": "не отдано",
"building_ancient": "Крепость",
"CHAT_MESSAGE_TOWER_KILL": "Башня",
"CHAT_MESSAGE_BARRACKS_KILL": "Казармы",
"CHAT_MESSAGE_ROSHAN_KILL": "Рошан",
"CHAT_MESSAGE_AEGIS": "Подобрал Aegis",
"CHAT_MESSAGE_FIRSTBLOOD": "Первая кровь",
"CHAT_MESSAGE_TOWER_DENY": "Башня не отдана",
"CHAT_MESSAGE_AEGIS_STOLEN": "Aegis украден",
"CHAT_MESSAGE_DENIED_AEGIS": "Aegis уничтожен",
"distributions_heading_ranks": "Распределение разрядов рангов",
"distributions_heading_mmr": "Распределение одиночного рейтинга",
"distributions_heading_country_mmr": "Средний одиночный рейтинг по странам",
"distributions_tab_ranks": "Разряды рангов",
"distributions_tab_mmr": "Одиночный рейтинг",
"distributions_tab_country_mmr": "Одиночный рейтинг по странам",
"distributions_warning_1": "Эти данные основаны на игроках, выставляющих публично свою статистику и данные матчей.",
"distributions_warning_2": "Игрокам не нужно регистрироваться, но из-за характера собираемых данных, средние значения выше, чем на самом деле.",
"error": "Ошибка",
"error_message": "Упс! Что-то пошло не так.",
"error_four_oh_four_message": "Страница, которую вы ищете, не найдена.",
"explorer_title": "Data Explorer",
"explorer_subtitle": "Статистика профессионалов Dota 2",
"explorer_description": "Выполнить дополнительные запросы о профессиональных матчах (за исключением любительских лиг)",
"explorer_schema": "Схема",
"explorer_results": "Результаты",
"explorer_num_rows": "строка (-и)",
"explorer_select": "Выбрать",
"explorer_group_by": "Группировать по",
"explorer_hero": "Герой",
"explorer_patch": "Патч",
"explorer_min_patch": "Минимальный патч",
"explorer_max_patch": "Максимальный патч",
"explorer_min_mmr": "Мин. рейтинг",
"explorer_max_mmr": "Макс. рейтинг",
"explorer_min_rank_tier": "Мин. разряд",
"explorer_max_rank_tier": "Макс. разряд",
"explorer_player": "Игрок",
"explorer_league": "Турнир",
"explorer_player_purchased": "Игроков купили",
"explorer_duration": "Длительность",
"explorer_min_duration": "Минимальная длительность",
"explorer_max_duration": "Максимальная длительность",
"explorer_timing": "Время",
"explorer_uses": "Использовано",
"explorer_kill": "Время убийства",
"explorer_side": "Сторона",
"explorer_toggle_sql": "Переключить SQL",
"explorer_team": "Текущая команда",
"explorer_lane_role": "Линия",
"explorer_min_date": "От",
"explorer_max_date": "До",
"explorer_hero_combos": "Комбинации героев",
"explorer_hero_player": "Герой-Игрок",
"explorer_player_player": "Игрок-Игрок",
"explorer_sql": "SQL",
"explorer_postgresql_function": "Функция PostgreSQL",
"explorer_table": "Таблица",
"explorer_column": "Столбец",
"explorer_query_button": "Таблица",
"explorer_cancel_button": "Отмена",
"explorer_table_button": "Таблица",
"explorer_api_button": "API",
"explorer_json_button": "JSON",
"explorer_csv_button": "CSV",
"explorer_donut_button": "Пончик",
"explorer_bar_button": "Панель",
"explorer_timeseries_button": "Встречи",
"explorer_chart_unavailable": "Диаграмма недоступна, попробуйте добавить GROUP BY",
"explorer_value": "Стоимость",
"explorer_category": "Категория",
"explorer_region": "Регион",
"explorer_picks_bans": "Пики/баны",
"explorer_counter_picks_bans": "Контр пики/Баны",
"explorer_organization": "Организация",
"explorer_order": "Заказать",
"explorer_asc": "По возрастанию",
"explorer_desc": "По убыванию",
"explorer_tier": "Тир",
"explorer_having": "At Least This Many Matches",
"explorer_limit": "Предел",
"explorer_match": "Матч",
"explorer_is_ti_team": "Это команда TI{number}",
"explorer_mega_comeback": "Победа против мегакрипов",
"explorer_max_gold_adv": "Максимальное преимущество по золоту",
"explorer_min_gold_adv": "Минимальное преимущество по золоту",
"farm_heroes": "Героев убито",
"farm_creeps": "Убито крипов на линии",
"farm_neutrals": "Убито нейтралов (в том числе древних)",
"farm_ancients": "Убито Древних крипов",
"farm_towers": "Башен разрушено",
"farm_couriers": "Курьеров убито",
"farm_observers": "Сломано Observer Ward",
"farm_sentries": "Сломано Sentry Ward",
"farm_roshan": "Убито Рошанов",
"farm_necronomicon": "Убито существ Некрономикона",
"filter_button_text_open": "Фильтр",
"filter_button_text_close": "Закрыть",
"filter_hero_id": "Герой",
"filter_is_radiant": "Команда",
"filter_win": "Результат",
"filter_lane_role": "Линия",
"filter_patch": "Патч",
"filter_game_mode": "Режим игры",
"filter_lobby_type": "Тип лобби",
"filter_date": "Дата",
"filter_region": "Регион",
"filter_with_hero_id": "Герои союзников",
"filter_against_hero_id": "Герои противников",
"filter_included_account_id": "Включённые игроки",
"filter_excluded_account_id": "Исключая аккаунт с ID",
"filter_significant": "Незначительный",
"filter_significant_include": "Включить",
"filter_last_week": "Прошлая неделя",
"filter_last_month": "Последний месяц",
"filter_last_3_months": "Последние 3 месяца",
"filter_last_6_months": "Последние 6 месяцев",
"filter_error": "Пожалуйста, выберите пункт из выпадающего списка",
"filter_party_size": "Размер группы",
"game_mode_0": "Неизвестно",
"game_mode_1": "All Pick",
"game_mode_2": "Captains Mode",
"game_mode_3": "Random Draft",
"game_mode_4": "Single Draft",
"game_mode_5": "All Random",
"game_mode_6": "Введение",
"game_mode_7": "Восстание Тьмы",
"game_mode_8": "Reverse Captains Mode",
"game_mode_9": "Отморожество",
"game_mode_10": "Обучение",
"game_mode_11": "Mid Only",
"game_mode_12": "Least Played",
"game_mode_13": "Limited Heroes",
"game_mode_14": "Компендиум",
"game_mode_15": "Пользовательские",
"game_mode_16": "Captains Draft",
"game_mode_17": "Balanced Draft",
"game_mode_18": "Ability Draft",
"game_mode_19": "Событие",
"game_mode_20": "All Random Deathmatch",
"game_mode_21": "1v1 Solo Mid",
"game_mode_22": "All Draft",
"game_mode_23": "Turbo",
"game_mode_24": "Mutation",
"general_unknown": "Неизвестно",
"general_no_hero": "Нет героя",
"general_anonymous": "Аноним",
"general_radiant": "Силы Света",
"general_dire": "Силы Тьмы",
"general_standard_deviation": "Стандартное отклонение",
"general_matches": "Матчи",
"general_league": "Турнир",
"general_randomed": "Выбран случайно",
"general_repicked": "Перевыбран",
"general_predicted_victory": "Предсказанная победа",
"general_show": "Показать",
"general_hide": "Скрыть",
"gold_reasons_0": "Другие",
"gold_reasons_1": "Смерть",
"gold_reasons_2": "Выкуп",
"NULL_gold_reasons_5": "Покинувшие",
"NULL_gold_reasons_6": "Продажа",
"gold_reasons_11": "Строение",
"gold_reasons_12": "Герой",
"gold_reasons_13": "Крипы",
"gold_reasons_14": "Рошан",
"NULL_gold_reasons_15": "Курьер",
"header_request": "Запросить",
"header_distributions": "Ранги",
"header_heroes": "Герои",
"header_blog": "Блог",
"header_ingame": "В игре",
"header_matches": "Матчи",
"header_records": "Рекорды",
"header_explorer": "Проводник",
"header_teams": "Команды",
"header_meta": "Мета",
"header_scenarios": "Сценарии",
"header_api": "API",
"heading_lhten": "Добиваний @ 10",
"heading_lhtwenty": "Добиваний @ 20",
"heading_lhthirty": "Добиваний @ 30",
"heading_lhforty": "Добиваний @ 40",
"heading_lhfifty": "Добиваний @ 50",
"heading_courier": "Курьер",
"heading_roshan": "Рошан",
"heading_tower": "Башня",
"heading_barracks": "Казармы",
"heading_shrine": "Святыня",
"heading_item_purchased": "Предметов Куплено",
"heading_ability_used": "Способностей Использовано",
"heading_item_used": "Предметов Использовано",
"heading_damage_inflictor": "Причинивший урон",
"heading_damage_inflictor_received": "Получил причинивший урон",
"heading_damage_instances": "Источники урона",
"heading_camps_stacked": "Лагерей стакнуто",
"heading_matches": "Недавние матчи",
"heading_heroes": "Сыграно на героях",
"heading_mmr": "История рейтинга",
"heading_peers": "Сыграно с игроками",
"heading_pros": "Сыграно с профессиональными игроками",
"heading_rankings": "Рейтинг героев",
"heading_all_matches": "Все матчи",
"heading_parsed_matches": "В анализируемых матчах",
"heading_records": "Рекорды",
"heading_teamfights": "Командные бои",
"heading_graph_difference": "Преимущество сил Света",
"heading_graph_gold": "Золото",
"heading_graph_xp": "Опыт",
"heading_graph_lh": "Добито",
"heading_overview": "Обзор",
"heading_ability_draft": "Выбранные способности",
"heading_buildings": "Карта строений",
"heading_benchmarks": "Бенчмарки",
"heading_laning": "Лайнинг",
"heading_overall": "Общее",
"heading_kills": "Убийства",
"heading_deaths": "Смерти",
"heading_assists": "Помощь",
"heading_damage": "Урон",
"heading_unit_kills": "Убийства существ",
"heading_last_hits": "Добито крипов",
"heading_gold_reasons": "Источники золота",
"heading_xp_reasons": "Источники опыта",
"heading_performances": "Показатели",
"heading_support": "Поддержка",
"heading_purchase_log": "Журнал покупок",
"heading_casts": "Использовано способностей",
"heading_objective_damage": "Урон по целям",
"heading_runes": "Руны",
"heading_vision": "Видимость",
"heading_actions": "Действия",
"heading_analysis": "Анализ",
"heading_cosmetics": "Экипировка",
"heading_log": "Журнал",
"heading_chat": "Чат",
"heading_story": "История",
"heading_fantasy": "Фэнтези",
"heading_wardmap": "Карта вардов",
"heading_wordcloud": "Облако слов",
"heading_wordcloud_said": "Сказанные слова (в общий чат)",
"heading_wordcloud_read": "Прочитанные слова (в общем чате)",
"heading_kda": "УСП",
"heading_gold_per_min": "Золото/мин",
"heading_xp_per_min": "Опыт/мин",
"heading_denies": "Не отдано",
"heading_lane_efficiency_pct": "ЭФФ@10",
"heading_duration": "Продолжительность",
"heading_level": "Уровень",
"heading_hero_damage": "Урон по героям",
"heading_tower_damage": "Урон по строениям",
"heading_hero_healing": "Лечение героев",
"heading_tower_kills": "Башен разрушено",
"heading_stuns": "Оглушил",
"heading_neutral_kills": "Убито нейтралов",
"heading_courier_kills": "Убито курьеров",
"heading_purchase_tpscroll": "Свитков телепортации куплено",
"heading_purchase_ward_observer": "Куплено Observer Ward",
"heading_purchase_ward_sentry": "Куплено Sentry Ward",
"heading_purchase_gem": "Куплено Gem of True Sight",
"heading_purchase_rapier": "Куплено Divine Rapier",
"heading_pings": "Cигналов на карте",
"heading_throw": "Потеря",
"heading_comeback": "Возращение",
"heading_stomp": "Разгром",
"heading_loss": "Поражение",
"heading_actions_per_min": "Действий в минуту",
"heading_leaver_status": "Статус покинутых игр",
"heading_game_mode": "Режим игры",
"heading_lobby_type": "Тип лобби",
"heading_lane_role": "Роль на линии",
"heading_region": "Регион",
"heading_patch": "Патч",
"heading_win_rate": "Доля побед",
"heading_is_radiant": "Сторона",
"heading_avg_and_max": "Средние/максимальные",
"heading_total_matches": "Всего матчей",
"heading_median": "Медиана",
"heading_distinct_heroes": "Герои",
"heading_team_elo_rankings": "Рейтинг Эло команды",
"heading_ability_build": "Порядок изучения способностей",
"heading_attack": "Базовая атака",
"heading_attack_range": "Дальность атаки",
"heading_attack_speed": "Скорость атаки",
"heading_projectile_speed": "Скорость снаряда",
"heading_base_health": "Здоровье",
"heading_base_health_regen": "Восстановление здоровья",
"heading_base_mana": "Мана",
"heading_base_mana_regen": "Восстановление маны",
"heading_base_armor": "Базовая броня",
"heading_base_mr": "Сопротивление магии",
"heading_move_speed": "Скорость передвижения",
"heading_turn_rate": "Скорость поворота",
"heading_legs": "Количество ног",
"heading_cm_enabled": "Доступно в CM",
"heading_current_players": "Текущее количество игроков",
"heading_former_players": "Бывшие игроки",
"heading_damage_dealt": "Урона нанесено",
"heading_damage_received": "Урона получено",
"show_details": "Показать подробности",
"hide_details": "Скрыть подробности",
"subheading_avg_and_max": "in last {0} displayed matches",
"subheading_records": "В рейтинге. Записи обновляются ежемеясчно.",
"subheading_team_elo_rankings": "k=32, init=1000",
"hero_pro_tab": "Профессионал",
"hero_public_tab": "Открытый",
"hero_pro_heading": "Герои в профессиональных матчах",
"hero_public_heading": "Герои в общественных матчах (пробы)",
"hero_this_month": "матчей за последние 30 дней",
"hero_pick_ban_rate": "Pro P+B%",
"hero_pick_rate": "Pro Pick%",
"hero_ban_rate": "Pro Ban%",
"hero_win_rate": "Pro Win%",
"hero_5000_pick_rate": ">5K P%",
"hero_5000_win_rate": ">5K W%",
"hero_4000_pick_rate": "4K P%",
"hero_4000_win_rate": "4K W%",
"hero_3000_pick_rate": "3K P%",
"hero_3000_win_rate": "3K W%",
"hero_2000_pick_rate": "2K P%",
"hero_2000_win_rate": "2K W%",
"hero_1000_pick_rate": "<2K P%",
"hero_1000_win_rate": "<2K W%",
"home_login": "Войти",
"home_login_desc": "для автоматической обработки повторов",
"home_parse": "Запросить",
"home_parse_desc": "отдельный матч",
"home_why": "",
"home_opensource_title": "Открытый исходный код",
"home_opensource_desc": "Весь код проекта находится в свободном доступе и открыт всем желающим для улучшения и модификаций.",
"home_indepth_title": "Углубленные данные",
"home_indepth_desc": "Обработка файлов повторов предоставляет высоко детализированные данные матча.",
"home_free_title": "Бесплатно",
"home_free_desc": "Серверы финансируются за счёт спонсоров и добровольцы поддерживают код, поэтому сервис предоставляется бесплатно.",
"home_background_by": "Фоновый рисунок предоставлен",
"home_sponsored_by": "При поддержке",
"home_become_sponsor": "Стать Спонсором",
"items_name": "Имя предмета",
"items_built": "Количество раз, когда был собран предмет",
"items_matches": "Количество матчей, в которых этот предмет был собран",
"items_uses": "Количество применений этого предмета",
"items_uses_per_match": "Среднее количество использований этого предмета в матчах, в которых его собрали",
"items_timing": "Среднее время сборки предмета",
"items_build_pct": "Процент матчей, в которых этот предмет был собран",
"items_win_pct": "Процент выигранных матчей, в которых этот предмет был собран",
"lane_role_0": "Неизвестно",
"lane_role_1": "Лёгкая",
"lane_role_2": "Средняя",
"lane_role_3": "Сложная",
"lane_role_4": "Лес",
"lane_pos_1": "Нижняя",
"lane_pos_2": "Центральную",
"lane_pos_3": "Верхнюю",
"lane_pos_4": "Лес сил Света",
"lane_pos_5": "Лес сил Тьмы",
"leaver_status_0": "Неизвестно",
"leaver_status_1": "Покинуто без последствий",
"leaver_status_2": "Покинуто (DC)",
"leaver_status_3": "Покинуто",
"leaver_status_4": "Покинуто (AFK)",
"leaver_status_5": "Не подключился",
"leaver_status_6": "Не подключился (Time-out)",
"lobby_type_0": "Обычный",
"lobby_type_1": "Практика",
"lobby_type_2": "Турнир",
"lobby_type_3": "Обучение",
"lobby_type_4": "Против ботов",
"lobby_type_5": "Рейтинговый командный ММ (Legacy)",
"lobby_type_6": "Рейтинговый одиночный ММ (Legacy)",
"lobby_type_7": "Рейтинговая",
"lobby_type_8": "1v1 Mid",
"lobby_type_9": "Боевой кубок",
"match_radiant_win": "Победа сил Света",
"match_dire_win": "Победа сил Тьмы",
"match_team_win": "победили",
"match_ended": "Завершён",
"match_id": "Номер матча",
"match_region": "Регион",
"match_avg_mmr": "Средний рейтинг",
"match_button_parse": "Обработать",
"match_button_reparse": "Обработать повторно",
"match_button_replay": "Запись",
"match_button_video": "Получить видео",
"match_first_tower": "Первая башня",
"match_first_barracks": "Первые казармы",
"match_pick": "Пик",
"match_ban": "Бан",
"matches_highest_mmr": "Топ общественности",
"matches_lowest_mmr": "Низкий рейтинг",
"meta_title": "Мета",
"meta_description": "Запуск расширенных запросов с данными из отобранных публичных матчах за последние 24 часа",
"mmr_not_up_to_date": "Почему MMR не актуален?",
"npc_dota_beastmaster_boar_#": "Кабан",
"npc_dota_lesser_eidolon": "Младший Эйдолон",
"npc_dota_eidolon": "Эйдолон",
"npc_dota_greater_eidolon": "Эйдолон",
"npc_dota_dire_eidolon": "Эйдолон",
"npc_dota_invoker_forged_spirit": "Forged Spirit",
"npc_dota_furion_treant_large": "Greater Treant",
"npc_dota_beastmaster_hawk_#": "Ястреб",
"npc_dota_lycan_wolf#": "Lycan Wolf",
"npc_dota_neutral_mud_golem_split_doom": "Малый Doom",
"npc_dota_broodmother_spiderling": "Spiderling",
"npc_dota_broodmother_spiderite": "Spiderite",
"npc_dota_furion_treant": "Treant",
"npc_dota_unit_undying_zombie": "Зомби",
"npc_dota_unit_undying_zombie_torso": "Зомби",
"npc_dota_brewmaster_earth_#": "Earth Brewling",
"npc_dota_brewmaster_fire_#": "Fire Brewling",
"npc_dota_lone_druid_bear#": "Spirit Bear",
"npc_dota_brewmaster_storm_#": "Storm Brewling",
"npc_dota_visage_familiar#": "Familiar",
"npc_dota_warlock_golem_#": "Голем Warlock'а",
"npc_dota_warlock_golem_scepter_#": "Голем Warlock",
"npc_dota_witch_doctor_death_ward": "Death Ward",
"npc_dota_tusk_frozen_sigil#": "Frozen Sigil",
"npc_dota_juggernaut_healing_ward": "Healing Ward",
"npc_dota_techies_land_mine": "Бесконтактная мина",
"npc_dota_shadow_shaman_ward_#": "Змеиный вард",
"npc_dota_pugna_nether_ward_#": "Nether Ward",
"npc_dota_venomancer_plague_ward_#": "Plague Ward",
"npc_dota_rattletrap_cog": "Power Cog",
"npc_dota_templar_assassin_psionic_trap": "Psionic Trap",
"npc_dota_techies_remote_mine": "Remote Mine",
"npc_dota_techies_stasis_trap": "Stasis Trap",
"npc_dota_phoenix_sun": "Supernova",
"npc_dota_unit_tombstone#": "Tombstone",
"npc_dota_treant_eyes": "Eyes in the Forest",
"npc_dota_gyrocopter_homing_missile": "Homing Missile",
"npc_dota_weaver_swarm": "The Swarm",
"objective_tower1_top": "T1",
"objective_tower1_mid": "M1",
"objective_tower1_bot": "B1",
"objective_tower2_top": "T2",
"objective_tower2_mid": "M2",
"objective_tower2_bot": "B2",
"objective_tower3_top": "T3",
"objective_tower3_mid": "М3",
"objective_tower3_bot": "B3",
"objective_rax_top": "Каз. верх.",
"objective_rax_mid": "Каз. сред.",
"objective_rax_bot": "Каз. ниж.",
"objective_tower4": "Т4 ",
"objective_fort": "Крепость",
"objective_shrine": "Свят",
"objective_roshan": "Рошан",
"tooltip_objective_tower1_top": "Damage dealt to top Tier 1 tower",
"tooltip_objective_tower1_mid": "Damage dealt to middle Tier 1 tower",
"tooltip_objective_tower1_bot": "Damage dealt to bottom Tier 1 tower",
"tooltip_objective_tower2_top": "Damage dealt to top Tier 2 tower",
"tooltip_objective_tower2_mid": "Damage dealt to middle Tier 2 tower",
"tooltip_objective_tower2_bot": "Damage dealt to bottom Tier 2 tower",
"tooltip_objective_tower3_top": "Damage dealt to top Tier 3 tower",
"tooltip_objective_tower3_mid": "Damage dealt to middle Tier 3 tower",
"tooltip_objective_tower3_bot": "Damage dealt to bottom Tier 3 tower",
"tooltip_objective_rax_top": "Нанесено урона верхним казармам",
"tooltip_objective_rax_mid": "Нанесено урона центральным казармам",
"tooltip_objective_rax_bot": "Нанесено урона нижним казармам",
"tooltip_objective_tower4": "Damage dealt to middle Tier 4 towers",
"tooltip_objective_fort": "Нанесено урона по Крепости",
"tooltip_objective_shrine": "Нанесено урона по святилищам",
"tooltip_objective_roshan": "Нанесено урона Рошану",
"pagination_first": "Первая",
"pagination_last": "Последняя",
"pagination_of": "из",
"peers_none": "У этой страницы нет связей.",
"rank_tier_0": "Без ранга",
"rank_tier_1": "Рекрут",
"rank_tier_2": "Страж",
"rank_tier_3": "Рыцарь",
"rank_tier_4": "Герой",
"rank_tier_5": "Легенда",
"rank_tier_6": "Властелин",
"rank_tier_7": "Божество",
"rank_tier_8": "Титан",
"request_title": "Обработать матч",
"request_match_id": "Номер матча",
"request_invalid_match_id": "Некорректный ID матча",
"request_error": "Не удалось получить данные о матче",
"request_submit": "Подтвердить",
"roaming": "Роуминг",
"rune_0": "Двойной Урон",
"rune_1": "Ускорение",
"rune_2": "Иллюзия",
"rune_3": "Невидимость",
"rune_4": "Регенерация",
"rune_5": "Богатство",
"rune_6": "Волшебство",
"rune_7": "Вода",
"search_title": "Поиск по имени игрока, ID матча...",
"skill_0": "Неизвестный уровень",
"skill_1": "Обычный уровень",
"skill_2": "Продвинутый уровень",
"skill_3": "Очень высокий уровень",
"story_invalid_template": "(Ошибка)",
"story_error": "При составлении истории для этого матча произошла ошибка",
"story_intro": "{date} две команды решили сыграть {game_mode_article} {game_mode} матч в Dota 2 в {region}. Они едва могли знать, что игра продлится {duration_in_words}",
"story_invalid_hero": "Неизвестный герой",
"story_fullstop": ".",
"story_list_2": "{1} и {2}",
"story_list_3": "{1}, {2} и {3}",
"story_list_n": "{i}, {rest}",
"story_firstblood": "{killer} проливает первую кровь убив {victim} на {time}",
"story_chatmessage": "\"{message}\", {said_verb} {player}",
"story_teamfight": "{winning_team} выиграли командный бой, обменяв {win_dead} на {lose_dead}, в результате общая ценность изменилась на {net_change}",
"story_teamfight_none_dead": "{winning_team} выиграли командный бой, убив {lose_dead}, не потеряв героев, что привело к увеличению общей ценности на {net_change}",
"story_teamfight_none_dead_loss": "{winning_team} каким-то образом выиграли битву, никого не убив и потеряв {win_dead}, в результате общая ценность команды увеличилась на {net_change}",
"story_lane_intro": "На 10 минуте игры ситуация на линиях была такой:",
"story_lane_radiant_win": "{lane} линия выиграна {radiant_players} против {dire_players}",
"story_lane_radiant_lose": "{lane} линия проиграна {radiant_players} против {dire_players}",
"story_lane_draw": "{lane} линия: соперники {radiant_players} и {dire_players} оказались равны",
"story_lane_free": "Свободную {lane} линию имели: {players}",
"story_lane_empty": "На {lane} линии никого не было",
"story_lane_jungle": "Получали золото в лесу: {players}",
"story_lane_roam": "Передвигались по карте: {players}",
"story_roshan": "{team} убивают Рошана",
"story_aegis": "{player} {action} Aegis",
"story_gameover": "{winning_team} победили за {duration} со счётом {radiant_score} к {dire_score}",
"story_during_teamfight": "во время боя, {events}",
"story_after_teamfight": "после боя, {events}",
"story_expensive_item": "На {time}, {player} приобрел {item}, который был первым предметом в игре с ценой, превышающей {price_limit}",
"story_building_destroy": "{building} разрушена",
"story_building_destroy_player": "{player} разрушил {building}",
"story_building_deny_player": "{player} не отдал {building}",
"story_building_list_destroy": "{buildings} разрушена",
"story_courier_kill": "Курьер {team} был убит",
"story_tower": "{lane} Tier {tier} башню {team}",
"story_tower_simple": "одна из башен {team}",
"story_towers_n": "{n} вышки команды {team}",
"story_barracks": "{rax_type} команды {team} ({lane} линия)",
"story_barracks_both": "обе казармы команды {team} на {lane} линии",
"story_time_marker": "{minutes} минут игры",
"story_item_purchase": "{player} купил {item} во время {time}",
"story_predicted_victory": "{players} предсказал победу {team}",
"story_predicted_victory_empty": "Никто",
"story_networth_diff": "Разница {percent}% / {gold}",
"story_gold": "Золото",
"story_chat_asked": "спросил",
"story_chat_said": "сказал",
"tab_overview": "Обзор",
"tab_matches": "Матчи",
"tab_heroes": "Герои",
"tab_peers": "Партнёры",
"tab_pros": "Профессионалы",
"tab_activity": "Активность",
"tab_records": "Рекорды",
"tab_totals": "Общее",
"tab_counts": "Счётчики",
"tab_histograms": "Гистограммы",
"tab_trends": "Графики",
"tab_items": "Предметы",
"tab_wardmap": "Карта вардов",
"tab_wordcloud": "Облако слов",
"tab_mmr": "Рейтинг",
"tab_rankings": "Ранги",
"tab_drafts": "Драфт",
"tab_benchmarks": "Бенчмарки",
"tab_performances": "Показатели",
"tab_damage": "Урон",
"tab_purchases": "Покупки",
"tab_farm": "Заработок",
"tab_combat": "Урон",
"tab_graphs": "Графики",
"tab_casts": "Способности",
"tab_vision": "Обзор",
"tab_objectives": "Цели",
"tab_teamfights": "Командные бои",
"tab_actions": "Действия",
"tab_analysis": "Аналитика",
"tab_cosmetics": "Снаряжение",
"tab_log": "Журнал",
"tab_chat": "Чат",
"tab_story": "История",
"tab_fantasy": "Фэнтези",
"tab_laning": "Лайнинг",
"tab_recent": "Недавние",
"tab_matchups": "Подборы",
"tab_durations": "Длительность",
"tab_players": "Игроки",
"placeholder_filter_heroes": "Фильтр по Герою",
"td_win": "Победа",
"td_loss": "Поражение",
"td_no_result": "Нет результата",
"th_hero_id": "Герой",
"th_match_id": "Номер",
"th_account_id": "ID аккаунта",
"th_result": "Результат",
"th_skill": "Уровень",
"th_duration": "Длительность",
"th_games": "ИС",
"th_games_played": "Игры",
"th_win": "% побед",
"th_advantage": "Преимущество",
"th_with_games": "С",
"th_with_win": "% побед с",
"th_against_games": "Против",
"th_against_win": "% побед против",
"th_gpm_with": "З/М",
"th_xpm_with": "О/М",
"th_avatar": "Игрок",
"th_last_played": "Последняя",
"th_record": "Рекорд",
"th_title": "Заголовок",
"th_category": "Категория",
"th_matches": "Матчи",
"th_percentile": "Процентов",
"th_rank": "Ранг",
"th_items": "Предметы",
"th_stacked": "Стакнуто",
"th_multikill": "Убийств подряд",
"th_killstreak": "Серия убийств",
"th_stuns": "Оглушил",
"th_dead": "Мёртв",
"th_buybacks": "Выкупы",
"th_biggest_hit": "Наибольший урон",
"th_lane": "Линия",
"th_map": "Карта",
"th_lane_efficiency": "ЭФФ@10",
"th_lhten": "ДК@10",
"th_dnten": "НО@10",
"th_tpscroll": "TP",
"th_ward_observer": "Observer",
"th_ward_sentry": "Sentry",
"th_smoke_of_deceit": "Smoke",
"th_dust": "Dust",
"th_gem": "Gem",
"th_time": "Время",
"th_message": "Сообщение",
"th_heroes": "Герои",
"th_creeps": "Крипы",
"th_neutrals": "Нейтральные",
"th_ancients": "Древние",
"th_towers": "Башни",
"th_couriers": "Курьеры",
"th_roshan": "Рошан",
"th_necronomicon": "Некрономикон",
"th_other": "Другие",
"th_cosmetics": "Снаряжение",
"th_damage_received": "Получено",
"th_damage_dealt": "Нанесено",
"th_players": "Игроки",
"th_analysis": "Аналитика",
"th_death": "Смерть",
"th_damage": "Урон",
"th_healing": "Исцелено",
"th_gold": "Цен",
"th_xp": "ОП",
"th_abilities": "Способности",
"th_target_abilities": "Цели Способности",
"th_mmr": "Рейтинг",
"th_level": "Ур.",
"th_kills": "У",
"th_kills_per_min": "У/М",
"th_deaths": "С",
"th_assists": "П",
"th_last_hits": "ДК",
"th_last_hits_per_min": "ДК/Мин",
"th_denies": "НО",
"th_gold_per_min": "З/М",
"th_xp_per_min": "О/М",
"th_stuns_per_min": "О/М",
"th_hero_damage": "Урон",
"th_hero_damage_per_min": "Урон/Мин",
"th_hero_healing": "Леч",
"th_hero_healing_per_min": "Леч/Мин",
"th_tower_damage": "ПСТР",
"th_tower_damage_per_min": "УС/М",
"th_kda": "УСП",
"th_actions_per_min": "ДВМ",
"th_pings": "СИГ (К)",
"th_DOTA_UNIT_ORDER_MOVE_TO_POSITION": "ДВ (Т)",
"th_DOTA_UNIT_ORDER_MOVE_TO_TARGET": "ДВ (Ц)",
"th_DOTA_UNIT_ORDER_ATTACK_TARGET": "АТК (Ц)",
"th_DOTA_UNIT_ORDER_ATTACK_MOVE": "АТК (Т)",
"th_DOTA_UNIT_ORDER_CAST_POSITION": "ЗАК (Т)",
"th_DOTA_UNIT_ORDER_CAST_TARGET": "ЗАК (Ц)",
"th_DOTA_UNIT_ORDER_CAST_NO_TARGET": "ЗАК (Б)",
"th_DOTA_UNIT_ORDER_HOLD_POSITION": "УДП",
"th_DOTA_UNIT_ORDER_GLYPH": "УКРЕП",
"th_DOTA_UNIT_ORDER_RADAR": "СКН",
"th_ability_builds": "ПС",
"th_purchase_shorthand": "КУП",
"th_use_shorthand": "ИСП",
"th_duration_shorthand": "ДЛИТ",
"th_country": "Страна",
"th_count": "Кол-во",
"th_sum": "Сумма",
"th_average": "Среднее",
"th_name": "Имя",
"th_team_name": "Название команды",
"th_score": "Счёт",
"th_casts": "Использовано способностей",
"th_hits": "Попадания",
"th_wins": "Победы",
"th_losses": "Поражения",
"th_winrate": "Доля побед",
"th_solo_mmr": "Одиночный рейтинг",
"th_party_mmr": "Групповой рейтинг",
"th_estimated_mmr": "Предполагаемый рейтинг",
"th_permanent_buffs": "Полож. эффекты",
"th_winner": "Победитель",
"th_played_with": "Мои игры с",
"th_obs_placed": "Обсервер Вардов поставлено",
"th_sen_placed": "Размещено Sentry Wards",
"th_obs_destroyed": "Уничтожено Observer Wards",
"th_sen_destroyed": "Уничтожено Sentry Wards ",
"th_scans_used": "Использовано сканирований",
"th_glyphs_used": "Количество использованных укреплений строений",
"th_legs": "Ноги",
"th_fantasy_points": "Очки",
"th_rating": "Рейтинг",
"th_teamfight_participation": "Участие",
"th_firstblood_claimed": "Первая кровь",
"th_observers_placed": "Observers",
"th_camps_stacked": "Стаков",
"th_league": "Лига",
"th_attack_type": "Тип атаки",
"th_primary_attr": "Осн. характеристика",
"th_opposing_team": "Команда противника",
"ward_log_type": "Тип",
"ward_log_owner": "Владелец",
"ward_log_entered_at": "Размещение",
"ward_log_left_at": "Осталось",
"ward_log_duration": "Продолжительность",
"ward_log_killed_by": "Уничтожен",
"log_detail": "Сведения",
"log_heroes": "Укажите героев",
"tier_professional": "Профессионал",
"tier_premium": "Премиум",
"time_past": "{0} назад",
"time_just_now": "только что",
"time_s": "секунда",
"time_abbr_s": "{0}с",
"time_ss": "{0} секунд",
"time_abbr_ss": "{0}с",
"time_m": "минута",
"time_abbr_m": "{0}м",
"time_mm": "{0} минут",
"time_abbr_mm": "{0}м",
"time_h": "час",
"time_abbr_h": "{0}ч",
"time_hh": "{0} часов",
"time_abbr_hh": "{0}ч",
"time_d": "день",
"time_abbr_d": "{0}д",
"time_dd": "{0} дней",
"time_abbr_dd": "{0}д",
"time_M": "месяц",
"time_abbr_M": "{0}м",
"time_MM": "{0} месяцев",
"time_abbr_MM": "{0}м",
"time_y": "год",
"time_abbr_y": "{0}г",
"time_yy": "{0} лет",
"time_abbr_yy": "{0}г",
"timeline_firstblood": "пролил первую кровь",
"timeline_firstblood_key": "пролил первую кровь, убив",
"timeline_aegis_picked_up": "поднял",
"timeline_aegis_snatched": "своровал",
"timeline_aegis_denied": "не отдал",
"timeline_teamfight_deaths": "Смерти",
"timeline_teamfight_gold_delta": "изменения по золоту",
"title_default": "OpenDota - статистика по Dota 2",
"title_template": "%s - OpenDota - статистика Dota 2",
"title_matches": "Профессиональные матчи",
"title_request": "Запросить обработке",
"title_search": "Поиск",
"title_status": "Статус",
"title_explorer": "Data Explorer",
"title_meta": "Мета",
"title_records": "Записи",
"title_api": "Opendota API: Расширенная Dota 2 статистика для вашего приложения",
"tooltip_mmr": "Одиночный рейтинг игрока",
"tooltip_abilitydraft": "Выбранные способности",
"tooltip_level": "Уровень, полученный героем",
"tooltip_kills": "Количество убийств героя",
"tooltip_deaths": "Количество смертей героя",
"tooltip_assists": "Количество помощи при убийстве героя",
"tooltip_last_hits": "Количество добитых крипов героем",
"tooltip_denies": "Количество не отданных героем крипов",
"tooltip_gold": "Заработанное золото",
"tooltip_gold_per_min": "Заработанное золото в минуту",
"tooltip_xp_per_min": "Заработанный опыт в минуту",
"tooltip_stuns_per_min": "Количество секунд оглушения от героя в минуту",
"tooltip_last_hits_per_min": "Добитые крипы в минуту",
"tooltip_kills_per_min": "Убийств в минуту",
"tooltip_hero_damage_per_min": "Урон по героям в минуту",
"tooltip_hero_healing_per_min": "Лечение героев в минуту",
"tooltip_tower_damage_per_min": "Урон по строениям в минуту",
"tooltip_actions_per_min": "Действий игрока в минуту",
"tooltip_hero_damage": "Количество нанесённого урона по героям",
"tooltip_tower_damage": "Количество нанесённого урона по строениям",
"tooltip_hero_healing": "Количество восстановленного здоровья героям",
"tooltip_duration": "Длительность матча",
"tooltip_first_blood_time": "Время пролития первой крови",
"tooltip_kda": "(Убийства + Помощь) / (Смерти + 1)",
"tooltip_stuns": "Секунды обезвреживания героев",
"tooltip_dead": "Продолжительностей смертей",
"tooltip_buybacks": "Количество выкупов",
"tooltip_camps_stacked": "Лагерей стакнуто",
"tooltip_tower_kills": "Количество разрушенных башен",
"tooltip_neutral_kills": "Количество убитых нейтральных крипов",
"tooltip_courier_kills": "Количество убитых курьеров",
"tooltip_purchase_tpscroll": "Куплено Town Portal Scroll",
"tooltip_purchase_ward_observer": "Куплено Observer Ward",
"tooltip_purchase_ward_sentry": "Куплено Sentry Ward",
"tooltip_purchase_smoke_of_deceit": "Куплено Smoke of Deceit",
"tooltip_purchase_dust": "Куплено Dust of Appearance",
"tooltip_purchase_gem": "Куплено Gem of True Sight",
"tooltip_purchase_rapier": "Куплено Divine Rapier",
"tooltip_purchase_buyback": "Использовано выкупов",
"tooltip_duration_observer": "Средн. длительность Observer Ward",
"tooltip_duration_sentry": "Средн. длительность Sentry Ward",
"tooltip_used_ward_observer": "Количество установленных Observer Ward",
"tooltip_used_ward_sentry": "Количество установленных Sentry Ward",
"tooltip_used_dust": "Количество использованных Dust of Appearance за всё время игры",
"tooltip_used_smoke_of_deceit": "Количество использованных Smoke of Deceit за всё время игры",
"tooltip_parsed": "Запись матча была обработана для получения дополнительных данных",
"tooltip_unparsed": "Повтор ещё не обработан. Не все данные могут быть доступны.",
"tooltip_hero_id": "Игрок",
"tooltip_result": "Выиграна ли или проиграна игра",
"tooltip_match_id": "Номер матча",
"tooltip_game_mode": "Режим игры матча",
"tooltip_skill": "Средние отметки рейтинга для групп уровней – 0, 3200 и 3700",
"tooltip_ended": "Время окончания матча",
"tooltip_pick_order": "Порядок, в котором игроки выбирали",
"tooltip_throw": "Наибольшее преимущество по золоту в проигранной игре",
"tooltip_comeback": "Наибольшее отставание по золоту в выигранной игре",
"tooltip_stomp": "Наибольшее преимущество по золоту в выигранной игре",
"tooltip_loss": "Наибольшее отставание по золоту в проигранной игре",
"tooltip_items": "Сборка предметов",
"tooltip_permanent_buffs": "Permanent buffs such as Flesh Heap stacks or Tomes of Knowledge used",
"tooltip_lane": "Линия, основанная на положении героя на ранних этапах игры",
"tooltip_map": "Тепловая карта положения игрока на ранних этапах игры",
"tooltip_lane_efficiency": "Процент золота с линии (начальное + пассивное + от крипов), заработанное за 10 первые минут",
"tooltip_lane_efficiency_pct": "Процент золота с линии (начальное + пассивное + от крипов), заработанное за 10 первые минут",
"tooltip_pings": "Количество поданых игроком сигналов на карте",
"tooltip_DOTA_UNIT_ORDER_MOVE_TO_POSITION": "Количество совершённых игроком перемещений на точку",
"tooltip_DOTA_UNIT_ORDER_MOVE_TO_TARGET": "Количество совершённых игроком перемещений к цели",
"tooltip_DOTA_UNIT_ORDER_ATTACK_MOVE": "Количество атак на точку игроком (агрессивное перемещение)",
"tooltip_DOTA_UNIT_ORDER_ATTACK_TARGET": "Количество атак цели игроком",
"tooltip_DOTA_UNIT_ORDER_CAST_POSITION": "Количество использованных способностей на точку",
"tooltip_DOTA_UNIT_ORDER_CAST_TARGET": "Количество использованных способностей на цель",
"tooltip_DOTA_UNIT_ORDER_CAST_NO_TARGET": "Количество использованных ненаправленных способностей",
"tooltip_DOTA_UNIT_ORDER_HOLD_POSITION": "Количество отданных игроком приказов удерживать позицию",
"tooltip_DOTA_UNIT_ORDER_GLYPH": "Количество активируемых игроком укреплений строений",
"tooltip_DOTA_UNIT_ORDER_RADAR": "Количество активируемых игроком сканирований местностей",
"tooltip_last_played": "Последний матч, сыгранные с игроком/героем",
"tooltip_matches": "Матчей с/против этого игрока",
"tooltip_played_as": "Количество матчей, сыгранных на этом герое",
"tooltip_played_with": "Количество матчей, сыгранных в одной команде с этим игроком/героем",
"tooltip_played_against": "Количество матчей, сыгранных в противоположных командах с этим игроком/героем",
"tooltip_tombstone_victim": "Здесь лежит",
"tooltip_tombstone_killer": "убит",
"tooltip_win_pct_as": "Процент побед на герое",
"tooltip_win_pct_with": "Процент побед с игроком/героем",
"tooltip_win_pct_against": "Процент побед против игроком/героем",
"tooltip_lhten": "Добиваний за первые 10 минут",
"tooltip_dnten": "Не отданные крипы за первые 10 минут",
"tooltip_biggest_hit": "Крупнейший мгновенный нанесённый урон по герою",
"tooltip_damage_dealt": "Урон, нанесённый героем предметами/способностями",
"tooltip_damage_received": "Урон, полученный от героев предметами/способностями",
"tooltip_registered_user": "Зарегистрированный пользователь",
"tooltip_ability_builds": "Порядок изучения способностей",
"tooltip_ability_builds_expired": "Возможность обновить данные для этого матча истекла. Используйте форму запроса для перезагрузки данных.",
"tooltip_multikill": "Наибольшее количество убийств подряд",
"tooltip_killstreak": "Длиннейшая серия убийств",
"tooltip_casts": "Количество применений этой способности/предмета",
"tooltip_target_abilities": "Сколько раз, каждый герой был мишенью этого героя способностей",
"tooltip_hits": "Количество случаев попадания в героев этой способностью/предметом",
"tooltip_damage": "Количество нанесённого героям урона этой способностью/предметом",
"tooltip_autoattack_other": "Автоматические атаки и прочее",
"tooltip_estimated_mmr": "Рейтинг предполагается на основе среднего видимого рейтинга недавних матчей данного пользователя",
"tooltip_backpack": "Ранец",
"tooltip_others_tracked_deaths": "отслеженные смерти",
"tooltip_others_track_gold": "Добыто золота из Track",
"tooltip_others_greevils_gold": "Добыто золота из Greevil's Greed",
"tooltip_advantage": "Рассчитывано Wilson score",
"tooltip_winrate_samplesize": "Доля побед и размер выборки",
"tooltip_teamfight_participation": "Количество участий в тимфайтах",
"histograms_name": "Гистограммы",
"histograms_description": "Процентаж указывает на процент побед для этого столбца",
"histograms_actions_per_min_description": "Действий игрока в минуту",
"histograms_comeback_description": "Наибольшее отставание по золоту в выигранной игре",
"histograms_lane_efficiency_pct_description": "Процент золота с линии (начальное + пассивное + от крипов), заработанное за 10 первые минут",
"histograms_gold_per_min_description": "Заработанное золото в минуту",
"histograms_hero_damage_description": "Количество нанесённого урона по героям",
"histograms_hero_healing_description": "Количество восстановленного здоровья героям",
"histograms_level_description": "Достигнутый в игре уровень",
"histograms_loss_description": "Наибольшее отставание по золоту в проигранной игре",
"histograms_pings_description": "Количество поданых игроком сигналов на карте",
"histograms_stomp_description": "Наибольшее преимущество по золоту в выигранной игре",
"histograms_stuns_description": "Длительность обезвреживания героев",
"histograms_throw_description": "Наибольшее преимущество по золоту в проигранной игре",
"histograms_purchase_tpscroll_description": "Покупок Town Portal Scroll",
"histograms_xp_per_min_description": "Заработанный опыт в минуту",
"trends_name": "Графики",
"trends_description": "Совокупное среднее за последние 500 игр",
"trends_tooltip_average": "Сред.",
"trends_no_data": "К сожалению, данные для диаграммы отсутствуют",
"xp_reasons_0": "Другие",
"xp_reasons_1": "Герой",
"xp_reasons_2": "Крипы",
"xp_reasons_3": "Рошан",
"rankings_description": "",
"rankings_none": "Этот игрок не место на любой героев.",
"region_0": "Автоматически",
"region_1": "Запад США",
"region_2": "Восток США",
"region_3": "Люксембург",
"region_5": "Сингапур",
"region_6": "Дубай",
"region_7": "Австралия",
"region_8": "Cтокгольм",
"region_9": "Австрия",
"region_10": "Бразилия",
"region_11": "Южная Африка",
"region_12": "China TC - Шанхай",
"region_13": "Китай UC",
"region_14": "Чили",
"region_15": "Перу",
"region_16": "Индия",
"region_17": "China TC - Гуандун",
"region_18": "China TC - Чжэцзян",
"region_19": "Япония",
"region_20": "China TC - Ухань",
"region_25": "Китай UC 2",
"vision_expired": "Истекло после",
"vision_destroyed": "Уничтожено после",
"vision_all_time": "За всё время",
"vision_placed_observer": "установил Observer Ward на",
"vision_placed_sentry": "установил Sentry Ward на",
"vision_ward_log": "Журнал Вардов",
"chat_category_faction": "Сторона",
"chat_category_type": "Тип",
"chat_category_target": "Цель",
"chat_category_other": "Другое",
"chat_filter_text": "Текст",
"chat_filter_phrases": "Фразы",
"chat_filter_audio": "Аудио",
"chat_filter_spam": "Спам",
"chat_filter_all": "Все",
"chat_filter_allies": "Союзники",
"chat_filter_spectator": "Зритель",
"chat_filtered": "Отфильтровано",
"advb_almost": "почти",
"advb_over": "больше",
"advb_about": "около",
"article_before_consonant_sound": " ",
"article_before_vowel_sound": " ",
"statement_long": "предпологаемый",
"statement_shouted": "крикнул",
"statement_excited": "воскликнул",
"statement_normal": "сказал",
"statement_laughed": "смеяться",
"question_long": "вопросы, нуждающиеся в ответы",
"question_shouted": "спросил",
"question_excited": "Пытать",
"question_normal": "Спросил",
"question_laughed": "насмешливо смеялись",
"statement_response_long": "советуем",
"statement_response_shouted": "ответил в отчаянии",
"statement_response_excited": "воскликнул",
"statement_response_normal": "ответил",
"statement_response_laughed": "смеяться",
"statement_continued_long": "разносил в щепки",
"statement_continued_shouted": "продолжал с яростью",
"statement_continued_excited": "Продолжено",
"statement_continued_normal": "Добавил",
"statement_continued_laughed": "Продолжено",
"question_response_long": "посоветовал",
"question_response_shouted": "спросил из разочарования",
"question_response_excited": "Оспорить",
"question_response_normal": "противопоставить",
"question_response_laughed": "смеялся",
"question_continued_long": "Предложения для улучшения",
"question_continued_shouted": "Спросил с яростью",
"question_continued_excited": "Спросил с любовью",
"question_continued_normal": "спросил",
"question_continued_laughed": "радостно спросил",
"hero_disclaimer_pro": "Данные профессиональных матчей",
"hero_disclaimer_public": "Данные публичных матчей",
"hero_duration_x_axis": "Минут",
"top_tower": "Верхняя башня",
"bot_tower": "Нижняя башня",
"mid_tower": "Центральная башня",
"top_rax": "Верхние казармы",
"bot_rax": "Нижние казармы",
"mid_rax": "Центральные казармы",
"tier1": "1-й разряд",
"tier2": "2-й разряд",
"tier3": "3-й разряд",
"tier4": "4-й разряд",
"show_consumables_items": "Показать расходуемые предметы",
"activated": "Активирован",
"rune": "Руны",
"placement": "Размещение",
"exclude_turbo_matches": "Исключить Turbo матчи",
"scenarios_subtitle": "Исследуйте шансы на победу комбинируя факты произошедшие в матче",
"scenarios_info": "Данные из матчей в течение последних {0} недель",
"scenarios_item_timings": "Тайминги предметов",
"scenarios_misc": "Прочее",
"scenarios_time": "Время",
"scenarios_item": "Предмет",
"scenarios_game_duration": "Продолжительность игры",
"scenarios_scenario": "Сценарий",
"scenarios_first_blood": "Команда совершает первую кровь",
"scenarios_courier_kill": "Команда убивает вражеского курьера до 3-минуты",
"scenarios_pos_chat_1min": "Команда пишет позитивные слова в общий чат до 1 минуты",
"scenarios_neg_chat_1min": "Команда пишет негативные слова в общий чат до 1 минуты",
"gosu_default": "Получить персональные рекомендации",
"gosu_benchmarks": "Получить подробные разбор для вашего героя, Лайн и роль",
"gosu_performances": "Получите ваш показатель контроля карты",
"gosu_laning": "Показать, почему вы пропустили ластхиты",
"gosu_combat": "Показать, почему попытки убийств были неудачными",
"gosu_farm": "Показать, почему вы пропустили ластхиты",
"gosu_vision": "Показать как много героев были убиты под вашими вардами",
"gosu_actions": "Показать сколько времени вы потеряли используя мышь а не горячие клавиши",
"gosu_teamfights": "Показать на кого вы ориентировались во время тимфайта",
"gosu_analysis": "Получить ваш реальный MMR диапазон",
"back2Top": "Наверх",
"activity_subtitle": "Click on a day for detailed information"
} | odota/web/src/lang/ru-RU.json/0 | {
"file_path": "odota/web/src/lang/ru-RU.json",
"repo_id": "odota",
"token_count": 34846
} | 245 |
export type Hero = {
id: number
name: string
localized_name: string
primary_attr: string
attack_type: string
roles: string[]
img: string
icon: string
cm_enabled: boolean
base_health: number
base_health_regen: number | null
base_mana: number
base_mana_regen: number
base_armor: number
base_mr: number
base_attack_min: number
base_attack_max: number
base_str: number
base_agi: number
base_int: number
str_gain: number
agi_gain: number
int_gain: number
attack_range: number
projectile_speed: number
attack_rate: number
move_speed: number
turn_rate: number | null
legs: number | null
}
| odota/web/src/types/Hero/Hero.ts/0 | {
"file_path": "odota/web/src/types/Hero/Hero.ts",
"repo_id": "odota",
"token_count": 219
} | 246 |
[
{
"x": 0,
"games": 222,
"win": 65
},
{
"x": 1,
"games": 423,
"win": 150
},
{
"x": 2,
"games": 515,
"win": 241
},
{
"x": 3,
"games": 566,
"win": 304
},
{
"x": 4,
"games": 530,
"win": 312
},
{
"x": 5,
"games": 520,
"win": 313
},
{
"x": 6,
"games": 451,
"win": 286
},
{
"x": 7,
"games": 403,
"win": 244
},
{
"x": 8,
"games": 353,
"win": 211
},
{
"x": 9,
"games": 250,
"win": 168
},
{
"x": 10,
"games": 269,
"win": 190
},
{
"x": 11,
"games": 227,
"win": 167
},
{
"x": 12,
"games": 174,
"win": 130
},
{
"x": 13,
"games": 157,
"win": 111
},
{
"x": 14,
"games": 168,
"win": 135
},
{
"x": 15,
"games": 140,
"win": 116
},
{
"x": 16,
"games": 111,
"win": 96
},
{
"x": 17,
"games": 94,
"win": 80
},
{
"x": 18,
"games": 96,
"win": 76
},
{
"x": 19,
"games": 65,
"win": 55
},
{
"x": 20,
"games": 59,
"win": 50
},
{
"x": 21,
"games": 55,
"win": 52
},
{
"x": 22,
"games": 28,
"win": 22
},
{
"x": 23,
"games": 54,
"win": 47
},
{
"x": 24,
"games": 38,
"win": 36
},
{
"x": 25,
"games": 27,
"win": 23
},
{
"x": 26,
"games": 20,
"win": 17
},
{
"x": 27,
"games": 12,
"win": 10
},
{
"x": 28,
"games": 17,
"win": 13
},
{
"x": 29,
"games": 11,
"win": 10
},
{
"x": 30,
"games": 3,
"win": 2
},
{
"x": 31,
"games": 2,
"win": 2
},
{
"x": 32,
"games": 5,
"win": 5
},
{
"x": 33,
"games": 0,
"win": 0
},
{
"x": 34,
"games": 1,
"win": 1
},
{
"x": 35,
"games": 5,
"win": 3
},
{
"x": 36,
"games": 2,
"win": 2
},
{
"x": 37,
"games": 2,
"win": 2
},
{
"x": 38,
"games": 0,
"win": 0
},
{
"x": 39,
"games": 0,
"win": 0
}
] | odota/web/testcafe/cachedAjax/players_101695162_histograms_kills_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/players_101695162_histograms_kills_.json",
"repo_id": "odota",
"token_count": 1165
} | 247 |
[
{
"match_id": 4089382003,
"duration": 2204,
"start_time": 1535593412,
"radiant_team_id": 2564070,
"radiant_name": "PapiroDontFeedPlss",
"dire_team_id": 3728320,
"dire_name": "El ano de inu sama",
"leagueid": 3482,
"league_name": "Sudamerican Master 3 by g2a",
"series_id": 237480,
"series_type": 0,
"radiant_score": 36,
"dire_score": 29,
"radiant_win": true
},
{
"match_id": 4080856812,
"duration": 2188,
"start_time": 1535249730,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 2586976,
"dire_name": "OG",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236320,
"series_type": 2,
"radiant_score": 34,
"dire_score": 35,
"radiant_win": false
},
{
"match_id": 4080778303,
"duration": 3921,
"start_time": 1535243738,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 2586976,
"dire_name": "OG",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236320,
"series_type": 2,
"radiant_score": 58,
"dire_score": 49,
"radiant_win": false
},
{
"match_id": 4080723031,
"duration": 2066,
"start_time": 1535239468,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236320,
"series_type": 2,
"radiant_score": 25,
"dire_score": 50,
"radiant_win": false
},
{
"match_id": 4080666526,
"duration": 2285,
"start_time": 1535235390,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 2586976,
"dire_name": "OG",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236320,
"series_type": 2,
"radiant_score": 45,
"dire_score": 19,
"radiant_win": true
},
{
"match_id": 4080601137,
"duration": 2078,
"start_time": 1535231302,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236320,
"series_type": 2,
"radiant_score": 34,
"dire_score": 27,
"radiant_win": true
},
{
"match_id": 4080420268,
"duration": 1944,
"start_time": 1535223496,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 39,
"dire_name": "Evil Geniuses",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236302,
"series_type": 1,
"radiant_score": 32,
"dire_score": 18,
"radiant_win": true
},
{
"match_id": 4080316101,
"duration": 2605,
"start_time": 1535219083,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236302,
"series_type": 1,
"radiant_score": 21,
"dire_score": 41,
"radiant_win": false
},
{
"match_id": 4078566725,
"duration": 2081,
"start_time": 1535163554,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 2163,
"dire_name": "Team Liquid",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236158,
"series_type": 1,
"radiant_score": 39,
"dire_score": 21,
"radiant_win": true
},
{
"match_id": 4078478649,
"duration": 3857,
"start_time": 1535157660,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 2163,
"dire_name": "Team Liquid",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236158,
"series_type": 1,
"radiant_score": 53,
"dire_score": 40,
"radiant_win": true
},
{
"match_id": 4078412913,
"duration": 3489,
"start_time": 1535152122,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236137,
"series_type": 1,
"radiant_score": 33,
"dire_score": 40,
"radiant_win": true
},
{
"match_id": 4078363316,
"duration": 2222,
"start_time": 1535148299,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236137,
"series_type": 1,
"radiant_score": 26,
"dire_score": 45,
"radiant_win": false
},
{
"match_id": 4078291886,
"duration": 2935,
"start_time": 1535143603,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 2586976,
"dire_name": "OG",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236137,
"series_type": 1,
"radiant_score": 36,
"dire_score": 52,
"radiant_win": false
},
{
"match_id": 4078180258,
"duration": 2535,
"start_time": 1535137622,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 2163,
"dire_name": "Team Liquid",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236109,
"series_type": 1,
"radiant_score": 18,
"dire_score": 38,
"radiant_win": false
},
{
"match_id": 4078079157,
"duration": 3098,
"start_time": 1535132746,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 2163,
"dire_name": "Team Liquid",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 236109,
"series_type": 1,
"radiant_score": 27,
"dire_score": 40,
"radiant_win": false
},
{
"match_id": 4076485641,
"duration": 2801,
"start_time": 1535075729,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235988,
"series_type": 1,
"radiant_score": 38,
"dire_score": 34,
"radiant_win": true
},
{
"match_id": 4076431752,
"duration": 2120,
"start_time": 1535071847,
"radiant_team_id": 1883502,
"radiant_name": "Virtus.pro",
"dire_team_id": 39,
"dire_name": "Evil Geniuses",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235988,
"series_type": 1,
"radiant_score": 17,
"dire_score": 27,
"radiant_win": false
},
{
"match_id": 4076314248,
"duration": 3320,
"start_time": 1535061995,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 5228654,
"dire_name": "VGJ Storm",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235975,
"series_type": 1,
"radiant_score": 40,
"dire_score": 35,
"radiant_win": true
},
{
"match_id": 4076257095,
"duration": 1978,
"start_time": 1535058023,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 5228654,
"dire_name": "VGJ Storm",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235975,
"series_type": 1,
"radiant_score": 25,
"dire_score": 9,
"radiant_win": true
},
{
"match_id": 4076188379,
"duration": 1553,
"start_time": 1535053843,
"radiant_team_id": 1883502,
"radiant_name": "Virtus.pro",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235947,
"series_type": 1,
"radiant_score": 33,
"dire_score": 17,
"radiant_win": true
},
{
"match_id": 4076114893,
"duration": 2566,
"start_time": 1535049678,
"radiant_team_id": 5026801,
"radiant_name": "OpTic Gaming",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235947,
"series_type": 1,
"radiant_score": 24,
"dire_score": 62,
"radiant_win": false
},
{
"match_id": 4076043995,
"duration": 1872,
"start_time": 1535046106,
"radiant_team_id": 5026801,
"radiant_name": "OpTic Gaming",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235947,
"series_type": 1,
"radiant_score": 24,
"dire_score": 12,
"radiant_win": true
},
{
"match_id": 4074821374,
"duration": 3207,
"start_time": 1535002214,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 2586976,
"dire_name": "OG",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235873,
"series_type": 1,
"radiant_score": 47,
"dire_score": 37,
"radiant_win": false
},
{
"match_id": 4074748928,
"duration": 2612,
"start_time": 1534997864,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 39,
"dire_name": "Evil Geniuses",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235873,
"series_type": 1,
"radiant_score": 30,
"dire_score": 34,
"radiant_win": false
},
{
"match_id": 4074694505,
"duration": 1956,
"start_time": 1534994296,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 2586976,
"dire_name": "OG",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235873,
"series_type": 1,
"radiant_score": 26,
"dire_score": 39,
"radiant_win": false
},
{
"match_id": 4074639753,
"duration": 1907,
"start_time": 1534990401,
"radiant_team_id": 2163,
"radiant_name": "Team Liquid",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235866,
"series_type": 1,
"radiant_score": 7,
"dire_score": 33,
"radiant_win": false
},
{
"match_id": 4074591870,
"duration": 1972,
"start_time": 1534986664,
"radiant_team_id": 2163,
"radiant_name": "Team Liquid",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235866,
"series_type": 1,
"radiant_score": 16,
"dire_score": 35,
"radiant_win": false
},
{
"match_id": 4074486307,
"duration": 2021,
"start_time": 1534977517,
"radiant_team_id": 726228,
"radiant_name": "Vici Gaming",
"dire_team_id": 1838315,
"dire_name": "Team Secret",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235850,
"series_type": 1,
"radiant_score": 19,
"dire_score": 31,
"radiant_win": false
},
{
"match_id": 4074440208,
"duration": 1935,
"start_time": 1534973895,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 726228,
"dire_name": "Vici Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235850,
"series_type": 1,
"radiant_score": 31,
"dire_score": 11,
"radiant_win": true
},
{
"match_id": 4074356696,
"duration": 3532,
"start_time": 1534968491,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 726228,
"dire_name": "Vici Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235850,
"series_type": 1,
"radiant_score": 32,
"dire_score": 46,
"radiant_win": false
},
{
"match_id": 4074255285,
"duration": 1660,
"start_time": 1534963179,
"radiant_team_id": 5228654,
"radiant_name": "VGJ Storm",
"dire_team_id": 5229127,
"dire_name": "Winstrike",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235829,
"series_type": 1,
"radiant_score": 26,
"dire_score": 13,
"radiant_win": true
},
{
"match_id": 4074178274,
"duration": 1985,
"start_time": 1534959427,
"radiant_team_id": 5229127,
"radiant_name": "Winstrike",
"dire_team_id": 5228654,
"dire_name": "VGJ Storm",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235829,
"series_type": 1,
"radiant_score": 12,
"dire_score": 44,
"radiant_win": false
},
{
"match_id": 4072772695,
"duration": 2136,
"start_time": 1534907661,
"radiant_team_id": 1883502,
"radiant_name": "Virtus.pro",
"dire_team_id": 543897,
"dire_name": " mski亿电竞",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235734,
"series_type": 1,
"radiant_score": 38,
"dire_score": 19,
"radiant_win": true
},
{
"match_id": 4072699199,
"duration": 3097,
"start_time": 1534902846,
"radiant_team_id": 1883502,
"radiant_name": "Virtus.pro",
"dire_team_id": 543897,
"dire_name": " mski亿电竞",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235734,
"series_type": 1,
"radiant_score": 40,
"dire_score": 27,
"radiant_win": true
},
{
"match_id": 4072635180,
"duration": 2328,
"start_time": 1534898196,
"radiant_team_id": 5066616,
"radiant_name": "Team Serenity",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235729,
"series_type": 1,
"radiant_score": 20,
"dire_score": 38,
"radiant_win": false
},
{
"match_id": 4072586507,
"duration": 2304,
"start_time": 1534894099,
"radiant_team_id": 5026801,
"radiant_name": "OpTic Gaming",
"dire_team_id": 5066616,
"dire_name": "Team Serenity",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235729,
"series_type": 1,
"radiant_score": 31,
"dire_score": 9,
"radiant_win": true
},
{
"match_id": 4072509593,
"duration": 3489,
"start_time": 1534887572,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 39,
"dire_name": "Evil Geniuses",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235708,
"series_type": 1,
"radiant_score": 37,
"dire_score": 41,
"radiant_win": false
},
{
"match_id": 4072441405,
"duration": 2558,
"start_time": 1534883048,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 1838315,
"dire_name": "Team Secret",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235708,
"series_type": 1,
"radiant_score": 34,
"dire_score": 21,
"radiant_win": true
},
{
"match_id": 4072354014,
"duration": 2149,
"start_time": 1534878322,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 5228654,
"dire_name": "VGJ Storm",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235689,
"series_type": 1,
"radiant_score": 36,
"dire_score": 29,
"radiant_win": true
},
{
"match_id": 4072252473,
"duration": 2670,
"start_time": 1534873367,
"radiant_team_id": 5228654,
"radiant_name": "VGJ Storm",
"dire_team_id": 2586976,
"dire_name": "OG",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235689,
"series_type": 1,
"radiant_score": 36,
"dire_score": 30,
"radiant_win": false
},
{
"match_id": 4070838238,
"duration": 2743,
"start_time": 1534821698,
"radiant_team_id": 5027210,
"radiant_name": "VGJ Thunder",
"dire_team_id": 726228,
"dire_name": "Vici Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 0,
"series_type": 0,
"radiant_score": 18,
"dire_score": 34,
"radiant_win": false
},
{
"match_id": 4070746269,
"duration": 3322,
"start_time": 1534815802,
"radiant_team_id": 5229127,
"radiant_name": "Winstrike",
"dire_team_id": 1375614,
"dire_name": "Newbee",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 0,
"series_type": 0,
"radiant_score": 44,
"dire_score": 41,
"radiant_win": true
},
{
"match_id": 4070674710,
"duration": 2962,
"start_time": 1534810174,
"radiant_team_id": 543897,
"radiant_name": " mski亿电竞",
"dire_team_id": 2108395,
"dire_name": "TNC Predator",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 0,
"series_type": 0,
"radiant_score": 18,
"dire_score": 30,
"radiant_win": true
},
{
"match_id": 4070612749,
"duration": 2675,
"start_time": 1534804707,
"radiant_team_id": 5066616,
"radiant_name": "Team Serenity",
"dire_team_id": 350190,
"dire_name": "Fnatic",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 0,
"series_type": 0,
"radiant_score": 39,
"dire_score": 19,
"radiant_win": true
},
{
"match_id": 4070556816,
"duration": 2121,
"start_time": 1534800190,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235571,
"series_type": 1,
"radiant_score": 30,
"dire_score": 13,
"radiant_win": true
},
{
"match_id": 4070500759,
"duration": 2378,
"start_time": 1534796227,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235571,
"series_type": 1,
"radiant_score": 17,
"dire_score": 29,
"radiant_win": true
},
{
"match_id": 4070423361,
"duration": 1819,
"start_time": 1534791992,
"radiant_team_id": 2163,
"radiant_name": "Team Liquid",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235562,
"series_type": 1,
"radiant_score": 32,
"dire_score": 9,
"radiant_win": true
},
{
"match_id": 4070356125,
"duration": 1734,
"start_time": 1534788520,
"radiant_team_id": 2163,
"radiant_name": "Team Liquid",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235562,
"series_type": 1,
"radiant_score": 26,
"dire_score": 12,
"radiant_win": true
},
{
"match_id": 4067049273,
"duration": 1632,
"start_time": 1534639865,
"radiant_team_id": 5229127,
"radiant_name": "Winstrike",
"dire_team_id": 5,
"dire_name": "Invictus Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235203,
"series_type": 1,
"radiant_score": 18,
"dire_score": 15,
"radiant_win": true
},
{
"match_id": 4067035268,
"duration": 2530,
"start_time": 1534638635,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 1375614,
"dire_name": "Newbee",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 0,
"series_type": 0,
"radiant_score": 19,
"dire_score": 19,
"radiant_win": true
},
{
"match_id": 4066995932,
"duration": 2087,
"start_time": 1534635092,
"radiant_team_id": 1375614,
"radiant_name": "Newbee",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 0,
"series_type": 0,
"radiant_score": 20,
"dire_score": 33,
"radiant_win": false
},
{
"match_id": 4066988194,
"duration": 3483,
"start_time": 1534634443,
"radiant_team_id": 5229127,
"radiant_name": "Winstrike",
"dire_team_id": 5,
"dire_name": "Invictus Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235203,
"series_type": 1,
"radiant_score": 38,
"dire_score": 35,
"radiant_win": true
},
{
"match_id": 4066926568,
"duration": 3263,
"start_time": 1534629645,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 1375614,
"dire_name": "Newbee",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235177,
"series_type": 1,
"radiant_score": 37,
"dire_score": 33,
"radiant_win": false
},
{
"match_id": 4066909869,
"duration": 2225,
"start_time": 1534628468,
"radiant_team_id": 5228654,
"radiant_name": "VGJ Storm",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235183,
"series_type": 1,
"radiant_score": 19,
"dire_score": 43,
"radiant_win": false
},
{
"match_id": 4066891674,
"duration": 2093,
"start_time": 1534627241,
"radiant_team_id": 726228,
"radiant_name": "Vici Gaming",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235178,
"series_type": 1,
"radiant_score": 16,
"dire_score": 31,
"radiant_win": false
},
{
"match_id": 4066891298,
"duration": 1613,
"start_time": 1534627216,
"radiant_team_id": 67,
"radiant_name": "paiN Gaming",
"dire_team_id": 5066616,
"dire_name": "Team Serenity",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235181,
"series_type": 1,
"radiant_score": 14,
"dire_score": 47,
"radiant_win": false
},
{
"match_id": 4066838505,
"duration": 2851,
"start_time": 1534623961,
"radiant_team_id": 5228654,
"radiant_name": "VGJ Storm",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235183,
"series_type": 1,
"radiant_score": 24,
"dire_score": 37,
"radiant_win": false
},
{
"match_id": 4066831697,
"duration": 1964,
"start_time": 1534623609,
"radiant_team_id": 67,
"radiant_name": "paiN Gaming",
"dire_team_id": 5066616,
"dire_name": "Team Serenity",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235181,
"series_type": 1,
"radiant_score": 16,
"dire_score": 40,
"radiant_win": false
},
{
"match_id": 4066823822,
"duration": 2065,
"start_time": 1534623166,
"radiant_team_id": 5026801,
"radiant_name": "OpTic Gaming",
"dire_team_id": 726228,
"dire_name": "Vici Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235178,
"series_type": 1,
"radiant_score": 37,
"dire_score": 15,
"radiant_win": true
},
{
"match_id": 4066822873,
"duration": 4748,
"start_time": 1534623114,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 1375614,
"dire_name": "Newbee",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235177,
"series_type": 1,
"radiant_score": 36,
"dire_score": 48,
"radiant_win": false
},
{
"match_id": 4066775838,
"duration": 2144,
"start_time": 1534620518,
"radiant_team_id": 5027210,
"radiant_name": "VGJ Thunder",
"dire_team_id": 2163,
"dire_name": "Team Liquid",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235157,
"series_type": 1,
"radiant_score": 29,
"dire_score": 40,
"radiant_win": false
},
{
"match_id": 4066760701,
"duration": 1957,
"start_time": 1534619764,
"radiant_team_id": 543897,
"radiant_name": " mski亿电竞",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235154,
"series_type": 1,
"radiant_score": 21,
"dire_score": 37,
"radiant_win": false
},
{
"match_id": 4066759760,
"duration": 1947,
"start_time": 1534619714,
"radiant_team_id": 350190,
"radiant_name": "Fnatic",
"dire_team_id": 39,
"dire_name": "Evil Geniuses",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235153,
"series_type": 1,
"radiant_score": 18,
"dire_score": 35,
"radiant_win": false
},
{
"match_id": 4066751467,
"duration": 2954,
"start_time": 1534619298,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 5229127,
"dire_name": "Winstrike",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235156,
"series_type": 1,
"radiant_score": 34,
"dire_score": 44,
"radiant_win": true
},
{
"match_id": 4066704198,
"duration": 2010,
"start_time": 1534616892,
"radiant_team_id": 2163,
"radiant_name": "Team Liquid",
"dire_team_id": 5027210,
"dire_name": "VGJ Thunder",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235157,
"series_type": 1,
"radiant_score": 35,
"dire_score": 20,
"radiant_win": true
},
{
"match_id": 4066688247,
"duration": 1488,
"start_time": 1534616084,
"radiant_team_id": 5229127,
"radiant_name": "Winstrike",
"dire_team_id": 2586976,
"dire_name": "OG",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235156,
"series_type": 1,
"radiant_score": 36,
"dire_score": 9,
"radiant_win": true
},
{
"match_id": 4066670110,
"duration": 2457,
"start_time": 1534615320,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 543897,
"dire_name": " mski亿电竞",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235154,
"series_type": 1,
"radiant_score": 35,
"dire_score": 18,
"radiant_win": true
},
{
"match_id": 4066666471,
"duration": 2446,
"start_time": 1534615210,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 350190,
"dire_name": "Fnatic",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235153,
"series_type": 1,
"radiant_score": 37,
"dire_score": 30,
"radiant_win": true
},
{
"match_id": 4066615144,
"duration": 2848,
"start_time": 1534612755,
"radiant_team_id": 67,
"radiant_name": "paiN Gaming",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235128,
"series_type": 1,
"radiant_score": 31,
"dire_score": 51,
"radiant_win": false
},
{
"match_id": 4066608591,
"duration": 2305,
"start_time": 1534612459,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 2108395,
"dire_name": "TNC Predator",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235126,
"series_type": 1,
"radiant_score": 41,
"dire_score": 18,
"radiant_win": true
},
{
"match_id": 4066598139,
"duration": 1543,
"start_time": 1534612039,
"radiant_team_id": 5228654,
"radiant_name": "VGJ Storm",
"dire_team_id": 5066616,
"dire_name": "Team Serenity",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235127,
"series_type": 1,
"radiant_score": 35,
"dire_score": 10,
"radiant_win": true
},
{
"match_id": 4066597494,
"duration": 2335,
"start_time": 1534612014,
"radiant_team_id": 726228,
"radiant_name": "Vici Gaming",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235131,
"series_type": 1,
"radiant_score": 30,
"dire_score": 29,
"radiant_win": true
},
{
"match_id": 4066517897,
"duration": 1672,
"start_time": 1534608693,
"radiant_team_id": 1883502,
"radiant_name": "Virtus.pro",
"dire_team_id": 726228,
"dire_name": "Vici Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235131,
"series_type": 1,
"radiant_score": 11,
"dire_score": 31,
"radiant_win": false
},
{
"match_id": 4066505440,
"duration": 2610,
"start_time": 1534608236,
"radiant_team_id": 5026801,
"radiant_name": "OpTic Gaming",
"dire_team_id": 67,
"dire_name": "paiN Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235128,
"series_type": 1,
"radiant_score": 43,
"dire_score": 23,
"radiant_win": true
},
{
"match_id": 4066499349,
"duration": 2202,
"start_time": 1534608023,
"radiant_team_id": 5228654,
"radiant_name": "VGJ Storm",
"dire_team_id": 5066616,
"dire_name": "Team Serenity",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235127,
"series_type": 1,
"radiant_score": 39,
"dire_score": 12,
"radiant_win": true
},
{
"match_id": 4066499119,
"duration": 2610,
"start_time": 1534608015,
"radiant_team_id": 2108395,
"radiant_name": "TNC Predator",
"dire_team_id": 1838315,
"dire_name": "Team Secret",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235126,
"series_type": 1,
"radiant_score": 15,
"dire_score": 30,
"radiant_win": false
},
{
"match_id": 4065281130,
"duration": 2347,
"start_time": 1534559540,
"radiant_team_id": 5,
"radiant_name": "Invictus Gaming",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235019,
"series_type": 1,
"radiant_score": 29,
"dire_score": 26,
"radiant_win": false
},
{
"match_id": 4065268827,
"duration": 1019,
"start_time": 1534558595,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 5027210,
"dire_name": "VGJ Thunder",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235015,
"series_type": 1,
"radiant_score": 28,
"dire_score": 6,
"radiant_win": true
},
{
"match_id": 4065260154,
"duration": 1807,
"start_time": 1534557920,
"radiant_team_id": 2163,
"radiant_name": "Team Liquid",
"dire_team_id": 39,
"dire_name": "Evil Geniuses",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235014,
"series_type": 1,
"radiant_score": 45,
"dire_score": 17,
"radiant_win": true
},
{
"match_id": 4065251250,
"duration": 2455,
"start_time": 1534557249,
"radiant_team_id": 350190,
"radiant_name": "Fnatic",
"dire_team_id": 5229127,
"dire_name": "Winstrike",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235012,
"series_type": 1,
"radiant_score": 14,
"dire_score": 42,
"radiant_win": false
},
{
"match_id": 4065229720,
"duration": 2411,
"start_time": 1534555358,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 5,
"dire_name": "Invictus Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235019,
"series_type": 1,
"radiant_score": 35,
"dire_score": 18,
"radiant_win": true
},
{
"match_id": 4065211218,
"duration": 3148,
"start_time": 1534553668,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 5027210,
"dire_name": "VGJ Thunder",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235015,
"series_type": 1,
"radiant_score": 41,
"dire_score": 40,
"radiant_win": true
},
{
"match_id": 4065211201,
"duration": 2529,
"start_time": 1534553665,
"radiant_team_id": 39,
"radiant_name": "Evil Geniuses",
"dire_team_id": 2163,
"dire_name": "Team Liquid",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235014,
"series_type": 1,
"radiant_score": 34,
"dire_score": 46,
"radiant_win": false
},
{
"match_id": 4065192690,
"duration": 3340,
"start_time": 1534551933,
"radiant_team_id": 5229127,
"radiant_name": "Winstrike",
"dire_team_id": 350190,
"dire_name": "Fnatic",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235012,
"series_type": 1,
"radiant_score": 29,
"dire_score": 40,
"radiant_win": false
},
{
"match_id": 4065178894,
"duration": 3596,
"start_time": 1534550539,
"radiant_team_id": 2108395,
"radiant_name": "TNC Predator",
"dire_team_id": 5066616,
"dire_name": "Team Serenity",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235009,
"series_type": 1,
"radiant_score": 41,
"dire_score": 29,
"radiant_win": true
},
{
"match_id": 4065175507,
"duration": 1605,
"start_time": 1534550202,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235008,
"series_type": 1,
"radiant_score": 30,
"dire_score": 9,
"radiant_win": true
},
{
"match_id": 4065164937,
"duration": 2709,
"start_time": 1534549542,
"radiant_team_id": 5228654,
"radiant_name": "VGJ Storm",
"dire_team_id": 1375614,
"dire_name": "Newbee",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235007,
"series_type": 1,
"radiant_score": 13,
"dire_score": 43,
"radiant_win": false
},
{
"match_id": 4065140946,
"duration": 3161,
"start_time": 1534547248,
"radiant_team_id": 1883502,
"radiant_name": "Virtus.pro",
"dire_team_id": 67,
"dire_name": "paiN Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235003,
"series_type": 1,
"radiant_score": 35,
"dire_score": 38,
"radiant_win": false
},
{
"match_id": 4065129977,
"duration": 2346,
"start_time": 1534546287,
"radiant_team_id": 2108395,
"radiant_name": "TNC Predator",
"dire_team_id": 5066616,
"dire_name": "Team Serenity",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235009,
"series_type": 1,
"radiant_score": 10,
"dire_score": 37,
"radiant_win": false
},
{
"match_id": 4065128649,
"duration": 2338,
"start_time": 1534546172,
"radiant_team_id": 1838315,
"radiant_name": "Team Secret",
"dire_team_id": 5026801,
"dire_name": "OpTic Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235008,
"series_type": 1,
"radiant_score": 44,
"dire_score": 16,
"radiant_win": true
},
{
"match_id": 4065124105,
"duration": 1908,
"start_time": 1534545786,
"radiant_team_id": 5228654,
"radiant_name": "VGJ Storm",
"dire_team_id": 1375614,
"dire_name": "Newbee",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235007,
"series_type": 1,
"radiant_score": 22,
"dire_score": 13,
"radiant_win": true
},
{
"match_id": 4065095713,
"duration": 2109,
"start_time": 1534543416,
"radiant_team_id": 67,
"radiant_name": "paiN Gaming",
"dire_team_id": 1883502,
"dire_name": "Virtus.pro",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235003,
"series_type": 1,
"radiant_score": 18,
"dire_score": 40,
"radiant_win": false
},
{
"match_id": 4065084843,
"duration": 2261,
"start_time": 1534542598,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 5,
"dire_name": "Invictus Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235000,
"series_type": 1,
"radiant_score": 36,
"dire_score": 41,
"radiant_win": true
},
{
"match_id": 4065083072,
"duration": 2334,
"start_time": 1534542458,
"radiant_team_id": 350190,
"radiant_name": "Fnatic",
"dire_team_id": 15,
"dire_name": "PSG.LGD",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 234999,
"series_type": 1,
"radiant_score": 23,
"dire_score": 28,
"radiant_win": false
},
{
"match_id": 4065077879,
"duration": 2258,
"start_time": 1534542074,
"radiant_team_id": 5027210,
"radiant_name": "VGJ Thunder",
"dire_team_id": 543897,
"dire_name": " mski亿电竞",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 234995,
"series_type": 1,
"radiant_score": 28,
"dire_score": 10,
"radiant_win": true
},
{
"match_id": 4065042825,
"duration": 2314,
"start_time": 1534539598,
"radiant_team_id": 5229127,
"radiant_name": "Winstrike",
"dire_team_id": 2163,
"dire_name": "Team Liquid",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 234994,
"series_type": 1,
"radiant_score": 19,
"dire_score": 25,
"radiant_win": false
},
{
"match_id": 4065017593,
"duration": 2613,
"start_time": 1534537990,
"radiant_team_id": 2586976,
"radiant_name": "OG",
"dire_team_id": 5,
"dire_name": "Invictus Gaming",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 235000,
"series_type": 1,
"radiant_score": 25,
"dire_score": 16,
"radiant_win": true
},
{
"match_id": 4065016209,
"duration": 2611,
"start_time": 1534537901,
"radiant_team_id": 15,
"radiant_name": "PSG.LGD",
"dire_team_id": 350190,
"dire_name": "Fnatic",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 234999,
"series_type": 1,
"radiant_score": 21,
"dire_score": 21,
"radiant_win": true
},
{
"match_id": 4064996401,
"duration": 3771,
"start_time": 1534536701,
"radiant_team_id": 5027210,
"radiant_name": "VGJ Thunder",
"dire_team_id": 543897,
"dire_name": " mski亿电竞",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 234995,
"series_type": 1,
"radiant_score": 29,
"dire_score": 38,
"radiant_win": false
},
{
"match_id": 4064993264,
"duration": 1364,
"start_time": 1534536505,
"radiant_team_id": 2163,
"radiant_name": "Team Liquid",
"dire_team_id": 5229127,
"dire_name": "Winstrike",
"leagueid": 9870,
"league_name": "The International 2018",
"series_id": 234994,
"series_type": 1,
"radiant_score": 28,
"dire_score": 9,
"radiant_win": true
}
] | odota/web/testcafe/cachedAjax/proMatches_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/proMatches_.json",
"repo_id": "odota",
"token_count": 17565
} | 248 |
import {
Selector,
} from 'testcafe';
import {
ReactSelector,
} from 'testcafe-react-selectors';
import {
fixtureBeforeHook,
fixtureBeforeEachHook,
fixtureAfterHook,
fixtureRequestHooks,
host,
} from './../testsUtility';
const paths = [
'/explorer?minDate=2018-08-01T13%3A03%3A40.498Z',
'/meta',
'/matches/pro',
'/matches/highMmr',
'/teams',
'/heroes/pro',
'/heroes/public',
'/distributions',
'/records/duration',
'/records/kills',
'/records/deaths',
'/records/assists',
'/records/xp_per_min',
'/records/last_hits',
'/records/denies',
'/records/hero_damage',
'/records/tower_damage',
'/records/hero_healing',
'/combos?teamA=2&teamB=3',
];
fixture`home/ paths`
.requestHooks(fixtureRequestHooks)
.before(fixtureBeforeHook)
.beforeEach(fixtureBeforeEachHook)
.after(fixtureAfterHook);
paths.forEach((p) => {
test
.page`${host}${p}`(p, async (t) => {
await t.hover(Selector('#root'));
});
});
| odota/web/testcafe/tests/home.js/0 | {
"file_path": "odota/web/testcafe/tests/home.js",
"repo_id": "odota",
"token_count": 402
} | 249 |
# Server
This directory contains the API codebase. It's written in Go and is fully cross-platform (does not depend on any platform-specific libraries or C code).
## Architecture
### Layout
The codebase follows idiomatic Go guidelines. Interfaces are preferred as a means of sharing functionality in order to facilitate easier mocking and testing. `cmd/server/main.go` contains the main setup code in a function named `Initialise`. The app itself starts up and blocks when `App.Start` is called. This fires up each of the components in the app in a goroutine then blocks until the root context is cancelled.
### HTTP API
The library of choice for HTTP routing etc is go-chi. In `src/api/` there is a directory for each API "Module" and the names of these must correspond to its respective API route except `legacy` because of how SA-MP legacy queries work.
Each handler goes in its own file, prefixed with `h_` followed by a simple description or HTTP method of what it does. The setup code for each API module lives in a file named `api.go`.
For example:
```
api/
├module1/
│ ├api.go
│ ├h_get.go
│ └h_post.go
└module2/
├api.go
├h_get.go
├h_post.go
└h_search.go
```
The naming for these files is not super strict, most of the time a HTTP method such as "get" or "post" should be fine, but other simple verbs are fine too. What matters is consistency and ease of navigation.
### Database
The database code is managed by Prisma. The schema is declared in the `prisma` directory in the root.
The workflow to make changes to the data model is:
1. Make the change
2. Generate new Go code
3. Generate migrations
4. Apply migrations to dev instance
Once a pull request is approved, if it has data model changes, an admin will apply those changes to the live DB.
### SA-MP Server Query
SA-MP server queries are done by the `Worker` periodically querying the database for servers that haven't been updated within some time window. These servers are then passed to a `Scraper` which uses a `Queryer` to fetch updated information about the servers. The `Worker` then updates the database with the new data using the `server.Repository`
### Documentation
The docs/wiki part of the site (open.mp/docs) is very big. It contains around 3000 pages at the time of writing and will likely grow as more contributors translate the original pages. Because of this, Next.js and Vercel pre-rendering was taking upwards of 15 minutes for each pull request. Because we wanted faster build times, we sacrificed a bit of runtime performance for build-time. Page load times were only affected a tiny bit so it seemed a worthwhile tradeoff.
So, the solution to this was to move the static docs files to the API. Because the Docker image of this codebase just does `ADD . .`, the entire repo is available to the server. The `docs/` directory is served as a `http.FileServer` at `/docs/*`.
#### Documentation Search
There's also a [Bleve](https://blevesearch.com) search index built at image build time. This is done with `indexbuilder` which is a simple Go "script" that runs the Bleve index build code on the `docs/` directory. This search index is then accessible via `/docs/search?q=sometext`. This is done at image build time because it only needs to be done once for any change to the files. It takes a few minutes usually.
### Authentication
This service uses OAuth2 for authentication. The endpoints are in `src/api/auth/` and the implementation for each is in `src/authentication`. There are traces of code for password-based auth but this isn't exposed currently as OAuth2 is just safer, easier and results in reduced security responsibility on our part.
| openmultiplayer/web/app/README.md/0 | {
"file_path": "openmultiplayer/web/app/README.md",
"repo_id": "openmultiplayer",
"token_count": 929
} | 250 |
package server
import (
"context"
"fmt"
"net"
"regexp"
"strings"
sampquery "github.com/Southclaws/go-samp-query"
)
var (
ipMatcher = regexp.MustCompile(`\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b`)
resolver = net.DefaultResolver
)
func TransformQueryResult(s sampquery.Server, err error) (r All) {
if err != nil {
r.Active = false
return r
}
version, ok := s.Rules["version"]
if !ok {
version = "unknown"
}
r.IP = s.Address
r.Rules = s.Rules
r.Active = true
r.Core = Essential{
IP: s.Address,
Hostname: s.Hostname,
Players: int64(s.Players),
MaxPlayers: int64(s.MaxPlayers),
Gamemode: s.Gamemode,
Language: s.Language,
Password: s.Password,
Version: version,
IsOmp: s.IsOmp,
}
return r
}
// checks if the "IP" field is actually a domain name and looks up its actual IP
func HydrateDomain(ctx context.Context, r All) All {
if !ipMatcher.MatchString(r.IP) {
ip, port := splitPort(r.IP)
addrs, err := resolver.LookupHost(ctx, ip)
if err == nil && len(addrs) > 0 {
r.Domain = new(string)
*r.Domain = r.IP
r.IP = fmt.Sprintf("%s:%s", addrs[0], port)
} else {
r.Active = false
}
}
return r
}
func splitPort(ip string) (string, string) {
if idx := strings.IndexRune(ip, ':'); idx != -1 {
return ip[:idx], ip[idx+1:]
}
return ip, "7777" // use sa-mp default for portless IPs
}
| openmultiplayer/web/app/resources/server/transform.go/0 | {
"file_path": "openmultiplayer/web/app/resources/server/transform.go",
"repo_id": "openmultiplayer",
"token_count": 625
} | 251 |
// +build integration
package serververify
import (
"context"
"fmt"
"testing"
)
func TestVerify(t *testing.T) {
v := Verifyer{}
ch, err := v.Verify(context.Background(), "localhost:7777", "somecode")
if err != nil {
panic(err)
}
for m := range ch {
fmt.Printf("Result : %#v\n", m)
}
}
| openmultiplayer/web/app/services/serververify/verify_test.go/0 | {
"file_path": "openmultiplayer/web/app/services/serververify/verify_test.go",
"repo_id": "openmultiplayer",
"token_count": 129
} | 252 |
package pawndex
import (
"net/http"
"github.com/openmultiplayer/web/internal/web"
)
func (s *service) list(w http.ResponseWriter, r *http.Request) {
all, err := s.store.GetAll()
if err != nil {
web.StatusInternalServerError(w, err)
return
}
web.Write(w, all) //nolint:errcheck
}
| openmultiplayer/web/app/transports/api/pawndex/h_list.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/pawndex/h_list.go",
"repo_id": "openmultiplayer",
"token_count": 118
} | 253 |
package users
import (
"errors"
"net/http"
"github.com/go-chi/chi"
"github.com/openmultiplayer/web/app/services/authentication"
"github.com/openmultiplayer/web/internal/web"
)
type patchPayload struct {
Email *string `json:"email"`
Name *string `json:"name"`
Bio *string `json:"bio"`
}
func (s *service) patch(w http.ResponseWriter, r *http.Request) {
id := chi.URLParam(r, "id")
ai, ok := authentication.GetAuthenticationInfo(w, r)
if !ok {
return
}
if ai.Cookie.UserID != id && !ai.Cookie.Admin {
web.StatusUnauthorized(w, errors.New("not authorised to modify user"))
return
}
var p patchPayload
if !web.ParseBody(w, r, &p) {
return
}
user, err := s.repo.UpdateUser(r.Context(), ai.Cookie.UserID, p.Email, p.Name, p.Bio)
if err != nil {
web.StatusInternalServerError(w, err)
return
}
web.Write(w, user) //nolint:errcheck
}
| openmultiplayer/web/app/transports/api/users/h_patch.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/users/h_patch.go",
"repo_id": "openmultiplayer",
"token_count": 355
} | 254 |
---
title: OnClientCheckResponse
description: This callback is called when a SendClientCheck request completes
tags: []
---
## Description
This callback is called when a SendClientCheck request completes.
| Name | Description |
| ------------- | --------------------------------- |
| playerid | The ID of the player checked. |
| actionid | The type of check performed. |
| memaddr | The address requested. |
| retndata | The result of the check. |
## Returns
It is always called first in filterscripts.
## Examples
```c
public OnPlayerConnect(playerid)
{
SendClientCheck(playerid, 0x48, 0, 0, 2);
return 1;
}
public OnClientCheckResponse(playerid, actionid, memaddr, retndata)
{
if (actionid == 0x48) // or 72
{
print("WARNING: The player doesn't seem to be using a regular computer!");
Kick(playerid);
}
return 1;
}
```
## Notes
:::warning
**SA:MP Server**: This callback is only called when it is in a filterscript.
**Open Multiplayer Server**: This callback functions normally inside a gamemode / filterscript.
:::
## Related Functions
The following function might be useful, as they're related to this callback in one way or another.
- [SendClientCheck](../functions/SendClientCheck): Perform a memory check on the client.
| openmultiplayer/web/docs/scripting/callbacks/OnClientCheckResponse.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnClientCheckResponse.md",
"repo_id": "openmultiplayer",
"token_count": 465
} | 255 |
---
title: OnObjectMoved
description: This callback is called when an object is moved after MoveObject (when it stops moving).
tags: ["object"]
---
## Description
This callback is called when an object is moved after MoveObject (when it stops moving).
| Name | Description |
| -------- | ----------------------------------- |
| objectid | The ID of the object that was moved |
## Returns
It is always called first in filterscripts.
## Examples
```c
public OnObjectMoved(objectid)
{
printf("Object %d finished moving.", objectid);
return 1;
}
```
## Notes
:::tip
[SetObjectPos](../functions/SetObjectPos) does not work when used in this callback. To fix it, recreate the object.
:::
## Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- [OnPlayerObjectMoved](OnPlayerObjectMoved): This callback is called when a player-object stops moving.
## Related Functions
The following callbacks might be useful, as they're related to this callback in one way or another.
- [MoveObject](../functions/MoveObject): Move an object.
- [MovePlayerObject](../functions/MovePlayerObject): Move a player object.
- [IsObjectMoving](../functions/IsObjectMoving): Check if the object is moving.
- [StopObject](../functions/StopObject): Stop an object from moving.
| openmultiplayer/web/docs/scripting/callbacks/OnObjectMoved.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnObjectMoved.md",
"repo_id": "openmultiplayer",
"token_count": 393
} | 256 |
---
title: OnPlayerEnterGangZone
description: This callback is called when a player enters a gangzone
tags: ["player", "gangzone"]
---
<VersionWarn name='callback' version='omp v1.1.0.2612' />
## Description
This callback is called when a player enters a gangzone
| Name | Description |
| -------- | ----------------------------------------------- |
| playerid | The ID of the player that entered the gangzone. |
| zoneid | The ID of the gangzone the player entered. |
## Returns
It is always called first in gamemode.
## Examples
```c
public OnPlayerEnterGangZone(playerid, zoneid)
{
new string[128];
format(string, sizeof(string), "You are entering gangzone %i", zoneid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
```
## Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- [OnPlayerLeaveGangZone](OnPlayerLeaveGangZone): This callback is called when a player exited a gangzone.
## Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- [GangZoneCreate](../functions/GangZoneCreate): Create a gangzone (colored radar area).
- [GangZoneDestroy](../functions/GangZoneDestroy): Destroy a gangzone.
- [UseGangZoneCheck](../functions/UseGangZoneCheck): Enables the callback when a player entered this zone. | openmultiplayer/web/docs/scripting/callbacks/OnPlayerEnterGangZone.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerEnterGangZone.md",
"repo_id": "openmultiplayer",
"token_count": 444
} | 257 |
---
title: OnPlayerPickUpPickup
description: This callback is called when a player picks up a pickup created with CreatePickup.
tags: ["player"]
---
## Description
This callback is called when a player picks up a pickup created with [CreatePickup](../functions/CreatePickup).
| Name | Description |
|----------|-----------------------------------------------------------------------------|
| playerid | The ID of the player that picked up the pickup. |
| pickupid | The ID of the pickup, returned by [CreatePickup](../functions/CreatePickup) |
## Returns
It is always called first in gamemode.
## Examples
```c
new pickup_Cash;
new pickup_Health;
public OnGameModeInit()
{
pickup_Cash = CreatePickup(1274, 2, 2009.8658, 1220.0293, 10.8206, -1);
pickup_Health = CreatePickup(1240, 2, 2009.8474, 1218.0459, 10.8175, -1);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == pickup_Cash)
{
GivePlayerMoney(playerid, 1000);
}
else if (pickupid == pickup_Health)
{
SetPlayerHealth(playerid, 100.0);
}
return 1;
}
```
## Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- [OnPickupStreamIn](OnPickupStreamIn): Called when a pickup enters the visual range of a player.
- [OnPickupStreamOut](OnPickupStreamOut): Called when a pickup leaves the visual range of a player.
## Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- [CreatePickup](../functions/CreatePickup): Create a pickup.
- [DestroyPickup](../functions/DestroyPickup): Destroy a pickup.
| openmultiplayer/web/docs/scripting/callbacks/OnPlayerPickUpPickup.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerPickUpPickup.md",
"repo_id": "openmultiplayer",
"token_count": 618
} | 258 |
---
title: AddCharModel
description: Adds a new custom character model for download.
tags: ["custom skin", "char model"]
---
<VersionWarn version='SA-MP 0.3.DL R1' />
## Description
Adds a new custom character model for download. The model files will be stored in player's Documents\GTA San Andreas User Files\SAMP\cache under the Server IP and Port folder in a CRC-form file name.
| Name | Description |
| ---------------------- | -------------------------------------------------------------------------------------------------------------- |
| baseid | The base skin model ID to use (behavior of the character & original character to use when download is failed). |
| newid | The new skin model ID ranged from 20001 to 30000 (10000 slots) to be used later with SetPlayerSkin |
| const dff[] | Name of the .dff model collision file located in models server folder by default (artpath setting). |
| const textureLibrary[] | Name of the .txd model texture file located in models server folder by default (artpath setting). |
## Returns
**1:** The function executed successfully.
**0:** The function failed to execute.
## Examples
```c
public OnGameModeInit()
{
AddCharModel(305, 20001, "lvpdpc2.dff", "lvpdpc2.txd");
AddCharModel(305, 20002, "lapdpd2.dff", "lapdpd2.txd");
return 1;
}
```
```c
AddCharModel(305, 20001, "lvpdpc2.dff", "lvpdpc2.txd");
AddCharModel(305, 20002, "lapdpd2.dff", "lapdpd2.txd");
```
## Notes
:::tip
**useartwork** or **artwork.enable** must be enabled first in server settings in order for this to work.
:::
:::warning
There are currently no restrictions on when you can call this function, but be aware that if you do not call them inside [OnFilterScriptInit](../callbacks/OnFilterScriptInit)/[OnGameModeInit](../callbacks/OnGameModeInit), you run the risk that some players, who are already on the server, may not have downloaded the models.
:::
## Related Functions
- [SetPlayerSkin](SetPlayerSkin): Set a player's skin.
| openmultiplayer/web/docs/scripting/functions/AddCharModel.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AddCharModel.md",
"repo_id": "openmultiplayer",
"token_count": 768
} | 259 |
---
title: ApplyActorAnimation
description: Apply an animation to an actor.
tags: ["actor", "animation"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Apply an animation to an actor.
| Name | Description |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| actorid | The ID of the actor to apply the animation to. |
| const animationLibrary[] | The animation library from which to apply an animation. |
| const animationName[] | The name of the animation to apply, within the specified library. |
| float:delta | The speed to play the animation (use 4.1). |
| bool:loop | If set to true, the animation will loop. If set to false, the animation will play once. |
| bool:lockX | If set to false, the actor is returned to their old X coordinate once the animation is complete (for animations that move the actor such as walking). true will not return them to their old position. |
| bool:lockY | Same as above but for the Y axis. Should be kept the same as the previous parameter. |
| bool:freeze | Setting this to true will freeze an actor at the end of the animation. false will not. |
| time | Timer in milliseconds. For a never-ending loop it should be 0. |
## Returns
**true** - The function executed successfully.
**false** - The function failed to execute. The actor specified does not exist.
## Examples
```c
new gMyActor;
public OnGameModeInit()
{
gMyActor = CreateActor(179, 316.1, -134.0, 999.6, 90.0); // Actor as salesperson in Ammunation
ApplyActorAnimation(gMyActor, "DEALER", "shop_pay", 4.1, false, false, false, false, 0); // Pay anim
return 1;
}
public OnPlayerConnect(playerid)
{
// Preload the 'DEALER' animation library for the player
ApplyAnimation(playerid, "DEALER", "null", 4.1, false, false, false, false, 0);
return 1;
}
```
## Notes
:::tip
You must preload the animation library for the player the actor will be applying the animation for, and not for the actor. Otherwise, the animation won't be applied to the actor until the function is executed again.
:::
## Related Functions
- [ClearActorAnimations](ClearActorAnimations): Clear any animations that are applied to an actor.
- [GetActorAnimation](GetActorAnimation): Get the animation the actor is currently performing.
| openmultiplayer/web/docs/scripting/functions/ApplyActorAnimation.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ApplyActorAnimation.md",
"repo_id": "openmultiplayer",
"token_count": 2005
} | 260 |
---
title: ClearBanList
description: Clears the ban list.
tags: []
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Clears the ban list.
## Returns
**true** - Success.
**false** - Failed to execute the function.
## Examples
```c
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/clearbanlist", true))
{
if (!IsPlayerAdmin(playerid))
{
return 1;
}
ClearBanList();
SendClientMessage(playerid, -1, "[SERVER]: Ban list cleared.");
return 1;
}
return 0;
}
```
## Notes
:::tip
You can see the ban list in the **bans.json** file.
:::
## Related Functions
- [BlockIpAddress](BlockIpAddress): Block an IP address from connecting to the server for a set amount of time.
- [UnBlockIpAddress](UnBlockIpAddress): Unblock an IP that was previously blocked.
- [Ban](Ban): Ban a player from playing on the server.
- [BanEx](BanEx): Ban a player with a custom reason.
- [Kick](Kick): Kick a player from the server.
- [IsBanned](IsBanned): Checks if the given IP address is banned.
| openmultiplayer/web/docs/scripting/functions/ClearBanList.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ClearBanList.md",
"repo_id": "openmultiplayer",
"token_count": 402
} | 261 |
---
title: DisableNameTagLOS
description: Disables the nametag Line-Of-Sight checking so that players can see nametags through objects.
tags: []
---
## Description
Disables the nametag Line-Of-Sight checking so that players can see nametags through objects.
## Examples
```c
public OnGameModeInit()
{
DisableNameTagLOS();
return 1;
}
```
## Notes
:::warning
This can not be reversed until the server restarts.
:::
:::tip
You can also disable nametags Line-Of-Sight via [config.json](../../server/config.json)
```json
"use_nametag_los": false,
```
:::
## Related Functions
- [ShowNameTags](ShowNameTags): Set nametags on or off.
- [ShowPlayerNameTagForPlayer](ShowPlayerNameTagForPlayer): Show or hide a nametag for a certain player.
| openmultiplayer/web/docs/scripting/functions/DisableNameTagLOS.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DisableNameTagLOS.md",
"repo_id": "openmultiplayer",
"token_count": 256
} | 262 |
---
title: GangZoneShowForPlayer
description: Show a gangzone for a player.
tags: ["player", "gangzone"]
---
## Description
Show a gangzone for a player. Must be created with [GangZoneCreate](GangZoneCreate) first.
| Name | Description |
| -------- | --------------------------------------------------------------------------------------------------------- |
| playerid | The ID of the player you would like to show the gangzone for. |
| zoneid | The ID of the gang zone to show for the player. Returned by [GangZoneCreate](GangZoneCreate) |
| colour | The color to show the gang zone, as an integer or hex in RGBA color format. Alpha transparency supported. |
## Returns
**1** if the gangzone was shown, otherwise **0** (non-existant).
## Examples
```c
new gGangZoneId;
public OnGameModeInit()
{
gGangZoneId = GangZoneCreate(1082.962, -2787.229, 2942.549, -1859.51);
return 1;
}
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, gGangZoneId, 0xFFFF0096);
return 1;
}
```
## Related Functions
- [GangZoneCreate](GangZoneCreate): Create a gangzone.
- [GangZoneDestroy](GangZoneDestroy): Destroy a gangzone.
- [GangZoneShowForPlayer](GangZoneShowForPlayer): Show a gangzone for a player.
- [GangZoneHideForPlayer](GangZoneHideForPlayer): Hide a gangzone for a player.
- [GangZoneHideForAll](GangZoneHideForAll): Hide a gangzone for all players.
- [GangZoneFlashForPlayer](GangZoneFlashForPlayer): Make a gangzone flash for a player.
- [GangZoneFlashForAll](GangZoneFlashForAll): Make a gangzone flash for all players.
- [GangZoneStopFlashForPlayer](GangZoneStopFlashForPlayer): Stop a gangzone flashing for a player.
- [GangZoneStopFlashForAll](GangZoneStopFlashForAll): Stop a gangzone flashing for all players.
| openmultiplayer/web/docs/scripting/functions/GangZoneShowForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GangZoneShowForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 692
} | 263 |
---
title: GetActorSkin
description: Get the skin of the actor.
tags: ["actor"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the skin of the actor.
| Name | Description |
|---------|-----------------------------|
| actorid | The ID of the actor to get. |
## Return Values
Returns the actor's current skin.
## Examples
```c
new gMyActor;
public OnGameModeInit()
{
gMyActor = CreateActor(179, 1153.9640, -1772.3915, 16.5920, 0.0000);
new actorSkinID = GetActorSkin(gMyActor);
// The value of `actorSkinID` is now 179
return 1;
}
```
## Related Functions
- [CreateActor](CreateActor): Create an actor (static NPC).
- [SetActorSkin](SetActorSkin): Set the skin of the actor.
| openmultiplayer/web/docs/scripting/functions/GetActorSkin.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetActorSkin.md",
"repo_id": "openmultiplayer",
"token_count": 270
} | 264 |
---
title: GetMenuColumnWidth
description: Get the width of the one or two columns.
tags: ["menu"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the width of the one or two columns.
| Name | Description |
| ------------------- | ----------------------------------------------------------------------------- |
| Menu:menuid | The ID of the menu. |
| &Float:column1Width | A float variable in which to store the column1 width in, passed by reference. |
| &Float:column2Width | A float variable in which to store the column2 width in, passed by reference. |
## Returns
This function always returns **true**.
## Examples
```c
new Float:column1Width, Float:column2Width;
GetMenuColumnWidth(menuid, column1Width, column2Width);
// Or you can only get column1 width
new Float:column1Width;
GetMenuColumnWidth(menuid, column1Width);
```
## Related Functions
- [GetMenuPos](GetMenuPos): Get the x/y screen position of the menu.
| openmultiplayer/web/docs/scripting/functions/GetMenuColumnWidth.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetMenuColumnWidth.md",
"repo_id": "openmultiplayer",
"token_count": 413
} | 265 |
---
title: GetObjectMovingTargetPos
description: Get the move target position of an object.
tags: ["object"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the move target position of an object.
| Name | Description |
|----------------|---------------------------------------------------------------------------------|
| objectid | The ID of the object to get the move target position of. |
| &Float:targetX | A float variable in which to store the targetX coordinate, passed by reference. |
| &Float:targetY | A float variable in which to store the targetY coordinate, passed by reference. |
| &Float:targetZ | A float variable in which to store the targetZ coordinate, passed by reference. |
## Returns
`true` - The function was executed successfully.
`false` - The function failed to execute. The object specified does not exist.
## Examples
```c
new objectid = CreateObject(985, 1003.39154, -643.33423, 122.35060, 0.00000, 1.00000, 24.00000);
MoveObject(objectid, 1003.3915, -643.3342, 114.5122, 0.8);
new
Float:targetX,
Float:targetY,
Float:targetZ;
GetObjectMovingTargetPos(objectid, targetX, targetY, targetZ);
// targetX = 1003.3915
// targetY = -643.3342
// targetZ = 114.5122
```
## Related Functions
- [GetObjectMovingTargetRot](GetObjectMovingTargetRot): Get the move target rotation of an object.
- [GetPlayerObjectMovingTargetPos](GetPlayerObjectMovingTargetPos): Get the move target position of a player-object.
| openmultiplayer/web/docs/scripting/functions/GetObjectMovingTargetPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetObjectMovingTargetPos.md",
"repo_id": "openmultiplayer",
"token_count": 535
} | 266 |
---
title: GetPlayerBuildingsRemoved
description: Gets the number of removed buildings for a player.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the number of removed buildings for a player.
| Name | Description |
|----------|-----------------------|
| playerid | The ID of the player. |
## Returns
Returns the number of removed buildings.
## Examples
```c
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 700, 1192.1016, -1738.0000, 13.0391, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1204.4844, -1724.8516, 13.0391, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1192.5625, -1723.8828, 12.5234, 0.25);
printf("Removed buildings: %d", GetPlayerBuildingsRemoved(playerid)); // Removed buildings: 3
return 1;
}
```
## Related Functions
- [RemoveBuildingForPlayer](RemoveBuildingForPlayer): Removes a standard San Andreas model for a single player within a specified range.
| openmultiplayer/web/docs/scripting/functions/GetPlayerBuildingsRemoved.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerBuildingsRemoved.md",
"repo_id": "openmultiplayer",
"token_count": 321
} | 267 |
---
title: GetPlayerLastSyncedTrailerID
description: Gets the player's last synced trailer ID.
tags: ["player", "vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
:::warning
This function has not yet been implemented.
:::
## Description
Gets the player's last synced trailer ID.
## Parameters
| Name | Description |
|----------|-----------------------|
| playerid | The ID of the player. |
## Return Values
Returns the last synced trailer ID.
## Examples
```c
new trailerid = GetPlayerLastSyncedTrailerID(playerid);
```
## Related Functions
- [GetPlayerLastSyncedVehicleID](GetPlayerLastSyncedVehicleID): Gets the player's last synced vehicle ID.
| openmultiplayer/web/docs/scripting/functions/GetPlayerLastSyncedTrailerID.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerLastSyncedTrailerID.md",
"repo_id": "openmultiplayer",
"token_count": 219
} | 268 |
---
title: GetPlayerObjectPos
description: Get the position of a player object (CreatePlayerObject).
tags: ["player", "object", "playerobject"]
---
## Description
Get the position of a player object ([CreatePlayerObject](CreatePlayerObject)).
| Name | Description |
| -------- | ------------------------------------------------------------------------- |
| playerid | The ID of the player whose player object to get the position of. |
| objectid | The object's id of which you want the current location. |
| &Float:x | A float variable in which to store the X coordinate, passed by reference. |
| &Float:y | A float variable in which to store the Y coordinate, passed by reference. |
| &Float:z | A float variable in which to store the Z coordinate, passed by reference. |
## Returns
**true** - The function executed successfully.
**false** - The function failed to execute. The player and/or the object don't exist.
The object's position is stored in the specified variables.
## Examples
```c
new gPlayerObject[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
gPlayerObject[playerid] = CreatePlayerObject(playerid, 2587, 2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0);
new Float:x, Float:y, Float:z;
GetPlayerObjectPos(playerid, gPlayerObject[playerid], x, y, z);
// x = 2001.195679
// y = 1547.113892
// z = 14.283400,
return 1;
}
```
## Related Functions
- [CreatePlayerObject](CreatePlayerObject): Create an object for only one player.
- [DestroyPlayerObject](DestroyPlayerObject): Destroy a player object.
- [IsValidPlayerObject](IsValidPlayerObject): Checks if a certain player object is vaild.
- [MovePlayerObject](MovePlayerObject): Move a player object.
- [StopPlayerObject](StopPlayerObject): Stop a player object from moving.
- [SetPlayerObjectPos](SetPlayerObjectPos): Set the position of a player object.
- [SetPlayerObjectRot](SetPlayerObjectRot): Set the rotation of a player object.
- [GetPlayerObjectRot](GetPlayerObjectRot): Check the rotation of a player object.
- [AttachPlayerObjectToPlayer](AttachPlayerObjectToPlayer): Attach a player object to a player.
- [CreateObject](CreateObject): Create an object.
- [DestroyObject](DestroyObject): Destroy an object.
- [IsValidObject](IsValidObject): Checks if a certain object is vaild.
- [MoveObject](MoveObject): Move an object.
- [StopObject](StopObject): Stop an object from moving.
- [SetObjectPos](SetObjectPos): Set the position of an object.
- [SetObjectRot](SetObjectRot): Set the rotation of an object.
- [GetObjectPos](GetObjectPos): Locate an object.
- [GetObjectRot](GetObjectRot): Check the rotation of an object.
- [AttachObjectToPlayer](AttachObjectToPlayer): Attach an object to a player.
| openmultiplayer/web/docs/scripting/functions/GetPlayerObjectPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerObjectPos.md",
"repo_id": "openmultiplayer",
"token_count": 851
} | 269 |
---
title: GetPlayerSkin
description: Returns the class of the players skin.
tags: ["player"]
---
## Description
Returns the class of the players skin
| Name | Description |
| -------- | ---------------------------------------- |
| playerid | The player you want to get the skin from |
## Returns
The [skin id](../resources/skins).
**0** if invalid.
## Examples
```c
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/myskin", true))
{
new string[32];
new playerSkin = GetPlayerSkin(playerid);
format(string, sizeof(string), "Your skin id: %d", playerSkin);
SendClientMessage(playerid, -1, string);
return 1;
}
return 0;
}
```
## Notes
:::tip
Returns the new skin after [SetSpawnInfo](SetSpawnInfo) is called but before the player actually respawns to get the new skin. Returns the old skin if the player was spawned through [SpawnPlayer](SpawnPlayer) function.
:::
## Related Functions
- [SetPlayerSkin](SetPlayerSkin): Set a player's skin.
## Related Resources
- [Skin IDs](../resources/skins)
| openmultiplayer/web/docs/scripting/functions/GetPlayerSkin.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerSkin.md",
"repo_id": "openmultiplayer",
"token_count": 386
} | 270 |
---
title: GetPlayerVelocity
description: Get the velocity (speed) of a player on the X, Y and Z axes.
tags: ["player"]
---
## Description
Get the velocity (speed) of a player on the X, Y and Z axes.
| Name | Description |
| -------- | ----------------------------------------------------------------------------------- |
| playerid | The player to get the speed from. |
| &Float:x | A float variable in which to store the velocity on the X axis, passed by reference. |
| &Float:y | A float variable in which to store the velocity on the Y axis, passed by reference. |
| &Float:z | A float variable in which to store the velocity on the Z axis, passed by reference. |
## Returns
The function itself doesn't return a specific value. The X, Y and Z velocities are stored in the specified variables.
## Examples
```c
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/velocity", true))
{
new
Float:x, Float:y, Float:z,
string[128];
GetPlayerVelocity(playerid, x, y, z);
format(string, sizeof(string), "You are going at a velocity of X: %f, Y: %f, Z: %f", x, y, z);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
}
```
## Related Functions
- [SetPlayerVelocity](SetPlayerVelocity): Set a player's velocity.
- [SetVehicleVelocity](SetVehicleVelocity): Set a vehicle's velocity.
- [GetVehicleVelocity](GetVehicleVelocity): Get a vehicle's velocity.
| openmultiplayer/web/docs/scripting/functions/GetPlayerVelocity.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerVelocity.md",
"repo_id": "openmultiplayer",
"token_count": 610
} | 271 |
---
title: GetSVarString
description: Gets a string server variable's value.
tags: ["server variable", "svar"]
---
<VersionWarn version='SA-MP 0.3.7 R2' />
## Description
Gets a string server variable's value.
| Name | Description |
| --------------------- | ---------------------------------------------------------------------------------------------------- |
| const svar[] | The name of the server variable (case-insensitive).<br />Assigned in [SetSVarString](SetSVarString). |
| output[] | The array in which to store the string value in, passed by reference. |
| len = sizeof (output) | The maximum length of the returned string. |
## Returns
The length of the string.
## Examples
```c
// set "Version"
SetSVarString("Version", "0.3.7");
// will print version that server has
new string[5 + 1];
GetSVarString("Version", string, sizeof(string));
printf("Version: %s", string);
```
## Related Functions
- [SetSVarInt](SetSVarInt): Set an integer for a server variable.
- [GetSVarInt](GetSVarInt): Get a player server as an integer.
- [SetSVarString](SetSVarString): Set a string for a server variable.
- [SetSVarFloat](SetSVarFloat): Set a float for a server variable.
- [GetSVarFloat](GetSVarFloat): Get the previously set float from a server variable.
- [DeleteSVar](DeleteSVar): Delete a server variable.
| openmultiplayer/web/docs/scripting/functions/GetSVarString.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetSVarString.md",
"repo_id": "openmultiplayer",
"token_count": 592
} | 272 |
---
title: GetVehicleParamsCarDoors
description: Allows you to retrieve the current state of a vehicle's doors.
tags: ["vehicle"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Allows you to retrieve the current state of a vehicle's doors
| Name | Description |
| ---------------- | ----------------------------------------------------------------------- |
| vehicleid | The ID of the vehicle |
| &bool:frontLeft | The integer to save the state of the driver's door to. |
| &bool:frontRight | The integer to save the state of the passenger's door to. |
| &bool:rearLeft | The integer to save the state of the rear left door to (if available). |
| &bool:rearRight | The integer to save the state of the rear right door to (if available). |
## Returns
The vehicle's doors state is stored in the specified variables.
## Notes
:::tip
The values returned in each variable are as follows:
**-1**: Door state not set
**1**: Open
**0**: Closed
:::
## Related Functions
- [SetVehicleParamsCarDoors](SetVehicleParamsCarDoors): Open and close the doors of a vehicle.
- [SetVehicleParamsCarWindows](SetVehicleParamsCarWindows): Open and close the windows of a vehicle.
- [GetVehicleParamsCarWindows](GetVehicleParamsCarWindows): Retrive the current state of a vehicle's windows
| openmultiplayer/web/docs/scripting/functions/GetVehicleParamsCarDoors.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleParamsCarDoors.md",
"repo_id": "openmultiplayer",
"token_count": 521
} | 273 |
---
title: GetVehicleVirtualWorld
description: Get the virtual world of a vehicle.
tags: ["vehicle"]
---
## Description
Get the virtual world of a vehicle.
| Name | Description |
| --------- | -------------------------------------------------- |
| vehicleid | The ID of the vehicle to get the virtual world of. |
## Returns
The virtual world that the vehicle is in.
## Examples
```c
new
vehicleWorld = GetVehicleVirtualWorld(vehicleid);
SetPlayerVirtualWorld(playerid, vehicleWorld);
```
## Related Functions
- [SetVehicleVirtualWorld](SetVehicleVirtualWorld): Set the virtual world of a vehicle.
- [GetPlayerVirtualWorld](GetPlayerVirtualWorld): Check what virtual world a player is in.
| openmultiplayer/web/docs/scripting/functions/GetVehicleVirtualWorld.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleVirtualWorld.md",
"repo_id": "openmultiplayer",
"token_count": 229
} | 274 |
---
title: HideMenuForPlayer
description: Hides a menu for a player.
tags: ["player", "menu"]
---
## Description
Hides a menu for a player.
| Name | Description |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Menu:menuid | The ID of the menu to hide. Returned by CreateMenu and passed to [OnPlayerSelectedMenuRow](../callbacks/OnPlayerSelectedMenuRow). |
| playerid | The ID of the player that the menu will be hidden for. |
## Returns
**true** - The function was executed successfully.
**false** - The function failed to execute.
## Examples
```c
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/menuhide", true) == 0)
{
new Menu:myMenu = GetPlayerMenu(playerid);
HideMenuForPlayer(myMenu, playerid);
return 1;
}
return 0;
}
```
## Notes
:::warning
Crashes the both server and player if an invalid menu ID given. (Fixed in open.mp)
:::
:::tip
This function has always taken a menu ID parameter, but in SA:MP this ID was not used. So whatever value was given the player's current menu would be closed, even if they weren't looking at the one you said to close.
Old code may have looked like:
```c
gShopMenu = CreateMenu("text", 2, 100.0, 30.0, 7.0);
HideMenuForPlayer(gShopMenu, playerid);
```
That would always close the player's current menu, regardless of which one they were actually looking at. Now you will need to remember which one they are looking at, or just get it:
```c
gShopMenu = CreateMenu("text", 2, 100.0, 30.0, 7.0);
HideMenuForPlayer(GetPlayerMenu(playerid), playerid);
```
:::
## Related Functions
- [CreateMenu](CreateMenu): Create a menu.
- [AddMenuItem](AddMenuItem): Adds an item to a specified menu.
- [SetMenuColumnHeader](SetMenuColumnHeader): Set the header for one of the columns in a menu.
- [ShowMenuForPlayer](ShowMenuForPlayer): Show a menu for a player.
| openmultiplayer/web/docs/scripting/functions/HideMenuForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/HideMenuForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 797
} | 275 |
---
title: IsNickNameCharacterAllowed
description: Checks if a character is allowed in nickname.
tags: []
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a character is allowed in nickname.
| Name | Description |
| --------- | ----------------------- |
| character | The character to check. |
## Returns
This function returns **true** if the character is allowed, or **false** if it is not.
## Examples
```c
public OnGameModeInit()
{
AllowNickNameCharacter('*', true); // Allow char *
if (IsNickNameCharacterAllowed('*'))
{
print("Character * is allowed in nickname.");
}
return 1;
}
```
## Related Functions
- [AllowNickNameCharacter](AllowNickNameCharacter): Allows a character to be used in the nick name.
| openmultiplayer/web/docs/scripting/functions/IsNickNameCharacterAllowed.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsNickNameCharacterAllowed.md",
"repo_id": "openmultiplayer",
"token_count": 254
} | 276 |
---
title: IsPlayerInCheckpoint
description: Check if the player is currently inside a checkpoint, this could be used for properties or teleport points for example.
tags: ["player", "checkpoint"]
---
## Description
Check if the player is currently inside a checkpoint, this could be used for properties or teleport points for example.
| Name | Description |
| -------- | ------------------------------------------ |
| playerid | The player you want to know the status of. |
## Returns
**false** if the player isn't inside the checkpoint, otherwise **true**
## Examples
```c
if (IsPlayerInCheckpoint(playerid))
{
SetPlayerHealth(playerid, 100.0);
}
```
## Related Functions
- [SetPlayerCheckpoint](SetPlayerCheckpoint): Create a checkpoint for a player.
- [IsPlayerCheckpointActive](IsPlayerCheckpointActive): Check if the player currently has a checkpoint visible.
- [DisablePlayerCheckpoint](DisablePlayerCheckpoint): Disable the player's current checkpoint.
- [SetPlayerRaceCheckpoint](SetPlayerRaceCheckpoint): Create a race checkpoint for a player.
- [DisablePlayerRaceCheckpoint](DisablePlayerRaceCheckpoint): Disable the player's current race checkpoint.
- [IsPlayerInRaceCheckpoint](IsPlayerInRaceCheckpoint): Check if a player is in a race checkpoint.
## Related Callbacks
- [OnPlayerEnterCheckpoint](../callbacks/OnPlayerEnterCheckpoint): Called when a player enters a checkpoint.
- [OnPlayerLeaveCheckpoint](../callbacks/OnPlayerLeaveCheckpoint): Called when a player leaves a checkpoint.
- [OnPlayerEnterRaceCheckpoint](../callbacks/OnPlayerEnterRaceCheckpoint): Called when a player enters a race checkpoint.
- [OnPlayerLeaveRaceCheckpoint](../callbacks/OnPlayerLeaveRaceCheckpoint): Called when a player leaves a race checkpoint.
| openmultiplayer/web/docs/scripting/functions/IsPlayerInCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerInCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 470
} | 277 |
---
title: LimitPlayerMarkerRadius
description: Set the player marker radius.
tags: ["player"]
---
## Description
Set the player marker radius.
| Name | Description |
| ------------------- | ------------------------------------ |
| Float:markerRadius | The radius that markers will show at |
## Returns
This function does not return any specific values.
## Examples
```c
public OnGameModeInit()
{
LimitPlayerMarkerRadius(100.0);
}
```
## Related Functions
- [ShowPlayerMarkers](ShowPlayerMarkers): Decide if the server should show markers on the radar.
- [SetPlayerMarkerForPlayer](SetPlayerMarkerForPlayer): Set a player's marker.
- [LimitGlobalChatRadius](LimitGlobalChatRadius): Limit the distance between players needed to see their chat.
| openmultiplayer/web/docs/scripting/functions/LimitPlayerMarkerRadius.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/LimitPlayerMarkerRadius.md",
"repo_id": "openmultiplayer",
"token_count": 246
} | 278 |
---
title: PlayCrimeReportForPlayer
description: This function plays a crime report for a player - just like in single-player when CJ commits a crime.
tags: ["player"]
---
## Description
This function plays a crime report for a player - just like in single-player when CJ commits a crime.
| Name | Description |
| --------- | ------------------------------------------------------------------------------------------------------------------------- |
| playerid | The ID of the player that will hear the crime report. |
| suspectid | The ID of the suspect player whom will be described in the crime report. |
| crime | The [crime ID](../resources/crimelist), which will be reported as a 10-code (i.e. 10-16 if 16 was passed as the crimeid). |
## Returns
**true** - The function was executed successfully.
**false** - The function failed to execute. This means the player specified does not exist.
## Examples
```c
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/suspect"))
{
PlayCrimeReportForPlayer(playerid, 0, 16);
SendClientMessage(playerid, 0xFFFFFFFF, "ID 0 committed a crime (10-16).");
return 1;
}
return 0;
}
```
## Related Functions
- [PlayerPlaySound](PlayerPlaySound): Play a sound for a player.
## Related Resources
- [Crime IDs](../resources/crimelist)
| openmultiplayer/web/docs/scripting/functions/PlayCrimeReportForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayCrimeReportForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 611
} | 279 |
---
title: PlayerTextDrawGetPos
description: Gets the position of a player-textdraw.
tags: ["player", "textdraw", "playertextdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the position (in-screen x & y) of a player-textdraw.
| Name | Description |
| ----------------- | ----------------------------------------------------------------------- |
| playerid | The ID of the player. |
| Playertext:textid | The ID of the player-textdraw to get the position of. |
| &Float:x | A float variable into which to store X coordinate, passed by reference. |
| &Float:y | A float variable into which to store Y coordinate, passed by reference. |
## Examples
```c
new PlayerText:welcomeText[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
PlayerTextDrawShow(playerid, welcomeText[playerid]);
new Float:x, Float:y;
PlayerTextDrawGetPos(playerid, welcomeText[playerid], x, y);
// x = 320.0
// y = 240.0
}
```
## Related Functions
- [PlayerTextDrawSetPos](PlayerTextDrawSetPos): Sets the position of a player-textdraw.
- [PlayerTextDrawDestroy](PlayerTextDrawDestroy): Destroy a player-textdraw.
- [PlayerTextDrawColor](PlayerTextDrawColor): Set the color of the text in a player-textdraw.
- [PlayerTextDrawBoxColor](PlayerTextDrawBoxColor): Set the color of a player-textdraw's box.
- [PlayerTextDrawBackgroundColor](PlayerTextDrawBackgroundColor): Set the background color of a player-textdraw.
- [PlayerTextDrawAlignment](PlayerTextDrawAlignment): Set the alignment of a player-textdraw.
- [PlayerTextDrawFont](PlayerTextDrawFont): Set the font of a player-textdraw.
- [PlayerTextDrawLetterSize](PlayerTextDrawLetterSize): Set the letter size of the text in a player-textdraw.
- [PlayerTextDrawTextSize](PlayerTextDrawTextSize): Set the size of a player-textdraw box (or clickable area for PlayerTextDrawSetSelectable).
- [PlayerTextDrawSetOutline](PlayerTextDrawSetOutline): Toggle the outline on a player-textdraw.
- [PlayerTextDrawSetShadow](PlayerTextDrawSetShadow): Set the shadow on a player-textdraw.
- [PlayerTextDrawSetProportional](PlayerTextDrawSetProportional): Scale the text spacing in a player-textdraw to a proportional ratio.
- [PlayerTextDrawUseBox](PlayerTextDrawUseBox): Toggle the box on a player-textdraw.
- [PlayerTextDrawSetString](PlayerTextDrawSetString): Set the text of a player-textdraw.
- [PlayerTextDrawShow](PlayerTextDrawShow): Show a player-textdraw.
- [PlayerTextDrawHide](PlayerTextDrawHide): Hide a player-textdraw.
- [IsPlayerTextDrawVisible](IsPlayerTextDrawVisible): Checks if a player-textdraw is shown for the player.
- [IsValidPlayerTextDraw](IsValidPlayerTextDraw): Checks if a player-textdraw is valid.
| openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetPos.md",
"repo_id": "openmultiplayer",
"token_count": 973
} | 280 |
---
title: PlayerTextDrawSetPreviewRot
description: Sets the rotation and zoom of a 3D model preview player-textdraw.
tags: ["player", "textdraw", "playertextdraw"]
---
## Description
Sets the rotation and zoom of a 3D model preview player-textdraw.
| Name | Description |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------ |
| playerid | The ID of the player whose player-textdraw to change. |
| PlayerText:textid | The ID of the player-textdraw to change. |
| Float:rotX | The X rotation value. |
| Float:rotY | The Y rotation value. |
| Float:rotZ | The Z rotation value. |
| Float:zoom | The zoom value, default value 1.0, smaller values make the camera closer and larger values make the camera further away. |
## Returns
This function does not return any specific values.
## Examples
```c
new PlayerText:gMyTextdraw[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
gMyTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "_");
PlayerTextDrawFont(playerid, gMyTextdraw[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawUseBox(playerid, gMyTextdraw[playerid], 1);
PlayerTextDrawBoxColor(playerid, gMyTextdraw[playerid], 0x000000FF);
PlayerTextDrawTextSize(playerid, gMyTextdraw[playerid], 40.0, 40.0);
PlayerTextDrawSetPreviewModel(playerid, gMyTextdraw[playerid], 411);
PlayerTextDrawSetPreviewRot(playerid, gMyTextdraw[playerid], -10.0, 0.0, -20.0, 1.0);
PlayerTextDrawShow(playerid, gMyTextdraw[playerid]);
return 1;
}
```
## Notes
:::warning
The textdraw MUST use the font type `TEXT_DRAW_FONT_MODEL_PREVIEW` and already have a model set in order for this function to have effect.
:::
## Related Functions
- [TextDrawSetPreviewRot](TextDrawSetPreviewRot): Set rotation of a 3D textdraw preview.
- [PlayerTextDrawSetPreviewModel](PlayerTextDrawSetPreviewModel): Set model ID of a 3D player textdraw preview.
- [PlayerTextDrawSetPreviewVehCol](PlayerTextDrawSetPreviewVehCol): Set the colours of a vehicle in a 3D player textdraw preview.
- [PlayerTextDrawFont](PlayerTextDrawFont): Set the font of a player-textdraw.
## Related Callbacks
- [OnPlayerClickPlayerTextDraw](../callbacks/OnPlayerClickPlayerTextDraw): Called when a player clicks on a player-textdraw.
| openmultiplayer/web/docs/scripting/functions/PlayerTextDrawSetPreviewRot.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawSetPreviewRot.md",
"repo_id": "openmultiplayer",
"token_count": 1299
} | 281 |
---
title: RemovePlayerWeapon
description: Remove a specified weapon from a player.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Remove a specified weapon from a player.
| Name | Description |
|-----------------|-----------------------------------------------------------|
| playerid | The ID of the player whose weapon to remove. |
| WEAPON:weaponid | The [ID of the weapon](../resources/weaponids) to remove. |
## Returns
**true** - The function was executed successfully.
**false** - The function failed to execute. This means the player is not connected.
## Examples
```c
RemovePlayerWeapon(playerid, WEAPON_DEAGLE); // Remove the Desert-Eagle from the player
```
## Related Functions
- [GivePlayerWeapon](GivePlayerWeapon): Give a player a weapon.
- [ResetPlayerWeapons](ResetPlayerWeapons): Removes all weapons from a player.
- [SetPlayerArmedWeapon](SetPlayerArmedWeapon): Set a player's armed weapon.
- [GetPlayerWeapon](GetPlayerWeapon): Check what weapon a player is currently holding.
## Related Resources
- [Weapon IDs](../resources/weaponids)
| openmultiplayer/web/docs/scripting/functions/RemovePlayerWeapon.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/RemovePlayerWeapon.md",
"repo_id": "openmultiplayer",
"token_count": 372
} | 282 |
---
title: SendCommand
description: This will force the NPC to write a desired command, and this way, getting the effects it would produce.
tags: []
---
## Description
This will force the NPC to write a desired command, and this way, getting the effects it would produce.
| Name | Description |
| -------------------- | -------------------------------------------------- |
| commandtext[] | The command text to be sent by the NPC. |
## Examples
```c
public OnPlayerText(playerid, text[])
{
if (strfind(text, "stupid bot") != -1)
{
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
SendCommand("/kill");
format(string, sizeof(string), "Hey %s! You are so mean, you make me so sad!", name);
SendChat(string);
}
return 1;
}
```
## Related Functions
- [SendChat](../functions/SendChat): Sends a text as the NPC.
| openmultiplayer/web/docs/scripting/functions/SendCommand.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SendCommand.md",
"repo_id": "openmultiplayer",
"token_count": 367
} | 283 |
---
title: SetDeathDropAmount
description: Sets death drops money.
tags: []
---
:::warning
Does not work, Use [CreatePickup](CreatePickup).
:::
## Description
Sets death drops money.
| Name | Description |
| ------ | ----------------------- |
| amount | Amount of money to set. |
## Returns
This function does not return any specific values.
## Examples
```c
public OnGameModeInit()
{
SetDeathDropAmount(5000);
return 1;
}
```
## Notes
:::warning
This function does not work in the current SA:MP version!
:::
## Related Functions
- [CreatePickup](CreatePickup): Create a pickup.
- [GivePlayerMoney](GivePlayerMoney): Give a player money.
## Related Callbacks
- [OnPlayerDeath](../callbacks/OnPlayerDeath): Called when a player dies.
| openmultiplayer/web/docs/scripting/functions/SetDeathDropAmount.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetDeathDropAmount.md",
"repo_id": "openmultiplayer",
"token_count": 248
} | 284 |
---
title: SetObjectsDefaultCameraCollision
description: Allows camera collisions with newly created objects to be disabled by default.
tags: ["object", "camera"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Allows camera collisions with newly created objects to be disabled by default.
| Name | Description |
|--------------|----------------------------------------------------------------------------------------------------------------|
| bool:disable | `true` to disable camera collisions for newly created objects and `false` to enable them (enabled by default). |
## Returns
Note
This function only affects the camera collision of objects created AFTER its use - it does not toggle existing objects' camera collisions.
## Examples
```c
public OnGameModeInit()
{
// Disable camera collision
SetObjectsDefaultCameraCollision(true);
// Create mapped objects
CreateObject(...);
CreateObject(...);
CreateObject(...);
CreateObject(...);
// The above objects will NOT have camera collisions
// Re-enable camera collisions
SetObjectsDefaultCameraCollision(false);
// Create mapped objects
CreateObject(...);
CreateObject(...);
CreateObject(...);
CreateObject(...);
// The above objects WILL have camera collision
// BUT, the first set will still NOT have camera collisions
return 1;
}
```
## Notes
:::tip
This function only affects the camera collision of objects created AFTER its use - it does not toggle existing objects' camera collisions.
:::
:::warning
This function ONLY works outside the normal SA map boundaries (past 3000 units).
:::
## Related Functions
- [SetObjectNoCameraCollision](SetObjectNoCameraCollision): Disables collisions between camera and object.
- [SetPlayerObjectNoCameraCollision](SetPlayerObjectNoCameraCollision): Disables collisions between camera and player object.
| openmultiplayer/web/docs/scripting/functions/SetObjectsDefaultCameraCollision.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetObjectsDefaultCameraCollision.md",
"repo_id": "openmultiplayer",
"token_count": 591
} | 285 |
---
title: SetPlayerCameraPos
description: Sets the camera to a specific position for a player.
tags: ["player", "camera"]
---
## Description
Sets the camera to a specific position for a player.
| Name | Description |
| -------- | ---------------------------------------- |
| playerid | ID of the player |
| Float:x | The X coordinate to place the camera at. |
| Float:y | The Y coordinate to place the camera at. |
| Float:z | The Z coordinate to place the camera at. |
## Returns
**true** - The function executed successfully.
**false** - The function failed to execute. The player specified doesn't exist.
## Examples
```c
SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84);
```
## Notes
:::tip
- You may also have to use SetPlayerCameraLookAt with this function in order to work properly.
- Use SetCameraBehindPlayer to reset the camera to behind the player.
:::
:::warning
Using the camera functions directly after enabling spectator mode doesn't work.
:::
## Related Functions
- [SetPlayerCameraLookAt](SetPlayerCameraLookAt): Set where a player's camera should face.
- [SetCameraBehindPlayer](SetCameraBehindPlayer): Set a player's camera behind them.
| openmultiplayer/web/docs/scripting/functions/SetPlayerCameraPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerCameraPos.md",
"repo_id": "openmultiplayer",
"token_count": 379
} | 286 |
---
title: SetPlayerObjectMoveSpeed
description: Set the move speed of a player-object.
tags: ["player", "object", "playerobject"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Set the move speed of a player-object.
| Name | Description |
|-------------|-----------------------------------------------------------|
| playerid | The ID of the player. |
| objectid | The ID of the player-object to set the move speed of. |
| Float:speed | The speed at which to move the object (units per second). |
## Returns
`true` - The function was executed successfully.
`false` - The function failed to execute. The object specified does not exist.
## Examples
```c
new playerobjectid = CreatePlayerObject(playerid, 985, 1003.39154, -643.33423, 122.35060, 0.00000, 1.00000, 24.00000);
MovePlayerObject(playerid, playerobjectid, 1003.3915, -643.3342, 114.5122, 0.8);
SetPlayerObjectMoveSpeed(playerid, playerobjectid, 1.5);
// Move speed changed from 0.8 to 1.5
```
## Related Functions
- [MovePlayerObject](MovePlayerObject): Move a player object to a new position with a set speed.
- [GetPlayerObjectMoveSpeed](GetPlayerObjectMoveSpeed): Get the move speed of a player-object.
- [SetObjectMoveSpeed](SetObjectMoveSpeed): Set the move speed of an object.
| openmultiplayer/web/docs/scripting/functions/SetPlayerObjectMoveSpeed.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerObjectMoveSpeed.md",
"repo_id": "openmultiplayer",
"token_count": 475
} | 287 |
---
title: SetPlayerSpecialAction
description: This function allows to set players special action.
tags: ["player"]
---
## Description
This function allows to set players special action.
| Name | Description |
| ----------------------- | ------------------------------------------------------------------- |
| playerid | The player that should perform the action |
| SPECIAL_ACTION:actionid | The [action](../resources/specialactions) that should be performed. |
## Returns
**true** - The function executed successfully.
**false** - The function failed to execute. This means the player is not connected.
## Examples
```c
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/handsup", true) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
return 1;
}
if (strcmp(cmdtext, "/drink", true) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
return 1;
}
return 0;
}
```
## Notes
:::tip
Removing jetpacks from players by setting their special action to `SPECIAL_ACTION_NONE` (0) causes the sound to stay until death. There is a solution for this, Just apply a random animation to the player and their jetpack will be removed.
:::
## Related Functions
- [GetPlayerSpecialAction](GetPlayerSpecialAction): Get a player's current special action.
- [ApplyAnimation](ApplyAnimation): Apply an animation to a player.
## Related Resources
- [Special Action IDs](../resources/specialactions)
| openmultiplayer/web/docs/scripting/functions/SetPlayerSpecialAction.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerSpecialAction.md",
"repo_id": "openmultiplayer",
"token_count": 552
} | 288 |
---
title: SetTimerEx
description: Sets a timer to call a function after the specified interval.
tags: ["timer"]
---
## Description
Sets a timer to call a function after the specified interval. This variant ('Ex') can pass parameters (such as a player ID) to the function.
| Name | Description |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| const functionName[] | The name of a public function to call when the timer expires. |
| interval | Interval in milliseconds (1 second = 1000 MS). |
| bool:repeating | Boolean (true/false (or 1/0)) that states whether the timer should be called repeatedly (can only be stopped with KillTimer) or only once. |
| const specifiers[] | Special format indicating the types of values the timer will pass. |
| OPEN_MP_TAGS:... | Indefinite number of arguments to pass (must follow format specified in previous parameter). |
## Returns
The ID of the timer that was started. Timer IDs start at 1 and are never reused. There are no internal checks to verify that the parameters passed are valid (e.g. duration not a minus value). Y_Less' 'fixes2' plugin implements these checks and also vastly improves the accuracy of timers, and also adds support for array/string passing.
## Examples
```c
SetTimerEx("EndAntiSpawnKill", 5000, false, "i", playerid);
// EndAntiSpawnKill - The function that will be called
// 5000 - 5000 MS (5 seconds). This is the interval. The timer will be called after 5 seconds.
// false - Not repeating. Will only be called once.
// "i" - I stands for integer (whole number). We are passing an integer (a player ID) to the function.
// playerid - The value to pass. This is the integer specified in the previous parameter.
```
<br />
```c
// The event callback (OnPlayerSpawn) - we will start a timer here
public OnPlayerSpawn(playerid)
{
// Anti-Spawnkill (5 seconds)
// Set their health very high so they can't be killed
SetPlayerHealth(playerid, 999999.0);
// Notify them
SendClientMessage(playerid, -1, "You are protected against spawn-killing for 5 seconds.");
// Start a 5 second timer to end the anti-spawnkill
SetTimerEx("EndAntiSpawnKill", 5000, false, "i", playerid);
}
// Forward (make public) the function so the server can 'see' it
forward EndAntiSpawnKill(playerid);
// The timer function - the code to be executed when the timer is called goes here
public EndAntiSpawnKill(playerid)
{
// 5 seconds has passed, so let's set their health back to 100
SetPlayerHealth(playerid, 100.0);
// Let's notify them also
SendClientMessage(playerid, -1, "You are no longer protected against spawn-killing.");
return 1;
}
```
## Notes
:::warning
Timer intervals are not accurate (roughly 25% off) in SA-MP. There are fixes available [here](https://sampforum.blast.hk/showthread.php?tid=289675) and [here](https://sampforum.blast.hk/showthread.php?tid=650736).
But it is fixed in open.mp
:::
:::tip
Timer ID variables should be reset to 0 when they can to minimise the chance of accidentally killing new timers by mistake. `-1` is commonly mistaken to be the invalid ID - it isn't.
The function to be called must be public. That means it has to be forwarded.
:::
## Definitions
| Definition | Value |
|---------------|-------|
| INVALID_TIMER | 0 |
## Related Functions
- [SetTimer](SetTimer): Set a timer.
- [KillTimer](KillTimer): Stop a timer.
- [IsValidTimer](IsValidTimer): Checks if a timer is valid.
- [IsRepeatingTimer](IsRepeatingTimer): Checks if a timer is set to repeat.
- [GetTimerInterval](GetTimerInterval): Gets the interval of a timer.
- [GetTimerRemaining](GetTimerRemaining): Gets the remaining interval of a timer.
- [CountRunningTimers](CountRunningTimers): Get the running timers.
- [CallLocalFunction](CallLocalFunction): Call a function in the script.
- [CallRemoteFunction](CallRemoteFunction): Call a function in any loaded script.
| openmultiplayer/web/docs/scripting/functions/SetTimerEx.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetTimerEx.md",
"repo_id": "openmultiplayer",
"token_count": 1551
} | 289 |
---
title: SetVehicleToRespawn
description: Sets a vehicle back to the position at where it was created.
tags: ["vehicle"]
---
## Description
Sets a vehicle back to the position at where it was created.
| Name | Description |
| --------- | -------------------------------- |
| vehicleid | The ID of the vehicle to respawn |
## Returns
**true** - The function executed successfully.
**false** - The function failed to execute. The vehicle does not exist.
## Examples
```c
// Respawns the all vehicles
for (new i = 1; i < MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
```
## Related Functions
- [CreateVehicle](CreateVehicle): Create a vehicle.
- [DestroyVehicle](DestroyVehicle): Destroy a vehicle.
| openmultiplayer/web/docs/scripting/functions/SetVehicleToRespawn.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetVehicleToRespawn.md",
"repo_id": "openmultiplayer",
"token_count": 233
} | 290 |
---
title: StartRecordingPlayerData
description: Starts recording a player's movements to a file, which can then be reproduced by an NPC.
tags: ["player"]
---
## Description
Starts recording a player's movements to a file, which can then be reproduced by an NPC.
| Name | Description |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| playerid | The ID of the player to record. |
| PLAYER_RECORDING_TYPE:recordType | The [type](../resources/recordtypes) of recording. |
| const recordFile[] | The name of the file which will hold the recorded data. It will be saved in the scriptfiles directory, with an automatically added .rec extension, you will need to move the file to npcmodes/recordings to use for playback. |
## Returns
This function does not return any specific values.
## Examples
```c
if (!strcmp("/recordme", cmdtext))
{
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_ONFOOT, "MyFile");
}
else if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_DRIVER, "MyFile");
}
SendClientMessage(playerid, 0xFFFFFFFF, "All your movements are now being recorded!");
return 1;
}
```
## Related Functions
- [StopRecordingPlayerData](StopRecordingPlayerData): Stops recording player data.
## Related Resources
- [Record Types](../resources/recordtypes)
| openmultiplayer/web/docs/scripting/functions/StartRecordingPlayerData.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/StartRecordingPlayerData.md",
"repo_id": "openmultiplayer",
"token_count": 1074
} | 291 |
---
title: TextDrawFont
description: Changes the text font.
tags: ["textdraw"]
---
## Description
Changes the text font.
| Name | Description |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Text:textid | The TextDraw to change |
| TEXT_DRAW_FONT:font | There are four font styles as shown below. Font value 4 specifies that this is a txd sprite; 5 specifies that this textdraw can display preview models. A font value greater than 5 does not display, and anything greater than 16 crashes the client. |
Available Styles:

Available Fonts:

## Returns
This function does not return any specific values.
## Examples
```c
/*
TEXT_DRAW_FONT_0
TEXT_DRAW_FONT_1
TEXT_DRAW_FONT_2
TEXT_DRAW_FONT_3
TEXT_DRAW_FONT_SPRITE_DRAW
TEXT_DRAW_FONT_MODEL_PREVIEW
*/
new Text:gMyTextdraw;
public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(320.0, 425.0, "This is an example textdraw");
TextDrawFont(gMyTextdraw, TEXT_DRAW_FONT_2);
return 1;
}
```
## Notes
:::tip
If you want to change the font of a textdraw that is already shown, you don't have to recreate it. Simply use [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) after modifying the textdraw and the change will be visible.
:::
## Related Functions
- [TextDrawCreate](TextDrawCreate): Create a textdraw.
- [TextDrawDestroy](TextDrawDestroy): Destroy a textdraw.
- [TextDrawGetFont](TextDrawGetFont): Gets the text font of a textdraw.
- [TextDrawColor](TextDrawColor): Set the color of the text in a textdraw.
- [TextDrawBoxColor](TextDrawBoxColor): Set the color of the box in a textdraw.
- [TextDrawBackgroundColor](TextDrawBackgroundColor): Set the background color of a textdraw.
- [TextDrawAlignment](TextDrawAlignment): Set the alignment of a textdraw.
- [TextDrawLetterSize](TextDrawLetterSize): Set the letter size of the text in a textdraw.
- [TextDrawTextSize](TextDrawTextSize): Set the size of a textdraw box.
- [TextDrawSetOutline](TextDrawSetOutline): Choose whether the text has an outline.
- [TextDrawSetShadow](TextDrawSetShadow): Toggle shadows on a textdraw.
- [TextDrawSetProportional](TextDrawSetProportional): Scale the text spacing in a textdraw to a proportional ratio.
- [TextDrawUseBox](TextDrawUseBox): Toggle if the textdraw has a box or not.
- [TextDrawSetString](TextDrawSetString): Set the text in an existing textdraw.
- [TextDrawShowForPlayer](TextDrawShowForPlayer): Show a textdraw for a certain player.
- [TextDrawHideForPlayer](TextDrawHideForPlayer): Hide a textdraw for a certain player.
- [TextDrawShowForAll](TextDrawShowForAll): Show a textdraw for all players.
- [TextDrawHideForAll](TextDrawHideForAll): Hide a textdraw for all players.
| openmultiplayer/web/docs/scripting/functions/TextDrawFont.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawFont.md",
"repo_id": "openmultiplayer",
"token_count": 1354
} | 292 |
---
title: TextDrawGetShadow
description: Gets the size of a textdraw's text's shadow.
tags: ["textdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the size of a textdraw's text's shadow.
| Name | Description |
| ----------- | ------------------------------------------------- |
| Text:textid | The ID of the textdraw to get the shadow size of. |
## Returns
Returns the textdraw shadow size.
## Examples
```c
new Text:gMyTextdraw;
public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawSetShadow(gMyTextdraw, 1);
new shadow = TextDrawGetShadow(gMyTextdraw);
// shadow = 1
return 1;
}
```
## Related Functions
- [TextDrawCreate](TextDrawCreate): Create a textdraw.
- [TextDrawDestroy](TextDrawDestroy): Destroy a textdraw.
- [TextDrawSetShadow](TextDrawSetShadow): Sets the size of a textdraw's text's shadow.
- [TextDrawColor](TextDrawColor): Set the color of the text in a textdraw.
- [TextDrawBoxColor](TextDrawBoxColor): Set the color of the box in a textdraw.
- [TextDrawBackgroundColor](TextDrawBackgroundColor): Set the background color of a textdraw.
- [TextDrawAlignment](TextDrawAlignment): Set the alignment of a textdraw.
- [TextDrawFont](TextDrawFont): Set the font of a textdraw.
- [TextDrawLetterSize](TextDrawLetterSize): Set the letter size of the text in a textdraw.
- [TextDrawTextSize](TextDrawTextSize): Set the size of a textdraw box.
- [TextDrawSetOutline](TextDrawSetOutline): Choose whether the text has an outline.
- [TextDrawSetProportional](TextDrawSetProportional): Scale the text spacing in a textdraw to a proportional ratio.
- [TextDrawUseBox](TextDrawUseBox): Toggle if the textdraw has a box or not.
- [TextDrawSetString](TextDrawSetString): Set the text in an existing textdraw.
- [TextDrawShowForPlayer](TextDrawShowForPlayer): Show a textdraw for a certain player.
- [TextDrawHideForPlayer](TextDrawHideForPlayer): Hide a textdraw for a certain player.
- [TextDrawShowForAll](TextDrawShowForAll): Show a textdraw for all players.
- [TextDrawHideForAll](TextDrawHideForAll): Hide a textdraw for all players.
| openmultiplayer/web/docs/scripting/functions/TextDrawGetShadow.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawGetShadow.md",
"repo_id": "openmultiplayer",
"token_count": 685
} | 293 |
---
title: TextDrawSetSelectable
description: Sets whether a textdraw can be selected (clicked on) or not.
tags: ["textdraw"]
---
## Description
Sets whether a textdraw can be selected (clicked on) or not
| Name | Description |
| --------------- | ------------------------------------------------------------------- |
| Text:textid | The ID of the textdraw to make selectable. |
| bool:selectable | 'true' to make it selectable, or 'false' to make it not selectable. |
## Returns
This function does not return any specific values.
## Examples
```c
new Text:gMyTextdraw;
public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawTextSize(gMyTextdraw, 30.0, 10.0);
TextDrawSetSelectable(gMyTextdraw, true);
return 1;
}
```
## Notes
:::tip
Use [TextDrawTextSize](TextDrawTextSize) to define the clickable area.
:::
:::warning
TextDrawSetSelectable must be used BEFORE the textdraw is shown to players for it to be selectable.
:::
## Related Functions
- [TextDrawIsSelectable](TextDrawIsSelectable): Checks if a textdraw is selectable.
- [SelectTextDraw](SelectTextDraw): Enables the mouse, so the player can select a textdraw
- [CancelSelectTextDraw](CancelSelectTextDraw): Cancel textdraw selection with the mouse
## Related Callbacks
- [OnPlayerClickTextDraw](../callbacks/OnPlayerClickTextDraw): Called when a player clicks on a textdraw.
| openmultiplayer/web/docs/scripting/functions/TextDrawSetSelectable.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawSetSelectable.md",
"repo_id": "openmultiplayer",
"token_count": 518
} | 294 |
---
title: UnBlockIpAddress
description: Unblock an IP address that was previously blocked using BlockIpAddress.
tags: ["administration", "ip address"]
---
## Description
Unblock an IP address that was previously blocked using [BlockIpAddress](BlockIpAddress).
| Name | Description |
| ----------------- | -------------------------- |
| const ipAddress[] | The IP address to unblock. |
## Returns
This function does not return any specific values.
## Examples
```c
public OnGameModeInit()
{
UnBlockIpAddress("127.0.0.1");
return 1;
}
```
## Related Functions
- [BlockIpAddress](BlockIpAddress): Block an IP address from connecting to the server for a set amount of time.
- [IsBanned](IsBanned): Checks if the given IP address is banned.
## Related Callbacks
- [OnIncomingConnection](../callbacks/OnIncomingConnection): Called when a player is attempting to connect to the server.
| openmultiplayer/web/docs/scripting/functions/UnBlockIpAddress.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/UnBlockIpAddress.md",
"repo_id": "openmultiplayer",
"token_count": 281
} | 295 |
---
title: fflush
description: Flush a file to disk (ensure all writes are complete).
tags: ["file management"]
---
<VersionWarn version='omp v1.1.0.2612' />
<LowercaseNote />
## Description
Flush a file to disk (ensure all writes are complete). Actually just calls [flength](flength) as that has to force a flush to be accurate.
| Name | Description |
| ----------- | -------------------------------------------- |
| File:handle | The handle of the file. (returned by fopen). |
## Returns
**true** - The function was executed successfully.
**false** - The function failed to execute. (Invalid file handle)
## Examples
```c
// Open "file.txt" in "append only" mode
new File:handle = fopen("file.txt", io_append);
// Check, if the file is opened
if (handle)
{
// Success
// Append "This is a text.\r\n"
fwrite(handle, "This is a text.\r\n");
fflush(handle);
// Close the file
fclose(handle);
}
else
{
// Error
print("The file \"file.txt\" does not exists, or can't be opened.");
}
```
## Related Functions
- [fopen](fopen): Open a file.
- [fclose](fclose): Close a file.
- [ftemp](ftemp): Create a temporary file stream.
- [fremove](fremove): Remove a file.
- [fwrite](fwrite): Write to a file.
- [fputchar](fputchar): Put a character in a file.
- [fgetchar](fgetchar): Get a character from a file.
- [fblockwrite](fblockwrite): Write blocks of data into a file.
- [fblockread](fblockread): Read blocks of data from a file.
- [fseek](fseek): Jump to a specific character in a file.
- [flength](flength): Get the file length.
- [fexist](fexist): Check, if a file exists.
- [fmatch](fmatch): Check, if patterns with a file name matches.
- [ftell](ftell): Get the current position in the file.
- [fstat](fstat): Return the size and the timestamp of a file.
- [frename](frename): Rename a file.
- [fcopy](fcopy): Copy a file.
- [filecrc](filecrc): Return the 32-bit CRC value of a file.
- [diskfree](diskfree): Returns the free disk space.
- [fattrib](fattrib): Set the file attributes.
- [fcreatedir](fcreatedir): Create a directory.
| openmultiplayer/web/docs/scripting/functions/fflush.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/fflush.md",
"repo_id": "openmultiplayer",
"token_count": 725
} | 296 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.