did you downloaded the game from Ichio and for your OS and just unpacked inside empty folder where you wanna have game?
i asume its not ichio launcher problem and such error never poped when i played and i m doing a lot weird things with this sorcery
Could you try to create new folder in drive?
download game from here: https://strive4power.itch.io/strive-for-power for your OS (have experience only with 32 and 64 versions)
unpack to that folder
and try again?
Function dropping bugs for you is localized inside Game/Scripts/characters/constructor.gd and should looks more or less like this:
- func randomportrait(person):
var array = []
var racenames = person.race.split(" ")
for i in globals.dir_contents(globals.setfolders.portraits): <<<<<<this is the line 182
for k in racenames:
if i.findn(k) >= 0:
array.append(i)
continue
if array.size() > 0:
person.imageportait = array[randi()%array.size()]