3.30 star(s) 15 Votes

JoeTermin

Member
Dec 24, 2017
224
1,117
As promised, here is the trainer to trigger attack variants.

(v2)

You don't have permission to view the spoiler content. Log in or register now.

There are 5 attack variants, 3 for Sasha (Undead x1 and x2, Balisisk x1) and 2 for Nyx (Undead x1 and x2). Unfortunately, the dev did not implement them for other enemies.

EDIT: Fixed a crash.
 
Last edited:

WhiteLord96

Newbie
Feb 8, 2022
65
43
Hmm likely was abandoned after the dev encountered issues with, though likely orginally was to be used with the newer struggle mechanic given the inclusion of nyx.
 

derakino999

Well-Known Member
Sep 30, 2017
1,258
661
As promised, here is the trainer to trigger attack variants.

mod_atk.exe

You don't have permission to view the spoiler content. Log in or register now.

There are 5 attack variants, 3 for Sasha (Undead x1 and x2, Balisisk x1) and 2 for Nyx (Undead x1 and x2). Unfortunately, the dev did not implement them for other enemies.
HOLY SHIT awesome, friend, thank you very much!
and yea sadly not all enemies have it
i suppose since it wasn't implemented yet maybe he was thinking of first making a scene for every enemy but then development was paused sadly
 
  • Like
Reactions: HGEnthusisat

kai123555

Newbie
Oct 14, 2019
97
35
As promised, here is the trainer to trigger attack variants.

mod_atk.exe

You don't have permission to view the spoiler content. Log in or register now.

There are 5 attack variants, 3 for Sasha (Undead x1 and x2, Balisisk x1) and 2 for Nyx (Undead x1 and x2). Unfortunately, the dev did not implement them for other enemies.
it keeps crashing am i missing something? i start the game load a file then start the trainer it chashes. i do the opposite the game runs fine....untill i try to load a file and it crashes
 

JoeTermin

Member
Dec 24, 2017
224
1,117
it keeps crashing am i missing something? i start the game load a file then start the trainer it chashes. i do the opposite the game runs fine....untill i try to load a file and it crashes
Do you use the same game version as in the thread? (3.1.3)
 

derakino999

Well-Known Member
Sep 30, 2017
1,258
661
yea it's crashing on my end as well, and if i run the mod first then MR it crashes when i load my file
what version of colormod are you using JoeTermin ?
if i run the mod first and then MR as admin too
i get a window where this error repeats nonstop

1705741429295.png
 
  • Like
Reactions: JoeTermin

JoeTermin

Member
Dec 24, 2017
224
1,117
EDIT: Nevermind, I fixed the bug, see later posts. Ignore what's below (unless you want the cheat table).
-----------

I don't see the cause for the error right away, so let's try with the cheat table instead.



Can one of you do the following:

1. Open the table and attach to the game (need Cheat Engine)
2. On the options on top of Cheat Engine click "Table" -> "Show Cheat Table Lua script" -> "Execute"
3. On the bottom window, scroll down. There should now be a new entry at the bottom named "Auto-assemble script". Click it and tick the box.
 
Last edited:
  • Like
Reactions: derakino999

kai123555

Newbie
Oct 14, 2019
97
35
also if someone would be kind enough to make a video of the animations and post them somewhere that would be nice too ;w;
 

Mod Learner

Member
Dec 1, 2019
358
248
What do you guy mean by load file? Save file?
From my experience, when you using cheat engine, it might change some value in the game data and there is a chance it conflict with save file. I don't know how to fix though, but if it's the case then you must apply the cheat first and start game from scratch.
 

derakino999

Well-Known Member
Sep 30, 2017
1,258
661
OK, I fixed the crash. Updated my previous post's MEGA link with an updated trainer. [new trainer]
holy fucking shit!
yea it works now thank you very much for this this is AWESOME
BUT HOW
it even acknowledges clothing status
what is this sorcery!?
how did you do this!?!?
like, seriously, is it very complicated for the average guy? cuz well, i have other ideas in mind, or even just for learning and future reference
 
  • Like
Reactions: Christin Eleven

JoeTermin

Member
Dec 24, 2017
224
1,117
holy fucking shit!
yea it works now thank you very much for this this is AWESOME
BUT HOW
it even acknowledges clothing status
what is this sorcery!?
how did you do this!?!?
like, seriously, is it very complicated for the average guy? cuz well, i have other ideas in mind, or even just for learning and future reference
This is reverse engineering, you have to play with CE, change variables, look at what happens, look at which code access these variables, try to change the code etc. and make sense out of the program. There will be a lot of trial and error and often you'll have to combine several tricks and idea at once. Saying this is "very complicated for the average guy" is probably an understatement. I think it's probably very complicated even for the average programmer.

The worst part is that it's not something that can be taught as it's mostly intuition. There's no well-defined process to reverse-engineer a game. You can do the CE tutorial to get the basics, but there will be a very steep learning curve once you try to apply that to an actual game. I can also explain you how this specific trainer works: it basically replaces the part of the game's code triggered when the enemies catch the heroine, with a few new assembly instructions. My new instructions access 2 of the game variables: one named "H_scenestart" (controls when to start the H-scene) and one named "H_scene" (that controls which scene to play, it's where I put the ID of the atk sprite variants). If you set these variables in the right function, there's not much more to do, eg. the handling of clothes is already built in the game (eg. "spr_H_basilisk_atk" is the name of the sprite I pass, then the game appends _underwear to it automatically and it will trigger the actual final sprite "spr_H_basilisk_atk_underwear").

Now this is how the trainer works but the hard part wasn't to write this, rather it was to find the variables and functions in the first place, in particular, the game makes heavy use of pointers. The good news is that I've already done most of it for this game so you can reuse a lot of my existing code.

I'd recommend you to start with the cheat engine tutorial until step 7, or at least step 6. If you don't succeed step 7 you won't be able to write any sort of mod, but you can still use CE to change basic things like HP etc. Then once you're done with step 6/7, run Moon Rhapsody with the Cheat Table I shared previously. I already managed to get all of the pointer offsets to the GameMaker variables and their name, for example, HP is around the begininng:

1705852061206.png

and the Hscene and Hstart variables I mentioned previously are under 'obj_game':

1705852739318.png

I've also managed to dump all the script names and their location in the code, attaching the file.

Now for example, say you want to write a mod that regenerates HP over time. You'd look for the function "obj_game_Step_2" in this file ("step_xxx" are the gameMaker "Update()" functions, run once per frame, for each object).

1705852913979.png

The file says it's at Moon Rhapsody.exe+130dd86 , so for example, we can go to this address, and add auto-assemble to inject code that retrieves the "hp" variable above, and increments it.
 
Last edited:

derakino999

Well-Known Member
Sep 30, 2017
1,258
661
Holy shit Joe, thank you very much for the thorough explanation. This is indeed quite difficult, and it's so amazing that someone as knowledgeable as you came to the game and gave us this awesome mod gift.
IT really IS out of my league, but i'll try to study

The black filter he means is that thing where the whole screen darkens during the h scene except the h scene itself. Like the whole screen's brightness lowers so the CG is more visible, but that makes it so the tiny sprites are harder to see, i think that's what he wants
1705896358996.png 1705896265268.png
before h scene starts / after h scene starts

for example you can see how the sasha and undead sprites are darkened
everything gets darkened like this (this is the gallery so everything is black lol, but that's the idea)

I'm fairly certain that's done through code because i haven't found the sprite for it.
And what also makes me think that it's code is that during penetration and during climax, there is this graphics effect that turns the whole image into negative colors
like this
You don't have permission to view the spoiler content. Log in or register now.
and that must also be code i think because i couldn't find like a sprite that does this or something? as an overlay of sorts?

also I saw someone else either delete or reduce the repetitive "impact" sound during the scenes so you could hear the voices better, that could be great as well as part of the mod
That's done easily through undertalemodtool, you just find the SFX and reduce the volume to the number you want, even 0.
 
Last edited:
  • Like
Reactions: Artix0
3.30 star(s) 15 Votes