You'd have to decompile the enemy you want to go from a -crpy file to a -rpy.i just want to put Kira noir in the game, but i don't understand where to find the .rpy enemy to edit and save.
i'm following the steps, but i aways get this error when the encounter starts:You'd have to decompile the enemy you want to go from a -crpy file to a -rpy.
If you just want to replace a given enemy with Kira (meaning the enemy keeps the same name, for example, Laura), you'd just have to tweak the code (mostly images and flavor text, unless you want a unique attack pattern for the enemy)
If you want to add Kira as a new enemy while keeping the old one, shundi82 has the steps in this mini guide: https://f95zone.to/threads/hero-corruption-2-v1-75-diogaoo.104900/post-17546752
no worries buddy, i've failed to make my custom enemy to work '-'Had some free time last night and today and decided to try making my own enemy. Honestly, the hardest part is finding porn that has the quality and variance that I would like from an encounter tbh. New enemy is Kira (sorry other guy making one with same name), she is a shemale, exists in the Forest map, has like 2 BJ phases, 2 anal phases, facial climax scene, and an anal then facial bad end if she beats you 5 times. I had to add a temp variable tracking player defeat count to the scripts that gets saved, so this requires a new run if you wanna try it. Installing should just be throwing the game folder in the HC2 directory and overwriting the files. Made for version 1.80.
I hope google docs sharing is allowed, this is literally my first ever post so idk. Link:
Google Drive View attachment 5349431
Kira noir is hot, I can try making an enemy of her too. If you have a vid or photoset in mind as the source material you can DM me a link. Otherwise, I saw some handjob/blowjob vids that looked usable.n
no worries buddy, i've failed to make my custom enemy to work '-'
i'm using this site to get the galleries, high quality and alots of pornstars.Kira noir is hot, I can try making an enemy of her too. If you have a vid or photoset in mind as the source material you can DM me a link. Otherwise, I saw some handjob/blowjob vids that looked usable.
If anyone tries that other enemy I made lmk if it has issues, ran perfect for me but I could've forgotten something.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/Enemies/Noir.rpy", line 287, in script
jump Noir17
ScriptError: could not find label 'Noir17'.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/Main/base.rpyc", line 13, in script call
File "game/Enemies/Noir.rpy", line 287, in script
jump Noir17
File "C:\Users\João Lázaro\Desktop\HeroCorruption2-1.80-win\renpy\ast.py", line 1705, in execute
rv = renpy.game.script.lookup(target)
File "C:\Users\xxxxx\Desktop\HeroCorruption2-1.80-win\renpy\script.py", line 1103, in lookup
raise ScriptError("could not find label '%s'." % str(original))
ScriptError: could not find label 'Noir17'.
Windows-10-10.0.26100 AMD64
Ren'Py 8.3.4.24120703
1.80
Thu Oct 16 23:55:58 2025
Were you able to add the enemy to the Gallery?Had some free time last night and today and decided to try making my own enemy. Honestly, the hardest part is finding porn that has the quality and variance that I would like from an encounter tbh. New enemy is Kira (sorry other guy making one with same name), she is a shemale, exists in the Forest map, has like 2 BJ phases, 2 anal phases, facial climax scene, and an anal then facial bad end if she beats you 5 times. I had to add a temp variable tracking player defeat count to the scripts that gets saved, so this requires a new run if you wanna try it. Installing should just be throwing the game folder in the HC2 directory and overwriting the files. Made for version 1.80.
I hope google docs sharing is allowed, this is literally my first ever post so idk. Link:
Google Drive View attachment 5349431
what's the resolution for the videos compatible?Were you able to add the enemy to the Gallery?
I have been able to add new enemies, weapons, item/weapon mechanics, areas, change mid-battle images into sex videos but I have been unable to add any new enemy to the Gallery. The game throws weird errors which doesn't make sense.
Shundi82 (the very helpful person who outlined the steps for adding new enemy in our previous discussions) did not encounter any Gallery error. I guess since I was using UnRen to decompile and extract, the error was coming out of it
I didn't even bother trying cus I just threw that enemy together real quick. I'll probably make another enemy and then I can try adding them to the gallery in like 2 days or so. I never looked at that guy's guide but it's probs outdated so I'll just see if I can figure it out.Were you able to add the enemy to the Gallery?
I have been able to add new enemies, weapons, item/weapon mechanics, areas, change mid-battle images into sex videos but I have been unable to add any new enemy to the Gallery. The game throws weird errors which doesn't make sense.
Shundi82 (the very helpful person who outlined the steps for adding new enemy in our previous discussions) did not encounter any Gallery error. I guess since I was using UnRen to decompile and extract, the error was coming out of it
you do the creations manually or with some software? (Ren'py editors / creators).I didn't even bother trying cus I just threw that enemy together real quick. I'll probably make another enemy and then I can try adding them to the gallery in like 2 days or so. I never looked at that guy's guide but it's probs outdated so I'll just see if I can figure it out.
I just decompile the rpyc files, throw the ones I wanna edit into Visual Studio or whatever IDE and I do it manually. I use the other enemy files as reference when adding like special attacks or whatever. Never used renpy before and rarely code in python, but just learning other enemy files is how I figure stuff out.you do the creations manually or with some software? (Ren'py editors / creators).
i'm a total novice on Ren'py, and idk how to create new maps, add certain attacks like the Grapples from mountains and etc
I added my Kira enemy into the gallery. To keep stuff organized I just made my own subsection in the locations menu to keep all my modded chars in one place instead of tacking them on to existing locations in the gallery menu. Everything is in screens.rpyc.Were you able to add the enemy to the Gallery?
I have been able to add new enemies, weapons, item/weapon mechanics, areas, change mid-battle images into sex videos but I have been unable to add any new enemy to the Gallery. The game throws weird errors which doesn't make sense.
Shundi82 (the very helpful person who outlined the steps for adding new enemy in our previous discussions) did not encounter any Gallery error. I guess since I was using UnRen to decompile and extract, the error was coming out of it
Like the normal images 1400x840 if I remember correctly, you can further reduce it for borders. The preliminary one that I did looked like this: https://f95zone.to/threads/hero-corruption-2-v1-75-diogaoo.104900/post-17669882what's the resolution for the videos compatible?
Ah, thanks, I will check it out when I return home. Just for pointers, what tool did you use to decompile and extract? (I was using Unren, which led to decompiled .rpy throwing errors)I added my Kira enemy into the gallery. To keep stuff organized I just made my own subsection in the locations menu to keep all my modded chars in one place instead of tacking them on to existing locations in the gallery menu. Everything is in screens.rpyc.
Line 2009 makes a new button that leads to the modded chars gallery.
line 2014 is making a new screen and line 2024 is the code that adds a button that opens a char's profile (gallery) page.
if you wanna add your char to a location's gallery screen you basically just need line 2024-2026.
Note that the images in archive.rpa need to follow the naming scheme the dev set up as well or the gallery images won't load properly.
nameX.webp for normal encounter images and pnameX.webp for Bad End images where name is your character name and X is the image number. Character buttons in the gallery menu also require nameicon.jpg, a 200x124 pixel size image, to be in your characters image folder in archive.rpa.
My Kira enemy and files it comes with have been updated to add Kira to the gallery.
Google Drive
on line 1615 theres an error a that someone posted a picture of a little higher up for the 1.80 versionIn the meantime, here's some modifications to make the game more of a sandbox. Simply paste the [game] folder on the same directory as the .exe of the game. Replace all files (script.rcpy, base.rcpy, city.rcpy and techniques.rcpy) and it should work!
Changes include (Game version 1.75 & 1.80):
GENERAL:
- 300 personality points from the start
- Tons of gold from the start
- 10000 of each material from the start
- All areas unlocked from the start
- Bad endings don't end the run
BASE:
- Rest restores everything to max
- BATTLE, EVENT and ARENA SELECTOR (battling after 23:00 instead might cause unintended effects)
- On top of that, inside the Battle->Extras yo'll find [AllAdds] and [Corruption], to set all addictions or corruption to a given value
CITY:
- City available from day 1
- Marie event can happen more than once in a playthrough
- All jobs available everyday for as many times as you want
- Can chose a random arena fighter
- Refining works 99.99% of the time and automatically goes to +20
- All scrolls for sale are T4
- Training is always 99% efficient
Enjoy!
I use an online tool atLike the normal images 1400x840 if I remember correctly, you can further reduce it for borders. The preliminary one that I did looked like this: https://f95zone.to/threads/hero-corruption-2-v1-75-diogaoo.104900/post-17669882
Ah, thanks, I will check it out when I return home. Just for pointers, what tool did you use to decompile and extract? (I was using Unren, which led to decompiled .rpy throwing errors)