Commit Graph

16695 Commits

Author SHA1 Message Date
Tom Rothamel 732ef3af11 Create libs/ and lib/libs.txt.
The latter is the flags file that will load the libs directory in
libs mode.
2025-01-12 15:25:28 -05:00
Tom Rothamel 0c3b419dad Add the libs and mods directories to the list in launcher. 2025-01-12 14:21:13 -05:00
Ren'Py Bot adf545a199 Merge branch 'fix' 2025-01-12 04:30:40 -05:00
Tom Rothamel 1a952fd87e py312: Remove import machinery from store modules.
If the import machinery is present, Python will try to use it when
loading lines for a traceback. This would lead to the wrong line
being shown in tracebacks.
2025-01-12 00:22:09 -05:00
Tom Rothamel 96825cb518 Changelog prefering gles2 on Raspberry Pi. 2025-01-11 22:48:55 -05:00
Gio efd4cc6b5e Document cb_args cb_ prefix behavior 2025-01-11 15:34:01 -05:00
Tom Rothamel c57b7748f5 Merge pull request #6062 from GiovanH/doc-callback
Document cb_args cb_ prefix behavior
2025-01-11 15:32:23 -05:00
Tom Rothamel acf1f8ae38 Merge branch 'fix' 2025-01-10 23:03:26 -05:00
Tom Rothamel 35c4ba4a41 Make all fields in gl2draw public.
Fixes #6060.
2025-01-10 22:56:34 -05:00
Tom Rothamel 13df1dc000 Merge branch 'fix' 2025-01-10 01:24:29 -05:00
Tom Rothamel 5361a8e9a5 Ignore text tag errors that happen after {done}. 2025-01-10 01:21:56 -05:00
Tom Rothamel ba76f970c5 Perform substitution when scrying extend text.
This prevents problems if the scryed text substitutes things.

Fixes #6071
2025-01-10 01:07:25 -05:00
Tom Rothamel a9b529b9fd Back out change from fix branch.
That was already made in this branch.
2025-01-09 22:46:32 -05:00
Tom Rothamel a4f4d49259 Merge branch 'fix' 2025-01-09 22:45:28 -05:00
Tom Rothamel 7d8d05107b Allow the fix branch to run on python 3.12. 2025-01-09 22:44:43 -05:00
Tom Rothamel dfb31d28f9 Load common files before game files. 2025-01-09 01:09:42 -05:00
Tom Rothamel 181eb8adab Do not reload with a nonexistent file comes into existence.
Fixes #6018.
2025-01-08 23:32:25 -05:00
Tom Rothamel f0feb9b33e Merge branch 'fix' 2025-01-08 09:38:30 -05:00
Tom Rothamel 2639028ce7 Document config.has_music, config.has_sound, and config.has_voice.
Also, slight correction on how a channel without a mixer works.

Fixes #6068.
2025-01-08 08:27:10 -05:00
Tom Rothamel 85e055a3dc Fix an unconverted use of split_filename. 2025-01-07 22:01:46 -05:00
Tom Rothamel cbc6986ae6 Merge pull request #6070 from mal/windows-platform-checks
Small clean up of Windows platform checks
2025-01-07 19:04:09 -05:00
Mal Graty c329714093 Remove check intended for Windows 7 and older only
Follow up to 919e22059b.
2025-01-07 18:48:13 +00:00
Mal Graty abdf045277 Skip redundant platform version check on Windows 2025-01-07 18:46:24 +00:00
Tom Rothamel 8df7c8605d cslots: Only allow objects of the same type to compare equal.
Fixes #6066, which was caused by the changes to store statement
names in the statement, changes that made an unnamed statement
equal None.
2025-01-07 02:14:28 -05:00
Tom Rothamel 919e22059b Do not use renpy.windows as a tuple.
Fixes #6067.
2025-01-06 22:49:59 -05:00
Tom Rothamel 10d04c1faf Allow Ren'Py to continue to operate if something corrupts the bytecode cache.
This fixed an issue reported to me via patreon, though I have no idea
why it's happening - seems to be one-off.
2025-01-06 22:35:58 -05:00
Tom Rothamel 0a1e694e02 Many changes to how Ren'Py deals with seen statements.
The biggest one is that once a translation has been seen, dialogue
statemments inside that translation are also marked as seen.

