Jump to content

[mod] Sexbound Defeat


Recommended Posts

Posted

This mod seems to conflict with Feast of Fire and Smoke. When an enemy from that mod kills you, it doesn't treat it like a normal monster nor as a NPC (A monster would normally just kill you, but an NPC that kills you will initiate H). What happens is that the game bugs out and makes you invincible and prevents the gun from being able to reload and energy never regenerates. I had all of the community patches installed for this mod and none of them seem to fix this bug (as it's a mod conflict). It doesn't report anything on the debug log.

Posted

Im not sure if Im being simply dumb ( I guess I am ), but how exactly do you fuck defeated npcs and monsters?

They despawn right after I defeat them. So far, this mod only works in reverse for me. They can fuck me after defeating me, but not vice versa.

Posted
13 hours ago, Dargast said:

Im not sure if Im being simply dumb ( I guess I am ), but how exactly do you fuck defeated npcs and monsters?

They despawn right after I defeat them. So far, this mod only works in reverse for me. They can fuck me after defeating me, but not vice versa.

 

At least it's half working... did you manage to fix the player 0 hp -> become invulnerable and no sex happens bug ? Or did it just not happen for you ?

Posted
4 hours ago, siskin said:

 

At least it's half working... did you manage to fix the player 0 hp -> become invulnerable and no sex happens bug ? Or did it just not happen for you ?

Here's what my config says, maybe you can countercheck it with yours?

 

{
  /*
    Defeated Monster Timeout. Default = 60 
  
    This can be a positive integer or a range like so [30, 60].
  */
    "defeatTimeoutMonster" : 60, 

  /*
    Defeated NPC Timeout. Default = 60 
  
    This can be a positive integer or a range like so [30, 60].
  */
  "defeatTimeoutNPC"    : 60,
  
  /*
    Defeated Player Timeout. Default = 30
    
    This can be a positive integer or a range like so [30, 60]. 
  */
  "defeatTimeoutPlayer" : 30,
  
  /* 
    Enable pregnant NPCs to be immortal. Default: false
    
    Valid options are true & false.
  */
  "enableImmortalPregnantNPCs" : true,
  
  /*
    Enable converting. Default: false
    
    Valid options are true & false.
  */
  "convertPregnantEnemiesToFriends" : true,
  
  /*
    Enable starting dialog? Default: true
  
    Valid options are true & false.  
  */
  "enableStartDialog" : true,
  
  /*
    Setting this to true enables a defeated player to have access to use the Sex UI.

    Valid options are true & false.
  */
  "defeatedPlayersCanUseSexUI" : false,

  /* Define 'victory' and 'defeated' start dialog for NPCs. the 'default' species is a fallback. */
  "startDialog" : {
    "victory" : {
      "default" : [
        "Stay down and wait for me to give you a real punishment!",
        "I'm not finished with this little bitch yet!",
        "You're going to make such a fine cum dumpster for me."
      ],
      
      "floran" : [
        "Floran is going to have fun playing with prey!",
        "Time to Sssexxxsss with the prey!"
      ]
    },
    
    "defeated" : {
      "default" : [
        "W-what are you going to do with me now?",
        "P-please don't hurt me any more! Let me go!",
        "W-What do you plan to do with me?"
      ],
      
      "floran" : [
        "Floran doesn't like where thisss is going next.."
      ]
    }
  },
  
  "pregnantDialog" : {
    "default" : [
      "Sorry, but I refuse to die while I'm pregnant!"
    ]
  }
}

 

I really hope someone can tell me what I need to do to fuck defeated npcs or monsters cuz it sure as hell isnt working out for me.

 

Posted

Here, after so many trial runs and errors I think I've finally fixed the player invincibility bug.

 

It occurs if the enemy is unable to use the player as a sexnode, from what I can tell and the player just never dies. So here is my solution.

 

The main part is this part of the code.

if self._entityType == "player" and self._inviciblefix and not self:isStunned() and not self._isinSex then
		
		self._inviciblefix = false
		self._isConfirmed = false
		self._isDefeated  = false
		self._isinSex = false
		self._transformFailed = true
		
	end
	if self._entityType == "player" and self._isinSex and self._isDefeated then
		self._inviciblefix = false
    elseif self._entityType == "player" and self._transformRan and self._isDefeated and not self._inviciblefix and not self:isStunned() then
	
		self._inviciblefix = true
		status.addEphemeralEffect("sexbound_stun", 1)
		status.setResource("health", 1.0)
	end

 

