Skip to content

Commit 4c5efd3

Browse files
committed
MagmaLink updates + added emotions to the narratives
1 parent 25a56ae commit 4c5efd3

File tree

7 files changed

+108
-9319
lines changed

7 files changed

+108
-9319
lines changed

EndlessAWSWClient/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
from modloader.modclass import Mod, loadable_mod
22
from modloader import modast, modinfo
3+
import jz_magmalink as ml
34

45
@loadable_mod
56
class AWSWMod(Mod):
6-
def mod_info(self):
7-
return ("EndlessAWSW", "1.0", "EmeraldOdin")
7+
name = "EndlessAWSW"
8+
version = "0.1"
9+
author = "EmeraldOdin"
10+
dependencies = ["MagmaLink"]
811

912
def mod_load(self):
1013
modast.set_renpy_global("eawsw_naomi_installed", modinfo.has_mod("A Solitary Mind"))
11-
ml = modinfo.get_mods()["MagmaLink"].import_ml()
1214
ml.find_label("seccont") \
1315
.search_say("He seemed a lot smaller than Remy, and when he somewhat") \
1416
.hook_to("eawsw_intro") \
1517
.search_say("Just follow me.") \
1618
.link_from("pick_your_poison_end")
1719

1820
def mod_complete(self):
19-
pass
21+
pass

EndlessAWSWClient/main.rpy

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ label eawsw_pick_your_poison:
4343
$ eawsw_state['start_narrative'] = [
4444
{ 'cmd': 'msg', 'from': 'c', 'msg': "Hey Remy!" },
4545
{ 'cmd': 'scn', 'scn': 'park2' },
46-
{ 'cmd': 'msg', 'from': 'Ry', 'msg': "Hey!" },
46+
{ 'cmd': 'msg', 'emotion': 'smile', 'from': 'Ry', 'msg': "Hey!" },
4747
]
4848
"You're watching Adine training stunt flights at the beach":
4949
$ eawsw_state['start_scene'] = 'beach'
5050
$ eawsw_state['start_narrative'] = [
5151
{ 'cmd': 'msg', 'from': 'c', 'msg': "Wow nice looping!" },
5252
{ 'cmd': 'scn', 'scn': 'beach' },
53-
{ 'cmd': 'msg', 'from': 'Ad', 'msg': "Thanks! But I have to do much better than this!" },
53+
{ 'cmd': 'msg', 'emotion': 'giggle', 'from': 'Ad', 'msg': "Thanks! But I have to do much better than this!" },
5454
]
5555
"You're with Lorem in the forest.":
5656
$ eawsw_state['start_narrative'] = [
@@ -62,31 +62,31 @@ label eawsw_pick_your_poison:
6262
"You're with Lorem and Ipsum in their apartment.":
6363
$ eawsw_state['start_narrative'] = [
6464
{ 'cmd': 'scn', 'scn': 'loremapt' },
65-
{ 'cmd': 'msg', 'from': 'Lo', 'msg': "I'm glad you came!" },
65+
{ 'cmd': 'msg', 'from': 'Lo', 'emotion': 'happy', 'msg': "I'm glad you came!" },
6666
{ 'cmd': 'scn', 'scn': 'loremapt' },
67-
{ 'cmd': 'msg', 'from': 'Ip', 'msg': "I heard all about you." },
67+
{ 'cmd': 'msg', 'from': 'Ip', 'emotion': 'happy', 'msg': "I heard all about you." },
6868
]
6969
"You're in a fight with Maverick.":
7070
$ eawsw_state['start_narrative'] = [
7171
{ 'cmd': 'scn', 'scn': 'np1r' },
7272
{ 'cmd': 'msg', 'from': 'm', 'msg': "Maverick growled heavily at me." },
7373
{ 'cmd': 'scn', 'scn': 'np1r' },
74-
{ 'cmd': 'msg', 'from': 'Mv', 'msg': "I'll slice you open!" },
74+
{ 'cmd': 'msg', 'from': 'Mv', 'emotion': 'angry', 'msg': "I'll slice you open!" },
7575
]
7676
"On a picnic with Bryce":
7777
$ eawsw_state['start_narrative'] = [
7878
{ 'cmd': 'scn', 'scn': 'np2' },
7979
{ 'cmd': 'msg', 'from': 'm', 'msg': "I sat down with Bryce. During our trip to the picnic place he carried a large basket." },
8080
{ 'cmd': 'scn', 'scn': 'np2' },
81-
{ 'cmd': 'msg', 'from': 'Br', 'msg': "If you're hungry, you can grab something from the fun basket." },
81+
{ 'cmd': 'msg', 'from': 'Br', 'emotion': 'laugh', 'msg': "If you're hungry, you can grab something from the fun basket." },
8282
]
8383
"In a shipwreck with Naomi":
8484
if eawsw_naomi_installed:
8585
$ eawsw_state['start_narrative'] = [
8686
{ 'cmd': 'scn', 'scn': 'eckoldbiolab' },
8787
{ 'cmd': 'msg', 'from': 'm', 'msg': "After days locked up in here, we still haven't found a way out." },
8888
{ 'cmd': 'scn', 'scn': 'eckoldbiolab' },
89-
{ 'cmd': 'msg', 'from': 'Nm', 'msg': "Are they looking for us you think?" },
89+
{ 'cmd': 'msg', 'from': 'Nm', 'emotion': 'blank', 'msg': "Are they looking for us you think?" },
9090
]
9191
else:
9292
jump need_naomi_error
@@ -171,12 +171,13 @@ label eawsw_loop:
171171
"Kv": Kv,
172172
"Lo": Lo,
173173
"Mv": Mv,
174-
"Nm": Nm,
175174
"Ry": Ry,
176175
"Rz": Rz,
177176
"Sb": Sb,
178177
"Zh": Zh
179178
}
179+
if eawsw_naomi_installed:
180+
self.talk_functions['Nm'] = Nm
180181
# Add self
181182
self.talk_functions.update({
182183
'm': m,
@@ -199,7 +200,7 @@ label eawsw_loop:
199200
self.last_character = None
200201
else:
201202
if emotion is None:
202-
self.last_character = '%s b' % (self.character_mapping[msg_from])
203+
self.last_character = '%s normal b' % (self.character_mapping[msg_from])
203204
else:
204205
self.last_character = '%s %s b' % (self.character_mapping[msg_from], emotion)
205206
else:

EndlessServer/src/validated_reply_buffer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
"m": "Narrator",
4545
"c": "Player"
4646
})
47-
allowed_scenes = ['park2', 'loremapt', 'office', 'black', 'bare', 'pad', 'bareblur', 'bareblur2', 'facin3', 'alley', 'fb', 'farm', 'town4', 'adineapt', 'corridor', 'emeraroom', 'o4', 'facin2', 'o2', 'park3', 'np2x', 'np1x', 'buildingoutside', 'np3', 'store2', 'cave', 'o', 'remyapt', 'cafe', 'viewingspot', 'np1r', 'hallway', 'np2y', 'np1n', 'town2', 'stairs', 'darker', 'store', 'library', 'forest2', 'school', 'forest1', 'storex', 'np3x', 'beachx', 'padx', 'np4', 'fac1', 'facin', 'town3', 'np1', 'stars', 'town6', 'deadbody', 'forestx', 'office2', 'cave2', 'table', 'farm2', 'hatchery', 'testingroom', 'gate', 'town7', 'fac12', 'adineapt2', 'ecknaomiapt01', 'eckswimmingpool', 'ecknewtownout2', 'eckswimmingpool2', 'eckoldbiolab', 'beach', 'eckwatersky01', 'eckunderwatertunnel', 'eckbeachb', 'ecknaomiapt03', 'ecknaomiaptbalcony', 'eckpolicedeptstairs1', 'eckplayeraptextra1', 'town1', 'eckkitchenx']
48-
47+
allowed_scenes = ['park2', 'loremapt', 'office', 'black', 'bare', 'pad', 'bareblur', 'bareblur2', 'facin2', 'facinx', 'facin3', 'alley', 'fb', 'farm', 'town4', 'adineapt', 'emeraroom', 'o4', 'o2', 'park3', 'np3x', 'np2x', 'np1x', 'buildingoutside', 'np3', 'np2', 'store2', 'town1x', 'forestx', 'cave', 'o', 'remyapt', 'cafe', 'viewingspot', 'np1r', 'hallway', 'np2y', 'np1n', 'town2', 'darker', 'store', 'library', 'forest2', 'school', 'forest1', 'storex', 'np5e', 'beachx', 'padx', 'np4', 'np5', 'fac1', 'facin', 'town3', 'kitchen', 'np1', 'stars', 'o3', 'town7', 'town6', 'deadbody', 'whiteroom', 'office2', 'cave2', 'table', 'starsrx', 'farm2', 'hatchery', 'testingroom', 'gate', 'fac12', 'adineapt2', 'ecknaomiapt01', 'eckoutsideuniv2', 'eckswimmingpool', 'ecknewtownout2', 'eckswimmingpool2', 'eckoldbiolab', 'beach', 'eckwatersky01', 'eckunderwatertransition01', 'eckunderwater02', 'eckunderwatertunnel', 'eckbeachb', 'ecknaomiapt03', 'ecknaomiaptbalcony', 'ecknaomiapt02', 'eckpolicedeptstairs1', 'eckplayeraptextra1', 'town1', 'eckkitchenx']
4948
re_token = re.compile(r'(<.*?>|[^<]*)')
5049
re_command = re.compile(r'^<(.*?)>$')
5150
re_alphanumeric_whitespace = re.compile(r'[A-Za-z0-9\s]')

