pyvns


Namepyvns JSON
Version 2.2 PyPI version JSON
download
home_pageNone
SummaryVNS (Visual Novel Script), a universal scripting language for creating scripts for visual novel games.
upload_time2024-05-23 21:51:43
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Visual Novel Script

Visual Novel Script, short for VNS, is a universal scripting language created with the goal of creating a language that allows visual novel developers to write once and compile everywhere, across different platforms, game libraries, and programming languages.

VNS provides a number of features that make it easy to create visual novels, such as:

- A simple and easy-to-learn syntax
- Support for branching dialogue and choices
- Support for music and sound effects

Unlike Ren'py, writing visual novel script is more like writing a story instead of a program, and the developers also have the choice to create their own implementation.

# How it started:

The development of the VNS can be traced all the way back to the initial stages of Linpg's development. During this period, the team faced the challenge of finding an efficient method to store the dialogue. Each conversation required the storage of multiple variables, including the narrator, the actual dialogue content, associated character images, ambient background music, and various other components:

![](vns-docs/docs/readme_conv_ex.png)

Ultimately, the team opted for a design inspired by doubly linked list, but implemented using dictionary (HashMap for Java forks). This approach not only facilitated easier access to the data but also  streamlined the saving process, enabling compatibility with formats like JSON or YAML. This method preserved readability while efficiently  managing the dialogue. Today, the current system closely resembles our initial design, with only a few subtle refinements:

```yaml
compiler: ...
dialogues:
  dialog1:
    head:
      background_image: bg1.jpg
      background_music: bgm1.mp3
      character_images:
      - alice.png
      contents:
      - Hello
      narrator: Alice
      next:
        target: ~01
        type: default
      previous: null
    ~01:
      background_image: bg1.jpg
      background_music: bgm1.mp3
      character_images:
      - alice.png
      contents:
      - Can you hear me?
      narrator: Alice
      next:
        target: ~02
        type: default
      previous: head
    ~02:
    ...
  dialog2:
    ...
  ...
id: 1
language: English
```

Although the overall data is easy to read, it is somewhat inconvenient to write. We came up with a dedicated dialogue editor to resolve the issue, but it's still a bit of a hassle. That is the reason why we begin to inquire about the possibility of simplifying the process.

Would it be possible to make it feel like we're writing the dialogue in a Microsoft Word document? Thus, VNS is born.

## **Example**:

Here is a simple example of a VNS script:

```vns
[id]1
[language]English

[section]dialog_example

[bgi]bg1.png
[display]character1.png character2.png

Mabel:
- Hello my name is Mabel!
- How are you doing today!

[hide]character1.png

Dipper:
- Hi Mabel! I'm doing well, thanks for asking.
```

This script would display the background image `bg1.png` and the character images `character1.png` and `character2.png`. Mabel would then say "Hello my name is Mabel!" and "How are you doing today!". Next, `character1.png` would be hidden and Dipper would say "Hi Mabel! I'm doing well, thanks for asking." Finally, the script would end.

# Wiki:

If you would like to learn more about VNS, please visit [**vsn.wiki**](https://vns.wiki/).

# License:

VNS is licensed under **LGPL(GNU Lesser General Public License)-2.1-or-later**.

See **[LICENSE](https://github.com/LinpgFoundation/vns/blob/main/LICENSE)**.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyvns",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Linpg Foundation <yudong9912@gmail.com>",
    "download_url": null,
    "platform": null,
    "description": "# Visual Novel Script\n\nVisual Novel Script, short for VNS, is a universal scripting language created with the goal of creating a language that allows visual novel developers to write once and compile everywhere, across different platforms, game libraries, and programming languages.\n\nVNS provides a number of features that make it easy to create visual novels, such as:\n\n- A simple and easy-to-learn syntax\n- Support for branching dialogue and choices\n- Support for music and sound effects\n\nUnlike Ren'py, writing visual novel script is more like writing a story instead of a program, and the developers also have the choice to create their own implementation.\n\n# How it started:\n\nThe development of the VNS can be traced all the way back to the initial stages of Linpg's development. During this period, the team faced the challenge of finding an efficient method to store the dialogue. Each conversation required the storage of multiple variables, including the narrator, the actual dialogue content, associated character images, ambient background music, and various other components:\n\n![](vns-docs/docs/readme_conv_ex.png)\n\nUltimately, the team opted for a design inspired by doubly linked list, but implemented using dictionary (HashMap for Java forks). This approach not only facilitated easier access to the data but also  streamlined the saving process, enabling compatibility with formats like JSON or YAML. This method preserved readability while efficiently  managing the dialogue. Today, the current system closely resembles our initial design, with only a few subtle refinements:\n\n```yaml\ncompiler: ...\ndialogues:\n  dialog1:\n    head:\n      background_image: bg1.jpg\n      background_music: bgm1.mp3\n      character_images:\n      - alice.png\n      contents:\n      - Hello\n      narrator: Alice\n      next:\n        target: ~01\n        type: default\n      previous: null\n    ~01:\n      background_image: bg1.jpg\n      background_music: bgm1.mp3\n      character_images:\n      - alice.png\n      contents:\n      - Can you hear me?\n      narrator: Alice\n      next:\n        target: ~02\n        type: default\n      previous: head\n    ~02:\n    ...\n  dialog2:\n    ...\n  ...\nid: 1\nlanguage: English\n```\n\nAlthough the overall data is easy to read, it is somewhat inconvenient to write. We came up with a dedicated dialogue editor to resolve the issue, but it's still a bit of a hassle. That is the reason why we begin to inquire about the possibility of simplifying the process.\n\nWould it be possible to make it feel like we're writing the dialogue in a Microsoft Word document? Thus, VNS is born.\n\n## **Example**:\n\nHere is a simple example of a VNS script:\n\n```vns\n[id]1\n[language]English\n\n[section]dialog_example\n\n[bgi]bg1.png\n[display]character1.png character2.png\n\nMabel:\n- Hello my name is Mabel!\n- How are you doing today!\n\n[hide]character1.png\n\nDipper:\n- Hi Mabel! I'm doing well, thanks for asking.\n```\n\nThis script would display the background image `bg1.png` and the character images `character1.png` and `character2.png`. Mabel would then say \"Hello my name is Mabel!\" and \"How are you doing today!\". Next, `character1.png` would be hidden and Dipper would say \"Hi Mabel! I'm doing well, thanks for asking.\" Finally, the script would end.\n\n# Wiki:\n\nIf you would like to learn more about VNS, please visit [**vsn.wiki**](https://vns.wiki/).\n\n# License:\n\nVNS is licensed under **LGPL(GNU Lesser General Public License)-2.1-or-later**.\n\nSee **[LICENSE](https://github.com/LinpgFoundation/vns/blob/main/LICENSE)**.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "VNS (Visual Novel Script), a universal scripting language for creating scripts for visual novel games.",
    "version": "2.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/LinpgFoundation/vns/issues",
        "Homepage": "https://github.com/LinpgFoundation/vns"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b436decd203bc0f5e3149d2143e5c9f7db501d43acb76f0a3d0ad1c6022128d2",
                "md5": "962a3efb9d543558cf58feaebfe1faca",
                "sha256": "dae63fcb13325c233a050c5f752190d1ecc5598074088c096ddaa92fde278356"
            },
            "downloads": -1,
            "filename": "pyvns-2.2-cp310-cp310-manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "962a3efb9d543558cf58feaebfe1faca",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 983329,
            "upload_time": "2024-05-23T21:51:43",
            "upload_time_iso_8601": "2024-05-23T21:51:43.597901Z",
            "url": "https://files.pythonhosted.org/packages/b4/36/decd203bc0f5e3149d2143e5c9f7db501d43acb76f0a3d0ad1c6022128d2/pyvns-2.2-cp310-cp310-manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "806eb6d0f75ac50aa8d97a9847c4b8f3f1946485053f23cd392785c19901ccb0",
                "md5": "f8a1e9b436981fcbcf97bac92eed8260",
                "sha256": "8e9c2b18007842c95cb082c1ffd0113d0d23435688b40515e0d15e472ca83aba"
            },
            "downloads": -1,
            "filename": "pyvns-2.2-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "f8a1e9b436981fcbcf97bac92eed8260",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 395293,
            "upload_time": "2024-05-23T21:51:45",
            "upload_time_iso_8601": "2024-05-23T21:51:45.633868Z",
            "url": "https://files.pythonhosted.org/packages/80/6e/b6d0f75ac50aa8d97a9847c4b8f3f1946485053f23cd392785c19901ccb0/pyvns-2.2-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fb0e96c506d3b4e9c2ece6bb1cd69c5b12c28ac991d721ce826a0a36023d413",
                "md5": "3eb9c9db84730339b07f34bab62899a4",
                "sha256": "dce4e21359f2967936584883aa2ed89d2f3ff90fd62c904e023497102f407933"
            },
            "downloads": -1,
            "filename": "pyvns-2.2-cp311-cp311-manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "3eb9c9db84730339b07f34bab62899a4",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 986143,
            "upload_time": "2024-05-23T21:51:47",
            "upload_time_iso_8601": "2024-05-23T21:51:47.885411Z",
            "url": "https://files.pythonhosted.org/packages/6f/b0/e96c506d3b4e9c2ece6bb1cd69c5b12c28ac991d721ce826a0a36023d413/pyvns-2.2-cp311-cp311-manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f828601baf2d7e11fb76d818b213e3de77db51658659844d8228be442ab56851",
                "md5": "ef797cb04579e528e31fe8ca391d02dc",
                "sha256": "7471b6a67b12813a91d0d7dabd727a640505aa95bef79dcc8a5e4957efc36be2"
            },
            "downloads": -1,
            "filename": "pyvns-2.2-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "ef797cb04579e528e31fe8ca391d02dc",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 396583,
            "upload_time": "2024-05-23T21:51:49",
            "upload_time_iso_8601": "2024-05-23T21:51:49.853999Z",
            "url": "https://files.pythonhosted.org/packages/f8/28/601baf2d7e11fb76d818b213e3de77db51658659844d8228be442ab56851/pyvns-2.2-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "253da8f39883bebf586b98347cb6090e9d5fb6129410a9cdb1093b47fa034d25",
                "md5": "4f6f34b9085892eaa8398797cd806a26",
                "sha256": "c906ecda03a999be5dfb04ec04435e4ad86701c6c9d6d3da0ac025e1351f84c4"
            },
            "downloads": -1,
            "filename": "pyvns-2.2-cp312-cp312-manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "4f6f34b9085892eaa8398797cd806a26",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 988478,
            "upload_time": "2024-05-23T21:51:52",
            "upload_time_iso_8601": "2024-05-23T21:51:52.737707Z",
            "url": "https://files.pythonhosted.org/packages/25/3d/a8f39883bebf586b98347cb6090e9d5fb6129410a9cdb1093b47fa034d25/pyvns-2.2-cp312-cp312-manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1786cc2fc8ef1987d913e641bef17e57d9ce0de8dc9275af54eec5a1e0fca1c2",
                "md5": "ce0829af4d208f1f897f6978aa144abe",
                "sha256": "8054fb84da674cf7692e1fa5283ea562e9e9c8fce1112508d099c014679d0f7c"
            },
            "downloads": -1,
            "filename": "pyvns-2.2-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "ce0829af4d208f1f897f6978aa144abe",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 398220,
            "upload_time": "2024-05-23T21:51:55",
            "upload_time_iso_8601": "2024-05-23T21:51:55.010699Z",
            "url": "https://files.pythonhosted.org/packages/17/86/cc2fc8ef1987d913e641bef17e57d9ce0de8dc9275af54eec5a1e0fca1c2/pyvns-2.2-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-23 21:51:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LinpgFoundation",
    "github_project": "vns",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyvns"
}
        
Elapsed time: 0.42801s