Advertisement
Guest User

Fixing 8 little bugs and recompile...

a guest
Oct 14th, 2017
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.58 KB | None | 0 0
  1. C:\Users\Kongo\Desktop\tacotchi-server>compile
  2.  
  3. C:\Users\Kongo\Desktop\tacotchi-server>tsc -p ./ --pretty
  4.  
  5. 14644 declare function print(): void;
  6. ~~~~~
  7.  
  8. ../../AppData/Roaming/npm/node_modules/typescript/lib/lib.es2016.full.d.ts(14644,18): error TS2394: Overload signature is not compatible with function implementation.
  9.  
  10.  
  11. 110 return false;
  12. ~~~~~~
  13.  
  14. functions/functions.path.ts(110,2): error TS7027: Unreachable code detected.
  15.  
  16.  
  17. 3 function print( string: string, ...args: any[] ): string
  18. ~~~~~
  19.  
  20. functions/functions.string.ts(3,10): error TS2384: Overload signatures must all be ambient or non-ambient.
  21.  
  22.  
  23. 22 var userLogin = USERS[userID].Login;
  24. ~~~~~
  25.  
  26. functions/functions.user.ts(22,19): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
  27.  
  28.  
  29. 42 if ( isLoged( userLogin ) )
  30. ~~~~~~~
  31.  
  32. functions/functions.user.ts(42,10): error TS2662: Cannot find name 'isLoged'. Did you mean the static member 'user.isLoged'?
  33.  
  34.  
  35. 44 disconnectUser( sessionID, userLogin, roomid );
  36. ~~~~~~~~~~~~~~
  37.  
  38. functions/functions.user.ts(44,6): error TS2662: Cannot find name 'disconnectUser'. Did you mean the static member 'user.disconnectUser'?
  39.  
  40.  
  41. 73 USERS[user.Id] = user;
  42. ~~~~~
  43.  
  44. functions/functions.user.ts(73,7): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
  45.  
  46.  
  47. 74 USERS[user.Login] = USERS[user.Id];
  48. ~~~~~
  49.  
  50. functions/functions.user.ts(74,7): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
  51.  
  52.  
  53. 74 USERS[user.Login] = USERS[user.Id];
  54. ~~~~~
  55.  
  56. functions/functions.user.ts(74,27): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
  57.  
  58.  
  59. 101 game.rooms.reJoin( roomID, user.Id );
  60. ~~~~~~
  61.  
  62. functions/functions.user.ts(101,27): error TS2345: Argument of type 'number | true' is not assignable to parameter of type 'number'.
  63. Type 'true' is not assignable to type 'number'.
  64.  
  65.  
  66. 136 roomFunctions.send.toRoom("peerDisconnected", USERS[userId].peerID);
  67. ~~~~~
  68.  
  69. functions/functions.user.ts(136,50): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
  70.  
  71.  
  72. 146 USERS[userId].IsInGame = 0;
  73. ~~~~~
  74.  
  75. functions/functions.user.ts(146,3): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
  76.  
  77.  
  78. 161 var usr = USERS[userLogin];
  79. ~~~~~
  80.  
  81. functions/functions.user.ts(161,13): error TS2552: Cannot find name 'USERS'. Did you mean 'user'?
  82.  
  83.  
  84. 38 } else if (c1 & 0xF800 != 0xD800) {
  85. ~~~~~~~~~~~~~~~~
  86.  
  87. 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.
  88.  
  89.  
  90. 38 } else if (c1 & 0xF800 != 0xD800) {
  91. ~~~~~~~~~~~~~~~~
  92.  
  93. functions/md5.ts(38,19): error TS2365: Operator '!=' cannot be applied to types '63488' and '55296'.
  94.  
  95.  
  96. 45 if (c1 & 0xFC00 != 0xD800) { throw new RangeError("Unmatched trail surrogate at " + n); }
  97. ~~~~~~~~~~~~~~~~
  98.  
  99. 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.
  100.  
  101.  
  102. 45 if (c1 & 0xFC00 != 0xD800) { throw new RangeError("Unmatched trail surrogate at " + n); }
  103. ~~~~~~~~~~~~~~~~
  104.  
  105. functions/md5.ts(45,13): error TS2365: Operator '!=' cannot be applied to types '64512' and '55296'.
  106.  
  107.  
  108. 47 if (c2 & 0xFC00 != 0xDC00) { throw new RangeError("Unmatched lead surrogate at " + (n-1)); }
  109. ~~~~~~~~~~~~~~~~
  110.  
  111. 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.
  112.  
  113.  
  114. 47 if (c2 & 0xFC00 != 0xDC00) { throw new RangeError("Unmatched lead surrogate at " + (n-1)); }
  115. ~~~~~~~~~~~~~~~~
  116.  
  117. functions/md5.ts(47,13): error TS2365: Operator '!=' cannot be applied to types '64512' and '56320'.
  118.  
  119.  
  120. 34 PLAYER_ACHIVEMENTS[player.userId] = [];
  121. ~~~~~~
  122.  
  123. game/game.achivements.ts(34,23): error TS2552: Cannot find name 'player'. Did you mean 'playerID'?
  124.  
  125.  
  126. 36 for ( var c in achivements )
  127. ~
  128.  
  129. 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'.
  130.  
  131.  
  132. 57 var object = new game.achivements[achivement.AchivementID]( roomID, playerID, data );
  133. ~~~~~~
  134.  
  135. game/game.achivements.ts(57,65): error TS2304: Cannot find name 'roomID'.
  136.  
  137.  
  138. 58 var insertedID = PLAYER_ACHIVEMENTS[player.userId].push( object );
  139. ~~~~~~
  140.  
  141. game/game.achivements.ts(58,41): error TS2304: Cannot find name 'player'.
  142.  
  143.  
  144. 62 PLAYER_ACHIVEMENTS[player.userId][insertedID].init();
  145. ~~~~~~
  146.  
  147. game/game.achivements.ts(62,24): error TS2304: Cannot find name 'player'.
  148.  
  149.  
  150. 87 for ( var c in items )
  151. ~
  152.  
  153. 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'.
  154.  
  155.  
  156. 35 client.emit( "chat_message", messageObject );
  157. ~~~~~~
  158.  
  159. game/game.chat.ts(35,5): error TS2304: Cannot find name 'client'.
  160.  
  161.  
  162. 39 client.emit( "chat_message", {
  163. ~~~~~~
  164.  
  165. game/game.chat.ts(39,5): error TS2304: Cannot find name 'client'.
  166.  
  167.  
  168. 74 var user = USERS[userID];
  169. ~~~~~
  170.  
  171. game/game.chat.ts(74,14): error TS2304: Cannot find name 'USERS'.
  172.  
  173.  
  174. 84 peerID = this.generatePeerIDByUserID( userID );
  175. ~~~~~~~~~~~~~~~~~~~~~~
  176.  
  177. game/game.chat.ts(84,18): error TS2551: Property 'generatePeerIDByUserID' does not exist on type 'CChat'. Did you mean 'generatePeerIdByUserID'?
  178.  
  179.  
  180. 87 USERS[userID].peerID = peerID;
  181. ~~~~~
  182.  
  183. game/game.chat.ts(87,3): error TS2304: Cannot find name 'USERS'.
  184.  
  185.  
  186. 113 peers.push( USERS[userId]['peerID'] );
  187. ~~~~~
  188.  
  189. game/game.chat.ts(113,16): error TS2304: Cannot find name 'USERS'.
  190.  
  191.  
  192. 35 initiateCharPositionSetting( roomID );
  193. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  194.  
  195. game/game.fight.ts(35,6): error TS2663: Cannot find name 'initiateCharPositionSetting'. Did you mean the instance member 'this.initiateCharPositionSetting'?
  196.  
  197.  
  198. 151 setCharPos( roomID, player.userId, char.charId, position.x, position.y );
  199. ~~~~~~~~~~
  200.  
  201. game/game.fight.ts(151,6): error TS2663: Cannot find name 'setCharPos'. Did you mean the instance member 'this.setCharPos'?
  202.  
  203.  
  204. 185 setCharPos( roomID, player.userId, char.charId, position.x, position.y );
  205. ~~~~~~~~~~
  206.  
  207. game/game.fight.ts(185,7): error TS2663: Cannot find name 'setCharPos'. Did you mean the instance member 'this.setCharPos'?
  208.  
  209.  
  210. 206 GAME_LOGS[roomID] = game.log( ROOMS[roomID] );
  211. ~~~~~~~~~~~~~~~~~~~~~~~~~
  212.  
  213. game/game.fight.ts(206,23): error TS2348: Value of type 'typeof CLog' is not callable. Did you mean to include 'new'?
  214.  
  215.  
  216. 414 gainedExp = itemPointsRatio * CONFIG.EXP_BASIC;
  217. ~~~~~~~~~
  218.  
  219. game/game.fight.ts(414,3): error TS2304: Cannot find name 'gainedExp'.
  220.  
  221.  
  222. 415 gainedGold = itemPriceRatio * CONFIG.GOLD_BASIC;
  223. ~~~~~~~~~~
  224.  
  225. game/game.fight.ts(415,3): error TS2304: Cannot find name 'gainedGold'.
  226.  
  227.  
  228. 420 exp: Math.round( gainedExp ),
  229. ~~~~~~~~~
  230.  
  231. game/game.fight.ts(420,21): error TS2304: Cannot find name 'gainedExp'.
  232.  
  233.  
  234. 421 gold: Math.round( gainedGold )
  235. ~~~~~~~~~~
  236.  
  237. game/game.fight.ts(421,22): error TS2304: Cannot find name 'gainedGold'.
  238.  
  239.  
  240. 428 var rewards = calculateReward( winChar, deadChar, roomID ),
  241. ~~~~~~~~~~~~~~~
  242.  
  243. game/game.fight.ts(428,17): error TS2663: Cannot find name 'calculateReward'. Did you mean the instance member 'this.calculateReward'?
  244.  
  245.  
  246. 459 playerClan = clan[0];
  247. ~~~~~~~~~~
  248.  
  249. game/game.fight.ts(459,5): error TS2304: Cannot find name 'playerClan'.
  250.  
  251.  
  252. 461 if ( attackingClanID == playerClan['Id'] && attackingClanID != attackedClanID )
  253. ~~~~~~~~~~
  254.  
  255. game/game.fight.ts(461,29): error TS2304: Cannot find name 'playerClan'.
  256.  
  257.  
  258. 468 attackedClan = attacked[0];
  259. ~~~~~~~~~~~~
  260.  
  261. game/game.fight.ts(468,8): error TS2304: Cannot find name 'attackedClan'.
  262.  
  263.  
  264. 470 mysql_query( "SELECT * FROM player__clans_wars WHERE AttackingId=" + playerClan['Id'] + " AND AttackedId=" + attackedClan['Id'], function ( a, war, c )
  265. ~~~~~~~~~~
  266.  
  267. game/game.fight.ts(470,77): error TS2304: Cannot find name 'playerClan'.
  268.  
  269.  
  270. 470 mysql_query( "SELECT * FROM player__clans_wars WHERE AttackingId=" + playerClan['Id'] + " AND AttackedId=" + attackedClan['Id'], function ( a, war, c )
  271. ~~~~~~~~~~~~
  272.  
  273. game/game.fight.ts(470,117): error TS2304: Cannot find name 'attackedClan'.
  274.  
  275.  
  276. 474 roomName = "Walka klanowa: " + clan[0]['Name'] + " vs. " + attacked[0]['Name'];
  277. ~~~~~~~~
  278.  
  279. game/game.fight.ts(474,10): error TS2304: Cannot find name 'roomName'.
  280.  
  281.  
  282. 475 roomPassword = new Date().getTime() * ( rand( 1, 1000000 ) / 1000000 );
  283. ~~~~~~~~~~~~
  284.  
  285. game/game.fight.ts(475,10): error TS2304: Cannot find name 'roomPassword'.
  286.  
  287.  
  288. 477 var room_id = game.rooms.create( roomName, roomPassword, 1, 5, 1, "CLAN_BATTLE" );
  289. ~~~~~~~~
  290.  
  291. game/game.fight.ts(477,43): error TS2304: Cannot find name 'roomName'.
  292.  
  293.  
  294. 477 var room_id = game.rooms.create( roomName, roomPassword, 1, 5, 1, "CLAN_BATTLE" );
  295. ~~~~~~~~~~~~
  296.  
  297. game/game.fight.ts(477,53): error TS2304: Cannot find name 'roomPassword'.
  298.  
  299.  
  300. 480 roomFunctions.send.toRoom( "room_data", ROOMS[room_id] );
  301. ~~~~~~~~~~~~~
  302.  
  303. game/game.fight.ts(480,10): error TS2304: Cannot find name 'roomFunctions'.
  304.  
  305.  
  306. 492 "WHERE (player__clans_members.ClanId=" + playerClan['Id'] + " OR player__clans_members.ClanId=" + attackedClan['Id'] + ") AND users.Id=player__clans_members.MemberId",
  307. ~~~~~~~~~~
  308.  
  309. game/game.fight.ts(492,52): error TS2304: Cannot find name 'playerClan'.
  310.  
  311.  
  312. 492 "WHERE (player__clans_members.ClanId=" + playerClan['Id'] + " OR player__clans_members.ClanId=" + attackedClan['Id'] + ") AND users.Id=player__clans_members.MemberId",
  313. ~~~~~~~~~~~~
  314.  
  315. game/game.fight.ts(492,109): error TS2304: Cannot find name 'attackedClan'.
  316.  
  317.  
  318. 499 inviteSended = game.rooms.createInvite( room_id, attackerOwnerID, members[c]['Login'], true );
  319. ~~~~~~~~~~~~
  320.  
  321. game/game.fight.ts(499,14): error TS2304: Cannot find name 'inviteSended'.
  322.  
  323.  
  324. 508 CLAN_NAME: playerClan['Name']
  325. ~~~~~~~~~~
  326.  
  327. game/game.fight.ts(508,27): error TS2304: Cannot find name 'playerClan'.
  328.  
  329.  
  330. 526 CLAN_NAME: playerClan['Name']
  331. ~~~~~~~~~~
  332.  
  333. game/game.fight.ts(526,20): error TS2304: Cannot find name 'playerClan'.
  334.  
  335.  
  336. 535 CLAN_NAME: playerClan['Name']
  337. ~~~~~~~~~~
  338.  
  339. game/game.fight.ts(535,18): error TS2304: Cannot find name 'playerClan'.
  340.  
  341.  
  342. 9 break;
  343. ~~~~~
  344.  
  345. game/game.items.ts(9,5): error TS7027: Unreachable code detected.
  346.  
  347.  
  348. 13 break;
  349. ~~~~~
  350.  
  351. game/game.items.ts(13,5): error TS7027: Unreachable code detected.
  352.  
  353.  
  354. 17 break;
  355. ~~~~~
  356.  
  357. game/game.items.ts(17,5): error TS7027: Unreachable code detected.
  358.  
  359.  
  360. 111 delete GAME_LOGS[this.roomObject.Id];
  361. ~~
  362.  
  363. game/game.logs.ts(111,36): error TS2339: Property 'Id' does not exist on type 'object'.
  364.  
  365.  
  366. 35 ROOM_FUNCTIONS[roomID] = game.roomsFunctions.construct( roomID );
  367. ~~~~~~~~~
  368.  
  369. game/game.rooms.ts(35,48): error TS2339: Property 'construct' does not exist on type '{ attack: typeof CRoomFunctionsAttack; char: typeof CRoomFunctionsChar; event: typeof CRoomFuncti...'.
  370.  
  371.  
  372. 71 public search( name?: string, MiT?:number, CPP?:number, map?:number, page: number )
  373. ~~~~
  374.  
  375. game/game.rooms.ts(71,71): error TS1016: A required parameter cannot follow an optional parameter.
  376.  
  377.  
  378. 226 if ( CONFIG.DEBUG_LEVEL >= 2 )
  379. ~~~~~~~~~~~
  380.  
  381. 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...'.
  382.  
  383.  
  384. 245 clearTimeout( roundLeaves[sessionName] );
  385. ~~~~~~~~~~~
  386.  
  387. game/game.rooms.ts(245,30): error TS2538: Type 'true' cannot be used as an index type.
  388.  
  389.  
  390. 280 console.log( print( WARNIING.CANT_SWITCH_TEAM, roomID, userID, destinationTeam ) );
  391. ~~~~~~~~
  392.  
  393. game/game.rooms.ts(280,25): error TS2304: Cannot find name 'WARNIING'.
  394.  
  395.  
  396. 294 if ( user.isLoged( userLogin ) )
  397. ~~~~~~~~~
  398.  
  399. game/game.rooms.ts(294,23): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
  400.  
  401.  
  402. 303 InviteInsert = ROOM_INVITES.push( {
  403. ~~~~~~~~~~~~
  404.  
  405. game/game.rooms.ts(303,6): error TS2304: Cannot find name 'InviteInsert'.
  406.  
  407.  
  408. 305 invited_by: USERS[invitedBy]['Login'],
  409. ~~~~~
  410.  
  411. game/game.rooms.ts(305,19): error TS2304: Cannot find name 'USERS'.
  412.  
  413.  
  414. 314 var inviteID = InviteInsert - 1;
  415. ~~~~~~~~~~~~
  416.  
  417. game/game.rooms.ts(314,21): error TS2304: Cannot find name 'InviteInsert'.
  418.  
  419.  
  420. 327 } else if ( user.isLoged( userLogin ) === false )
  421. ~~~~~~~~~
  422.  
  423. game/game.rooms.ts(327,30): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
  424.  
  425.  
  426. 183 if ( parseInt( newHP ) == NaN ) newHP = 0;
  427. ~~~~~
  428.  
  429. game/game.roomsFunctions.attack.ts(183,18): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
  430.  
  431.  
  432. 34 roundLeaves[sessionID] = setTimeout( function ()
  433. ~~~~~~~~~
  434.  
  435. game/game.roomsFunctions.game.ts(34,15): error TS2538: Type 'true' cannot be used as an index type.
  436.  
  437.  
  438. 150 console.log( print( INFO.EXP_REWARD, playerChars[d].charId, playerChars[d].getExp ) );
  439. ~~~~~~~~~~~
  440.  
  441. game/game.roomsFunctions.game.ts(150,43): error TS2304: Cannot find name 'playerChars'.
  442.  
  443.  
  444. 150 console.log( print( INFO.EXP_REWARD, playerChars[d].charId, playerChars[d].getExp ) );
  445. ~~~~~~~~~~~
  446.  
  447. game/game.roomsFunctions.game.ts(150,66): error TS2304: Cannot find name 'playerChars'.
  448.  
  449.  
  450. 9 user = USERS[playerID];
  451. ~~~~~
  452.  
  453. game/game.roomsFunctions.room.ts(9,11): error TS2304: Cannot find name 'USERS'.
  454.  
  455.  
  456. 290 return USERS[masterID]['Login'];
  457. ~~~~~
  458.  
  459. game/game.roomsFunctions.room.ts(290,10): error TS2304: Cannot find name 'USERS'.
  460.  
  461.  
  462. 41 var choosenTeam = teams[array_rand( teams, 1 )];
  463. ~~~~~~~~~~~~~~~~~~~~~~
  464.  
  465. game/game.roomsFunctions.tour.ts(41,27): error TS2538: Type 'any[]' cannot be used as an index type.
  466.  
  467.  
  468. 128 requireFind = ROOMS[this.roomID]['tour_' + team] + 1;
  469. ~~~~
  470.  
  471. game/game.roomsFunctions.tour.ts(128,47): error TS2304: Cannot find name 'team'.
  472.  
  473.  
  474. 1 game.roomsFunctions = ( function ()
  475. ~~~~~~~~~~~~~~~~~~~
  476.  
  477. 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...'.
  478. Property 'attack' is missing in type '{ construct: (roomID: any) => {}; }'.
  479.  
  480.  
  481. 7 returnObject.room = new game.roomsFunctions.room( roomID, returnObject );
  482. ~~~~
  483.  
  484. game/game.roomsFunctions.ts(7,16): error TS2339: Property 'room' does not exist on type '{}'.
  485.  
  486.  
  487. 8 returnObject.player = new game.roomsFunctions.player( roomID, returnObject );
  488. ~~~~~~
  489.  
  490. game/game.roomsFunctions.ts(8,16): error TS2339: Property 'player' does not exist on type '{}'.
  491.  
  492.  
  493. 9 returnObject.char = new game.roomsFunctions.char( roomID, returnObject );
  494. ~~~~
  495.  
  496. game/game.roomsFunctions.ts(9,16): error TS2339: Property 'char' does not exist on type '{}'.
  497.  
  498.  
  499. 10 returnObject.send = new game.roomsFunctions.send( roomID, returnObject );
  500. ~~~~
  501.  
  502. game/game.roomsFunctions.ts(10,16): error TS2339: Property 'send' does not exist on type '{}'.
  503.  
  504.  
  505. 10 returnObject.send = new game.roomsFunctions.send( roomID, returnObject );
  506. ~~~~
  507.  
  508. game/game.roomsFunctions.ts(10,47): error TS2339: Property 'send' does not exist on type '{ attack: typeof CRoomFunctionsAttack; char: typeof CRoomFunctionsChar; event: typeof CRoomFuncti...'.
  509.  
  510.  
  511. 11 returnObject.tour = new game.roomsFunctions.tour( roomID, returnObject );
  512. ~~~~
  513.  
  514. game/game.roomsFunctions.ts(11,16): error TS2339: Property 'tour' does not exist on type '{}'.
  515.  
  516.  
  517. 12 returnObject.map = new game.roomsFunctions.map( roomID, returnObject );
  518. ~~~
  519.  
  520. game/game.roomsFunctions.ts(12,16): error TS2339: Property 'map' does not exist on type '{}'.
  521.  
  522.  
  523. 13 returnObject.game = new game.roomsFunctions.game( roomID, returnObject );
  524. ~~~~
  525.  
  526. game/game.roomsFunctions.ts(13,16): error TS2339: Property 'game' does not exist on type '{}'.
  527.  
  528.  
  529. 14 returnObject.attack = new game.roomsFunctions.attack( roomID, returnObject );
  530. ~~~~~~
  531.  
  532. game/game.roomsFunctions.ts(14,16): error TS2339: Property 'attack' does not exist on type '{}'.
  533.  
  534.  
  535. 15 returnObject.skill = new game.roomsFunctions.skill( roomID, returnObject );
  536. ~~~~~
  537.  
  538. game/game.roomsFunctions.ts(15,16): error TS2339: Property 'skill' does not exist on type '{}'.
  539.  
  540.  
  541. 16 returnObject.event = new game.roomsFunctions.event( roomID, returnObject );
  542. ~~~~~
  543.  
  544. game/game.roomsFunctions.ts(16,16): error TS2339: Property 'event' does not exist on type '{}'.
  545.  
  546.  
  547. 106 if ( CONFIG.DEBUG_LEVEL >= 3 )
  548. ~~~~~~~~~~~
  549.  
  550. 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...'.
  551.  
  552.  
  553. 179 if ( CONFIG.DEBUG_LEVEL >= 2 )
  554. ~~~~~~~~~~~
  555.  
  556. 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...'.
  557.  
  558.  
  559. 222 game.rooms.join( roomID, _SESSION[data.SID]['user_id'], true, false );
  560. ~~~~~
  561.  
  562. game/game.server.ts(222,68): error TS2345: Argument of type 'false' is not assignable to parameter of type 'string'.
  563.  
  564.  
  565. 294 if ( CONFIG.DEBUG_LEVEL >= 2 )
  566. ~~~~~~~~~~~
  567.  
  568. 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...'.
  569.  
  570.  
  571. 298 if ( CONFIG.DEBUG_LEVEL >= 3 )
  572. ~~~~~~~~~~~
  573.  
  574. 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...'.
  575.  
  576.  
  577. 386 if ( CONFIG.DEBUG_LEVEL >= 2 )
  578. ~~~~~~~~~~~
  579.  
  580. 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...'.
  581.  
  582.  
  583. 388 console.log( print( SUCCESS.PLAYER_INVITED, invite_id ) );
  584. ~~~~~~~~~
  585.  
  586. game/game.server.ts(388,52): error TS2304: Cannot find name 'invite_id'.
  587.  
  588.  
  589. 392 if ( CONFIG.DEBUG_LEVEL >= 2 )
  590. ~~~~~~~~~~~
  591.  
  592. 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...'.
  593.  
  594.  
  595. 606 if ( CONFIG.DEBUG_LEVEL >= 2 )
  596. ~~~~~~~~~~~
  597.  
  598. 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...'.
  599.  
  600.  
  601. 608 console.log( print( SUCCESS.CHAR_CHOOSE_START, room_id ) );
  602. ~~~~~~~
  603.  
  604. game/game.server.ts(608,55): error TS2304: Cannot find name 'room_id'.
  605.  
  606.  
  607. 615 if ( CONFIG.DEBUG_LEVEL >= 3 )
  608. ~~~~~~~~~~~
  609.  
  610. 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...'.
  611.  
  612.  
  613. 617 console.log( print( WARNING.CHAR_CHOOSE_NOT_FULL, room_id ) );
  614. ~~~~~~~
  615.  
  616. game/game.server.ts(617,60): error TS2304: Cannot find name 'room_id'.
  617.  
  618.  
  619. 624 if ( CONFIG.DEBUG_LEVEL >= 3 )
  620. ~~~~~~~~~~~
  621.  
  622. 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...'.
  623.  
  624.  
  625. 626 console.log( print( WARNING.CHAR_CHOOSE_NOT_READY, room_id ) );
  626. ~~~~~~~
  627.  
  628. game/game.server.ts(626,61): error TS2304: Cannot find name 'room_id'.
  629.  
  630.  
  631. 633 if ( CONFIG.DEBUG_LEVEL >= 3 )
  632. ~~~~~~~~~~~
  633.  
  634. 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.  
  636.  
  637. 635 console.log( print( WARNING.CHAR_CHOOSE_NOT_MASTER, room_id ) );
  638. ~~~~~~~
  639.  
  640. game/game.server.ts(635,62): error TS2304: Cannot find name 'room_id'.
  641.  
  642.  
  643. 687 if ( CONFIG.DEBUG_LEVEL >= 2 )
  644. ~~~~~~~~~~~
  645.  
  646. 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...'.
  647.  
  648.  
  649. 691 if ( CONFIG.DEBUG_LEVEL >= 3 )
  650. ~~~~~~~~~~~
  651.  
  652. 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...'.
  653.  
  654.  
  655. 693 console.log( print( INFO.CHAR_INFO, roomID, charKey, charId ) );
  656. ~~~~~~~
  657.  
  658. game/game.server.ts(693,52): error TS2304: Cannot find name 'charKey'.
  659.  
  660.  
  661. 693 console.log( print( INFO.CHAR_INFO, roomID, charKey, charId ) );
  662. ~~~~~~
  663.  
  664. game/game.server.ts(693,61): error TS2304: Cannot find name 'charId'.
  665.  
  666.  
  667. 783 roomFunctions.send.toRoom( "rewrite_fight", ROOMS[roomid] );
  668. ~~~~~~
  669.  
  670. game/game.server.ts(783,59): error TS2304: Cannot find name 'roomid'.
  671.  
  672.  
  673. 1297 var sendingObject = {
  674. ~~~~~~~~~~~~~
  675.  
  676. 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: {}; }'.
  677.  
  678.  
  679. 98 public canUse( roomID: number, dataObject: any ): boolean
  680. ~~~~~~~
  681.  
  682. game/game.skills.ts(98,52): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
  683.  
  684.  
  685. 267 count = rand( this.CONFIG.Count.min, this.CONFIG.Count.max ),
  686. ~~~~~~
  687.  
  688. game/game.skills.ts(267,23): error TS2339: Property 'CONFIG' does not exist on type 'CSkills'.
  689.  
  690.  
  691. 267 count = rand( this.CONFIG.Count.min, this.CONFIG.Count.max ),
  692. ~~~~~~
  693.  
  694. game/game.skills.ts(267,46): error TS2339: Property 'CONFIG' does not exist on type 'CSkills'.
  695.  
  696.  
  697. 147 var SocketIOServer = io.listen( CONFIG.server_port );
  698. ~~
  699.  
  700. main.ts(147,22): error TS2304: Cannot find name 'io'.
  701.  
  702.  
  703. 152 var signalServer = peerServer( { port: CONFIG.signal_port, path: '/call-me' } );
  704. ~~~~~~~~~~
  705.  
  706. main.ts(152,20): error TS2552: Cannot find name 'peerServer'. Did you mean 'PeerServer'?
  707.  
  708.  
  709. C:\Users\Kongo\Desktop\tacotchi-server>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement