ejsoon

Forum Replies Created

Viewing 5 posts - 36 through 40 (of 133 total)
  • Author
    Posts
  • in reply to: 與boardspace.net合作哥尼斯堡 #19216
    ejsoon
    Keymaster

    這是在資料庫中新增遊戲的步驟翻譯:

    ---

    ### 將新遊戲新增至資料庫的步驟

    通常情況下,這裡的所有操作都需要執行兩次:一次是在你本地機器的**開發資料庫**,另一次則是在**正式環境資料庫(Live Database)**。操作的時間點並非絕對關鍵,但顯然必須在遊戲正式上線前的某個時間點完成。

    1. **開啟資料庫**:使用 MySQL Workbench 或任何你偏好的類似工具。
    2. **新增資料列**:在 variations 資料表中新增一行。這包含了幾個關鍵項目,這些項目也必須與該遊戲的 GameInfo 條目內容一致。
    3. **更新列舉型別(Enum)**:
    > **注意:** 接下來的這兩個項目會觸發 MySQL 內部的重大變更並更動所有記錄。雖然我從未遇到過問題,但請務必謹慎執行。

    * 使用「編輯資料表(edit table)」功能,修改 zertz_gamerecord 或 mp_gamerecord 資料表中的 variations 列舉值。如果是嚴格的雙人遊戲,請修改 zertz_gamerecord;如果是可能超過兩人的遊戲,則修改 mp_gamerecord。
    * 使用「編輯資料表」功能,修改 ranking 資料表中的 variations 列舉值。

    4. **重啟伺服器**:在對資料庫完成這些變更後的某個時間點,必須**重啟遊戲伺服器**。重啟腳本會從資料庫中提取新資料並配置伺服器。特別是新遊戲的「目錄編號(directory number)」及對應的實際物理目錄位置,必須讓伺服器知曉。
    5. **同步 GameInfo**:新遊戲的短名稱(2 個字母的代碼)、全名以及目錄編號,都必須設定在該遊戲的 GameInfo 紀錄中,且理所當然必須與資料庫中的數值保持一致。

    in reply to: 與boardspace.net合作哥尼斯堡 #19215
    ejsoon
    Keymaster

    翻譯成繁體中文:

    Steps to add a new game to the database.

    Generally, everything here has to be done twice, once to the development
    database on your local machine, and again on the live database. It's not
    critical when, except of course the changes have to be made sometime before
    the game goes live.

    Open the database using Mysql Workbench or similar tool of your choice.

    Add a new row to the "variations" table. This contains several crucial
    things which also have to be known to the GameInfo entry for the game.

    These next two items trigger massive internal changes in mysql which alter
    every record. I've never had any trouble resulting, but be cautious.

    Use "edit table" to change the enum "variations" in EITHER the zertz_gamerecord
    or the mp_gamerecord table. Zertz-gamecord for strictly 2 player games, mp_gamerecord
    for games with potentially more than 2 players.

    Use edit table to change the enum "variations" in the "ranking" table.

    Sometime after these changes are made to the database, the game server has
    to be restarted. The restart script extracts the new data from the database
    and configures the server. In particular, the "directory number" and
    corresponding physical directory location of the new game needs to be known
    to the server.

    The new game's short name (2 letter name) and full name, and directory number
    need to be installed in the new game's GameInfo record, and naturally must
    agree with the database values.

    in reply to: 中國象棋局面自問自答 #18942
    ejsoon
    Keymaster

    紅方急兩頭蛇應該如何應對?

    rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w - - 0 1
    1. 炮二平五 馬8進7
    2. 兵三進一 馬2進3
    3. 馬二進三 車9平8
    4. 兵七進一 砲2進3
    5. 相三進一 砲8進4
    6. 車一平三 車1進1
    7. 馬八進七 砲2進1
    8. 炮八平九 砲8平7
    9. 車三平二 車8進9
    10. 馬三退二 車1平4
    11. 車九平八 象7進5
    12. 兵五進一 砲2平3
    13. 仕六進五 車4進7
    14. 馬二進四 砲7平8
    15. 馬七進五 車4退2
    16. 車八進三 士6進5
    17. 馬五退三 車4進3
    18. 仕五退六 砲8平2
    19. 馬四進六 砲2退1
    20. 馬三進五 卒3進1
    21. 兵七進一 象5進3
    22. 兵五進一 卒5進1
    23. 炮五進三 馬7進5
    24. 馬五進四 砲3平4
    25. 炮九平七 象3進5
    26. 炮七進二 砲2退1
    27. 馬六進四 砲4平9
    28. 前馬進二 砲2平5
    29. 馬四進五 士5進6
    30. 馬五進三 士4進5
    31. 馬三退五 砲9平7
    32. 馬二退四 砲7進1
    33. 仕四進五

    in reply to: 中國象棋局面自問自答 #18938
    ejsoon
    Keymaster

    r1b1kabr1/4a1c2/1cn3n2/p1p1pR2p/6p2/2P1P4/P5P1P/2C1C1N2/9/RNBAKAB2 b - - 17 9

    這個局面的後續變化是?

    1. 炮二平五 馬8進7
    2. 馬二進三 車9平8
    3. 車一平二 卒7進1
    4. 車二進六 馬2進3
    5. 兵七進一 砲8平9
    6. 車二平三 砲9退1
    7. 兵五進一 士4進5
    8. 炮八平七 砲9平7
    9. 車三平四 馬7進8
    10. 車四退三 車8進2
    11. 馬八進九 砲2進3
    也可以先車1平2
    12. 車九平八
    中兵給他打
    12. ... 砲2平5
    13. 仕四進五 車1平2
    14. 車八進九 馬3退2
    15. 馬九進七 砲5退1
    16. 車四平五

    • This reply was modified 7 months, 1 week ago by ejsoon.
    • This reply was modified 7 months, 1 week ago by ejsoon.
    • This reply was modified 7 months, 1 week ago by ejsoon.
    in reply to: 港劇推薦 #18783
    ejsoon
    Keymaster

    日劇:
    我的事說來話長
    行騙天下
    求婚大作戰

Viewing 5 posts - 36 through 40 (of 133 total)