Repository navigation
sync: merge SFTtech/openage master - #3
Open
OpenGamePlus wants to merge 10 commits into
Open
OpenGamePlus wants to merge 10 commits into
OpenGamePlus wants to merge 10 commits into
Conversation
With a hint before the searched time, last_before walked past keyframes at exactly that time and returned the last of them, although it returns the last keyframe before the time. With a hint at or after the time it was already correct, so the result depended on the hint. Fixes SFTtech#1827 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use a match statement on the argument type, and discard while iterating over a snapshot of the keys. Also add Rene Turcios to the authors list in copying.md. Signed-off-by: Rene Turcios <95189389+CloudCorpRecords@users.noreply.github.com>
…-intersection-update util: fix OrderedSet.intersection_update for OrderedSet and dict arguments
curve: don't return keyframes at the searched time in last_before
The original data has fractional projectile arcs (e.g. -3.44 degrees) and ranges (the Fire Galley's 2.49), which int members can't hold without rounding and thus changing gameplay. Make arc, min_range and max_range floats in the API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Many tech and civ bonuses multiply HP, creation costs and garrison slots by fractional factors (e.g. HP *= 1.1, costs *= 0.8), which nyan can't apply to int members without implicit rounding. Make the AttributeSetting values, ResourceAmount.amount and EntityContainer.slots floats so these stay plain member patches, and round where the engine consumes them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nyan rejects float values and operands for int members, but the converter silently truncated them, hiding lossy conversions. Convert numbers only without loss and raise on non-integral values for int members and on division by zero. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
convert: strict int/float numbers like nyan
The C++ frames of translated exceptions were added with _PyTraceback_Add, which became private in Python 3.13, so tracebacks lost them. Build the traceback entries like _PyTraceback_Add did internally: for each C++ frame, create an empty code object carrying the C++ file, line and function name with PyCode_NewEmpty, a frame for it with PyFrame_New, and chain the entries with types.TracebackType. The translated exception gets this chain before it is raised. The frames are collected in a list local to each translation, so concurrent translations don't share state. This only runs when a C++ exception is translated. Fixes SFTtech#1700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cppinterface: show C++ frames in Python tracebacks again
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync with upstream SFTtech/openage master.