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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes lua error logging and a few timer.lua functions #82160

Merged
merged 8 commits into from
Mar 23, 2024

Conversation

Watermelon914
Copy link
Member

@Watermelon914 Watermelon914 commented Mar 22, 2024

About The Pull Request

Lua errors don't get logged when call_function is called

Timer.start_loop was just straight up broken due to me not properly testing it, so this fixes that.

Why It's Good For The Game

Makes debugging lua scripts easier. Also fixes bugs.

Changelog

馃啈
fix: Fixed lua error logging.
fix: Fixed the SS13.start_loop function not working properly.
/:cl:

@tgstation-server tgstation-server added Logging printf("Here"); printf("Here2"); printf("Heree"); Fix Rewrites a bug so it appears in different circumstances labels Mar 22, 2024
@Watermelon914 Watermelon914 changed the title Fixes lua error logging Fixes lua error logging and a few timer.lua functions Mar 22, 2024
@ZephyrTFA ZephyrTFA removed their request for review March 22, 2024 15:28
@tgstation-server tgstation-server added the UI We make the game less playable, but with round edges label Mar 22, 2024
@Ghommie Ghommie merged commit 9fecca8 into tgstation:master Mar 23, 2024
20 checks passed
github-actions bot added a commit that referenced this pull request Mar 23, 2024
comfyorange added a commit that referenced this pull request Mar 23, 2024
Absolucy pushed a commit to Absolucy/Monkestation that referenced this pull request Mar 30, 2024
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->
Lua errors don't get logged when `call_function` is called

Timer.start_loop was just straight up broken due to me not properly
testing it, so this fixes that.

## Why It's Good For The Game

<!-- Argue for the merits of your changes and how they benefit the game,
especially if they are controversial and/or far reaching. If you can't
actually explain WHY what you are doing will improve the game, then it
probably isn't good for the game in the first place. -->
Makes debugging lua scripts easier. Also fixes bugs.

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

:cl:
fix: Fixed lua error logging.
fix: Fixed the SS13.start_loop function not working properly.
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

---------

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
wraith-54321 pushed a commit to Monkestation/Monkestation2.0 that referenced this pull request Apr 4, 2024
* Moves lua off of the timer subsystem and onto its own internal scheduler. (tgstation#82131)

## About The Pull Request
Lua uses the timer subsystem, which can end up holding the entire timer
subsystem if lua is creating a lot of timers.
The solution to this is to use an internal scheduler instead so that the
load gets placed onto the lua subsystem.

## Why It's Good For The Game
Performance improvement when using lua scripts.

## Changelog
:cl:
refactor: Auxlua no longer uses the timer subsystem to get stuff done,
lua scripts shouldn't slow down timers anymore.
/:cl:

---------

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>

* Fixes lua error logging and a few timer.lua functions (tgstation#82160)

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->
Lua errors don't get logged when `call_function` is called

Timer.start_loop was just straight up broken due to me not properly
testing it, so this fixes that.

## Why It's Good For The Game

<!-- Argue for the merits of your changes and how they benefit the game,
especially if they are controversial and/or far reaching. If you can't
actually explain WHY what you are doing will improve the game, then it
probably isn't good for the game in the first place. -->
Makes debugging lua scripts easier. Also fixes bugs.

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

:cl:
fix: Fixed lua error logging.
fix: Fixed the SS13.start_loop function not working properly.
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

---------

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>

* Makes lua file upload work with bigger files and standardizes a few file|null (tgstation#82202)

My lua scripts were hitting the topic byte limit, so this makes file
upload of lua scripts able to bypass the topic limit.

Removes arbitrary restriction on how big a lua file can be in bytes.

:cl:
admin: Admins can now run lua files bigger than 36 KB by importing them
directly.
/:cl:

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>

---------

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Rewrites a bug so it appears in different circumstances Logging printf("Here"); printf("Here2"); printf("Heree"); UI We make the game less playable, but with round edges
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants