feature request - warn/error on large lua instruction counts
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 869
- Forks
- 222
- Avg merge
- 18h 33m
- Merged PRs (30d)
- 1
Description
It would be nice if lua infinite loops didnt hang the game.
In serious proton there is already logic to stop lua functions past a certian instruction count.
It would be very useful to get a traceback on an error.
I have no clue what a sensible default for instruction count would be (or if it should be settable in script).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing Serious Proton logic that stops Lua functions after an instruction count and inspect how Lua errors produce tracebacks. Define a sensible default and whether scripts can configure it; done means infinite loops stop without hanging the game and report a useful traceback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100