Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spack updates part 2 #9729

Draft
wants to merge 27 commits into
base: content
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7437209
prepare spriteobjects for diff structure
ThePotatoGuy Sep 25, 2022
d076f19
added img render changes
ThePotatoGuy Sep 25, 2022
661d31b
add legacy fp to other acs
ThePotatoGuy Sep 25, 2022
c7cdce0
fix mid hair issue
ThePotatoGuy Sep 25, 2022
bce3fb5
reorganized all of our sprites
ThePotatoGuy Sep 25, 2022
19e8d18
added renamer bash script WIP
ThePotatoGuy Sep 25, 2022
b08518e
updated sprite jsons
ThePotatoGuy Sep 25, 2022
434b2ba
fixed sprite json issues
ThePotatoGuy Sep 25, 2022
99ba9fa
adding spack organizer starter
ThePotatoGuy Sep 28, 2022
0097e10
moved files around and working on the loader
ThePotatoGuy Oct 1, 2022
7a9812d
file stuff for tool turned into classes
ThePotatoGuy Oct 9, 2022
417dde4
more file work
ThePotatoGuy Oct 14, 2022
1d638f1
renamer done, loader decided on
ThePotatoGuy Oct 16, 2022
d7438f1
spack converter is complete
ThePotatoGuy Oct 17, 2022
4bd5e08
json updates now
ThePotatoGuy Oct 17, 2022
6895bd0
still working on multpile select
ThePotatoGuy Oct 18, 2022
6e78042
add these because of the rename
ThePotatoGuy Oct 18, 2022
184ea4e
multi select confirm complete
Oct 20, 2022
9f9c5f8
anonmyioo part 1 updated
ThePotatoGuy Nov 10, 2022
ed9d0ab
spack organizer show all in conv
ThePotatoGuy Nov 10, 2022
40130be
better text here
ThePotatoGuy Nov 10, 2022
267bd76
updated spooky hairclips
ThePotatoGuy Nov 10, 2022
6f281ab
briaryoung earrings updated
ThePotatoGuy Nov 10, 2022
7b75108
chika fujiwara updated
ThePotatoGuy Nov 10, 2022
0026d53
briary young chokers updated
ThePotatoGuy Nov 10, 2022
339dbdb
working on scan feature
ThePotatoGuy Dec 5, 2022
49710ec
stick to old for now
ThePotatoGuy Dec 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/mas_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: ci_build

# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

env:
SDL_AUDIODRIVER: dummy # handles ALSA issues
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ Monika After Story/update/updates.json
zzzz*
.vscode
cacert.pem
venv/
.idea/
.toolscache
95 changes: 63 additions & 32 deletions Monika After Story/game/sprite-chart-matrix.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -1639,12 +1639,20 @@ init -4 python in mas_sprites:
cache_acs[day_key] = None
return

# structure modifiers
if acs.use_folders:
pfx = ""
dlm = "/"
else:
pfx = PREFIX_ACS
dlm = ART_DLM

# build img list minus file extensions
img_list = [
A_T_MAIN,
PREFIX_ACS,
pfx,
acs.img_sit,
ART_DLM,
dlm,
poseid,
arm_code,
FILE_EXT,
Expand Down Expand Up @@ -2308,47 +2316,69 @@ init -4 python in mas_sprites:
OUT:
rk_list - list to add render keys to
"""
# build img str
if lean:
img_list = (
H_MAIN,
PREFIX_HAIR_LEAN,
lean,
ART_DLM,
hair.img_sit,
ART_DLM,
hair_key,
FILE_EXT,
)

else:
img_list = (
H_MAIN,
PREFIX_HAIR,
hair.img_sit,
ART_DLM,
hair_key,
FILE_EXT,
)

# genreate string for key check
img_str = "".join(img_list)

# key check
img_key = (flt, img_str)
img_key = (flt, hair.img_sit, lean, hair_key)
cache_hair = _gc(CID_HAIR)
if img_key in cache_hair:
if cache_hair[img_key] is not None:
rk_list.append((img_key, CID_HAIR, None, None))
return

# check if mid and no need to render
if hair_key == MHAIR:
if hair_key in (MHAIR, store.MASHair.LAYER_MID):
if hair.mpm_mid is None or not hair.mpm_mid.get(leanpose, False):
# mid not in this hair for this pose
cache_hair[img_key] = None
return

# build img str
if lean:

if hair.use_folders:
img_list = (
H_MAIN,
hair.img_sit,
"/",
lean,
ART_DLM,
hair_key,
FILE_EXT,
)

else:
img_list = (
H_MAIN,
PREFIX_HAIR_LEAN,
lean,
ART_DLM,
hair.img_sit,
ART_DLM,
hair_key,
FILE_EXT,
)

else:

if hair.use_folders:
pfx = ""
dlm = "/"
else:
pfx = PREFIX_HAIR
dlm = ART_DLM

img_list = (
H_MAIN,
pfx,
hair.img_sit,
dlm,
hair_key,
FILE_EXT,
)

# genreate string for key check
img_str = "".join(img_list)

# otherwise need to build ImageBase
rk_list.append((
img_key,
Expand Down Expand Up @@ -2597,12 +2627,13 @@ init -4 python in mas_sprites:
# initial values
fpfx = face_lean_mode(lean)
rk_list = []
back_hk, mid_hk, front_hk = hair._get_hair_keys()

# 1. pre-acs
_rk_accessory_list(rk_list, acs_pre_list, flt, leanpose)

# 2. back hair
_rk_hair(rk_list, hair, flt, BHAIR, lean, leanpose)
_rk_hair(rk_list, hair, flt, back_hk, lean, leanpose)

# 3. bbh-acs
_rk_accessory_list(rk_list, acs_bbh_list, flt, leanpose)
Expand Down Expand Up @@ -2645,7 +2676,7 @@ init -4 python in mas_sprites:
_rk_accessory_list(rk_list, acs_bmh_list, flt, leanpose)

# 13. mid-hair
_rk_hair(rk_list, hair, flt, MHAIR, lean, leanpose)
_rk_hair(rk_list, hair, flt, mid_hk, lean, leanpose)

# 14. mmh-acs
_rk_accessory_list(rk_list, acs_mhh_list, flt, leanpose)
Expand Down Expand Up @@ -2700,7 +2731,7 @@ init -4 python in mas_sprites:
_rk_face_pre(rk_list, flt, fpfx, lean, blush)

# 28. front-hair
_rk_hair(rk_list, hair, flt, FHAIR, lean, leanpose)
_rk_hair(rk_list, hair, flt, front_hk, lean, leanpose)

# 29. afh-acs
_rk_accessory_list(rk_list, acs_afh_list, flt, leanpose)
Expand Down
Loading