There were some further edits to the code that are redundant, but I had to try so many things to get it to work.

sexbounddefeat.lua

  • 2 weeks later...
Posted

I know this is a bit old... but I'm having some issues. I'll get down to 0 hp, but then I simply turn immortal, and am incapable of being damaged again. And the animations dont even play out, nor do I get a stun state.

Posted

okay so i updated all my sexbound mods and now i can't damage enemies anymore. They can wreck me but i can't touch them.

  • 2 weeks later...
Posted

I wonder if it's possible to change condition for transforming into SexNode from killing blow to percental chance for each taken hit.

For example, when target (monster, player or NPC) gets hitten by the enemy, there is 5% chance for it to turn into SexNode.

Or turn target into SexNode when it's HP slips to certain amount, let's say to 30%. If due to being obstructed target were unable to turn into SexNode,

that effect can be applied again next time when HP reaches that percent again.

That way healing during sex and beaming after it won't be needed I think, so they should be turned off.

Maybe that can help with immortality bug or occasionally dying target.

No pressure, if it's too complicated, impossible or not needed, feel free to ignore these ideas.

Posted
On 2/16/2021 at 5:27 PM, Mushano said:

Here, after so many trial runs and errors I think I've finally fixed the player invincibility bug.

 

It occurs if the enemy is unable to use the player as a sexnode, from what I can tell and the player just never dies. So here is my solution.

 

The main part is this part of the code.


if self._entityType == "player" and self._inviciblefix and not self:isStunned() and not self._isinSex then
		
		self._inviciblefix = false
		self._isConfirmed = false
		self._isDefeated  = false
		self._isinSex = false
		self._transformFailed = true
		
	end
	if self._entityType == "player" and self._isinSex and self._isDefeated then
		self._inviciblefix = false
    elseif self._entityType == "player" and self._transformRan and self._isDefeated and not self._inviciblefix and not self:isStunned() then
	
		self._inviciblefix = true
		status.addEphemeralEffect("sexbound_stun", 1)
		status.setResource("health", 1.0)
	end

 

There were some further edits to the code that are redundant, but I had to try so many things to get it to work.

sexbounddefeat.lua 9.55 kB · 42 downloads


I replaced the script file with yours and now my energy won't regenerate at all. Are you sure you fixed it properly?

Posted

For anyone attempting to fix the invincibility glitch I have some insight that may be useful.

I'm by no means a lua scripter so I don't have a solution to post sadly I just have the details of what's failing, why and how to fix it.

 

The main issue is a function that attempts to retrieve the config for SB Defeat is failing to load properly if the hostile isn't a valid hostile for SB Defeat.

 

File directory: /stats/sexbound/sexbounddefeat.lua

 

There is a function that captures damage events essentially on line 85, once is less than or equal to 0 it runs the rest of the if scope for transforming the entity into a sexnode.

The logic in this if statement force your health to 0.01 which keeps you alive, meaning if it at all failed you couldn't be killed cause it essentially loops through the if statement preventing death for the player, but I assume part of the game bugs out and assumes the player is dead but never checks or something, making your health never move and your energy never regenerate cause it assumes you're dead.

 

The logic for retrieving the config is inside that if statement so it can use the parameters you configured in your defeat scenario, however the problem is once this bit of logic is hit:

		self:retrieveSexboundConfig(function(sexboundConfig) -- this is hit
    		-- however if the config fails, the logic below is never hit as the script fails silently
			self:transform(sexboundConfig, self.transformSucceeded, self.transformFailed)
		end)

(Line 118 - 120)

 

Reading the comments in the code I inserted above you can see how it all sort of starts to fail. The config has failed to retrieve so the transform function is never called, causing the invincibility bug.

 

If you can somehow find a way to tell the code that the config failed to load you can then call self:transformFailed() and that will properly turn the defeat to false and kill the player.

 

If you're trying to find the config retrieval function it's located on line 169. The failing piece of code is the promise call for "Sexbound:Config:Retrieve" if the hostile is invalid.

 

Hope this helps someone trying to solve this issue, I wish I could but I have absolutely no lua scripting background and it's proven to be difficult cause I don't even know the basics, so I'm going to leave this to someone who can properly patch it.

  • 3 weeks later...
Posted

Can someone please help me I've been searching for an answer as to why I keep getting the missing dependency lox_sexbound error, I have the zip version of sexbound

Posted
7 hours ago, GammaTheOne said:

Can someone please help me I've been searching for an answer as to why I keep getting the missing dependency lox_sexbound error, I have the zip version of sexbound

The game cannot read .zip files, you need to extract the contents for the game to see the mod

Posted

Strangely enough, after I've been screwed by an NPC fully, the NPC will seem to lose it's AI until I relog. They just become still, and do no contact damage. When I kill them, they either become a sex node or just be at 0 hp and stand there. If I relog with them as nodes or 0 hp they die, but it's a really weird bug. (For whatever reason, this doesn't happen with Terra and mons work fine after. Seems to only be happening with NPCs?)
Can anyone help?

Posted

I actually haven't used SxB Defeat for quite a while. Partly because it's just unstable. But most importantly because it broke my ability to capture bounty targets.

 

But there is one feature I'm now sorely missing...

Convincing pregnant hostiles to surrender to you to save their child, rather than dying.

 

I don't see that becoming a base option for Sexbound, even if it's off by default, but it would be absolutely wonderful.

So... What would I have to do to add it manually?

Please.

Posted

any ideas on how to make the player warp back to their ship after being defeated and fucked? so this addon can not be an easy way to be practically invincible..
like 
detect if player is attacked by an enemy and at a specific damage turn them into a sexnode, detect if they're being used while in said sexnode,
add a true/false so if the player gets fucked after dying: warp them back to the ship, or if they're not fucked: heal them to 50% health. 

i honestly would turn that off cause imo death means u return to ship whether ur body is used or not

 

Posted