Research/Extras/Scene frequency analysis.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"id": "31bb8346-628e-4db4-a2b1-013a55627acd",
6+
"id": "c25886f8",
77
"metadata": {},
88
"outputs": [],
99
"source": [
@@ -22,7 +22,7 @@
2222
{
2323
"cell_type": "code",
2424
"execution_count": null,
25-
"id": "c140fe72-c09d-497a-8c05-d11a9417d6d5",
25+
"id": "baf46ad8",
2626
"metadata": {},
2727
"outputs": [],
2828
"source": [
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "86a8ef34-4489-43c6-b4b2-9dcfea97bef4",
37+
"id": "2b86508c",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -44,7 +44,7 @@
4444
{
4545
"cell_type": "code",
4646
"execution_count": null,
47-
"id": "476b4dac-706f-4456-9b68-ab1bf7f945a2",
47+
"id": "f965d447",
4848
"metadata": {},
4949
"outputs": [],
5050
"source": [
@@ -62,7 +62,7 @@
6262
{
6363
"cell_type": "code",
6464
"execution_count": null,
65-
"id": "58c55de4-39be-4dc4-98bb-669ba6d0f98f",
65+
"id": "37c405fa",
6666
"metadata": {},
6767
"outputs": [],
6868
"source": [
@@ -94,7 +94,7 @@
9494
"name": "python",
9595
"nbconvert_exporter": "python",
9696
"pygments_lexer": "ipython3",
97-
"version": "3.8.10"
97+
"version": "3.8.13"
9898
}
9999
},
100100
"nbformat": 4,

Research/Extras/Sentiment Analysis.ipynb

Lines changed: 13 additions & 4797 deletions
Large diffs are not rendered by default.

Research/Step 1 - Model overfitting.ipynb

Lines changed: 44 additions & 4376 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)