{"id":26051819,"url":"https://github.com/ljzd-pro/deppartprototypehentaiplaymod","last_synced_at":"2025-04-10T21:22:19.634Z","repository":{"id":231533385,"uuid":"781976029","full_name":"Ljzd-PRO/DeppartPrototypeHentaiPlayMod","owner":"Ljzd-PRO","description":"Buttplug.io game mod for DeppartPrototype | 适配郊狼 3.0 DG-Lab-V3","archived":false,"fork":false,"pushed_at":"2024-09-16T07:16:19.000Z","size":2202,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T18:52:26.849Z","etag":null,"topics":["buttplug","dg-lab","dg-lab-v3","game","game-mod","melonloader","melonloader-mod","modding","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ljzd-PRO.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-04T11:59:54.000Z","updated_at":"2024-12-28T05:15:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"c970f3bb-3943-483a-a419-889368314a53","html_url":"https://github.com/Ljzd-PRO/DeppartPrototypeHentaiPlayMod","commit_stats":null,"previous_names":["ljzd-pro/deppartprototypehentaiplaymod"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ljzd-PRO%2FDeppartPrototypeHentaiPlayMod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ljzd-PRO%2FDeppartPrototypeHentaiPlayMod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ljzd-PRO%2FDeppartPrototypeHentaiPlayMod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ljzd-PRO%2FDeppartPrototypeHentaiPlayMod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ljzd-PRO","download_url":"https://codeload.github.com/Ljzd-PRO/DeppartPrototypeHentaiPlayMod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248299026,"owners_count":21080449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buttplug","dg-lab","dg-lab-v3","game","game-mod","melonloader","melonloader-mod","modding","unity"],"created_at":"2025-03-08T05:13:20.350Z","updated_at":"2025-04-10T21:22:19.616Z","avatar_url":"https://github.com/Ljzd-PRO.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeppartPrototype HentaiPlay\n\n- DeppartPrototype Game Download: https://n4ba.itch.io/deppart\n- Buttplug protocol: https://github.com/buttplugio/buttplug\n- Intiface® Central: https://intiface.com/central/\n\n### About the game DeppartPrototype\n\n\u003e Deppart is an indie first-person horror game with shooter elements. \\\n\u003e Be very careful, enemies kill you with one hit. \\\n\u003e https://n4ba.itch.io/deppart\n\n## Feature\n\n- Buttplug devices will be activated on these situations:\n   - Gun shot\n   - Jump-scares\n   - During battle\n   - Player died\n   - Game end\n- Mainly use `Vibrate` command, but you can add other scalar commands\n- Provide an alternative event reporter instead of buttplug (`HttpReporter`)\n\n## Usage\n\n1. Install MelonLoader:\n    - https://melonwiki.xyz/#/README?id=automated-installation\n2. Download latest release and extract:\n   - https://github.com/Ljzd-PRO/DeppartPrototypeHentaiPlayMod/releases/latest\n3. Place the `Mods` directory under the game path.\n4. Install [Intiface® Central](https://intiface.com/central/)\n5. Launch Intiface® Central, start the engine server.\n6. Launch the game, connect you Buttplug device to Intiface® Central.\n7. (Optional) Configure the mod preference in `UserData\\MelonPreferences.cfg` under the game path.\n8. Enjoy the game.\n\n## For DG-Lab Users\n\n该 Mod 已适配 郊狼 2.0 3.0 即 DG-Lab-V2, V3，但是需要修改 Mod 配置，同时需要使用专门适配的 buttplug 分支。\n\n- 郊狼 3.0 具体请查看文档：[`docs/dg-lab-v3.md`](docs/dg-lab-v3.md)\n- 郊狼 2.0 由于没有设备可测试，无法给出具体配置参考，但可以参考 3.0 进行配置。\n\n## Preference\n\nSome important options:\n- ButtPlugServerUrl\n- ButtPlugActiveVibrateScalar\n- ButtPlugShotVibrateScalar\n- ButtPlugVibrateDuration\n- ButtPlugVibrateCmdIndexList\n- ButtPlugAdditionalScalarList\n\n```cfg\n[HentaiPlay]\n# Type of reporter that report events in game (Available: BaseReporter, HttpReporter, ButtPlugReporter)\nEventReporterType = \"ButtPlugReporter\"\n# Report URL for HttpReporter\nHttpReporterUrl = \"http://127.0.0.1:7788/report\"\n# Time interval for HttpReporter to reporting InGame events\nHttpReportInGameInterval = 3000\n# Not to report events to Console\nDisableEventLog = false\n# Websocket URL of ButtPlug server (Intiface Central)\nButtPlugServerUrl = \"ws://localhost:12345\"\n# Set the ButtPlug vibrate scalar when game events active\nButtPlugActiveVibrateScalar = 0.5\n# Set the ButtPlug vibrate scalar when gun shot\nButtPlugShotVibrateScalar = 1.0\n# Set the ButtPlug vibrate duration when gun shot (Millisecond)\nButtPlugVibrateDuration = 300\n# Set the index of ButtPlug vibrate scalar commands, you can set multiple index or empty as default. (e.g. [0,1])\nButtPlugVibrateCmdIndexList = [ ]\n# Set the additional ButtPlug scalar commands, which called during vibrate (It will set to 0 after vibrate stop)\n\n[[HentaiPlay.ButtPlugAdditionalScalarList]]\nEnable = false\nActuatorType = \"Oscillate\"\nIndex = 0\nScalar = 0.5\n\n[[HentaiPlay.ButtPlugAdditionalScalarList]]\nEnable = false\nActuatorType = \"Inflate\"\nIndex = 0\nScalar = 0.5\n```\n\n## About `HttpReporter`\n\nThis is **OPTIONAL**, you can setup an HTTP server to handle events in the mod instead of using buttplug.\n\nSet the option `EventReporterType` in `UserData\\MelonPreferences.cfg` to `\"HttpReporter\"` if you want to use this.\n\n### `HttpReporter` API\n\nDefine in [`openapi.yaml`](openapi.yaml).\n\n### Example implementation for the server of `HttpReporter`\n\n```python3\nimport datetime\nfrom enum import StrEnum\nfrom typing import Literal\n\nfrom fastapi import FastAPI\nfrom loguru import logger\n\napp = FastAPI()\n\n\nclass EventNameEnum(StrEnum):\n    GameEnter = \"GameEnter\"\n    GameExit = \"GameExit\"\n    InGame = \"InGame\"\n    BulbBroken = \"BulbBroken\"\n    ZombieRun = \"ZombieRun\"\n    EnterLevel1 = \"EnterLevel1\"\n    Level1Zombie = \"Level1Zombie\"\n    EndZombie = \"EndZombie\"\n    PlayerDied = \"PlayerDied\"\n    Shot = \"Shot\"\n\n@app.get(\"/report\")\nasync def report(\n        event_name: Literal[\n            EventNameEnum.GameEnter,\n            EventNameEnum.GameExit,\n            EventNameEnum.InGame,\n            EventNameEnum.BulbBroken,\n            EventNameEnum.ZombieRun,\n            EventNameEnum.EnterLevel1,\n            EventNameEnum.Level1Zombie,\n            EventNameEnum.EndZombie,\n            EventNameEnum.PlayerDied,\n            EventNameEnum.Shot\n        ],\n        status: Literal[\"activate\", \"deactivate\"] = None,\n        t: datetime.datetime = None\n):\n    logger.info(f\"event_name: {event_name}, \"\n                f\"status: {status}, \"\n                f\"t: {t.astimezone(tz=None)}, \"\n                f\"latency: {datetime.datetime.now(datetime.timezone.utc) - t}\")\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljzd-pro%2Fdeppartprototypehentaiplaymod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljzd-pro%2Fdeppartprototypehentaiplaymod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljzd-pro%2Fdeppartprototypehentaiplaymod/lists"}