This change also changes the representation of seen translates and
nodes, to store a 64-bit hash of the identifier, which should take
up less memory and should be able to be pickled faster.
2025-01-05 23:04:19 -05:00
Tom Rothamel 0f6379a797 Properly cast numbers to ensure there isn't a python conversion. 2025-01-05 22:42:45 -05:00
Gio 9226d27605 Document cb_args cb_ prefix behavior 2025-01-05 18:18:07 +00:00
Tom Rothamel c2baefb2a1 Minor cleanups to the LibExecFinder. 2025-01-05 01:29:03 -05:00
Tom Rothamel 7aeef3bae9 Type corrections.
renpy.windows was aways meant to be bool like the other platform flags,
while store can just be an annotated assign.
2025-01-05 01:06:51 -05:00
Tom Rothamel 8d5dbe4f73 Merge pull request #6006 from renpy/modernize-init
Modernize `renpy.__init__`.
2025-01-05 00:56:25 -05:00
Tom Rothamel 04cd9fe223 Merge remote-tracking branch 'origin/fix' 2025-01-05 00:51:20 -05:00
Kassy beedbc0a22 Do not kill Renders that cache the last video frame on Web (#6057)
Fixes and issue where, when the next video frame is not ready, the previous one is returned by get_movie_texture_web(). Normally, this is just a GLTexture instance, but when using a mask, that frame is a Render instance instead. The problem is that Render instances get killed soon after they have been drawn, so get_movie_texture_web() returns a dead instance when re-using the previous frame which causes a crash because of missing uniforms when drawing the screen.

Fixes #6050.
2025-01-05 00:50:49 -05:00
Tom Rothamel 36c00a5e19 Rewrite the imports to use typing.TYPE_CHECKING. 2025-01-05 00:48:05 -05:00
Tom Rothamel cedcc36418 Update .gitignore and .vscode/settings.json when generating pyi files.
Also check in some missing pyis.
2025-01-04 23:33:41 -05:00
Tom Rothamel 6a828f6ade Revert "cslots: Avoid double store of IntegerSlot defaults"
This reverts commit 627c6c6a48.
2025-01-04 14:37:25 -05:00
Tom Rothamel 3df4aabba0 Fixes to astsupport. 2025-01-04 14:37:15 -05:00
Tom Rothamel ae20ebead0 Merge pull request #6058 from mal/cslots-suggestions
Suggestions for cslots
2025-01-04 14:36:55 -05:00
Tom Rothamel fc5ccc2f7b Rename hash functions, and make astsupport.pyi. 2025-01-04 12:16:34 -05:00
Mal Graty 9c31ee66bb cslots: Unify compressed behaviour of Slot classes 2025-01-04 11:09:24 +00:00
Mal Graty 627c6c6a48 cslots: Avoid double store of IntegerSlot defaults 2025-01-04 11:01:47 +00:00
Mal Graty 407f3ad859 cslots: Maintain experiment while in development 2025-01-04 11:00:32 +00:00
Tom Rothamel 2b63ccf21e cslots: Use the default values from the namespace. 2025-01-03 23:56:19 -05:00
Tom Rothamel 2993629f22 Allow a volume adjustment to be included in audio filenames.
Closes #6055.
2025-01-03 22:19:32 -05:00
Andrej Klychin 77aaeaa514 Merge pull request #6053 from mal/fix-lint-bytecode-check
Update lint to use py_compile function
2025-01-03 18:01:30 +02:00
Mal Graty 7baac98ecb Update lint to use py_compile function 2025-01-03 15:48:32 +00:00
Tom Rothamel ed155c4b43 cslots: Construct the class, then read the annotations dictionary.
This attempts to future-proof things when PEP 649 is out.
2025-01-03 02:06:06 -05:00
Tom Rothamel bfae063c3c Fix to _in_current_store behaviour for ATLTransform (#6043) 2025-01-02 20:07:41 -05:00
Tom Rothamel 2ee62542bb Update Ukrainian Translation (#6044) 2025-01-02 20:06:51 -05:00