Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDQL2 bugfixes & features #6270

Merged
merged 6 commits into from
May 14, 2024
Merged

Conversation

Zonespace27
Copy link
Contributor

@Zonespace27 Zonespace27 commented May 10, 2024

About the pull request

Fixes

  • Fixed partially empty string being printed to chat when CALL query wasn't used
  • Fixed SDQL_print() not handling assoc lists-in-lists correctly

Features

  • SDQL2 tab now works. Also appears instantly instead of on next SSstatpanels fire.
  • Clients now can be selected without needing to add IN global.clients to a query.
  • Added LISTSOURCE option, taking arg OPTIMIZED. Adding this arg will use some CM-added lists (like GLOB.mob_list) instead of iterating over world. This arg does nothing if the list being queried isn't world.
  • Added SELECTPRINT option, taking arg NO_PRINT. Adding this arg will prevent the HTML window containing every object found using a SELECT query. Useful because assembling the HTML window is incredibly taxing on the server when SELECTing a massive amount of objects at once.
  • You can now call sleep() in SDQL queries by using global._sleep()
  • Added SINGLECALL query, taking an arg of object.proc_call(). This allows you to call a proc on an object (global, marked, SSticker, etc.) without needing to iterate over anything. Primarily useful for an in-between when chaining queries together.

For more details and examples, see my SDQL2 documentation.

Explain why it's good for the game

Fixes good, features that make SDQL2 better good.

Changelog

🆑
admin: Added LISTSOURCE and SELECTPRINT options to SDQL queries.
admin: Added SINGLECALL SQDL query.
admin: SDQL tab now works.
admin: Clients can now be selected with SDQL more easily.
/:cl:

@github-actions github-actions bot added the Admin Make things harder for admins label May 10, 2024
@harryob harryob added this pull request to the merge queue May 14, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 14, 2024
@github-actions github-actions bot added the Github We don't really know what else this belongs to label May 14, 2024
@Drulikar Drulikar added this pull request to the merge queue May 14, 2024
Merged via the queue into cmss13-devs:master with commit e64c5bb May 14, 2024
27 checks passed
cm13-github added a commit that referenced this pull request May 14, 2024
@Zonespace27 Zonespace27 deleted the sdql-update branch May 14, 2024 18:16
@Zonespace27 Zonespace27 restored the sdql-update branch May 27, 2024 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Make things harder for admins Github We don't really know what else this belongs to
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants