Underground 2 Revived
Play Need for Speed: Underground 2 (2004) in Chrome and Firefox with WebGPU graphics, Web Audio, up to 120 fps widescreen, controller support, free roam and Online races with friends. Fan project, not
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證AssaultCube rankings, Hall of Fame, maps and live games - open so everybody can check how games are counted. Live at cubeladder.ovh
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Rankings, Hall of Fame, maps and live games for AssaultCube – live at cubeladder.ovh.
The code is public so everybody can check how games are counted and ranked. Nothing is entered by hand: every number comes from the game servers' own log files.
| What | Where in the code |
|---|---|
| Reading the server logs (kills, flags, teams, minutes played) | src/Service/AcLogParser.php |
| Points per event (kill +1, headshot/knife/grenade +2, flag +5, teamkill/suicide −1, …) | $pointsMap in AcLogParser.php – also listed on /about |
| A game only counts if it starts with at least 4 players and is finished | Ladder.minPlayersToRankGame in config/app.php, game start / end in AcLogParser.php |
| Inaccurate games (5+ flags scored while the other team is empty, e.g. everybody left) count nowhere | MAX_FREE_FLAGS in AcLogParser.php; left out by beforeFind() in src/Model/Table/PlayerStatsPerGameTable.php and the game windows in src/Service/LastGamesTrait.php |
| Joining for less than 3 minutes is not a "game played" and sets no best-K/D record (kills and points still count) | MIN_MINUTES in PlayerStatsPerGameTable.php |
Rankings: all time (this year, from 5,000 points), the last 100 games (Ladder.maxGamesToRank), Hall of Fame (best single game since HOF_SINCE, plus the best aim trainer round) | src/Controller/PlayersController.php, src/Service/LastGamesTrait.php, src/Service/HallOfFameService.php |
| CTF rating (0–10) and player types: flag play 55%, combat 30%, team result 12%, discipline 3% – per minute, against the others in the same game, last 100 CTF games | src/Command/CalculateRatingsCommand.php |
| Skill rating (0–10, individual, all modes): kill points (headshot / knife / grenade 1.5) 30%, K/D 35%, flags (scored 3, taken / returned 1) 10%, streaks 10%, team wins 5%, lobby strength 5%, discipline 5% – last 100 games | src/Command/CalculateRatingsCommand.php |
Characters: Headhunter, Butcher, Bomber, Pistolero, Berserker – top 10% of rated players in headshots / knife / grenade / pistol kills per minute or kill streaks (#1: "The …"); emblems in webroot/img/characters (PNGs for the card in resources/characters) | src/Command/CalculateRatingsCommand.php |
| Player card tiers by CTF rating: Silver 5+, Gold 6+, Diamond 7+, Legend 8+ | src/Service/PlayerCardImage.php |
| Milestones (tiers with the date reached) and specials, new Gold+ tiers announced in Discord | src/Service/MilestoneService.php, src/Command/CalculateMilestonesCommand.php |
| Weekly achievements (every Sunday), incl. the week's best aim trainer round | src/Command/CalculateAchievementsCommand.php |
| Marking a game as inaccurate by hand (logged with a reason, shown on the game page) | src/Command/MarkInaccurateCommand.php |
Players are recognised by their AssaultCube login (pubkey), so name changes keep their stats. Anyone can opt out of tracking on their own player page (Edit profile → Don't track me).
Built with CakePHP 5 and Tailwind CSS, developed with DDEV:
ddev start
ddev composer install
cp config/app_local.example.php config/app_local.php # database, Discord webhooks, Ladder.admins, …
cp .env.local.example .env.local # SFTP logins of the game servers (process_logs*.sh)
ddev exec bin/cake migrations migrate
npm install
npx @tailwindcss/cli -i ./webroot/css/app.css -o ./webroot/css/tailwind.css --watch
Parse a server log: bin/cake ProcessLogs <server-key> <file-name> <path-to-log>
(see process_logs.sh for how the live servers are fetched).
Not included in this repository:
config/GeoLite2-City.mmdb, config/GeoLite2-Country.mmdb) for player countries –
free from MaxMind, but they may not be redistributed.webroot/img/players/, webroot/img/maps/) – the site falls back to
a default picture without them. Map thumbnails: bin/cake map_thumbs.config/app_local.php and .env.local with passwords, webhooks and server logins, and database dumps.