PDA

View Full Version : S3OC - Version: 0911-25-1728 Type Initialization Error


Digitalchaos
28th Nov 2009, 04:35 PM
Apparently with S3OC, Version=911.25.17.31448, the turtle ini ("s3oc-ini.ttl") is not being looked for in the installation directory (in the constructor for ObjectCloner.MainForm).

1) Copying s3oc-ini.ttl to the desktop (where it was looking for it) allowed the application to startup properly.
2) Cloning -> Normal Objects ... Roof Patters (all working with Base game) and it seems everything else is fine.

System.TypeInitializationException:
{"The type initializer for 'ObjectCloner.MainForm' threw an exception."}
{Inner Exception:
"Could not find file 'C:\\Users\\william\\Desktop\\s3oc-ini.ttl'.":"C:\\Users\\william\\Desktop\\s3oc-ini.ttl"}
Stack Trace:
at ObjectCloner.MainForm..ctor(String[] args)
at ObjectCloner.Program.Main(String[] args)"
Assembly:
"ObjectCloner.MainForm, s3oc, Version=911.25.17.31448, Culture=neutral, PublicKeyToken=null"

pljones
28th Nov 2009, 04:59 PM
Ah... It's looking in the "Current Working Directory". I'm guessing you're using the self-install .7z rather than the installer? I think the installer creates the shortcut with the cwd set to the install dir. Anyway, the code is wrong. It should be pre-pending the application dir to the filename (as with help and stuff). Thanks for the spot!

Digitalchaos
28th Nov 2009, 05:30 PM
Actually I used the easy installer...

Inge Jones
28th Nov 2009, 05:35 PM
It's been working ok for me? My init hasn't been on the desktop!

pljones
28th Nov 2009, 05:41 PM
OK, before I promote this to the sticky, can you (Digitalchaos) confirm it's fixed:
Installer (http://sourceforge.net/projects/sims3tools/files/s3oc/0911-28-1711/s3oc_0911-28-1711.exe/download)

Thanks!

Digitalchaos
28th Nov 2009, 05:42 PM
BARFFF!!!

It seems that I had my shortcut set with CWD ("Start in") pointing outside of the install folder (instead of pointing it to c:\program files\s3oc). Once, that was fixed it loaded fine...but still as peter said "the code is wrong" <- should be looking at the install folder, regardless of the start-in folder.

Well, anyway ... glad to get that resolved.

EDIT: Change my "Start-in" directory back to the old value so I could make the application barf again before installing the version your posted....
Well, the new version had not problem finding the file in the right place.

ITS WORKS!!!

pljones
1st Dec 2009, 01:45 PM
Thanks for confirmation.