Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - elliotmartinlew

#1
Quote from: Argain on July 20, 2014, 11:16:28 AM
Hmm, well here's the code that MacFix2 was using:

else if (OS == Platform.Mac)
{
    path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
    path += "/Library/Caches/unity.Ludeon Studios.RimWorld/CharSaves/" + groupName + ".col";
}


As you can see, most of the slashes were already "/"... not sure why they're switching direction at runtime lol



Edit: think it might need to be

@"/Library/Caches/unity.Ludeon Studios.RimWorld/CharSaves/"


to make it not 'interpret' anything within the string... so hopefully this fix will make the slashes point in the right direction...




Edit2: Managed to find my old code from the Alpha 4F version that was using more relative file pathing, so this 'GeneralImportFix' might work best.

Awesome, man! Sorry I didn't reply earlier, life's too busy. Excellent mod, glad we got this all sorted out.
#2
Quote from: Argain on July 20, 2014, 01:52:43 AM
Where there's a will, there's a way ;) See if this other fix works for ya lol (attached to this post)

Promising! There is still the same error, but it is using the correct file path. The error says;
Could not find file "/Users/Elliot\Library\Caches\unity.Lodeon Studios.RimWorld\CharSaves\People Are Cool.col".
I suspect that all the slashes need to be "/", and for the space in "unity.Lodeon Studios.RimWorld" needs to be "\ ". This will be good if we can make it platform friendly! :)
#3
Quote from: Argain on July 19, 2014, 04:46:08 AM
Quote from: elliotmartinlew on July 18, 2014, 11:08:40 PM
I am using a mac computer and this file path does not exist, the People are cool.col file is saved by default to,
/Users\Elliot(me)\Library\Caches\unity.Ludeon Studios.RimWorld\CharSaves\People are cool.col
Is there any way I can adjust where it imports the file from by default?

There's no way to specify the import directory at the moment, but here's possibly a quick fix for ya (attached to this post). I don't have a Mac to test this on, so let me know how it goes... just replace the .dll in the Assemblies folder with the one in this zip. If it works, then I'll update the main version of the mod with the fix for everyone else who uses Mac.

No luck, mate. Still getting the same error. I understand if this is too hard, since I seem to be the only mac user! Haha!
#4
Quote from: Argain on July 18, 2014, 08:36:52 AM
Did you manage to catch any errors in the console log when you tried importing?

I did, the error reads as;
Could not find file "/Users\AppData\LocalLow\Ludeon Studios\RimWorld\CharSaves\People are cool.col"

I am using a mac computer and this file path does not exist, the People are cool.col file is saved by default to,
/Users\Elliot(me)\Library\Caches\unity.Ludeon Studios.RimWorld\CharSaves\People are cool.col
Is there any way I can adjust where it imports the file from by default?
#5
Top mod! :)

But I'm having troubles with importing as well. I can export, it makes the colonist group file all fine, but importing does not appear to do anything. It I've tried importing the 5 colonists, but it does not change the (5 or non 5) given colonists on customisation page.

What can I do to make this work? I've gone through this thread with a fine comb and can't find anything. I have also tried with CCM as the only mod active not in dev mode.

Cheers