这是indexloc提供的服务,不要输入任何密码
Skip to content

Scripting API #735

@TheJJ

Description

@TheJJ

As our ultimate goal is cool moddability, and not everything can be done with data mods (with nyan #734) we also need scripting support.

This consists of multiple parts that need to be done:

  • Load and run scripts
    • Load scripts via nyan
    • Install script hooks via nyan
    • Let the script manipulate the hooks it installed
  • Game manipulation
    • Apply patches in nyan
    • Perform actions with game entities
    • ...
  • higher level AI scripting
    • Python interface
    • even higher level lisp-like interface like the original's ai scripting language
    • ...
  • Caution users against unsgned mod packs containing scripts
    • We can't and want to sandbox python, you should be able to use http://scikit-learn.org/ and the like
    • The openage-dev-team should be able to sign mods that have approved code: We can still hack your computer with the regular openage code, so we can also sign mod code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: apiRelated to some application programming interface (API)lang: pythonDone in Python codeto-discussIdea or suggestion that needs some discussion before implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions