Mod HTML Inseminator [v0.13.1] [InsemGame] [MOD]

5.00 star(s) 1 Vote

randrew

Newbie
Aug 27, 2017
17
17
Since the base game allows increasing MC's max sperm, I would suggest

Code:
<<if ($mc.sperm + $args[0] lte 100)>>
    <<set $mc.sperm += $args[0] + Math.round($mc.sexXp * 0.1)>>
<<elseif $mc.sperm gt 100>>
    <<set $mc.sperm = 100>>
<</if>>
should instead be

Code:
<<if ($mc.sperm + $args[0] lte $mc.maxSperm)>>
    <<set $mc.sperm += $args[0] + Math.round($mc.sexXp * 0.1)>>
<<elseif $mc.sperm gt $mc.maxSperm>>
    <<set $mc.sperm = $mc.maxSperm>>
<</if>>
else e.g. even if MC has raised max sperm to 200, the Meditate action can only raise the current sperm to 100 (or more accurately, 100 + mc.sexXP/10)
 
  • Hey there
Reactions: Clown.34

Clown.34

Active Member
Sep 8, 2018
505
462
else e.g. even if MC has raised max sperm to 200, the Meditate action can only raise the current sperm to 100 (or more accurately, 100 + mc.sexXP/10)
I will say "no", and say too "check the code", when you understand it, you will know why.
 

randrew

Newbie
Aug 27, 2017
17
17
I will say "no", and say too "check the code", when you understand it, you will know why.
I've reviewed the code thoroughly, including tracing how the gainsperm macro and the mc.sperm and mc.maxSperm values are used throughout the game, in both your mod and the original game. The issue I'm seeing is that when your mod is active, the sperm cap becomes hard-coded at 100 despite the game indicating players can raise it by using Essence. This creates a disconnect between what players (including me) expect and what actually happens. As you might imagine, I came across this issue myself (where, when I had raised mc.maxSperm to the maximum value, I couldn't ever raise the displayed sperm to more than ~60% (granted, I could raise MC's sex XP to its capped value of 300, but even then, would only see a max displayed sperm value of 65%).

When the player starts the game, the value of $mc.maxSperm is 100. By using Essence in the Office meeting, the player can raise mc.maxSpermup to 200.

When the player Meditates, the Meditate action calls the gainsperm macro (with _spermGain = $action * 5, where action is in the set [1,3,5] depending on the meditation strength), and the relevant pseudocode of the gainsperm macro is
Code:
if `udog` is true, then
    <!--logic related to `mc.hsperm` and `mc.mhsperm`-->
    if mc.sperm + _spermGain <= 100
        set mc.sperm += _spermGain + Math.round(mc.sexXp * .1)
    elseif mc.sperm > 100
        set mc.sperm = 100
    /endif
else <!-- `udog` is false -->
    if mc.sperm + _spermGain <= mc.maxSperm
        set mc.sperm += _spermGain
    else
        set mc.sperm = mc.maxSperm
    /endif
/endif
When mc.maxSperm is greater than 100, this code caps the sperm gained by the Meditate action so that, on successive Meditate actions, when a Meditate action results in mc.sperm > 100, then following Meditate actions reset mc.sperm to 100.

If you disagree with that assessment, could you share your reasoning rather than asking me to guess at your intent?
 
Last edited:
  • Hey there
Reactions: Clown.34

Clown.34

Active Member
Sep 8, 2018
505
462
If you disagree with that assessment, could you share your reasoning rather than asking me to guess at your intent?
I'm going to play a guessing game now.
You will tell me i'm right (99.99999% sure, i mean, its my code....),
And i will explain why...

I've reviewed the code thoroughly, including tracing how the gainsperm macro and the mc.sperm and mc.maxSperm values are used throughout the game, in both your mod and the original game. The issue I'm seeing is that when your mod is active, the sperm cap becomes hard-coded at 100 despite the game indicating players can raise it by using Essence.
I will say bs, i will even say that you may have looked at it, but you didn't understand it.

What you may think you see with what OpenAi shows you, and what is there, is diferent.


$mc.maxSperm max of dev == 200, so you want to see the 200 there showing off right?
but the thing is, i transformed it on %, and as you should know, max in % means 100, even if $mc.Sperm == 2500, if $mc.maxSperm == 10000, 50% of $mc.maxSperm(10000) is 5000, so intead of showing 2500, it will just show 25 %, wich is the same.

i will add too a save so you can check, maxsperm there is 500.

imagem_2025-08-05_012225306.png imagem_2025-08-05_012239013.png View attachment Inseminator-20250805-011006.save

if this is not what you mean, or you have any doubts, you can find me on discord, im more there than here, search me on dev's server
 
Last edited:

randrew

Newbie
Aug 27, 2017
17
17
I read and write code both professionally and for a hobby. I don't use OpenAI or any other LLM to peruse code.

I downloaded your save you provided, and your mod (v0.13.1.01, which I tested from both the GoFile link and the MediaFire link as provided in the first post of this thread). I can confirm that repeating the Meditate action does not raise mc.sperm above 100 (displayed in the side-bar on your provided save as 20% [of 500]), because (as I have already indicated) your mod has a bug that caps the value at 100 + mc.sexXp/10 (though repeating the Meditate action then reduces the value to a flat 100).

Before you arrogantly proclaim some stranger's intellectual inferiority, it would serve you well to verify your claim using the save file and mod file you provided.

By all means, play your guessing game -- so far, I have not uncovered evidence to would lead me to state "randrew was wrong; Clown.34 was right" -- as a matter of fact, rather the opposite.

I suspect that the actual .html file you are playing with may have changes that you haven't uploaded; maybe in your local game file you found and identified the bug that I've been discussing. If that's the case, then why not acknowledge "oh lol my bad; thought I'd uploaded my latest changes. whoopsie!"?

If you're not open to engaging in a mutually respectful dialogue, or to acknowledging that a rando internet stranger might have some helpful feedback to offer, sure. I won't hold my breath.

I'm not sure what Discord server you're referring to -- I searched "from: clown.34" and "mentions: clown.34" on the but the only result is a single reference from the dev about your mod, and there are no results for a user profile matching your F95zone username.
 
Last edited:
  • Hey there
Reactions: Clown.34

Clown.34

Active Member
Sep 8, 2018
505
462
I suspect that the actual .html file you are playing with may have changes that you haven't uploaded; maybe in your local game file you found and identified the bug that I've been discussing. If that's the case, then why not acknowledge "oh lol my bad; thought I'd uploaded my latest changes. whoopsie!"?
Well, you got me there, I figured it out around 2weeks later, but since no one complained, I didn't release the update and completely forgot about it until now...
It's a simple fix, true, and it interferes not only with meditate but also with sleep.
You should also recover SP by sleeping...

Btw, I can say the same about you, I searched full dev's discord, and found even less about you, so whe're even.
But I'm there, ask for me...
 

randrew

Newbie
Aug 27, 2017
17
17
Sure, you may not find me on the dev's discord -- but I never made any claims about that... and for any statements I did make, I attempted to provide all relevant excerpts, documentation, and supporting evidence.

Regardless, if you would be so kind as to share your most recent modification, I suspect other users on this forum might appreciate it. If you do, would you be so kind as to provide even a brief summary of the bugfixes, changes, and modifications made in the OP Changelog? It's not remarkably helpful suggesting users to hunt around in your (uncommented, cryptically-named-variables) code and diff-compare to see what's different from a prior version/base game.
 
  • Haha
Reactions: Clown.34
5.00 star(s) 1 Vote