Skip to content

Taxonomy/Site structure #15

@Martin-Pitt

Description

@Martin-Pitt

Here is a proposal for how the site could be structured:

  • Scripting Portal
    • Getting Started
      • Quick introduction for beginners
      • How to create and write scripts
      • Development environment with VS Code Extension
      • Link directly into tutorial in SLua/LSL Language section
    • Features
      • Avatar
      • Communications
      • Combat
      • … and more
    • Guides
      • How to script a Car/Boat, Strategies for dealing with multiple llHTTPRequests, etc. Long form guides/tutorials
    • Recipes
      • How to script a Chair, How to script a Door, llHTTPRequest integration to external API via Vercel proxy, etc. Short, usecase specific step-by-step guides
    • SLua/LSL Language (below is for SLua; Somewhat based on Suzanna’s guide)
      • Getting Started
      • Tutorials
      • SLua vs LSL
      • Types and variables
      • Operators
      • Flow Control: if, while, for, repeat
      • Functions
      • Tables
      • Metatables and metamethods
      • Objects
      • Error handling
      • Libraries
      • Event Handling
      • Timers
      • …?
    • Standard Library (or Scripting Reference)
      • Categories
      • LLEvents
      • LLTimers
      • ll* Functions
      • Luau Libraries
      • Events
      • Constants

The idea is to also have a site-wide toggle (or limited within the Scripting Portal) where the user can switch between SLua and LSL. With something like <If> components in the mdx files to show conditional content, such as for code examples. Likewise the site navigation would also flip based on the toggle, for example the SLua Language menu would flip to LSL Language and show relevant links to how LSL works, like states and stuff. The Standard Library would also be able to flip, for example not showing any of the libraries that are specific to SLua/Luau etc. I'm not sure how to do approach this yet but maybe we could fill the site navigation and then use JS/CSS to update the navigation based on the toggle.

Now you might be wondering why Scripting Portal is at the top, for the SL Create site we should expand it to cover the whole sphere of Content Creation eventually, such as Building, Meshes, Textures, Fashion, Architecture / Level Design, etc. But for now we should focus on Scripting.

Features are high level articles that explain a feature as well as act as a mini-portal by sending the user to a relevant sub article or collating standard library functions, events and constants together for quick access. The Combat2 article on the wiki is a good example of how to do this. Vague on the details above the fold but rich with links for more detailed information.

Guides are long form articles that help you do or understand something. Such as the complexities in scripting an SL vehicle (which can take different creative forms, from the humble Physical Linden Vehicles, Advanced Linden Vehicles with Raycasting, Custom Physics (not using the Linden vehicle functions), Non-Physics (like my mech walker), Wearable Vehicle (pure attachment based vehicles that manipulate avatar movement), …)

Recipes are short, focused how-to guides that walk a reader through completing a working example of a specific task. This should be particularly great for beginners or any scripter that wants to tackle something very specific.

SLua Language/LSL Language will be swapped based on the site-wide SLua/LSL toggle. This contains the tutorials and guides specific to the language itself.

Standard Library (or Scripting Reference or Reference?) would be a reference to all the libraries, functions, events, constants etc.

What do you think? Does this proposal make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions