daid / daid/EmptyEpsilon

feature request - warn/error on large lua instruction counts

Open
#1,678 5 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.