Skip to content

Commit 075b3e9

Browse files
authored
Merge pull request Monika-After-Story#9493 from Monika-After-Story/r7.4
RenPy 8 / Python 3.9 migration
2 parents 06baf31 + ecab7b4 commit 075b3e9

136 files changed

Lines changed: 10175 additions & 8413 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/mas_check.yml

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -30,57 +30,40 @@ jobs:
3030
- uses: actions/checkout@v2
3131

3232
- name: Setup Python
33-
uses: actions/setup-python@v2.2.1
33+
uses: actions/setup-python@v2
3434
with:
3535
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
36-
python-version: 2.7.18 # optional, default is 3.x
37-
38-
# get/dl renpy src
39-
- name: cache rpy source
40-
id: cache-rpy
41-
uses: actions/cache@v2
42-
with:
43-
path: renpy/
44-
key: ${{ runner.os }}-rpy
36+
python-version: 3.10.4 # optional, default is 3.x
4537

38+
# dl renpy src
4639
- name: Download rpy source
47-
if: steps.cache-rpy.outputs.cache-hit != 'true'
4840
run: |
49-
wget https://www.renpy.org/dl/6.99.12.4/renpy-6.99.12.4-sdk.tar.bz2
50-
tar xf renpy-6.99.12.4-sdk.tar.bz2
51-
rm renpy-6.99.12.4-sdk.tar.bz2
52-
mv renpy-6.99.12.4-sdk renpy
41+
renpysdk=$(wget -qO- https://nightly.renpy.org/current-8/index.html | grep -P -m 1 -o '(?<=href=").*\.tar\.bz2(?=".*)')
42+
wget https://nightly.renpy.org/current-8/$renpysdk
43+
tar xf $renpysdk
44+
rm $renpysdk
45+
mv ${renpysdk/.tar.bz2/} renpy
5346
5447
# get/download base mas
55-
- name: cache base MAS
56-
id: cache-mas
57-
uses: actions/cache@v2
58-
with:
59-
path: mas0105/
60-
key: ${{ runner.os }}-mas
48+
# - name: cache base MAS
49+
# id: cache-mas
50+
# uses: actions/cache@v2
51+
# with:
52+
# path: mas0105/
53+
# key: ${{ runner.os }}-mas
6154

6255
- name: Download base MAS
63-
if: steps.cache-mas.outputs.cache-hit != 'true'
56+
# if: steps.cache-mas.outputs.cache-hit != 'true'
6457
run: |
6558
wget https://s3-us-west-2.amazonaws.com/monika-after-story/ddlc/mas.zip
6659
mkdir mas0105
6760
unzip mas.zip -d mas0105
61+
rm mas0105/game/scripts.rpa
6862
69-
# TEMP
70-
# - name: what are these
71-
# run: |
72-
# file mas0105
73-
# file renpy
74-
75-
# copy files over
63+
# copy over gh files to base
7664
- name: copy source over
7765
run: cp -Rf Monika\ After\ Story/* mas0105/
7866

79-
# touch file for unstable so it doesn't raise exceptions for some things
80-
- name: exception skip for unstable
81-
if: github.ref == 'refs/heads/unstable'
82-
run: touch mas0105/trb
83-
8467
# run sprite checkers
8568
- name: check sprites
8669
run: python tools/ghactions.py
@@ -95,4 +78,4 @@ jobs:
9578
- name: rpy distribute
9679
run: |
9780
cd renpy
98-
./renpy.sh launcher distribute "../mas0105/" --package Mod
81+
./renpy.sh launcher distribute "../mas0105/" --package market

.gitignore

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
*~
2-
*.rpyc
3-
*.rpyb
4-
*.bak
5-
*.pyc
6-
*.swp
7-
log.txt
8-
traceback.txt
9-
errors.txt
10-
firstrun
11-
*.chr
12-
*.rpa
13-
*.rpa
14-
Monika After Story/game/audio.rpa
15-
*.save
16-
Monika After Story/game/saves/persistent
17-
Monika After Story/IPGuidelines.md
18-
*.rpa
1+
#Catch all rpa, rpyc, rpyb, and rpyms
192
*.rpa
20-
Monika After Story/game/screens.rpyc
21-
Monika After Story/old_persistent.txt
22-
Monika After Story/merged_persistent.txt
23-
Monika After Story/game/screens.rpyc
24-
Monika After Story/project.json
3+
*.rpy[cbm]
4+
5+
#Catch any persist info
6+
persistent
7+
*.bak
8+
9+
#No compiled pycode or pycache
10+
__pycache__
11+
*.pyc
12+
13+
#Ide specific things
14+
*.swp
15+
**/*.vscode
16+
17+
#Various other clutter-y things
18+
log.txt
19+
traceback.txt
20+
errors.txt
21+
firstrun
22+
log
23+
*.log
24+
25+
#DDLC specific
2526
*.chr
26-
*.rpyc
27-
Monika After Story/project.json
28-
Monika After Story/characters/monika.chr
29-
*.rpyc
30-
Monika After Story/project.json
27+
28+
#OS Specific files
3129
.DS_Store
32-
Monika After Story/.DS_Store
33-
Monika After Story/characters/monika.chr
34-
Monika After Story/update/updates.json
35-
zzzz*
36-
.vscode
37-
cacert.pem
30+
31+
#Toolsmenu things
32+
zzzz*
33+
34+
# Build
35+
cacert.pem
36+
navigation.json
37+
Monika_After_Story-[0-9]*.[0-9]*.[0-9]*-dists
-334 KB
Binary file not shown.

Monika After Story/README.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ <h2>Disclaimer</h2>
6464
Monika After Story is a Doki Doki Literature Club fan game that is not affiliated with Team Salvato. It is designed to be played only after the official game has been completed. You can download Doki Doki Literature Club at: <a href=http://ddlc.moe>http://ddlc.moe</a>
6565
</em></p>
6666
<h2>Installation</h2>
67+
<p><b>Installation of an r7 build is NOT REVERSABLE</b></p>
6768
<p>
6869
The files in Monika After Story alter Doki Doki Literature Club. You must have an installation of DDLC, which can be downloaded for free from <a href=http://ddlc.moe>http://ddlc.moe</a>.
6970
</p>
@@ -76,9 +77,6 @@ <h2>Installation</h2>
7677
<p>
7778
Mac users can access the game directory by right-clicking on the DDLC application and selecting <tt>Show Package Contents</tt>. Then, the game directory can be found in <tt>Contents/Resources/autorun</tt>.
7879
</p>
79-
<p>
80-
To uninstall this mod, simply delete all added files in the <tt>game</tt> directory.
81-
</p>
8280
<h2>Basic Help</h2>
8381
<p>
8482
To advance through the game, <tt>left-click</tt> or press the <tt>space</tt> or <tt>enter</tt> keys. When at a menu,

Monika After Story/game/0config.rpy

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ python early:
1414
renpy.config.name = "Monika After Story"
1515

1616
## The version of the game.
17-
renpy.config.version = "0.12.15"
17+
renpy.config.version = "0.13.0"
18+
1819

1920
#Triple space suffix to avoid potential issues with same names in window title
2021
config.window_title = "Monika After Story "
@@ -35,6 +36,31 @@ python early:
3536

3637
renpy.config.save_directory = "Monika After Story"
3738

39+
### R7+ Config Var adjustments
40+
## 7.4.11
41+
renpy.config.mouse_focus_clickthrough = True
42+
##7.3.3
43+
#Only devs need this
44+
renpy.config.report_extraneous_attributes = False
45+
46+
##7.3.0
47+
renpy.config.keyword_after_python = True
48+
49+
##7.1.1
50+
#Fix menu textbox issues
51+
renpy.config.menu_showed_window = True
52+
#Fix textbox sometimes disappearing
53+
renpy.config.window_auto_show = ["say"]
54+
#Fix textbox flickering
55+
renpy.config.window_auto_hide = ["scene", "call screen"]
56+
57+
##7.0
58+
#Fixes spaceroom masks from restarting every interaction
59+
renpy.config.replay_movie_sprites = False
60+
61+
##6.99.13
62+
renpy.config.atl_one_frame = False
63+
3864
init -1200 python:
3965
## Sounds and music ############################################################
4066

@@ -97,7 +123,7 @@ init -1200 python:
97123

98124
## The icon displayed on the taskbar or dock.
99125

100-
renpy.config.window_icon = "gui/window_icon.png"
126+
renpy.config.window_icon = "mod_assets/mas_icon.ico"
101127

102128
## Custom configs ##############################################################
103129

@@ -120,7 +146,6 @@ init -1200 python:
120146
renpy.loadsave.location.locations.pop()
121147

122148
################START: INIT TIME CONFIGS
123-
124149
## Uncomment the following line to set an audio file that will be played while
125150
## the player is at the main menu. This file will continue playing into the
126151
## game, until it is stopped or another file is played.
@@ -130,3 +155,6 @@ define config.main_menu_music = audio.t1
130155

131156
define config.window_show_transition = dissolve_textbox
132157
define config.window_hide_transition = dissolve_textbox
158+
159+
init python:
160+
config.per_frame_screens.append("_trace_screen")

Monika After Story/game/0statements.rpy

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
python early in mas_statements:
22
from collections import namedtuple
33

4-
__JumpWithArgsParseData = namedtuple("__JumpWithArgsParseData", ("label", "is_expression", "arg_info"))
4+
# Consider this being fully private member of this namespace
5+
_JumpWithArgsParseData = namedtuple("_JumpWithArgsParseData", ("label", "is_expression", "arg_info"))
56

67

78
def __jump_with_args(label, args, kwargs):
@@ -37,7 +38,7 @@ python early in mas_statements:
3738
NOTE: may raise exceptions
3839
3940
IN:
40-
parsed_data - __JumpWithArgsParseData for this statement
41+
parsed_data - _JumpWithArgsParseData for this statement
4142
4243
OUT:
4344
str
@@ -55,7 +56,7 @@ python early in mas_statements:
5556
lex - the Lexer object
5657
5758
OUT:
58-
__JumpWithArgsParseData
59+
_JumpWithArgsParseData
5960
"""
6061
lex.expect_noblock("jarg")
6162

@@ -73,14 +74,14 @@ python early in mas_statements:
7374
lex.expect_eol()
7475
lex.advance()
7576

76-
return __JumpWithArgsParseData(label_, is_expression, arg_info)
77+
return _JumpWithArgsParseData(label_, is_expression, arg_info)
7778

7879
def __execute_jump_with_args(parsed_data):
7980
"""
8081
Executes the jump_with_args statement
8182
8283
IN:
83-
parsed_data - __JumpWithArgsParseData for this statement
84+
parsed_data - _JumpWithArgsParseData for this statement
8485
"""
8586
label_ = __get_label(parsed_data)
8687

@@ -97,7 +98,7 @@ python early in mas_statements:
9798
Predicts the jump_with_args statement
9899
99100
IN:
100-
parsed_data - __JumpWithArgsParseData for this statement
101+
parsed_data - _JumpWithArgsParseData for this statement
101102
"""
102103
try:
103104
label_ = __get_label(parsed_data)
@@ -114,7 +115,7 @@ python early in mas_statements:
114115
A lint function for the jump_with_args statement
115116
116117
IN:
117-
parsed_data - __JumpWithArgsParseData for this statement
118+
parsed_data - _JumpWithArgsParseData for this statement
118119
"""
119120
try:
120121
label_ = __get_label(parsed_data)
@@ -127,7 +128,7 @@ python early in mas_statements:
127128

128129
# Define the new statement
129130
renpy.register_statement(
130-
"jarg",
131+
"jarg",
131132
parse=__parse_jump_with_args,
132133
execute=__execute_jump_with_args,
133134
predict=__predict_jump_with_args,

0 commit comments

Comments
 (0)