Skip to content

Instantly share code, notes, and snippets.

View SpencerSharkey's full-sized avatar

Spencer SpencerSharkey

View GitHub Profile
function loader:AddResourceDirectory(Directory)
-- Msg("AddResourceDirectory: "..Directory.."...\n")
Msg("AddResourceDirectory: "..self.ContentPrefix.."/"..Directory.."/*\n")
local FoundDir = false
for k,v in pairs(file.Find(self.ContentPrefix.."/"..Directory.."/*", "MOD")) do
local File = Directory.."/"..v
if(file.IsDir(self.ContentPrefix.."/"..File, "MOD")) then
FoundDir = true
if(File != ".svn" or File != "unused")then
self:AddResourceDirectory(File)
'use strict';
const chalk = require('chalk');
const async = require('async');
const moment = require('moment');
const mysql = require('../lib/db-mysql').getPool('revive');
const db = require('../lib/db');
const Rcon = require('../lib/rcon');
TRY THIS FIRST:
1 ) DOWNLOAD THE BF2 CD-KEY CHANGER: https://www.germandarknes.net/index.php?downloadsview-6
2 ) PASTE THE KEY FROM YOUR UCP PAGE INTO THE CHANGER, AND HIT APPLY. ( DO NOT CHECK `Don't include hyphens` )
3 ) ATTEMPT TO JOIN A BF2 MULTIPLAYER SERVER
####################################################
Try the following manual method if you're having trouble:
### Keybase proof
I hereby claim:
* I am SpencerSharkey on github.
* I am spencersharkey (https://keybase.io/spencersharkey) on keybase.
* I have a public key whose fingerprint is 0177 00E1 383D B031 B81C 27C4 9311 FB41 3DD9 7DE7
To claim this, I am signing this object:
#Work only for camp_gibraltar gpm_nv 16, but you can add the other spawnpoint coordonates for the other maps!
import bf2
import host
import bf2.PlayerManager
import bf2.GameLogic
import bf2.Timer
import math
import time
#PARAMETERS YOU CAN CHANGE
#Work only for camp_gibraltar gpm_nv 16, but you can add the other spawnpoint coordonates for the other maps!
import bf2
import host
import bf2.PlayerManager
import bf2.GameLogic
import bf2.Timer
import math
import time
#PARAMETERS YOU CAN CHANGE
@SpencerSharkey
SpencerSharkey / text.txt
Created June 26, 2017 04:58
Gist created by API
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Config has a deprecated constructor in /opt/revive/bf2142stats/include/utils.php on line 311
2017-06-26 04:58:08 -- NOTICE: SNAPSHOT Data Filename: battlelog-us-20170108_2352_camp_gibraltar.txt
2017-06-26 04:58:08 -- NOTICE: SNAPSHOT Data Complete (camp_gibraltar:20170108_2352)
2017-06-26 04:58:08 -- NOTICE: Begin Processing (camp_gibraltar)...
2017-06-26 04:58:08 -- NOTICE: - Standard Map (4)...
Round ID to set558522017-06-26 04:58:08 -- NOTICE: Found 36 Player(s)...
2017-06-26 04:58:08 -- NOTICE: Processing Player (2323008)
2017-06-26 04:58:08 -- NOTICE: Player (2323008) found in `stats_w` - make update.
2017-06-26 04:58:08 -- NOTICE: >>>>>>>>>>UPDATE stats_w SET `wkls-1`=(`wkls-1` + 1), `wtp-1`=(`wtp-1` + 41), `wbf-1`=(`wbf-1` + 14), `wbh-1`=(`wbh-1` + 6), `waccu-1`='0.23712835387962', `wkls-19`=(`wkls-19` + 13), `wtp-19`=(`wtp-19` + 463), `wbf-19`=(`wbf-19` + 403), `wbh-19`=(`wbh-19` + 81), `waccu-
@SpencerSharkey
SpencerSharkey / text.txt
Created June 26, 2017 05:04
Gist created by API
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Config has a deprecated constructor in /opt/revive/bf2142stats/include/utils.php on line 311
2017-06-26 05:04:14 -- NOTICE: SNAPSHOT Data Filename: battlelog-us-20170109_0009_camp_gibraltar.txt
2017-06-26 05:04:14 -- NOTICE: SNAPSHOT Data Complete (camp_gibraltar:20170109_0009)
2017-06-26 05:04:14 -- NOTICE: Begin Processing (camp_gibraltar)...
2017-06-26 05:04:14 -- NOTICE: - Standard Map (4)...
Round ID to set558532017-06-26 05:04:14 -- NOTICE: Found 27 Player(s)...
2017-06-26 05:04:14 -- NOTICE: Processing Player (2288575)
2017-06-26 05:04:14 -- NOTICE: Player (2288575) found in `stats_v` - make update.
2017-06-26 05:04:14 -- NOTICE: >>>>>>>>>>UPDATE stats_v SET `vkdr-0`=0, `vkdr-1`=0, `vkdr-2`=0, `vkdr-3`=0, `vkdr-4`=0, `vkdr-5`=0, `vkdr-6`=0, `vkdr-7`=0, `vkdr-8`=0, `vkdr-9`=0, `vkdr-10`=0, `vkdr-11`=0, `vkdr-12`=0, `vkdr-13`=0, `vkdr-14`=0 WHERE `pid`='2288575'
@SpencerSharkey
SpencerSharkey / battlelog-us-strike_at_karkand_20170322_1835.txt
Created June 26, 2017 06:37
Error output from BF2142 snapshot file
battlelog-us\strike_at_karkand\mapstart\1490220556.07\mapend\1490222151.08\win\2\gm\0\m\19\v\bf2142\pc\71\rwa\0\ban_0\0\c_0\0\capa_0\0\cpt_0\0\crpt_0\0\cs_0\0.0\dass_0\0\dcpt_0\0\dstrk_0\2\dths_0\2\gsco_0\0\hls_0\0\kick_0\0\klla_0\0\klls_0\0\klstrk_0\0\kluav_0\0\nick_0\ thiagonariz\ncpt_0\0\pdt_0\{}\pdtc_0\0\pid_0\2664783\resp_0\0\rnk_0\1\rnkcg_0\0\rps_0\0\rvs_0\0\slbspn_0\0\sluav_0\0\suic_0\0\tac_0\0\talw_0\0\tas_0\0\tasl_0\0\tasm_0\48\tcd_0\0\tcrd_0\0\tdmg_0\0\tdrps_0\0\tds_0\0\tgd_0\0\tgr_0\0\tkls_0\0\toth_0\0\tots_0\3\tt_0\48\tvdmg_0\0\twsc_0\0\t_0\2\kdths-0_0\2\kdths-1_0\0\kdths-2_0\0\kdths-3_0\0\kkls-0_0\0\kkls-1_0\0\kkls-2_0\0\kkls-3_0\0\ktt-0_0\37\ktt-1_0\0\ktt-2_0\0\ktt-3_0\0\wtp-11_0\3\waccu-6_0\0\wdths-6_0\0\wkls-11_0\0\wbh-11_0\0\wbf-6_0\3\wbf-11_0\0\waccu-11_0\0\wkls-6_0\0\wdths-11_0\0\wbh-6_0\0\wtp-6_0\34\ban_1\0\c_1\1\capa_1\0\cpt_1\1\crpt_1\42\cs_1\0.0\dass_1\0\dcpt_1\1\dstrk_1\3\dths_1\8\gsco_1\27\hls_1\0\kick_1\0\klla_1\1\klls_1\23\klstrk_1\12\kluav_1\0\nick_1\ BlankSerenity\ncpt_1\0\pdt_1\{