GithubHelp home page GithubHelp logo

Comments (5)

unforbidable avatar unforbidable commented on August 14, 2024

Models files get loaded shortly after launch, with fairly detailed error reporting. Program option --modelonly can be used to force patcher exit once the model has been loaded.

from patcher.

Desymoo avatar Desymoo commented on August 14, 2024

I'm just putting this here for organization :)
Definition of Record Structure Elements:

Member types
Built in member types are: byte, sbyte, short, ushort, int, uint, float and string (including variations of string below).
These types can be also used as arrays with fixed length, e.g uint[4] or variable length e.g. byte[].
Arrays of variable length are used to load content of the whole field.
Enums can be used as member types.

Enums
Enums consist of enum members and each member must be the same underlying type.
Permitted enum types are as follows: byte, sbyte, short, ushort, int, uint
Enums are always defined in separate files and can be used as member types.

Structures
Structures are made from members. Each members needs a name and type.
Structures may have a name. Structures without a name are called anonymous and these will not be generated.
Properties of anonymous structures will be geenerated in the parent scope (e.g. record or field group)
Structures can be defined in separate files for reusability or inline where they are needed.

Fields
Fields directly define the content of form records. Fields can be represented by a member (of any built in type or enums), a structure or a field group.
Fields have a key (eg. EDID), with the exeption of fields represented by a field group (in this case the keys of the child fields are used).
Fields can may be defined in separate files and included anywhere to avoid redundancy. When a field is included, it is possible (and other required)
to provide key and name.
Fields can be used a list.
Fields can be declared as virtual in which case there is no underlying data and only a property is generated.
Fields can be declared as hidden in which case no property is generated for them.
Properties of virtual fields can access one or more hidden fields (via so called adapters).

Field Groups
Field groups are sort of like structures, but they contain fields (basically, memebers with keys).
Field groups will be generated sort of like structures.

Records
Records consist of fields.
Every records has a unique form type (e.g. KYWD) which is inferred from the name of the file in which they are defined.
Records also have a user friendly name (e.g. Keyword).

from patcher.

unforbidable avatar unforbidable commented on August 14, 2024

Thank you. Good idea! Eventually this should go to the wiki, once you translate it to "human". (:

from patcher.

unforbidable avatar unforbidable commented on August 14, 2024

Forgot to load functions!

from patcher.

unforbidable avatar unforbidable commented on August 14, 2024

Model object relations in the data model tree:
data model tree

from patcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.