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.