Hi, I am Rarexe and I have a problem, I installed the sexbound defeat mod and I really liked that if the Npc beat you they raped you and gave you another chance to live, but something happened and now none of the npc rape me, I clarify that my character is a Floran male, I think it is because of a bug that appeared in a trio, which for some reason left me pregnant, (no, I don't have the mod for pregnant males installed) I was surprised but I thought, well, no problem, I'll just give birth, but, oh surprise, crash all over the face, so I swallowed the abortion pill and that's it, but I think that left some data that now does not allow me to be raped. Help me, I don't want to erase my progress. Another point is that when I am on missions with the mecha, when they destroy my mecca and take me down all my life I become immortal but my energy does not regenerate and sometimes when I kill npcs with the mecha some become immortal too, if there is a solution please help me. as an additional point I deactivated the configuration of pregnant immortals and that only fixed that the npc kill me, but they still do not rape me and I am still immortal when mechanical enemies kill me in the space.
Ps: I love this mod

Posted

I tried this mod again after some time, and I think I solved the invincibility bug. Unfortunately, other bugs still remain, but that's for another time, since I just spent 5+ hours on this. :P

 

On 3/24/2021 at 10:34 PM, roaringofboats said:

Reading the comments in the code I inserted above you can see how it all sort of starts to fail. The config has failed to retrieve so the transform function is never called, causing the invincibility bug.

 

If you can somehow find a way to tell the code that the config failed to load you can then call self:transformFailed() and that will properly turn the defeat to false and kill the player.

 

If you're trying to find the config retrieval function it's located on line 169. The failing piece of code is the promise call for "Sexbound:Config:Retrieve" if the hostile is invalid.

 

Hope this helps someone trying to solve this issue, I wish I could but I have absolutely no lua scripting background and it's proven to be difficult cause I don't even know the basics, so I'm going to leave this to someone who can properly patch it.

 

You were certainly on the right track. It didn't appear to be an invalid hostile ID, but rather, the hook for `Sexbound:Config:Retrieve` was never actually registered for monsters, it seems. There were no patches being applied for monsters in Sexbound (base), from what I could see. So I added files to patch the monsters in base Starbound, which was a bit of a pain. Probably a big pain if I wasn't able to use the Linux terminal (`find` made it easy to track which monster files should be added).

 

In the core Sexbound mod, you should add a file for every monster, in their appropriate directory, with `.patch` appended to the filename (so it will become e.g. `floki.monstertype.patch`), containing the following text:

 

[
    {
      "op" : "add",
      "path" : "/baseParameters/scripts/-",
      "value" : "/scripts/sexbound/override/monster.lua"
    }
]

 

If you do that for every monster, the message/hook will be processed correctly. Unfortunately, this made me actually die when killed by a monster, rather than being stripped naked and bent over.

 

Sexbound Defeat apparently also wasn't applying their monster scripts to the monster configuration files. Duplicate the folder structure from Sexbound to Sexbound Defeat, except all those files within Sexbound Defeat must contain the following:

 

[
    {
      "op" : "add",
      "path" : "/statusSettings/primaryScriptSources/-",
      "value" : "/stats/sexbound/monster_primary.lua"
    }
]

 

Now the monsters strip me naked. They just don't bend me over, for some reason. And, if I kill a monster, now I can bend them over, even though they're invisible for some reason. Could be a mod conflict, tbh.

 

Unfortunately, unlike NPC type entities, Monster type entities don't appear to have a base configuration file they all call from, which is why creating these files for every single monster is necessary. As far as I know, at least.

 

That said, I'm not even an intermediate Lua user, and this is my first taste of messing about with Starbound mods, so correct me on these things if I'm wrong, but these additions seem to take me somewhere, at least.

 

I've added the necessary files for Core Starbound's monsters in the included archive, including the required folder structure. Simply unzip the contents to your Sexbound and Sexbound Defeat mod folders as appropriate (The contents of `sexbound` go in Sexbound's folder and the contents of `sexbound-defeat` go in Sexbound Defeat's folder). If you have any monsters added by mods, you should do the above steps manually for them.

starbound_monster_configurations.zip

Posted

 

On 6/17/2019 at 12:06 AM, AttritionofContrition said:

Never sex bounty npcs, you have to wait for them to get out of the "defeat" phase which then allows you to capture them like normal.
 

 

Unlike the other sexbound mods defeat doesn't seem to play well with some other mods, I would always crash when killing a bandit npc (and some other npc types) with the "suppers combat overhaul" enabled.

So far in a vanilla game with only sexbound mods everything has worked like it's supposed to for me, except only monsters "defeat" me when I accidentally fall in a hole so most of the time my character just stands around. Anybody playing with any kind of combat overhaul or difficulty mod that hasn't had any issues yet? I forgot how easy vanilla starbound was.?

Whenever I run out of health to an enemy the game doesn't register me as dead and I become INVINCIBLE!  But I can't recharge energy lol.  I can kill enemies and collect drops though.  I Do have other mods going but I think this is the mod causing the glitch since it's the only one connected to dying. 

Posted

So in the description of the defeat mod it says 

Quote
  • Players who defeat a monster / NPC or another player can choose between having sex with an opponent or not.
  • Players can have sex with a defeated opponent for up to 60 seconds by default.

But i have not seen any enemies turn into sex nodes, or neither have i seen myself turn into a sex node

 

Posted

I'm wondering if it would be possible to add an option to turn off Player defeat since there is sometimes a glitch when dying to monsters that don't put you into a defeated state which turns you invincible. Your HP is locked at zero, energy doesn't regen, but you don't die. Honestly this glitch is the only real reason I don't use this mod more.

  • 3 weeks later...
  • 2 weeks later...
Posted
On 2/16/2021 at 10:27 PM, Mushano said:

Here, after so many trial runs and errors I think I've finally fixed the player invincibility bug.

 

It occurs if the enemy is unable to use the player as a sexnode, from what I can tell and the player just never dies. So here is my solution.

 

The main part is this part of the code.


if self._entityType == "player" and self._inviciblefix and not self:isStunned() and not self._isinSex then
		
		self._inviciblefix = false
		self._isConfirmed = false
		self._isDefeated  = false
		self._isinSex = false
		self._transformFailed = true
		
	end
	if self._entityType == "player" and self._isinSex and self._isDefeated then
		self._inviciblefix = false
    elseif self._entityType == "player" and self._transformRan and self._isDefeated and not self._inviciblefix and not self:isStunned() then
	
		self._inviciblefix = true
		status.addEphemeralEffect("sexbound_stun", 1)
		status.setResource("health", 1.0)
	end

 

There were some further edits to the code that are redundant, but I had to try so many things to get it to work.

sexbounddefeat.lua 9.55 kB · 108 downloads


So, this partially works. If defeated by an incompatible creature, you instead freeze for a moment, die, respawn on the ship, and all seems well.

After beaming back down, however, being hit once by an incompatible creature will then make you invincible. Feels like the code doesn't effectively 'reset' back to a default state, or accidentally catches an event on damage that makes the player invincible.

Posted (edited)
On 5/7/2021 at 8:12 PM, Grunsk said:

I tried this mod again after some time, and I think I solved the invincibility bug. Unfortunately, other bugs still remain, but that's for another time, since I just spent 5+ hours on this. :P

 

 

You were certainly on the right track. It didn't appear to be an invalid hostile ID, but rather, the hook for `Sexbound:Config:Retrieve` was never actually registered for monsters, it seems. There were no patches being applied for monsters in Sexbound (base), from what I could see. So I added files to patch the monsters in base Starbound, which was a bit of a pain. Probably a big pain if I wasn't able to use the Linux terminal (`find` made it easy to track which monster files should be added).

 

In the core Sexbound mod, you should add a file for every monster, in their appropriate directory, with `.patch` appended to the filename (so it will become e.g. `floki.monstertype.patch`), containing the following text:

 










[
    {
      "op" : "add",
      "path" : "/baseParameters/scripts/-",
      "value" : "/scripts/sexbound/override/monster.lua"
    }
]

 

If you do that for every monster, the message/hook will be processed correctly. Unfortunately, this made me actually die when killed by a monster, rather than being stripped naked and bent over.

 

Sexbound Defeat apparently also wasn't applying their monster scripts to the monster configuration files. Duplicate the folder structure from Sexbound to Sexbound Defeat, except all those files within Sexbound Defeat must contain the following:

 










[
    {
      "op" : "add",
      "path" : "/statusSettings/primaryScriptSources/-",
      "value" : "/stats/sexbound/monster_primary.lua"
    }
]

 

Now the monsters strip me naked. They just don't bend me over, for some reason. And, if I kill a monster, now I can bend them over, even though they're invisible for some reason. Could be a mod conflict, tbh.

 

Unfortunately, unlike NPC type entities, Monster type entities don't appear to have a base configuration file they all call from, which is why creating these files for every single monster is necessary. As far as I know, at least.

 

That said, I'm not even an intermediate Lua user, and this is my first taste of messing about with Starbound mods, so correct me on these things if I'm wrong, but these additions seem to take me somewhere, at least.

 

I've added the necessary files for Core Starbound's monsters in the included archive, including the required folder structure. Simply unzip the contents to your Sexbound and Sexbound Defeat mod folders as appropriate (The contents of `sexbound` go in Sexbound's folder and the contents of `sexbound-defeat` go in Sexbound Defeat's folder). If you have any monsters added by mods, you should do the above steps manually for them.

starbound_monster_configurations.zip 417.89 kB · 31 downloads

Don't know if it's worth noting, but I combined Mushano's defeat.lua with the monster configurations in Grunsk's post, started a new save, and as soon as a randomly generated monster hits me, the player character becomes invincible. Additionally, energy refuses to regenerate even after quitting to title screen and loading back in. I have absolutely no idea how this is happening.

Edit: Alright, I got this to work fairly seamlessly. HUGE props to Grunsk for doing a massive amount of legwork on this.

His additions to the Sexbound API folder and Defeat folders fix the feedback loops in the code. No more invincibility bug, no more energy regeneration being stuck at zero.

I noticed though, that the creatures that -do- have support would freeze, become bugged, and die on the spot shortly after spawned on a world. Since Grunsk basically added all creatures en masse, I just took out the ones that are supported so there wasn't a conflict.

My game is working after adding one 'monster' folder to the Sexbound API main folder, and the other to the Teratophilia Defeat main folder that contains .patch files for any creature not already supported by the teratophilia mod.
I'm uploading the changed folders. Just replace your API and TeratoDefeat .paks/folders with these folders as the readme explains.

As Grunsk has said, modded creatures may still break your game, and will need to be added with a similar process manually. Thankfully, you should be able to copy/paste the code and file structure from his fix and monster folder of the mod in question, replace the creature names in the lua as the name of the .patch file, and voila, bug avoided. You may need to know how to unpack .pak files to do this. Link below will help with that.
https://community.playstarbound.com/threads/how-to-successfully-pack-and-unpack-pak-files.66649/

My only issue now is that you effectively cannot die as long as you can become a sexbound interaction node, since any creature newly supported from the base game will put you in a sex node state even if they don't mount you. Mushano's fix would account for that, but including it reintroduces invincibility and no energy regen once more. Having a death event fallback would be nice, but I'm not sure how to go about it, and I'm happy enough that the mod is at least functional.

 

 

 

Terato-Defeat Invincibility Bug Fix v1.0.7z

Edited by Xorath
Updated download to correct version

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...