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

fix: debug.traceback includes proper names instead of chunks #353

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

SWeini
Copy link
Collaborator

@SWeini SWeini commented Nov 9, 2024

Some mods rely on the lua function debug.traceback and its very specific format to work correctly.

This PR overrides debug.traceback with a method that replaces the chunk IDs with the __modname__/path/to/file.lua format that is expected.

Copy link
Collaborator

@veger veger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Looks good to me (I didn't try the code)

Edit Can you add a changelog entry? Maybe with a specific mod name that is now fixed/supported?

@shpaass
Copy link
Owner

shpaass commented Nov 9, 2024

Rebased on fresh master

@shpaass
Copy link
Owner

shpaass commented Nov 9, 2024

The Kux mod now loads successfully. Thank you for the fix, @SWeini!

@shpaass shpaass merged commit 92c277d into master Nov 9, 2024
1 check passed
@shpaass shpaass deleted the debug_traceback branch November 9, 2024 15:56
@veger
Copy link
Collaborator

veger commented Nov 9, 2024

The Kux mod now loads successfully

Oh no... there goes my test case 😛

BTW There is not a changelog entry for this fix!

@shpaass
Copy link
Owner

shpaass commented Nov 9, 2024

Added a changelog entry 40a8bb5

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.

YAFC crashes on creating project with Kux-BlueprintExtensions mod
3 participants