[Suggestion] Basic Wiremod Gates Support

Aperta
#69 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
lua
Ambito
game-dev

Direzione di ricerca

Start by examining the controller values shown in the edit menu and how the existing Expression2 and Starfall support exposes controller data. The issue leaves the Wiremod interface open-ended, so first determine whether controller entities or structured values are feasible; done would mean a decided interface that supports reading and changing controller values without an unwieldy set of wires.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Before continuing, I know there's support for Expression2 and Starfall, but I think it would be nice to have some sort of basic controller manipulation via Wiremod gates.

This could be done by having the chip have wire inputs & output of the controllers as wire's entity type, so that players could use for example the Color gate and wire to that to get it's current color. Opposite then is to use a Set Color gate to then set a particular controller's color.
Though I'm not sure how easy or possible this may be as I don't know the differences between wire entities vs the mesh entities/controller type from a p2m chip; so another way I propose if the previous way fails would be to expose the controller's values directly in wire as separate wires/types like:

Controller1 Position Offset [VECTOR]
Controller1 Angle Offset [ANGLE]
Controller1 Scale [VECTOR]
Controller1 Material [STRING]
Controller1 Color [VECTOR]
Controller1 Texture Map Size [NUMBER]
Controller1 Bumbmap [NUMBER]
Controller2 Position Offset [VECTOR]
Controller2 Angle Offset [ANGLE]
Controller2 Scale [VECTOR]
Controller2 Material [STRING]
Controller2 Color [VECTOR]
Controller2 Texture Map Size [NUMBER]
Controller2 Bumbmap [NUMBER]
etc...

(example options I typed as seen in the edit menu)

The only downside to that, is that it would get messy real quick if there's a lot of controllers. That's why I would aim for the entities or perhaps an array of those entities, or arrays of arrays with the data.

Lingua principale
Lua
Stelle
24
Fork
20
Merge medio
5h 18m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ACF-Team/Prop2Mesh

Tutte le issue di ACF-Team/Prop2Mesh

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.