Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Strive for Power

Fantasy Slave Management/RPG Erotic Game · By Strive4Power

Improved Random Portraits v1.0

A topic by Kyler2 created Aug 20, 2018 Views: 161,840 Replies: 170
Viewing posts 21 to 40 of 47 · Next page · Previous page · First page · Last page

Did a complete purge of everything in adddata/roaming/strive including saves as well as re-installing seemed to work

Since 5.19 its not automaticaly assigning body pictures when firsty selecting or when using random portrait button

(1 edit)

I haven't tested it with 0.5.19 yet. Unfortunately the mod is probably fairly version specific if they're going to keep changing the code the mod applies to.

Edit: Just downloaded 0.5.19, applied the mod,  no unexpected errors seen. Ran game again, did a quickstart,  starting slave got a random portrait as expected,  and random portrait button works. Same with slaves at slave trader.

Will need more information to know what's going wrong for you.  Are you starting a new game to test this? Are you applying any other mods? What errors show up on the console? (there's always some that aren't actually a problem, but some might indicate what's going wrong).  You can run the game from a command prompt and then the errors persist after the game closes.

just started it up again and this time its assigning both pictures, so god knows what the problem was.

(1 edit)

Started a new save and noticed the mod gave my MC a body image even though the portrait was still one of the default ones I had picked. Two ways to solve this, either the mod stops attributing body image to MC or it needs to be fixed to add the associated portrait as well. 

EDIT: The portrait tooltip is not showing hair color.

Yeah unfortunately the game doesn't do anything special when making a new slave that is the main character so i can't skip the random portrait generation for that. I could insert clearing the full body image to the game's code for the start. Forgot about this as i manually edited my save to remove the full body image from it. I kind of want to wait and see how they're maybe going to tweak some of this in the near future.

The current version of the mod, does not seem to play nice with 0.5.9a, as gives compilation error.

Also, side thing[not related to problems] for the portraits-bodies thing, I just use only the bodies folders in both respective and deleting the portraits in the portait folder and just having bodies duplicated[1 in portraits folder and 1 in bodies file] due to portaits-bodies not always lining up correctly.  Which works fine for me.

Unfortunately 0.5.19a is broken, mod won't work with it. Will have to wait for a fixed 0.5.19b.  The regex change mentioned in the changelog broke single-line variables added in a mod, which this mod depends upon. The "var randomportraits = null" line from my mod no longer gets inserted.

https://itch.io/t/292969/bug-0519a-regex-for-variables-broken

You can use the modpanel.gd i linked to on pastebin from there if you want to use 0.5.19a,  would need to replace it in both files and backup folders, otherwise changes will be lost after applying, making next apply also break. Hopefully fix is put into a 0.5.19b soon.

Okay. Sorry if someone asked this before or if I'm being too annoying, but;

Can we get a pregnant tag? Can we have a script that detects preg girls and update their pics with preg ones accordingly?

If needed, I can help with some coding, testing, or debugging. (I know python, java,  and C#)

This would be rather painful to implement with how the game currently works. I don't see myself implementing this.

(2 edits)

Too bad. 

Are you planning on adding any features to the mod? If so, what are they? Would it help you if I volunteered to help test or debug code?

Does it work for 19d? 

(Pick random portrait button doesn't show up. I've tried re-installing/ re-extracting the mod. Mod previously worked for 19c)

I've found the best way is delete the mod and the backup file install the gam, start it the reinstall the mod

So:

  1. Remove mod with game UI
  2. Delete all mod files, including the 'backup file'.  (What is the backup file? Where is it?)
  3. Delete game?
  4. Re-install game?
  5. Re-install mod

Is that correct?

1. maunualy delete or just remove from mod folder
2. do one for all mod files the backup folder is in the game folder delete it.
3. re-install game (sometimes you will need a clean install  which means deleting the old one or using a different folder)
4. start game ( this will create a new back up folder) then exit once your sure it works
5. put Mods back
6. restart then activate mod(s) and it should workk fine until the next update

This is what the game intends for you to be able to do:
1. Run game
2. Go to Mods
3. Click "reset"
4. Run game again, and should be back to stock.

Problem is some versions corrupted the backups folders.  While in other situations, if the current files are corrupt, then you can't open the mods dialog, or use the reset button anyways.  You can manually delete the files folder and replace it with a copy of the backup folder in the game folder, but the backup folder may be suspect.  Thus best bet is to wipe the game folder and extract it again. Or extract it to some new location and use that.

0. Optional: Delete and re-extract mod, to ensure it's not been corrupted.
1. Delete and re-extract game
2. Run game, go to Mods, and apply
3. Run game again, mod should work.

Step 0 is maybe needed if you edited the mod in some broken way.

i was assuming that stuff like rest had already been tried

So. I figured out the problem.

You can't put the mod on a version of Strive installed on a hard drive that has admin permission required to make changes. (This is often the default for C drive.)

I recently moved Strive to C, (which is my SSD) for faster loading. However, windows was giving me shit, asking for permission for everything, and being unable to make shortcuts for some insipid reason.  Checking the debug log, I saw the mod kept trying to make folders on the C drive, but failing. So, I tried moving the modded-strive back to my normal drive, and now the mod works again.

TLDR; mod only works if admin permission is granted by default.

Is it possible to make it somehow work with delayed portrait loading?

It does work with delayed portrait loading.

But how? For me its not working. I can only have one of this. If i have IRP then DPL is not working ;/ Should i do something with order? If yes, DPL should be "0"? Or IRP should be?

When you replaced with v1.0 (which I hope you did), did you extract it fresh, or did you just extract it over top the old one?  If you didn't extract it fresh to the mods folder (delete the old one first), then yeah that still wouldn't work, the v1.0 removes a file, if you just extract over you'd change basically nothing.

i didnt replaced. I'm pretty new so i just downloaded it about week ago or something. So what should i do to have this mods working? And should i make a new save? Or it will work anyway without it.

Re-download the mod, there's a new 1.0 from a few days ago when i released the delayed loading mod that specifically is compatible. so download it again, delete the old, and extract the new. Load up the game, and hit apply again.

Don't need to make a new save or anything.

Thanks! Its working now! : D

(1 edit)

So, I think I found a bug. This is inside the 'pick portrait' button in game. When I enter a search term, say, 'titsb', I get pretty good filtered results. However, every 20th or so entry has about ten images superimposed on one another.  I think they all fit the search results, but it's hard to tell with the text overlapping itself so much.

I'm not sure how provide a screenshot because my printscreen key doesn't work for this sub menu (it just records the main mansion menu).

Also, sometimes images or text will clip off the right side of the popup box, like the margin is set off screen, if that makes sense.

I'm playing the game windowed + maximized.

That would have nothing to do with this mod.  Also likely has nothing to do with the delayed portrait loading mod either.

Ok. I'll make a bug post.

can confirm the error is with m ain game as i had it with a vanilla install

(1 edit)

Question: The "random portraits" feature, is this something that you only have if you are a patreon? I'm using version 0.5.19d and all slaves except some special ones (like Emily, Cali etc) have no portrait at all and it seems there is no option to change that.

Edit: 10 seconds after posting this i found the feature xD

Kyler, 

did you change a line in newsexsystem.gd, func switchsides() ?
var person = panel.get_meta('person')
from
var person = globals.newslave(globals.allracesarray[rand_range(0,globals.allracesarray.size())], 'adult', 'male')

I ask because I was tinkering with newsexsystem.gd, and kept getting an error from switchsides(), no matter what i did. That is, until I copied your altered line into my mod path NSS.gd

Nope, you can look at th emod and see what files it modifies, newsexsystem.gd is not one of those.

(1 edit)

Okay, I see that now.

Yeah, it was a really weird bug that caused the sex interaction to break completely. I fixed it by including a line I found in newsexsystem.gd, func changesides(), after applying your mod. Bizarrely, the code from the vanilla game was causing the breakage.

Deleted 2 years ago

By "activated it in the mods menu" do you mean checked it, and clicked apply? Which results in the game exiting.

To get logs, run the game from a shell prompt.  it outputs to the shell all the messages.  If there's no Random Portrait button, then the mod did not apply correctly.  You might need to extract a fresh copy of the game, and apply the mod again, thus time running it from the shell, to see what errors might happen.  Some errors are normal though, so if anything can be worth while to run the game, and exit it once, just to see what normally happens.  Then run it again, apply the mod, and see if any different errors appear. I don't know if mods work on Mac as I haven't read of anyone trying and my only mac is a work laptop.

The game has it's own random portrait code, but it *only* uses race, so that's likely what you saw get applied.

Deleted 2 years ago

Short answer: Mods can't work on OSX at all currently, and probably for the foreseeable future.

The errors you've posted to me suggested it is not working at all on your machine, and maybe Mac's in general. Basically, the mod engine is trying to build a backup folder, and failing.  That's the first step to applying a mod, it makes a backup copy of all the files, then loads the backup copy of files, and applies the mod.  If it can't make the backup, it'll never actually apply a mod.

I just downloaded the OSX build of the game, and looking in that zip, I don't see how the mod engine could work at all on OSX.  The mod engine expects to find a "files" folder that contains all the .gd files, but the osx package of the game doesn't have that, all the resources seem to be packaged up in a pck file. So mod engine, tries to find script files in the files folder, and it doesn't exist, so it errors a bunch trying to backup things.  then when trying to apply the mod, it can't find the backup folder so errors some more and basically does nothing.

I'm not sure if there's some way to have the game not use a pck file on OSX or not? If it needs to be built differently or could be manually achieved? The mod engine could also potentially be able to detect things are in a pck file and instead iterate on the files inside there and be made to work, however without a mac to actually test this on, it'd be a bit difficult to achieve.

Deleted 2 years ago

it also needs to write out the .gd files and have the game use them, instead of what is in the pck file. so pre-including backup might help it write out the files initially if it at least lets it use existing files... but overall seems like it could be annoying to get working.

The mod didn't work originally when I put it in the mod list. The portraits did not show up at all, instead I moved it into the folders named "body" and "portraits" before the mod folder which seems to have worked. I'm not sure if I did something wrong, but if anyone has the same problem, that would be the solution.

Is this compatible with 5.21b? I get these errors in console, and the mod doesn't work. The 'pick random portrait' button appears in game menus, but does nothing and spits out more console errors.

Win 10 64 bit. Strive 5.21b. 

constants mod, randomportraits 1.0, delayedportraitloading1.0

It works just fine for me, check if its the modloader that got broken from enabling/disabling mods. Just do a fresh install of 5.21b, making sure you erase backups folder and try again, if the problem persists then it may be a problem with your randomportraits download, because on my side it works as intended. Same windows 10 64 bit, strive 5.21b.

Delayed portrait loading got integrated into 0.5.21, stop using it, it will definitely break things.   I haven't tested it, but their patch notes noted they pulled it into the official game.

Disabled the delayedloader mod. Got a similar console error.

Deleted 2 years ago
(1 edit)

    # Filter on Gender
    filteringPortraits = []
    for p in validPortraits:
        if p.genders.has(person.sex):
            filteringPortraits.append(p) #Add portrait that has required sex
    if portraitSettings.debug: print('Filtered on gender %s, resulted in %d portraits.' % [person.sex, filteringPortraits.size()])
    if !filteringPortraits.empty():
        if (filteringPortraits.size() < portraitSettings.minMatch):
            return
        validPortraits.clear()
        validPortraits = filteringPortraits

It's quite a small change in randomportraits.gd.  (If you get some indent compile errors, as I did, use spaces instead of indents).

There is no option in my mod to only check for race, that's maybe one of the game's options for its own simplistic random portrait code, which this mod completely replaces.

I think you could achieve this by changing minMatch to -1 ?  This would affect more than just the gender filtering though.  Right now, for race or gender, if the matches are below minMatch, it aborts.  If it's not, but the result is empty, then it ignores that filter.  so if these conditions are met:

  • minMatch setting set to 0
  • No matching portraits for gender

Then instead of aborting like it would with a minMatch, it will discard the filtering on gender.  It'll filter on it, see that the result is empty, and continue with the prior list.  It'll however apply this to Races too, so if it filters on race and gets 0, it'll revert to using all portraits, then trying to filter on gender,  if that's also 0, it'll continue with all portraits (or a set of portraits for a race if you had one).


I think a more ideal way to handle this would be to have settings for whether it aborts or ignores the filter when below minMatch for race, gender, and age.

I haven't been playing the game as much lately and thus not too active on the mod. Not sure if/when that might change.

What file would i have to edit (If its even possible) to make the mod work with "dark elf" rather than "darkelf"

portrait.gd

Line 21, you'd want to change like this I think, haven't tested.

filterRegex.compile('(?!dark ?)elf')

This will make sure it doesn't match just "elf" on files named "Dark Elf"

then later on you'd want to change line 26 like this, so it'll support both with and without spaces.

if file.findn(race.replace(' ','')) >= 0 || file.findn(race >= 0:

Entire file,  and again i didn't test these but should roughly work.

https://pastebin.com/raw/tZ2N9MJt

thanks for the hel, but it hasn't worked. could 'we' make fix on dark instead of dark elf?

Hi @Kyler2 there is a bug in hair color code.

for color in ['auburn', 'black', 'black_gray', 'black_white', 'blond', 'blue', 'brown', 'gray', 'green', 'jelly', 'orange', 'orange_white', 'purple', 'red', 'white']:
filterRegex.compile(color.replace(' ','') + "(?!skin)")
if filterRegex.search(file):
hairColors.append(color)

this code doesn't work with tags that your app uses because it uses capital letters. I fixed it for myself by converting string to lower in this line:
if filterRegex.search(file.to_lower()):

Also would be cool if tits and ass code had something like this in the end:
if titSizes.empty(): titSizes += ['small','flat','masculine','average','large','big','huge']
so that when none of the sizes are picked it would match any of them

Is there any way to add a tag for slave appearance such as unsavory, cute, average ext

Is this compatable with 5.24/5.24a?

I don't believe so. Most mods need to be somewhat heavily reworked to be compatible with the latest version.

Seems to be working fine

Just noticed this in portrait.gd

# Avoid matching DarkElf for Elf
filterRegex.compile('(?!dark)elf')
if filterRegex.search(file.to_lower()):
races.append(race)

I think it should be (?<!dark)

Deleted 4 years ago

Indeed, it seems to be wrong.  Not sure if this will be fixed, but you have my thanks since I derived some of my code from this code.

I can't say I read back through this thread any, but I would imagine it should be taken one step further.

(?<!dark\s*)

Sorry, I don't know what it means. I just copy-paste the code from '(?<!fe)male' parts

No worries.  The < means look backwords.  The \s means black space.  Without the \s DarkElf is treated as different from Elf, but Dark Elf is not.

I've downloaded and installed the mod... I think sucessfully. However, it is't working. There's just no portraits loading.Could it be becase I'm using the launcher, and can't see the load order? 
It says to use random portraits tho....

Here's a quick guide, it may cover stuff you already know.

This mod does not include any portraits, you need to download them separately and put them in the AppData's "portraits" or "bodies" folders.

This mod should be extracted from the zip archive into the AppData's "mods" folder.  Be sure that the path fits the form of "Strive/mods/<modname>/info.txt", as it will not install correctly if there are more or less folders in the path. (If the mod is in the folder named "randomportraits1.0", then it is probably wrong.)

Once in place, mods are applied to the game through the "Mods" panel located in the game's main screen. Select the mods to be applied, then press "Apply".  The game will attempt to apply the mods, but will not inform you of any problems that occurred.  Thus, mods need to be verified manually.  This mod can generally be verified by loading a progress, select a slave, open the Customization tab, and look for the "Random Portrait" button.  If present, then the mod has successfully been applied, though it may still conflict with other mods.

Alright.... When I try to extract the mod, it shows "randomportraits1.0", and I can not really find the info.txt box.
Ah, I am also using Windows 10, by the way. Sorry if this has nothing to do with it

"info.txt" is a file located inside mods that provides an explanation of the mod.  If you have "randomportraits1.0", then you have too many folders.  Look inside that folder, you will find the folder "randomportraits", and inside that folder you will find "info.txt".  You need to remove the contents of "randomportraits1.0" and put them into the AppData's "mods" folder.  That way AppData will have a path containing "Strive/mods/randomportraits/info.txt".

Alright, I think I understand. Hopefully it'll work

I am having the same problem but I have already extracted from the randomportraits1.0 folder

That's not really any info by which I can judge your situation.  Is there a "Random Portrait" button?  Are you using any other mods?  Are you using any portrait packs?  Does manually assigning pictures work?

(2 edits)

the problem is that there are no other mods, I am absolutely sure I have downloaded it correctly, I have activated it in the mods list, but there is no random portrait button, but manually setting portraits does work

and yes I am using a few portrait packs but they are all compatible with the mod

Okay, this is good information; however, based on that the mod was most likely not installed correctly, as the presence of the random portrait button is the simplest sign that the mod has been installed.  The fact that you can select portraits manually means that there is probably no issues on that side.

You have probably seen the install instructions I gave a few posts above this, please be sure that you have followed them carefully.  I'll try to give a detailed list of things to verify.

On windows, there should be a file path "C:\Users\USERNAME\AppData\Roaming\Strive\mods\randomportraits\info.txt".  If correct, the contents of that file will display on the right side of the panel when you hover the mouse over the mod name in the mod panel.

Press the "Active Mods" button on the mod panel.  Near the top left corner of the mod panel, the text "Active Mod List" should appear as part of a transparent popup, with "randomportraits" underneath. (The visibility of this popup can be fixed by my bugfix patch on the Strive Discord, but it will not effect whether the mod works)  If the mod is not listed, then try applying the mod.

In the folder containing game files, find and open the game file "Strive\files\scripts\mainmenu.gd" with any decent text editor.  Find the line "globals.constructor.randomportrait(startSlave)", it should be just below the line "func _on_slaveconfirm_pressed():".  If that line is not present, then the mod system did not add the mod to the game files.  You may need to move the Strive game files to a new location or change the permissions of the folder to allow the game to change it's own files.  A user once had an issue with permissions due to the game being located in the standard "Program Files" folder.

(1 edit)

nevermind it is fixed now, it being hidden might have had something to do with it... but can you really blame me?

Viewing posts 21 to 40 of 47 · Next page · Previous page · First page · Last page