Tom Rothamel
a10e62b063
Strip leading indents from PyCode, and then restore when compiling.
...
This is only done for non-expr pycodes. Expr pycodes get the column
information from the contained PyExpr, and so don't need to be
changed.
2025-02-17 09:01:24 -05:00
Tom Rothamel
2cda751596
lexer: Pass the column in to py_compile.
2025-02-17 01:15:15 -05:00
Tom Rothamel
149d16b1ec
Nag about a possible gotcha for PyExpr.
2025-02-16 22:41:20 -05:00
Tom Rothamel
7bee83dfcb
Remove node unmunging and remunging.
...
This is going away, in favor of storing the start and end columns in
the post-munge space, and then transforming them back when an error
happens.
2025-02-16 22:25:43 -05:00
Tom Rothamel
e89441a77c
Track column numbers during parsing.
...
How these are handled varies for PyCode and PyExpr.
PyCodes are, for now, parsed with all the indentation present in the
file. This is then passed to the parser, which pads the PyCode out
with an if True statement so it compiles.
PyExprs have the column number determined by the parser, and it's
stored in the object, to be passed to the compiler.
2025-02-16 21:27:54 -05:00
Tom Rothamel
e1b8de8512
assimp: Rename AssimpModel to GLTF model.
...
Assimp was contributing a lot of to the size of Ren'Py, so put it on a
diet and removed all the formats except for GLTF). This would also let
us switch toanother GLTF parser in the future.
2025-02-15 23:26:32 -05:00
Tom Rothamel
e55856d177
Merge pull request #6154 from renpy/pep-657-munge
...
Fix incorrect column offsets of munged names.
2025-02-15 22:29:44 -05:00
Tom Rothamel
fbe7cab9c6
Remove spurious backslash in README.
2025-02-15 20:05:42 -05:00
Tom Rothamel
d6e3b4f492
Merge pull request #6157 from jsfehler/tyop_killer
...
Fix mimor typos
2025-02-15 17:55:35 -05:00
Joshua Fehler
7aac6fffb6
Fix mimor typos
2025-02-15 16:08:25 -05:00
Tom Rothamel
4e09103b09
Merge pull request #6155 from jsfehler/remove_unused_particle
...
Remove unused import
2025-02-14 20:05:28 -05:00
Joshua Fehler
3605298777
Remove unused import
2025-02-14 17:35:44 -05:00
Tom Rothamel
6b467eca81
Merge branch 'master' into pep-657-munge
2025-02-14 00:07:08 -05:00
Tom Rothamel
9e966702ac
More precisely control mipmapping.
...
* For images used by Live2D and AssimpModel, it's enabled.
* Other images can opt-in on a per-image basis.
2025-02-13 23:48:07 -05:00
Tom Rothamel
cc2486fa82
gl2: Disable mipmapping by default.
...
Despite Ren'Py supporting it, scaling images down (except when the
window is scaled) is somewhat rare. So instead of generating a lot of
mipmaps that will not be used, we only opt in automatically if the
window itself is scaled down, and otherwise leave the decision to
the creator.
2025-02-13 23:48:07 -05:00
Andy_kl
74cadd2b03
python: Raise original exception without chaining the same via cause for incorrect pythons.
2025-02-14 06:19:48 +04:00
Andy_kl
caad552141
Update copyright year in lost files.
2025-02-14 05:25:38 +04:00
Andy_kl
3202e0eab2
Remove monkey-patch name from name_blacklist
2025-02-14 05:21:19 +04:00
Andy_kl
58434e2553
Fix
2025-02-14 03:48:18 +04:00
Andy_kl
78ff61dd08
Fix incorrect column offsets of munged names.
...
This moves munging to AST, so column offsets match source code.
2025-02-14 03:36:22 +04:00
Andy_kl
65edc55eb0
Add PyExpr.__new__ signature.
2025-02-13 18:04:55 +04:00
Andy_kl
5bf35c8c4f
Remove linecache.updatecache monkeypatch.
...
That no longer needed after changes to `renpy.python.create_store`.
2025-02-13 17:59:11 +04:00
Tom Rothamel
ef5777d6b6
Add PEP 657-style parse error handling. ( #5881 )
2025-02-13 00:02:28 -05:00
Tom Rothamel
033574e235
Merge branch 'fix'
2025-02-12 23:31:22 -05:00
Tom Rothamel
8a21aa55dc
Wrap json loaded in revertible objects.
...
This is intended to improve compatibility with older games that might
use .iteritems and similar methods.
2025-02-12 23:21:48 -05:00
Tom Rothamel
6c948bf046
fonts: Allow deallocation and clear face cache.
...
So fonts can be reloaded when required. Fixes #6153 .
2025-02-12 22:51:50 -05:00
Tom Rothamel
95074ff55d
doc: Update keymap.
...
Fixes #6145 .
2025-02-11 22:55:40 -05:00
Tom Rothamel
d836316e90
Document the AssimpModel displayable.
2025-02-11 01:28:12 -05:00
Tom Rothamel
4804b04dcc
assimp: Add zoom and flip operations.
2025-02-10 23:13:41 -05:00
Tom Rothamel
6d08132e58
assimp: Expose AssimpModel to the default store.
2025-02-09 23:35:47 -05:00
Tom Rothamel
dfb6c7beb1
assimp: Handle _duplicate.
2025-02-09 21:25:09 -05:00
Tom Rothamel
d2755faa5c
Optimize caching of UnoptimizedTexture.
2025-02-09 14:49:20 -05:00
Tom Rothamel
ef40de899c
assimp: Preload AsssimpModels.
...
This prevents long loading times by preloading AssimpModel objects
from disk when required.
As part of this, the idea of a callback is dropped, and renders of
textures happen when the displayable is rendered. This creates all
Renders in the main thread, which makes Render mark-sweep reliable.
2025-02-09 14:05:04 -05:00
Tom Rothamel
d81f8264ff
Fix regression in renpy.get_all_labels.
...
Fixes #6130 .
2025-02-08 22:30:19 -05:00
Ren'Py Bot
3b60afe8dc
Merge branch 'fix'
2025-02-08 04:30:40 -05:00
Tom Rothamel
6783f22f3b
When walking paths, replace \ with /.
2025-02-07 08:45:48 -05:00
Tom Rothamel
3c59cac254
Proxy SelectedIf and SensitiveIf lists into a single Action.
...
Fixes #6132 .
2025-02-07 08:45:48 -05:00
Tom Rothamel
8de2bda1e6
Proxy SelectedIf and SensitiveIf lists into a single Action.
...
Fixes #6132 .
2025-02-07 01:24:18 -05:00
Mal Graty
57f9a1e508
Remove disused import
2025-02-07 01:26:13 +00:00
Tom Rothamel
e0ca2992ed
Fix typos ( #6142 )
...
Fix typos
2025-02-06 20:17:35 -05:00
tinyboxvk
731cb8c53c
Fix typos
...
Signed-off-by: tinyboxvk <13696594+tinyboxvk@users.noreply.github.com >
2025-02-06 18:18:43 -04:00
Tom Rothamel
37d7d71d2b
Avoid renaming the filename stored in nodes.
...
When a .rpy is removed, and a .rpyc is given.
2025-02-06 00:33:28 -05:00
Tom Rothamel
a672a6840a
Redo statement names when a .rpyc file has been moved.
...
Fixes #6137 .
2025-02-06 00:23:26 -05:00
Tom Rothamel
8603ca2cf1
assimp: Allow tangents and bitangents to be loaded.
2025-02-06 00:17:44 -05:00
Tom Rothamel
6793d7e5fa
Document when mouse moves are unlikely to work.
...
Fixes #6126 .
2025-02-05 23:40:47 -05:00
Tom Rothamel
24a8135657
Merge pull request #6138 from mal/optimised-file-scan
...
Optimise startup file scan
2025-02-05 20:54:37 -05:00
Tom Rothamel
1a945d9663
Merge pull request #6139 from Lezalith/master
...
Doc changes - Colormatrix, Audio, general cleanup
2025-02-05 20:52:34 -05:00
Lezalith
0196e6aa69
Merge branch 'colormatrix-docs'
2025-02-05 18:08:24 +01:00
Lezalith
dbee728716
Doc: Audio Directory & Namespace rewrite
...
Directory mentioned before the Namespace.
Made more newbies friendly, and moved more to the top of the docs.
This is consistent with the Doc page on Displaying Images.
2025-02-05 17:52:37 +01:00
Mal Graty
86bb2b83c0
Find archive files during main directory scan
2025-02-05 16:26:59 +00:00