A Codeword egy FiveM-re készült, JavaScriptben írt társasjáték, amelyet a népszerű Codenames ihletett.
Két csapat versenyez egy 5×5-ös táblán, hogy megtalálja a saját ügynökeit. A csapatok kémfőnökei egyszavas tippeket adnak, a csapattársak pedig szavazással döntik el, melyik kártyát fordítják fel. Az nyer, aki előbb megtalálja az összes ügynökét. A fekete kártyát viszont messziről kerüld el!
A táblát a /codeword paranccsal bárhova lerakhatod (vagy beteheted a propot az MLO-dba).
Menj oda, és nyomd meg az E gombot a csatlakozáshoz.
- Másold a
[codeword_fivem]mappát a szerveredresourcesmappájába. - Add hozzá a
server.cfg-hez:ensure [codeword_fivem] - A szervernél legyen bekapcsolva a OneSync.
A prop azért külön resource (codeword_asset), hogy a script újraindítása
(ensure codeword_game) ne okozzon crasht annak, aki épp egy tábla mellett áll.
A codeword_asset-et játék közben ne indítsd újra.
Mindent két fájlban tudsz testreszabni a codeword_game mappában, a kódhoz nem kell
hozzányúlnod.
consts.js – játékbeállítások
| Beállítás | Mire jó |
|---|---|
MIN_PLAYERS |
Hány játékos kell az induláshoz (legalább 4 ajánlott: csapatonként egy kémfőnök és egy tippelő) |
AFTERMIN_COUNTDOWN_MS |
Visszaszámlálás a lobbyban (ha megvan a minimum létszám) és a kémfőnökválasztásnál, valamint egy megszakadt játék utáni újraindításnál (ms) |
ROUND_COUNTDOWN_MS |
Egy kör hossza (ms) |
END_SCREEN_MS |
Mennyi ideig látszik az eredmény a játék végén (ms) |
ONE_TEAM_WORDS |
A kezdő csapat kártyáinak száma (a másik csapaté eggyel kevesebb, egy a fekete kártya, a többi semleges) |
WORDS_FILE |
A szólista elérési útja (soronként egy szó, legalább 25 szó kell) |
TEAM_NAMES |
A csapatok megjelenített neve |
TEAM_ONE_COLOR, TEAM_TWO_COLOR |
A csapatok színe a felületen |
Az EVENTS és a PROP értékét ne módosítsd, hacsak nem nevezed át a resource-t vagy a propot is.
locale.js – a felület összes szövege (gombok, címek, hibaüzenetek, kör eleji kiírások).
Ha más nyelvre fordítanád, elég ezt az egy fájlt átírni.
Szabadon használható, módosítható, és beépíthető a saját szerveredbe. Ha használod, megköszönöm, ha feltünteted a nevem: Bencso 🙂
A Codeword egy nem hivatalos, rajongó által készített játék, amely a Codenames játékmenetére épül. Nem az eredeti játék, és semmilyen kapcsolatban nem áll a Czech Games Editionnel vagy a Codenames alkotóival, és nem is támogatják. A „Codenames” és a „Fedőnevek” név, valamint az eredeti játék grafikái a jogtulajdonos védjegyei, illetve szellemi tulajdonai. A projekt nem használ fel eredeti játékanyagot.
Codeword is a party game for FiveM, written in JavaScript and inspired by the popular board game Codenames.
Two teams compete to find their agents on a 5×5 board. Each team's spymaster gives one-word clues, and their teammates vote on which cards to reveal. Find all your agents first, but avoid the black card!
Place the board anywhere with /codeword (or put the prop in your MLO), walk up to it,
and press E to join.
- Copy the
[codeword_fivem]folder into your server'sresourcesfolder. - Add this to your
server.cfg:ensure [codeword_fivem] - Make sure OneSync is enabled on your server.
The prop is a separate resource (codeword_asset) so that restarting the script
(ensure codeword_game) doesn't crash players standing next to a board.
Don't restart codeword_asset while players are online.
Everything can be customised in two files inside codeword_game, no need to touch the code.
consts.js – game settings
| Setting | What it does |
|---|---|
MIN_PLAYERS |
Players needed to start (at least 4 recommended: a spymaster and a guesser per team) |
AFTERMIN_COUNTDOWN_MS |
Countdown in the lobby (once the minimum player count is reached), during spymaster selection, and before restarting after an interrupted game (ms) |
ROUND_COUNTDOWN_MS |
Length of a round (ms) |
END_SCREEN_MS |
How long the result is shown after the game ends (ms) |
ONE_TEAM_WORDS |
Number of cards for the starting team (the other team gets one less, one is the black card, the rest are neutral) |
WORDS_FILE |
Path to the word list (one word per line, at least 25 words) |
TEAM_NAMES |
Display names of the teams |
TEAM_ONE_COLOR, TEAM_TWO_COLOR |
Team colours in the UI |
Don't change EVENTS or PROP unless you also rename the resource or the prop.
locale.js – every text in the UI (buttons, headings, error messages, round banners).
To translate the game, you only need to edit this one file.
Free to use, modify and include on your server. If you use it, I'd appreciate it if you credited me: Bencso 🙂
Codeword is an unofficial, fan-made game based on the gameplay of Codenames. It is not the original game and is not affiliated with, endorsed by, or connected to Czech Games Edition or the creator of Codenames. "Codenames" and its original artwork are trademarks and intellectual property of their respective owners. No original game assets are used in this project.
