Skip to content

Conversation

@OrsellGit
Copy link
Contributor

@OrsellGit OrsellGit commented Dec 31, 2025

Similar to the Hammer examples article, this one does the same thing, but shows off usage cases for AngelScript in the game engine rather than Hammer. These examples are taken from the StrataSource/sample-content repositories code folder.

Changes Made:

  • The parsed dump reference is now in its own section.
  • The handmade markdown reference files meant for Hammer remain with the Hammer folder because some non-game and Hammer-only types are defined in it. Preferably, it should be merged into the dump reference later, when dumping the AS from Hammer is possible, and then either sectioned off as Hammer types or marked as Hammer-only in the reference.
  • There is now a new "Game Examples" article with examples taken from the StrataSource/sample-content repositories code folder.

Currently, it's a draft because I did something wrong, and ALL the AngelScript articles won't show up for me locally.

OrsellGit and others added 15 commits November 6, 2025 18:39
…submodule should now also get properly updated when new changes occur.
…rata-wiki repository and moved it here. Those instructions are more applicable to here rather than there.
…ages as well as adding a section to the "Getting Started" page on setting up the Wiki locally.
Changes were made by JJL772.

Co-authored-by: Jeremy L. <jeremy.lorelli.1337@gmail.com>
… samples from `StrataSource/sample-content`.
…API in its own section. Removed duplicate Persistant Storage section in Game Examples.
@OrsellGit OrsellGit marked this pull request as ready for review January 4, 2026 06:19
@OrsellGit OrsellGit changed the title AngelScript: Added new examples article for AngelScript usage in the game. DRAFT AngelScript: Added new examples article for AngelScript usage in the game. Jan 4, 2026
@JJL772
Copy link
Member

JJL772 commented Jan 4, 2026

I would really rather we have separate pages for different examples (i.e. one for custom commands, another for custom entities)

We should not be copy+pasting the examples in here verbatim either. Provide a barebones example and then link the sample content repository.

@OrsellGit
Copy link
Contributor Author

With the separate pages piece in mind, would it also be beneficial for me to separate the current examples in the "Hammer Examples" page also in that case?

Also yes, I will look into making fresh examples and instead just leave a link to the repo example at the top. But I do feel like then it could be too many articles with small length for each example, unless there are several different examples for one topic provided maybe.

@JJL772
Copy link
Member

JJL772 commented Jan 5, 2026

With the separate pages piece in mind, would it also be beneficial for me to separate the current examples in the "Hammer Examples" page also in that case?

Yes

@JJL772 JJL772 self-assigned this Jan 5, 2026
@OrsellGit OrsellGit changed the base branch from main to as-examples January 5, 2026 19:10
@OrsellGit
Copy link
Contributor Author

NOTE: THIS PR IS BEING MOVED TO A DIFFERENT PR TO main, CHANGES HERE ARE NOT FINAL, WORK WILL BE CONTINUED IN as-examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants