Mod HTML Masters of Raana - Expansion Mod [0.5.2] [json.err]

5.00 star(s) 1 Vote

json.err

Newbie
Sep 14, 2016
91
152
128
am i the only one that is confused by the installation step

2. Copy start_game.html file to start_game_exp.html (or any other name but it must end with .html)

I've never moded a html game.
Well, you can skip this optional step. It's just there in case you want to keep original copy of the game to play without this mod. I personally don't keep it because I can easily enable and disable mod in the same file in a matter of seconds.
 

FryisWiggles

Newbie
Oct 15, 2017
59
37
204
Well, you can skip this optional step. It's just there in case you want to keep original copy of the game to play without this mod. I personally don't keep it because I can easily enable and disable mod in the same file in a matter of seconds.
ok and then for step 3
3. Add the following lines before the LAST two lines (</body> and </html>) in the created file:
<link rel="stylesheet" href="Mods/ExpansionMod/styles.css">
<script src="Mods/ExpansionMod/functions.js"></script>

what document an I adding these lines to? the exe file? or do I launch the game and do that though the console?

if it's the exe launcher, do I need a special program to edit it?

sorry if these are dumb questions


I figured it out. just had to open the game with notepad++
 
Last edited:

fomeki6933

Newbie
Jun 29, 2020
97
61
98
Some really good stuff. But trying to save a note just gives me an error message in a fresh 0.8.4.7 game (just start the game, get Ansel, try to give him a note) with expansion mod 0.5.1 without automod, in Brave. Same thing with expansion mod 0.5.0 as well.

Console logs contains this (21 is for Armand, etc):
Code:
Uncaught TypeError: Cannot read properties of undefined (reading '21')
(anonymous)    @    functions.js:3235
dispatch    @    start.html:57
v.handle    @    start.html:57
Also, if I don't sleep before doing an F5 the browser tab just gets stuck on a black screen and the console contains this:
Code:
Uncaught TypeError: Cannot read properties of undefined (reading 'dailyLog')
 

json.err

Newbie
Sep 14, 2016
91
152
128
Some really good stuff. But trying to save a note just gives me an error message in a fresh 0.8.4.7 game (just start the game, get Ansel, try to give him a note) with expansion mod 0.5.1 without automod, in Brave. Same thing with expansion mod 0.5.0 as well.

Console logs contains this (21 is for Armand, etc):
Code:
Uncaught TypeError: Cannot read properties of undefined (reading '21')
(anonymous)    @    functions.js:3235
dispatch    @    start.html:57
v.handle    @    start.html:57
Also, if I don't sleep before doing an F5 the browser tab just gets stuck on a black screen and the console contains this:
Code:
Uncaught TypeError: Cannot read properties of undefined (reading 'dailyLog')
Thanks for report. I guess I need to start new game from time to time.
First one is an obvious mistake. It's there for a few weeks... I'll fix it later. In the mean time you can execute $m.npcs = {} in console. Notes should work after that.
Can you elaborate a bit on what you did and after what action it appears? I wasn't able to reproduce it fast atm, will try later. Probably similar reason as the first one.
 

fomeki6933

Newbie
Jun 29, 2020
97
61
98
Thanks for report. I guess I need to start new game from time to time.
First one is an obvious mistake. It's there for a few weeks... I'll fix it later. In the mean time you can execute $m.npcs = {} in console. Notes should work after that.
Thanks.
Can you elaborate a bit on what you did and after what action it appears? I wasn't able to reproduce it fast atm, will try later. Probably similar reason as the first one.
Ah, yes. The second one was after loading a game started without the mod. Again, only a problem if you try to F5 before getting a sleep in to initialize the variable. If I start a new game the variable is initialized correctly.
 
Last edited:

json.err

Newbie
Sep 14, 2016
91
152
128
Ah, yes. The second one was after loading a game started without the mod. Again, only a problem if you try to F5 before getting a sleep in to initialize the variable. If I start a new game the variable is initialized correctly.
Glad to hear it's not so easy to stumble upon it so probably won't happen too often. I'll try to make it more robust in the future anyway.
 

IzanaKurokawa19

New Member
May 24, 2024
3
1
38
Can someone post a pre-modded HTML file? I'm on Android and my HTML Editor keeps on crashing when trying to edit the script in before the last two lines. Thanks
 

json.err

Newbie
Sep 14, 2016
91
152
128
Can someone post a pre-modded HTML file? I'm on Android and my HTML Editor keeps on crashing when trying to edit the script in before the last two lines. Thanks
Here is the file. No specific mod configuration, everything is by default. If you want to enable or disable something extra I guess you'll need to find a way to edit it. As a bonus attached file enables t4 stuff except npc debug menu (I don't have the latest one).
 
  • Like
Reactions: IzanaKurokawa19

IzanaKurokawa19

New Member
May 24, 2024
3
1
38
Here is the file. No specific mod configuration, everything is by default. If you want to enable or disable something extra I guess you'll need to find a way to edit it. As a bonus attached file enables t4 stuff except npc debug menu (I don't have the latest one).
TYSM! Keep doing great work on this expansion mod
 

zozogazygua

New Member
Jun 7, 2018
3
8
165
Love the mod!
Features remove a lot of needless clicking from the game, I wish there was a way to automate training and reading
 

Iron Fist

New Member
Sep 4, 2022
6
0
102
I assume you added needed 2 lines to game html file?
If so put the following right above those lines:
HTML:
<template id="ExpansionModConfig">
  <input name="incestEnabled" value="true">
  <input name="changeAges" value="true">
  <input name="ageChild" value="14">
  <input name="ageGrownUp" value="16">
</template>
This is how I play (or try to since I spend more time on the mod than on the game huh). You can change 14 and 16 numbers to the ones you need.

I'll probably add some interface to generate such code block. Unfortunately this configuration has to be outside mod code due since it does a lot of stuff before anything appears on the page.
Hello json.err, which two lines of the game are meant to exploit incest?
 

Iron Fist

New Member
Sep 4, 2022
6
0
102
Thanks, everything's fine, I finally found it. I only started playing your mod today. Could you maybe add more slots to the annex so we can include more people? I'm currently trying to collect everyone and I have 7 slots free, and all the male characters are still scattered across the map.
 

000 - Deleted User

New Member
Mar 5, 2025
6
3
3
json.err thanks for the mod. Would you consider moving the top UI back to its old position and adding a new button (perhaps in the same position as the config button, as it won't collide with anything) that will allow the top UI to appear and disappear? Because now we can't see the entire screen unless we zoom in to 90%.
 

json.err

Newbie
Sep 14, 2016
91
152
128
Thanks, everything's fine, I finally found it. I only started playing your mod today. Could you maybe add more slots to the annex so we can include more people? I'm currently trying to collect everyone and I have 7 slots free, and all the male characters are still scattered across the map.
I was thinking about it but had no plans to do that just yet. I have a feeling it might be tricky but need to check first. The idea was to use some extra house/building/whatever, either inside your yard by expanding it or outside buying a lot similar to tavern/workshop one. This approach would be more balanced but I might do just something simple like "adding one more floor" to the annex.

json.err thanks for the mod. Would you consider moving the top UI back to its old position and adding a new button (perhaps in the same position as the config button, as it won't collide with anything) that will allow the top UI to appear and disappear? Because now we can't see the entire screen unless we zoom in to 90%.
Hmmm... I didn't think it might cause problems. I guess it's about some specific dimensions of the browser window or similar. Could you tell me if it's desktop or mobile device, what is your screen resolution? I'll try to fix it anyway, probably with another config option to specify how and where you want it. Kind of: top border always visible, top border expandable, above game.
 
  • Like
Reactions: Iron Fist

json.err

Newbie
Sep 14, 2016
91
152
128
Thanks, everything's fine, I finally found it. I only started playing your mod today. Could you maybe add more slots to the annex so we can include more people? I'm currently trying to collect everyone and I have 7 slots free, and all the male characters are still scattered across the map.
Yeah, as I thought it won't be easy. Game has a bunch of stuff related to number of people. For example it only has 16 pages in npc menu. And actually it can not store more than 149 people.
If you really want to add some more space you can find string if _npcs lte 127 and $ownannex2 is true and replace 127 with 149. But the only way to talk to those extra people will be through my npc wall using double click (sidebar version will look funny). Changing their inventory will be even more difficult. You'll need to open interaction with them (hoping they are at home) and then go to inventory. So I wouldn't really recommend it. Not sure when I'll expand annex though, no promises.
 

Iron Fist

New Member
Sep 4, 2022
6
0
102
I was thinking about it but had no plans to do that just yet. I have a feeling it might be tricky but need to check first. The idea was to use some extra house/building/whatever, either inside your yard by expanding it or outside buying a lot similar to tavern/workshop one. This approach would be more balanced but I might do just something simple like "adding one more floor" to the annex.


Hmmm... I didn't think it might cause problems. I guess it's about some specific dimensions of the browser window or similar. Could you tell me if it's desktop or mobile device, what is your screen resolution? I'll try to fix it anyway, probably with another config option to specify how and where you want it. Kind of: top border always visible, top border expandable, above game.
Yes, I figured it would be difficult. I'll get to know your mod first, so I'll put the collecting aside for now. I'd be happy for "another floor" to the outbuilding.
 

000 - Deleted User

New Member
Mar 5, 2025
6
3
3
I was thinking about it but had no plans to do that just yet. I have a feeling it might be tricky but need to check first. The idea was to use some extra house/building/whatever, either inside your yard by expanding it or outside buying a lot similar to tavern/workshop one. This approach would be more balanced but I might do just something simple like "adding one more floor" to the annex.


Hmmm... I didn't think it might cause problems. I guess it's about some specific dimensions of the browser window or similar. Could you tell me if it's desktop or mobile device, what is your screen resolution? I'll try to fix it anyway, probably with another config option to specify how and where you want it. Kind of: top border always visible, top border expandable, above game.
Legion Laptop 1920x1080 Chrome and thanks for reply
 
5.00 star(s) 1 Vote