Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\Kongo\Desktop\tacotchi-server>compile
- C:\Users\Kongo\Desktop\tacotchi-server>tsc -p ./ --pretty
- 14644 declare function print(): void;
- ~~~~~
- ../../AppData/Roaming/npm/node_modules/typescript/lib/lib.es2016.full.d.ts(14644,18): error TS2394: Overload signature is not compatible with function implementation.
- 110 return false;
- ~~~~~~
- functions/functions.path.ts(110,2): error TS7027: Unreachable code detected.
- 3 function print( string: string, ...args: any[] ): string
- ~~~~~
- functions/functions.string.ts(3,10): error TS2384: Overload signatures must all be ambient or non-ambient.
- 22 var userLogin = USERS[userID].Login;
- ~~~~~
- functions/functions.user.ts(22,19): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
- 42 if ( isLoged( userLogin ) )
- ~~~~~~~
- functions/functions.user.ts(42,10): error TS2662: Cannot find name 'isLoged'. Did you mean the static member 'user.isLoged'?
- 44 disconnectUser( sessionID, userLogin, roomid );
- ~~~~~~~~~~~~~~
- functions/functions.user.ts(44,6): error TS2662: Cannot find name 'disconnectUser'. Did you mean the static member 'user.disconnectUser'?
- 73 USERS[user.Id] = user;
- ~~~~~
- functions/functions.user.ts(73,7): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
- 74 USERS[user.Login] = USERS[user.Id];
- ~~~~~
- functions/functions.user.ts(74,7): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
- 74 USERS[user.Login] = USERS[user.Id];
- ~~~~~
- functions/functions.user.ts(74,27): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
- 101 game.rooms.reJoin( roomID, user.Id );
- ~~~~~~
- functions/functions.user.ts(101,27): error TS2345: Argument of type 'number | true' is not assignable to parameter of type 'number'.
- Type 'true' is not assignable to type 'number'.
- 136 roomFunctions.send.toRoom("peerDisconnected", USERS[userId].peerID);
- ~~~~~
- functions/functions.user.ts(136,50): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
- 146 USERS[userId].IsInGame = 0;
- ~~~~~
- functions/functions.user.ts(146,3): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
- 161 var usr = USERS[userLogin];
- ~~~~~
- functions/functions.user.ts(161,13): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
- 38 } else if (c1 & 0xF800 != 0xD800) {
- ~~~~~~~~~~~~~~~~
- functions/md5.ts(38,19): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
- 38 } else if (c1 & 0xF800 != 0xD800) {
- ~~~~~~~~~~~~~~~~
- functions/md5.ts(38,19): error TS2365: Operator '!=' cannot be applied to types '63488' and '55296'.
- 45 if (c1 & 0xFC00 != 0xD800) { throw new RangeError("Unmatched trail surrogate at " + n); }
- ~~~~~~~~~~~~~~~~
- functions/md5.ts(45,13): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
- 45 if (c1 & 0xFC00 != 0xD800) { throw new RangeError("Unmatched trail surrogate at " + n); }
- ~~~~~~~~~~~~~~~~
- functions/md5.ts(45,13): error TS2365: Operator '!=' cannot be applied to types '64512' and '55296'.
- 47 if (c2 & 0xFC00 != 0xDC00) { throw new RangeError("Unmatched lead surrogate at " + (n-1)); }
- ~~~~~~~~~~~~~~~~
- functions/md5.ts(47,13): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
- 47 if (c2 & 0xFC00 != 0xDC00) { throw new RangeError("Unmatched lead surrogate at " + (n-1)); }
- ~~~~~~~~~~~~~~~~
- functions/md5.ts(47,13): error TS2365: Operator '!=' cannot be applied to types '64512' and '56320'.
- 34 PLAYER_ACHIVEMENTS[player.userId] = [];
- ~~~~~~
- game/game.achivements.ts(34,23): error TS2552: Cannot find name 'player'. Did you mean 'playerID'?
- 36 for ( var c in achivements )
- ~
- game/game.achivements.ts(36,14): error TS2403: Subsequent variable declarations must have the same type. Variable 'c' must be of type 'any', but here has type 'string'.
- 57 var object = new game.achivements[achivement.AchivementID]( roomID, playerID, data );
- ~~~~~~
- game/game.achivements.ts(57,65): error TS2304: Cannot find name 'roomID'.
- 58 var insertedID = PLAYER_ACHIVEMENTS[player.userId].push( object );
- ~~~~~~
- game/game.achivements.ts(58,41): error TS2304: Cannot find name 'player'.
- 62 PLAYER_ACHIVEMENTS[player.userId][insertedID].init();
- ~~~~~~
- game/game.achivements.ts(62,24): error TS2304: Cannot find name 'player'.
- 87 for ( var c in items )
- ~
- game/game.achivements.ts(87,15): error TS2403: Subsequent variable declarations must have the same type. Variable 'c' must be of type 'any', but here has type 'string'.
- 35 client.emit( "chat_message", messageObject );
- ~~~~~~
- game/game.chat.ts(35,5): error TS2304: Cannot find name 'client'.
- 39 client.emit( "chat_message", {
- ~~~~~~
- game/game.chat.ts(39,5): error TS2304: Cannot find name 'client'.
- 74 var user = USERS[userID];
- ~~~~~
- game/game.chat.ts(74,14): error TS2304: Cannot find name 'USERS'.
- 84 peerID = this.generatePeerIDByUserID( userID );
- ~~~~~~~~~~~~~~~~~~~~~~
- game/game.chat.ts(84,18): error TS2551: Property 'generatePeerIDByUserID' does not exist on type 'CChat'. Did you mean 'generatePeerIdByUserID'?
- 87 USERS[userID].peerID = peerID;
- ~~~~~
- game/game.chat.ts(87,3): error TS2304: Cannot find name 'USERS'.
- 113 peers.push( USERS[userId]['peerID'] );
- ~~~~~
- game/game.chat.ts(113,16): error TS2304: Cannot find name 'USERS'.
- 35 initiateCharPositionSetting( roomID );
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- game/game.fight.ts(35,6): error TS2663: Cannot find name 'initiateCharPositionSetting'. Did you mean the instance member 'this.initiateCharPositionSetting'?
- 151 setCharPos( roomID, player.userId, char.charId, position.x, position.y );
- ~~~~~~~~~~
- game/game.fight.ts(151,6): error TS2663: Cannot find name 'setCharPos'. Did you mean the instance member 'this.setCharPos'?
- 185 setCharPos( roomID, player.userId, char.charId, position.x, position.y );
- ~~~~~~~~~~
- game/game.fight.ts(185,7): error TS2663: Cannot find name 'setCharPos'. Did you mean the instance member 'this.setCharPos'?
- 206 GAME_LOGS[roomID] = game.log( ROOMS[roomID] );
- ~~~~~~~~~~~~~~~~~~~~~~~~~
- game/game.fight.ts(206,23): error TS2348: Value of type 'typeof CLog' is not callable. Did you mean to include 'new'?
- 414 gainedExp = itemPointsRatio * CONFIG.EXP_BASIC;
- ~~~~~~~~~
- game/game.fight.ts(414,3): error TS2304: Cannot find name 'gainedExp'.
- 415 gainedGold = itemPriceRatio * CONFIG.GOLD_BASIC;
- ~~~~~~~~~~
- game/game.fight.ts(415,3): error TS2304: Cannot find name 'gainedGold'.
- 420 exp: Math.round( gainedExp ),
- ~~~~~~~~~
- game/game.fight.ts(420,21): error TS2304: Cannot find name 'gainedExp'.
- 421 gold: Math.round( gainedGold )
- ~~~~~~~~~~
- game/game.fight.ts(421,22): error TS2304: Cannot find name 'gainedGold'.
- 428 var rewards = calculateReward( winChar, deadChar, roomID ),
- ~~~~~~~~~~~~~~~
- game/game.fight.ts(428,17): error TS2663: Cannot find name 'calculateReward'. Did you mean the instance member 'this.calculateReward'?
- 459 playerClan = clan[0];
- ~~~~~~~~~~
- game/game.fight.ts(459,5): error TS2304: Cannot find name 'playerClan'.
- 461 if ( attackingClanID == playerClan['Id'] && attackingClanID != attackedClanID )
- ~~~~~~~~~~
- game/game.fight.ts(461,29): error TS2304: Cannot find name 'playerClan'.
- 468 attackedClan = attacked[0];
- ~~~~~~~~~~~~
- game/game.fight.ts(468,8): error TS2304: Cannot find name 'attackedClan'.
- 470 mysql_query( "SELECT * FROM player__clans_wars WHERE AttackingId=" + playerClan['Id'] + " AND AttackedId=" + attackedClan['Id'], function ( a, war, c )
- ~~~~~~~~~~
- game/game.fight.ts(470,77): error TS2304: Cannot find name 'playerClan'.
- 470 mysql_query( "SELECT * FROM player__clans_wars WHERE AttackingId=" + playerClan['Id'] + " AND AttackedId=" + attackedClan['Id'], function ( a, war, c )
- ~~~~~~~~~~~~
- game/game.fight.ts(470,117): error TS2304: Cannot find name 'attackedClan'.
- 474 roomName = "Walka klanowa: " + clan[0]['Name'] + " vs. " + attacked[0]['Name'];
- ~~~~~~~~
- game/game.fight.ts(474,10): error TS2304: Cannot find name 'roomName'.
- 475 roomPassword = new Date().getTime() * ( rand( 1, 1000000 ) / 1000000 );
- ~~~~~~~~~~~~
- game/game.fight.ts(475,10): error TS2304: Cannot find name 'roomPassword'.
- 477 var room_id = game.rooms.create( roomName, roomPassword, 1, 5, 1, "CLAN_BATTLE" );
- ~~~~~~~~
- game/game.fight.ts(477,43): error TS2304: Cannot find name 'roomName'.
- 477 var room_id = game.rooms.create( roomName, roomPassword, 1, 5, 1, "CLAN_BATTLE" );
- ~~~~~~~~~~~~
- game/game.fight.ts(477,53): error TS2304: Cannot find name 'roomPassword'.
- 480 roomFunctions.send.toRoom( "room_data", ROOMS[room_id] );
- ~~~~~~~~~~~~~
- game/game.fight.ts(480,10): error TS2304: Cannot find name 'roomFunctions'.
- 492 "WHERE (player__clans_members.ClanId=" + playerClan['Id'] + " OR player__clans_members.ClanId=" + attackedClan['Id'] + ") AND users.Id=player__clans_members.MemberId",
- ~~~~~~~~~~
- game/game.fight.ts(492,52): error TS2304: Cannot find name 'playerClan'.
- 492 "WHERE (player__clans_members.ClanId=" + playerClan['Id'] + " OR player__clans_members.ClanId=" + attackedClan['Id'] + ") AND users.Id=player__clans_members.MemberId",
- ~~~~~~~~~~~~
- game/game.fight.ts(492,109): error TS2304: Cannot find name 'attackedClan'.
- 499 inviteSended = game.rooms.createInvite( room_id, attackerOwnerID, members[c]['Login'], true );
- ~~~~~~~~~~~~
- game/game.fight.ts(499,14): error TS2304: Cannot find name 'inviteSended'.
- 508 CLAN_NAME: playerClan['Name']
- ~~~~~~~~~~
- game/game.fight.ts(508,27): error TS2304: Cannot find name 'playerClan'.
- 526 CLAN_NAME: playerClan['Name']
- ~~~~~~~~~~
- game/game.fight.ts(526,20): error TS2304: Cannot find name 'playerClan'.
- 535 CLAN_NAME: playerClan['Name']
- ~~~~~~~~~~
- game/game.fight.ts(535,18): error TS2304: Cannot find name 'playerClan'.
- 9 break;
- ~~~~~
- game/game.items.ts(9,5): error TS7027: Unreachable code detected.
- 13 break;
- ~~~~~
- game/game.items.ts(13,5): error TS7027: Unreachable code detected.
- 17 break;
- ~~~~~
- game/game.items.ts(17,5): error TS7027: Unreachable code detected.
- 111 delete GAME_LOGS[this.roomObject.Id];
- ~~
- game/game.logs.ts(111,36): error TS2339: Property 'Id' does not exist on type 'object'.
- 35 ROOM_FUNCTIONS[roomID] = game.roomsFunctions.construct( roomID );
- ~~~~~~~~~
- game/game.rooms.ts(35,48): error TS2339: Property 'construct' does not exist on type '{ attack: typeof CRoomFunctionsAttack; char: typeof CRoomFunctionsChar; event: typeof CRoomFuncti...'.
- 71 public search( name?: string, MiT?:number, CPP?:number, map?:number, page: number )
- ~~~~
- game/game.rooms.ts(71,71): error TS1016: A required parameter cannot follow an optional parameter.
- 226 if ( CONFIG.DEBUG_LEVEL >= 2 )
- ~~~~~~~~~~~
- game/game.rooms.ts(226,18): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 245 clearTimeout( roundLeaves[sessionName] );
- ~~~~~~~~~~~
- game/game.rooms.ts(245,30): error TS2538: Type 'true' cannot be used as an index type.
- 280 console.log( print( WARNIING.CANT_SWITCH_TEAM, roomID, userID, destinationTeam ) );
- ~~~~~~~~
- game/game.rooms.ts(280,25): error TS2304: Cannot find name 'WARNIING'.
- 294 if ( user.isLoged( userLogin ) )
- ~~~~~~~~~
- game/game.rooms.ts(294,23): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
- 303 InviteInsert = ROOM_INVITES.push( {
- ~~~~~~~~~~~~
- game/game.rooms.ts(303,6): error TS2304: Cannot find name 'InviteInsert'.
- 305 invited_by: USERS[invitedBy]['Login'],
- ~~~~~
- game/game.rooms.ts(305,19): error TS2304: Cannot find name 'USERS'.
- 314 var inviteID = InviteInsert - 1;
- ~~~~~~~~~~~~
- game/game.rooms.ts(314,21): error TS2304: Cannot find name 'InviteInsert'.
- 327 } else if ( user.isLoged( userLogin ) === false )
- ~~~~~~~~~
- game/game.rooms.ts(327,30): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
- 183 if ( parseInt( newHP ) == NaN ) newHP = 0;
- ~~~~~
- game/game.roomsFunctions.attack.ts(183,18): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
- 34 roundLeaves[sessionID] = setTimeout( function ()
- ~~~~~~~~~
- game/game.roomsFunctions.game.ts(34,15): error TS2538: Type 'true' cannot be used as an index type.
- 150 console.log( print( INFO.EXP_REWARD, playerChars[d].charId, playerChars[d].getExp ) );
- ~~~~~~~~~~~
- game/game.roomsFunctions.game.ts(150,43): error TS2304: Cannot find name 'playerChars'.
- 150 console.log( print( INFO.EXP_REWARD, playerChars[d].charId, playerChars[d].getExp ) );
- ~~~~~~~~~~~
- game/game.roomsFunctions.game.ts(150,66): error TS2304: Cannot find name 'playerChars'.
- 9 user = USERS[playerID];
- ~~~~~
- game/game.roomsFunctions.room.ts(9,11): error TS2304: Cannot find name 'USERS'.
- 290 return USERS[masterID]['Login'];
- ~~~~~
- game/game.roomsFunctions.room.ts(290,10): error TS2304: Cannot find name 'USERS'.
- 41 var choosenTeam = teams[array_rand( teams, 1 )];
- ~~~~~~~~~~~~~~~~~~~~~~
- game/game.roomsFunctions.tour.ts(41,27): error TS2538: Type 'any[]' cannot be used as an index type.
- 128 requireFind = ROOMS[this.roomID]['tour_' + team] + 1;
- ~~~~
- game/game.roomsFunctions.tour.ts(128,47): error TS2304: Cannot find name 'team'.
- 1 game.roomsFunctions = ( function ()
- ~~~~~~~~~~~~~~~~~~~
- game/game.roomsFunctions.ts(1,1): error TS2322: Type '{ construct: (roomID: any) => {}; }' is not assignable to type '{ attack: typeof CRoomFunctionsAttack; char: typeof CRoomFunctionsChar; event: typeof CRoomFuncti...'.
- Property 'attack' is missing in type '{ construct: (roomID: any) => {}; }'.
- 7 returnObject.room = new game.roomsFunctions.room( roomID, returnObject );
- ~~~~
- game/game.roomsFunctions.ts(7,16): error TS2339: Property 'room' does not exist on type '{}'.
- 8 returnObject.player = new game.roomsFunctions.player( roomID, returnObject );
- ~~~~~~
- game/game.roomsFunctions.ts(8,16): error TS2339: Property 'player' does not exist on type '{}'.
- 9 returnObject.char = new game.roomsFunctions.char( roomID, returnObject );
- ~~~~
- game/game.roomsFunctions.ts(9,16): error TS2339: Property 'char' does not exist on type '{}'.
- 10 returnObject.send = new game.roomsFunctions.send( roomID, returnObject );
- ~~~~
- game/game.roomsFunctions.ts(10,16): error TS2339: Property 'send' does not exist on type '{}'.
- 10 returnObject.send = new game.roomsFunctions.send( roomID, returnObject );
- ~~~~
- game/game.roomsFunctions.ts(10,47): error TS2339: Property 'send' does not exist on type '{ attack: typeof CRoomFunctionsAttack; char: typeof CRoomFunctionsChar; event: typeof CRoomFuncti...'.
- 11 returnObject.tour = new game.roomsFunctions.tour( roomID, returnObject );
- ~~~~
- game/game.roomsFunctions.ts(11,16): error TS2339: Property 'tour' does not exist on type '{}'.
- 12 returnObject.map = new game.roomsFunctions.map( roomID, returnObject );
- ~~~
- game/game.roomsFunctions.ts(12,16): error TS2339: Property 'map' does not exist on type '{}'.
- 13 returnObject.game = new game.roomsFunctions.game( roomID, returnObject );
- ~~~~
- game/game.roomsFunctions.ts(13,16): error TS2339: Property 'game' does not exist on type '{}'.
- 14 returnObject.attack = new game.roomsFunctions.attack( roomID, returnObject );
- ~~~~~~
- game/game.roomsFunctions.ts(14,16): error TS2339: Property 'attack' does not exist on type '{}'.
- 15 returnObject.skill = new game.roomsFunctions.skill( roomID, returnObject );
- ~~~~~
- game/game.roomsFunctions.ts(15,16): error TS2339: Property 'skill' does not exist on type '{}'.
- 16 returnObject.event = new game.roomsFunctions.event( roomID, returnObject );
- ~~~~~
- game/game.roomsFunctions.ts(16,16): error TS2339: Property 'event' does not exist on type '{}'.
- 106 if ( CONFIG.DEBUG_LEVEL >= 3 )
- ~~~~~~~~~~~
- game/game.server.ts(106,17): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 179 if ( CONFIG.DEBUG_LEVEL >= 2 )
- ~~~~~~~~~~~
- game/game.server.ts(179,17): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 222 game.rooms.join( roomID, _SESSION[data.SID]['user_id'], true, false );
- ~~~~~
- game/game.server.ts(222,68): error TS2345: Argument of type 'false' is not assignable to parameter of type 'string'.
- 294 if ( CONFIG.DEBUG_LEVEL >= 2 )
- ~~~~~~~~~~~
- game/game.server.ts(294,18): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 298 if ( CONFIG.DEBUG_LEVEL >= 3 )
- ~~~~~~~~~~~
- game/game.server.ts(298,19): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 386 if ( CONFIG.DEBUG_LEVEL >= 2 )
- ~~~~~~~~~~~
- game/game.server.ts(386,19): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 388 console.log( print( SUCCESS.PLAYER_INVITED, invite_id ) );
- ~~~~~~~~~
- game/game.server.ts(388,52): error TS2304: Cannot find name 'invite_id'.
- 392 if ( CONFIG.DEBUG_LEVEL >= 2 )
- ~~~~~~~~~~~
- game/game.server.ts(392,19): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 606 if ( CONFIG.DEBUG_LEVEL >= 2 )
- ~~~~~~~~~~~
- game/game.server.ts(606,19): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 608 console.log( print( SUCCESS.CHAR_CHOOSE_START, room_id ) );
- ~~~~~~~
- game/game.server.ts(608,55): error TS2304: Cannot find name 'room_id'.
- 615 if ( CONFIG.DEBUG_LEVEL >= 3 )
- ~~~~~~~~~~~
- game/game.server.ts(615,21): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 617 console.log( print( WARNING.CHAR_CHOOSE_NOT_FULL, room_id ) );
- ~~~~~~~
- game/game.server.ts(617,60): error TS2304: Cannot find name 'room_id'.
- 624 if ( CONFIG.DEBUG_LEVEL >= 3 )
- ~~~~~~~~~~~
- game/game.server.ts(624,21): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 626 console.log( print( WARNING.CHAR_CHOOSE_NOT_READY, room_id ) );
- ~~~~~~~
- game/game.server.ts(626,61): error TS2304: Cannot find name 'room_id'.
- 633 if ( CONFIG.DEBUG_LEVEL >= 3 )
- ~~~~~~~~~~~
- game/game.server.ts(633,21): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 635 console.log( print( WARNING.CHAR_CHOOSE_NOT_MASTER, room_id ) );
- ~~~~~~~
- game/game.server.ts(635,62): error TS2304: Cannot find name 'room_id'.
- 687 if ( CONFIG.DEBUG_LEVEL >= 2 )
- ~~~~~~~~~~~
- game/game.server.ts(687,18): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 691 if ( CONFIG.DEBUG_LEVEL >= 3 )
- ~~~~~~~~~~~
- game/game.server.ts(691,19): error TS2339: Property 'DEBUG_LEVEL' does not exist on type '{ START_TIME: number; DEBUG_MODE: number; DISPLAY_LOG_TIME: boolean; MYSQL_HOST: string; MYSQL_US...'.
- 693 console.log( print( INFO.CHAR_INFO, roomID, charKey, charId ) );
- ~~~~~~~
- game/game.server.ts(693,52): error TS2304: Cannot find name 'charKey'.
- 693 console.log( print( INFO.CHAR_INFO, roomID, charKey, charId ) );
- ~~~~~~
- game/game.server.ts(693,61): error TS2304: Cannot find name 'charId'.
- 783 roomFunctions.send.toRoom( "rewrite_fight", ROOMS[roomid] );
- ~~~~~~
- game/game.server.ts(783,59): error TS2304: Cannot find name 'roomid'.
- 1297 var sendingObject = {
- ~~~~~~~~~~~~~
- game/game.server.ts(1297,14): error TS2403: Subsequent variable declarations must have the same type. Variable 'sendingObject' must be of type '{}', but here has type '{ used_by: any; team: any; skillid: any; room: any; ADDITIONAL_DATA: {}; }'.
- 98 public canUse( roomID: number, dataObject: any ): boolean
- ~~~~~~~
- game/game.skills.ts(98,52): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
- 267 count = rand( this.CONFIG.Count.min, this.CONFIG.Count.max ),
- ~~~~~~
- game/game.skills.ts(267,23): error TS2339: Property 'CONFIG' does not exist on type 'CSkills'.
- 267 count = rand( this.CONFIG.Count.min, this.CONFIG.Count.max ),
- ~~~~~~
- game/game.skills.ts(267,46): error TS2339: Property 'CONFIG' does not exist on type 'CSkills'.
- 147 var SocketIOServer = io.listen( CONFIG.server_port );
- ~~
- main.ts(147,22): error TS2304: Cannot find name 'io'.
- 152 var signalServer = peerServer( { port: CONFIG.signal_port, path: '/call-me' } );
- ~~~~~~~~~~
- main.ts(152,20): error TS2552: Cannot find name 'peerServer'. Did you mean 'PeerServer'?
- C:\Users\Kongo\Desktop\tacotchi-server>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement