Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Strive: Conquest

A successor to first Strive For Power game, currently at alpha stage · By Strive4Power

Conquest Improved Random Portraits port for v0.6.1c

A topic by BearWithTopHat created Oct 01, 2021 Views: 18,148 Replies: 30
Viewing posts 1 to 11
(20 edits) (+5)

I will not be able to continue updating this mod for the foreseeable future, so please check out the tweaks mod by Zeltop, as a substitute. That mod also changes things other than portraits, so feel free to download this port and manually migrate it to the most recent version of strive conquest if you only want the portrait functionality. You can find code I edited in the conquest src/gui modules by looking for "# Random Portrait" in code (without the "). Best wishes, Bear.

I've done a very basic port of Improved Random Portraits to conquest. There is a button in the customization pane to generate portraits for a character, and it auto generates them whenever a new character is created, i.e when the slave/hire market is repopulated. 

This port is for v0.6.1c of conquest, and it requires you to have portraits that meet the naming requirements, you can find many of these packs at the Portrait Pack board of the original Strive, any that worked with the original mod will work with this port.

The basic instructions are as follows: 

1. Download the mod.

2. drag and drop the "conquestrandportraits" folder to the Users/{your_username}/AppData/Roaming/Strive for Power 2/mods folder.

3. drag and drop the two folders src and gui_modules into the strive for power install location (where the Strive for power 2.exe is)

4. done

Bonus step: Check out the tweaks mod by Zeltop, it adds in changes to random portraits as well as other changes to the game that you may enjoy. The mod is NOT required for Conquest Random Portraits (this mod), but you should check it out anyway.

If you want to further modify it go ahead. If you encounter errors post here or on the discord in 'mods'. If any of the original authors have any issue with me porting this please let me know and I'll take it down. I just ported it for myself and figured some other people playing conquest would want it.

This mod does not need to be activated in the in game mod organizer to work. Also be aware I'm not affiliated with the makers of strive, therefore sometimes updates will be delayed after the newest version of strive comes out. If you wanna try and do it yourself feel free but I will usually have it out within a week of the new strive.

v0.6.0 - updated to strive 0.6.1c

v0.5.9 - updated to latest version

v0.5.8 - Fixed version error

v0.5.7 - updated to latest version, merged some recommended changes

v0.5.6 - Fixed user defined portrait folders, and regen cache after changing of user defined portrait folder

v0.5.5 - updated to strive 0.6.0b 

v0.4.5 - updated to strive 0.5.5, fixed potential game breaking error if installed incorrectly.

v0.4.5 - updated to strive 0.5.5

v0.4 - fixed issue with body image being placed as icon image, reduced clutter in code. - List of bugs is empty, if someone finds any let me know so I can fix them, otherwise this will be the last update until the next version of strive hits.

v0.3 - 'fixed' caching issue, notes in description above.

v0.2 - fixed bugs with portrait weight, should now correctly weigh portraits based on Race->Sex->Age->Hair_Colour->Skin_Colour

V0.1 - first port

(+1)

Just an FYI, the Mod link goes to the prior version.

Cheers

Thanks for the heads-up, hadn't noticed strive updated. Updated the mod and link now.

Best mod for Strive 1 now on Strive 2!

(2 edits)

It seems like most of the links in the portraits page are dead now. Unless I'm missing something?  Edit: Never mind. There seem to some but you gotta dig. XD


Edit 2: My portraits and body folders are in a different location... is this effecting the mod's ability to generate random portraits? It doesn't seem to be working. I can set them myself but the random generation isn't working.

(2 edits)

how is it not working? it works for me... Not even humans? it's possible, that there are no valid pictures for a race/look that's why it isn't working.

Define different location. it should be in the appdata/strive for power 2 and in their separate folders.

Edit: oh, i see, custom folder...

Yeah. My C drive is tiny so most my larger files and games and such are on my D drive. So instead of being in 'app data' the portrait and stuff are actually in a folder on my D drive. I've told Strive to look for them there. It finds them just fine, but the 'randomizer' doesn't work. Even when I click random on the character screen it doesn't do anything and nothing auto genned with a picture. I can manually select them, but that's it.

well, i guess you can test it, by placing some human portraits in the default directory and starting a new game as a test. if the slaves in aliron have portraits, then it's that.

(+1)

I had thought I fixed this bug in the first week I released the mod, but I guess it must have slipped my mind. Uploaded the fix, test and let me know if you encounter any issues. I don't actually use different user locations so I probably wont test this functionality normally.

It appears to be working now. Thank you! Sorry for the hassle and I appreciate the quick fix.

Doesn't seem to work for me.  This is what I get when I try it.

SCRIPT ERROR: _init: Invalid get index 'portraitCache' (on base: 'Node (globals.gd)').

          At: user://mods/conquestrandportraits/randomportraits.gd:7

What was the method you used to install? That error usually indicates you didn't drag and drop the src and the gui_modules folder over to the strive install location.

the issue I'm having at the moment is when i drop the two files in the main location, when start playing a new game it generates a slave load-out instead of a MC?

(1 edit)

I'm not sure I follow, the issue you are having is that after installing the mod - by putting the two folders into the location of the exe, and by putting randconquest folder into the appdata location - when you create a new game, it gives you the screen to create a starting slave instead of creating your master character? The screens are very similar so make sure by looking at the top left it says master character instead of slave. Otherwise I'm not sure, this mod never touches slave creation or loadout, or the gui pages associated with slave creation. Have you tried proceeding with the creation and playing the game? -- oh and make sure you have the most recent version of strive, otherwise the mod will break stuff.

(+2)

With version 0.6.1.a you can no longer proceed after a battle. The victory screen never loads and you have to force close the game

It also breaks the save. The notice boards never refreshes and the slave markets are always empty. Even after removing the mod.

(1 edit)

I found that was the problem in the base game, not this mod.... This mod actually fixed those problems for me, but I do run another mod with this one

I have no other mod. After reinstalling the game to get rid of the changed files and starting a new save, it works as it should. Therefore I'm sure its 's this mod

(+1)

Latest version was just uploaded, try it now. Remember: if the mod is for a different version of conquest then it will cause bugs in your game. Those bugs can potentially cause save breaking errors.

(1 edit) (+1)

Yeah, i knew the danger. Tried it anyway and hoped for the best. Since it didn't work, i just posted all the problems i found, so you know what to check when updating.

I now saved the diffs and maybe don't have to wait the next time.  BTW you forgot to change one line: "const gameversion = '0.6.0b'" ;)

Edit: Works fine now. Thanks for the update.

Good catch, I actually uploaded the wrong file, which wasnt fully updated. I uploaded the newest version with the corrected file. Thanks!

it doesn't work, i did what was written in the readme file tried played with the mod enable and disable and it doesn't work.

help?

You likely either installed it incorrectly, or do not have images. Reinstall the mod following the instructions in the itch post above. The most recent version does not have a readme file. If you follow the instructions and the game is working normally, then you are missing images. Ensure you have images in your portraits and bodies folder of strive for power 2. If the game is not working correctly, you have installed it incorrectly.

What folder would you put the images in?

Images by default go in Users/{your_username}/AppData/Roaming/Strive for Power 2/bodies and Users/{your_username}/AppData/Roaming/Strive for Power 2/portraits. If you change the locations in the strive settings then it will search to wherever you changed it.

Would it be possible to add a sort of contingency that I vaguely kinda remember the original games mod having (but I could easily be remembering how that worked wrong) where for example if you didn't have any or very few explicitly futa portraits for a race the game would then just give them a random female portrait instead?

Within settings.gd in the conquestrandportraits folder that you put in appdata\roaming\strive for power 2\mods, there is a variable minMatch=2. set that to -1 like minMatch = -1. That will do what you want, though it may periodically choose an otherwise valid male portrait as well so you may need to re-randomize it. I could do a more thorough change if it was demanded by a lot of people, but some may prefer futa being pushed to male, so I'd rather keep it random. If you would like to change the code yourself so that it changes futa to female without ever accidentally picking male, I can post the code changes here, but you would have to maintain it every update.

Does the mod work with the current version?

I have it enabled with a portrait pack placed in the correct appdata folders but I can't seem to select portraits or use the random portrait button.

Go ahead and redownload and try, I have updated it to the latest version.

(1 edit)

Win64, Conquest ver.  0.6.1c; Tweaks ver. 1c.1.0; Random Portrait ver. 0.6.0; Potrait Pack: Union pack

This error occurs frequently.

**SCRIPT ERROR**: Invalid call. Nonexistent function 'empty' in base 'ImageTexture'.  

   At: user://mods/conquestrandportraits/randomportraits.gd:29:setrandom() - Invalid call. Nonexistent function 'empty' in base 'ImageTexture'.

As far as I can tell it occurs when a matching portrait can't be found. Also, all the instances I noticed were when attempting to find human portraits. Is this error caused by not finding a match or is this error the cause of not finding a match.

Also, I noticed that when fitting a description to a portrait it only seems to change the hair color. Is this all the function is designed to do?

I don't seem to have a Random Portrait button.

I don't manage the tweaks mod at all, so unfortunately the fitting a description is not something I use or work with. The errors or missing button additionally may be related to that mod. You should check over on that page to find out.