Ren'Py IA2: Cock Hero Adventure [v.2.4.9] [Tribe]

4.40 star(s) 7 Votes

GamerDaddy

Well-Known Member
Feb 6, 2023
1,973
1,184
Got this error. On ignoring, the video keeps looping.

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/scripts/adventure.rpy", line 2211, in script call
call expression enemy_personality + "_greeting_label" from _call_expression
File "game/scripts/adventure.rpy", line 2351, in script call
call CH_start_label from _call_CH_start_label
File "game/scripts/adventure.rpy", line 2817, in script
python:
File "game/scripts/adventure.rpy", line 2821, in <module>
clip_duration = Duration_Of_Clip(shown_image)
File "game/scripts/imager_app.rpy", line 258, in Duration_Of_Clip
local_track_duration = (float(track.duration)/1000)
TypeError: float() argument must be a string or a number, not 'NoneType'

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "game/scripts/adventure.rpy", line 2211, in script call
call expression enemy_personality + "_greeting_label" from _call_expression
File "game/scripts/adventure.rpy", line 2351, in script call
call CH_start_label from _call_CH_start_label
File "game/scripts/adventure.rpy", line 2817, in script
python:
File "E:\Drivers\hide\iso\ImagerApp2-2.4.9.Public-pc\renpy\ast.py", line 1138, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "E:\Drivers\hide\iso\ImagerApp2-2.4.9.Public-pc\renpy\python.py", line 1122, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/scripts/adventure.rpy", line 2821, in <module>
clip_duration = Duration_Of_Clip(shown_image)
File "game/scripts/imager_app.rpy", line 258, in Duration_Of_Clip
local_track_duration = (float(track.duration)/1000)
TypeError: float() argument must be a string or a number, not 'NoneType'

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.3.23091805
Imagine Erotic Application 2: Cock Hero Adventure 2.4.9.Public
Tue Jun 11 02:38:53 2024
ive never seen this error
 
Oct 11, 2020
33
34
Got this error. On ignoring, the video keeps looping.

I'm sorry, but an uncaught exception occurred.

File "game/scripts/imager_app.rpy", line 258, in Duration_Of_Clip
local_track_duration = (float(track.duration)/1000)
TypeError: float() argument must be a string or a number, not 'NoneType'
If you are using my additional media content distribution "CH - Red on Red":
You don't have permission to view the spoiler content. Log in or register now.
My apologies for the oversight of this file in the packages, will reupload correct full package to OP ASAP. Files with length 00:00.00 will cause this error. :D
If you are starting a new game:
You don't have permission to view the spoiler content. Log in or register now.
 
Last edited:
  • Like
Reactions: Tribe and anchit3

anchit3

Newbie
Jul 10, 2017
27
8
If you are using my additional media content distribution "CH - Red on Red":
You don't have permission to view the spoiler content. Log in or register now.
My apologies for the oversight of this file in the packages, will reupload correct full package to OP ASAP. Files with length 00:00.00 will cause this error. :D
If you are starting a new game:
You don't have permission to view the spoiler content. Log in or register now.
That solved it. (y)
 

TittyLuvr1334

Active Member
Aug 4, 2018
693
511
Two ideas I've had for the Img/video player aspect - which have probably already been considered and/or addressed

1 - an accelerating tempo metronome
so it take the minimum stated BPM of metronome for videos, (X) and accelerates steadily to the maximum speed BPM for videos (Y) over the course of time equal to maximum length listed for video display (Z).

2 - an option to have videos play their full length - so that if you have vids lasting say 90 seconds, you have a steady metronome for the whole 90 secs before moving on to another video/img.
 
Oct 11, 2020
33
34
1 - an accelerating tempo metronome
so it take the minimum stated BPM of metronome for videos, (X) and accelerates steadily to the maximum speed BPM for videos (Y) over the course of time equal to maximum length listed for video display (Z).
Cool idea. IIRC there is a large metronome update in the works...can't say I recall all the details :whistle:
 
  • Like
Reactions: Tribe

Tribe

Member
Game Developer
May 5, 2021
225
490
Two ideas I've had for the Img/video player aspect - which have probably already been considered and/or addressed

1 - an accelerating tempo metronome
so it take the minimum stated BPM of metronome for videos, (X) and accelerates steadily to the maximum speed BPM for videos (Y) over the course of time equal to maximum length listed for video display (Z).

2 - an option to have videos play their full length - so that if you have vids lasting say 90 seconds, you have a steady metronome for the whole 90 secs before moving on to another video/img.
I had to give this one a good think. Thank you for your suggestions!

Option 1 would be pretty awesome to have in the game if I knew how it could be possible. With Z being a random number I would have to find a way to procedurally generate pauses between playing a sound clip with a fixed size that may or may not exceed the length determined at the end (which would result in overlapping tracks if the beat is fast enough). If someone provided a solution I'd be up for it, but I simply don't see how this can be done in Ren'Py. Taking a fixed track and adjusting it's speed would be out of the question for several reasons.

Option 2 is doable. It's been considered, of course... As I've gone to great lengths to avoid playing whole clips. I can no longer recall the reason I didn't do this to begin with, but I trust it was something admirable. I'll put this one on the list and see about making this happen. :coffee:
 

SAHC

寝取られ
Uploader
Donor
Aug 23, 2017
1,514
8,920
Had to switch over to a new PC, and for some reason I can't download Number1fans pack 1 and 2 even though it's up; also pack 14 is down.
 

TittyLuvr1334

Active Member
Aug 4, 2018
693
511
I had to give this one a good think. Thank you for your suggestions!

Option 1 would be pretty awesome to have in the game if I knew how it could be possible. With Z being a random number I would have to find a way to procedurally generate pauses between playing a sound clip with a fixed size that may or may not exceed the length determined at the end (which would result in overlapping tracks if the beat is fast enough). If someone provided a solution I'd be up for it, but I simply don't see how this can be done in Ren'Py. Taking a fixed track and adjusting it's speed would be out of the question for several reasons.
don't make Z a random number
Especially if it's easier.
Equate Z to the input integer under preferences for "maximum length for video display".

So if the user's preference sets them as I have (Min length for vids 17 seconds / Max length 26 second), then the Option 1 as presented when this occurrence appears randomly, it always lasts for 26 seconds - starting at the bare minimum metronome bpm set in the preferences, and escalates to the maximum; perhaps reaching its zenith at about 90% through the video. So for my preferences, it would start at 60 bpm and max out at 180 (or 240 for Favorited) and that maximum would hit right about the 24 second mark and end at 26 seconds.

Im thinking it might be easier to set it up that way - but I really don't know. Was just my initial concept.
 
Oct 11, 2020
33
34
No matter how dark the night, morning always comes, and our journey begins anew.

Wave 15 is here...don't forget your cornstarch.

CH Latex by Bodybuilder
CH Latex 2 by Bodybuilder
CH Levels 2 by milovana
CH Levels 3.1 by milovana

You don't have permission to view the spoiler content. Log in or register now.
 
  • I just jizzed my pants
Reactions: Tribe

Tribe

Member
Game Developer
May 5, 2021
225
490
don't make Z a random number
Especially if it's easier.
Equate Z to the input integer under preferences for "maximum length for video display".

So if the user's preference sets them as I have (Min length for vids 17 seconds / Max length 26 second), then the Option 1 as presented when this occurrence appears randomly, it always lasts for 26 seconds - starting at the bare minimum metronome bpm set in the preferences, and escalates to the maximum; perhaps reaching its zenith at about 90% through the video. So for my preferences, it would start at 60 bpm and max out at 180 (or 240 for Favorited) and that maximum would hit right about the 24 second mark and end at 26 seconds.

Im thinking it might be easier to set it up that way - but I really don't know. Was just my initial concept.
What I meant by random wasn't to take the information and then randomly determine Z for playback, I meant that I (the coder) have no idea what the duration of the clip will be.

That said, I may have come up with an idea. It'll be really complicated... And perhaps a little crazy, but it might work. I'll add this to the list for now. My hope is that you understand that I love this idea, and would like to see it brought into reality. :coffee:Cheers
 
Last edited:
Oct 11, 2020
33
34
Death is inevitable. Our fear of it makes us play safe, blocks out emotion.
It's a losing game. Without passion, you are already dead.


Wave 16 takes things to the motherfucking MAX

CH - Max by DaveJalf
CH - Max 2 by DaveJalf
CH - Max 3 by DaveJalf
CH - Max Mini by DaveJalf
(If anybody has Max Mini 2 and can share...I will add it in)

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

DigitalMan

Member
Jul 26, 2018
115
195
Kept you waiting, huh? Well, unfortunately, I've still not really found the drive to work on my level drain mod too much, so I don't have a product for you guys that's anywhere near complete. I have been thinking of rectifying that, but for now, here's my ultra beta version of the mod, which isn't even half complete, but provides a bit of a skeleton for everyone to understand what the mod will be like at the base.

IMPORTANT NOTES:
- You can turn this mod on when you start a new adventure. You'll be prompted to turn leveling on, just click yes. I think that the game would function completely normally if you click no, as I made it so that level drain mode is a separate thing, but I haven't actually tested that.

- To access the level drain, you currently have to click the cum button, and it still puts a cum marker on the succubus/photo/video you "came" to, so I recommend playing around with this on a clean copy of ia2, so you don't mess up the cum stats on your actual copy. The succubi also act as if you came, which doesn't really fit in hindsight, but I did add new dialogue to make it level drain centric, even though it still doesn't really make that much sense (unless you guys are such badasses that you cum and then immediately get back to jerking off, which... well, congrations, you are winrar(?)).

- Currently, I've only written lines for bold and bratty succubi... but I at least wrote a lot for them... Bratty succubi have a sort of findom angle to it, especially with degrading content on. It's not too extreme, but let me know how you feel about it if you don't like it. Bold succubi have the same confident, domineering attitude towards the player that Tribe originally wrote them as having, at least I think so. All the others have the exact same placeholder lines...

- Once you get to the draining menu, because I am silly, it looks identical to the regular succubi battle screen, but the background is the one for when you cum, cause it uses the same button (cause I'm silly). At this point, click the regular blue button to continue. Clicking the cum button again just resets the event, I think. Might cause you to get stuck in a weird Twilight Zone, maybe. Just reset if that happens, but it's kinda fun too.

- btw, for testing I made it so that running from the cock hero videos doesn't upset the succubi. I just felt bad about doing that while testing. That modification is still in this thing. Also for testing, the exp gain is pretty crazy high. Bratty succubi, which give the most, can take you from level 5 to level 45, with a max level of 99.

- In case you wanna test this out alongside dialogue lines that you've rewritten in dialogue.rpy to fit your tastes, the relevant dialogue is smack dab at the bottom of the included dialogue.rpy file. Just copy from "Drain Dialogue", or line 2228 down, and plop it at the bottom of a copy of your main dialogue file. Please don't use this for your main installation of IA2, I'm begging you. It's not even complete enough to be called incomplete...

NOTES: INSTALLATION
- That's probably it. Just unzip the 7zip file I've attached, and plop it in a fresh IA2 folder, in the same folder as the exe. Replace when prompted, the FRESH IA2 files, in your FRESH IA2 install. Seriously, I will cry if you use this monstrosity on your real installation.

FUTURE FEATURES (?):
- I'm planning on adding a dedicated level drain button(obviously), as well as enemy interactions that gradually nudge the player towards letting the succubi drain them. Basically, my idea is that the higher your level, the higher the chance the succubi will cut the session short, and try to coerce you into letting them drain you.

- Gotta rework how all this stuff works on the backend. If you look at how the dialogue is handled, and have any coding knowledge, I think that you will be sad. Just poignantly sad. I started this not even knowing the basics of coding, so I've still got a long way to go with only a few months of non-serious learning under my belt, but even just by knowing the basics, I can see that my code is god-awful. Don't know if it makes the game run terribly or not, but it just looks and feels untidy.

- Everything else, though, kinda sorta almost maybe works. The levels themselves, level drain, level based spice, gaining spirit based on your level, all of that stuff is pretty much in the game, and works somewhat well. Definitely needs some cleaning, but it works. There's even a thing where you won't be able to run away from succubi who you let drain you if you don't have a high enough spirit. It's kinda superfluous though, I'm thinking of making it so that all succubi drain levels and spirit in varying amounts, with one or two personality types draining only levels, lewd succubi draining only spirit and never levels, and the others will drain a certain amount of levels as well as spirit. Thus, you could get away with letting one succubi type drain a few levels for some fun, but others will be a dangerous gamble, and you might be too weak to resist the succubi draining the rest of your precious levels.. Adds a bit of thrill, maybe.

All that aside, sorry about the suuuper long wait. I wasn't particularly busy or anything, just didn't particularly care about this project. After all, it's hard to work on, cause I was and still mostly am learning not just Python, but coding in general AS I'm working on this, so it's a real brain scrambler, and was rather unpleasant most of the time. Still, it's something I do kinda want to see made, and, well, I'm the one making it, ain't I? So I have no other option. I'll try to work on it steadily, but I can't promise anything. If I finish a feature or clean something up in a way I think is particularly neat, I'll try to remember to give you all a shout, cause while I'm sure none of you were waiting on me with bated breath, I'm sure that at least a few of you still vaguely remember how I mentioned I was gonna make this mod, and were somewhat intrigued.

Enjoy the beta (if it even works), and if anybody comptent takes one look at my code and instantly knows exactly how and why it's an abomination, I'd appreciate any pointers you might feel compelled to give :D
 

DigitalMan

Member
Jul 26, 2018
115
195
NOTES: INSTALLATION
- That's probably it. Just unzip the 7zip file I've attached, and plop it in a fresh IA2 folder, in the same folder as the exe. Replace when prompted, the FRESH IA2 files, in your FRESH IA2 install. Seriously, I will cry if you use this monstrosity on your real installation.
Forgot to mention, I think I made this for 2.4.7, not the current version... Don't know if that'll cause any issues, but since it's mostly the same files, it should work fine, maybe, I think... I'll fix up a mod version for 2.4.9 in a little bit, probably after I clean it up enough for a proper beta. Just, er, hold on, alright?

edit: There may also be some edits I made to some text left in, so if the succubi say something off, don't worry about it... I'll put it back to normal for the proper release, alright?
 

GamerDaddy

Well-Known Member
Feb 6, 2023
1,973
1,184
Forgot to mention, I think I made this for 2.4.7, not the current version... Don't know if that'll cause any issues, but since it's mostly the same files, it should work fine, maybe, I think... I'll fix up a mod version for 2.4.9 in a little bit, probably after I clean it up enough for a proper beta. Just, er, hold on, alright?

edit: There may also be some edits I made to some text left in, so if the succubi say something off, don't worry about it... I'll put it back to normal for the proper release, alright?
when you get it to a proper state i will give it go m8
 

Tribe

Member
Game Developer
May 5, 2021
225
490
Kept you waiting, huh? Well, unfortunately, I've still not really found the drive to work on my level drain mod too much, so I don't have a product for you guys that's anywhere near complete. I have been thinking of rectifying that, but for now, here's my ultra beta version of the mod, which isn't even half complete, but provides a bit of a skeleton for everyone to understand what the mod will be like at the base.

IMPORTANT NOTES:
- You can turn this mod on when you start a new adventure. You'll be prompted to turn leveling on, just click yes. I think that the game would function completely normally if you click no, as I made it so that level drain mode is a separate thing, but I haven't actually tested that.

- To access the level drain, you currently have to click the cum button, and it still puts a cum marker on the succubus/photo/video you "came" to, so I recommend playing around with this on a clean copy of ia2, so you don't mess up the cum stats on your actual copy. The succubi also act as if you came, which doesn't really fit in hindsight, but I did add new dialogue to make it level drain centric, even though it still doesn't really make that much sense (unless you guys are such badasses that you cum and then immediately get back to jerking off, which... well, congrations, you are winrar(?)).

- Currently, I've only written lines for bold and bratty succubi... but I at least wrote a lot for them... Bratty succubi have a sort of findom angle to it, especially with degrading content on. It's not too extreme, but let me know how you feel about it if you don't like it. Bold succubi have the same confident, domineering attitude towards the player that Tribe originally wrote them as having, at least I think so. All the others have the exact same placeholder lines...

- Once you get to the draining menu, because I am silly, it looks identical to the regular succubi battle screen, but the background is the one for when you cum, cause it uses the same button (cause I'm silly). At this point, click the regular blue button to continue. Clicking the cum button again just resets the event, I think. Might cause you to get stuck in a weird Twilight Zone, maybe. Just reset if that happens, but it's kinda fun too.

- btw, for testing I made it so that running from the cock hero videos doesn't upset the succubi. I just felt bad about doing that while testing. That modification is still in this thing. Also for testing, the exp gain is pretty crazy high. Bratty succubi, which give the most, can take you from level 5 to level 45, with a max level of 99.

- In case you wanna test this out alongside dialogue lines that you've rewritten in dialogue.rpy to fit your tastes, the relevant dialogue is smack dab at the bottom of the included dialogue.rpy file. Just copy from "Drain Dialogue", or line 2228 down, and plop it at the bottom of a copy of your main dialogue file. Please don't use this for your main installation of IA2, I'm begging you. It's not even complete enough to be called incomplete...

NOTES: INSTALLATION
- That's probably it. Just unzip the 7zip file I've attached, and plop it in a fresh IA2 folder, in the same folder as the exe. Replace when prompted, the FRESH IA2 files, in your FRESH IA2 install. Seriously, I will cry if you use this monstrosity on your real installation.

FUTURE FEATURES (?):
- I'm planning on adding a dedicated level drain button(obviously), as well as enemy interactions that gradually nudge the player towards letting the succubi drain them. Basically, my idea is that the higher your level, the higher the chance the succubi will cut the session short, and try to coerce you into letting them drain you.

- Gotta rework how all this stuff works on the backend. If you look at how the dialogue is handled, and have any coding knowledge, I think that you will be sad. Just poignantly sad. I started this not even knowing the basics of coding, so I've still got a long way to go with only a few months of non-serious learning under my belt, but even just by knowing the basics, I can see that my code is god-awful. Don't know if it makes the game run terribly or not, but it just looks and feels untidy.

- Everything else, though, kinda sorta almost maybe works. The levels themselves, level drain, level based spice, gaining spirit based on your level, all of that stuff is pretty much in the game, and works somewhat well. Definitely needs some cleaning, but it works. There's even a thing where you won't be able to run away from succubi who you let drain you if you don't have a high enough spirit. It's kinda superfluous though, I'm thinking of making it so that all succubi drain levels and spirit in varying amounts, with one or two personality types draining only levels, lewd succubi draining only spirit and never levels, and the others will drain a certain amount of levels as well as spirit. Thus, you could get away with letting one succubi type drain a few levels for some fun, but others will be a dangerous gamble, and you might be too weak to resist the succubi draining the rest of your precious levels.. Adds a bit of thrill, maybe.

All that aside, sorry about the suuuper long wait. I wasn't particularly busy or anything, just didn't particularly care about this project. After all, it's hard to work on, cause I was and still mostly am learning not just Python, but coding in general AS I'm working on this, so it's a real brain scrambler, and was rather unpleasant most of the time. Still, it's something I do kinda want to see made, and, well, I'm the one making it, ain't I? So I have no other option. I'll try to work on it steadily, but I can't promise anything. If I finish a feature or clean something up in a way I think is particularly neat, I'll try to remember to give you all a shout, cause while I'm sure none of you were waiting on me with bated breath, I'm sure that at least a few of you still vaguely remember how I mentioned I was gonna make this mod, and were somewhat intrigued.

Enjoy the beta (if it even works), and if anybody comptent takes one look at my code and instantly knows exactly how and why it's an abomination, I'd appreciate any pointers you might feel compelled to give :D
Hey, this is sounding even more awesome than before!
I've finished remaking the combat system and developing the skill-tree now. I want you to know that the game's design still focusses on building and losing 'skill', so your mod will not conflict with the game's base design for the foreseeable future (conceptually). You're right about those placeholders for bold etc, and how theyre not very clear. Rest assured that I've revamped the dialogue as well. In case you're wondering, bold succubi are to-the-point and don't have time to spend on formalities, whereas serious succubi are the opposite such that they are the type to invite you in for tea and savor every moment. (I should probably make some kind public document for this...) I would change serious over to MILF or something like that but I didn't want to age/gender lock the personality.
Keep up the good work! I'm cheering for you :coffee:
 
4.40 star(s) 7 Votes