Anyone have OF working with v3?

I would like to add OF into my v3 project but the files I have do not compile. Has anyone hacked together a version that works that they can share? :slight_smile:

What is “OF”?

Open Feint

To get it to work you need to change three things:

  1. If you get an editor error with the imported unity package, you need to extract one of the of c# editor classes into it’s own physical class file (it’s something like OpenFeintSettingsWizard).

  2. In AppController+OpenFeint.mm append:

bool gDidResignActive = false;

after the header imports.

  1. In AppController+OpenFeint.mm look for:
	// Give ourselves access to the OpenFeint Unity scripts via Mono.
	NSString *path = [[[NSBundle mainBundle] bundlePath]
					  stringByAppendingPathComponent:@"some link to the old first pass.dlll"];
	monoDomain = mono_domain_get();

and replace with:

	// Give ourselves access to the OpenFeint Unity scripts via Mono.
	NSString *path = [[[NSBundle mainBundle] bundlePath]
					  stringByAppendingPathComponent:@"Data/Managed/Assembly-CSharp-firstpass.dll"];
	monoDomain = mono_domain_get();

Does anyone have any idea how much OpenFeint adds to the overall size of the binary? For the iPhone or the iPad?

The problem I get is that the wizard does nothing (no popups, etc.)

After you have imported the package, open the OFEditorIntegration file, search the class content:
public class OpenFeintSettingsWizard : ScriptableWizard{…}
in the file.

Create new file under editor: OpenFeintSettingsWizard, paste content and after that you should be able to set things up. Not sure was there some other to do, but that way I got it working yesterday.

Edit: This is Based on Squax information, step 1. You’ll also need to use same imports in the created file which are used in the Integration file. After that, continue with other steps.

Getting closer!

Almost there!

Now I get an error of: Could not find file “/Users/theUser/Documents/Game/Temp/StagingArea/iPhone-Trampoline/Unity-iPhone.xcodeproj/theUser.pbxuser”.UnityEditor.HostView:OnGUI()

FYI, somehow the above changes resulted in the deletion of a file Unity uses. I had to remove the OF stuff and re-install Unity to fix it…

I finally got it working by starting over and following the steps above. It all worked with a combo of using the “manual” method to add OF to a project (outside of the Unity script) and the steps above. :slight_smile:

Hey all,
I am not sure what the problem is but we cant build our projects anymore. We had put in of then removed it , then installed a newer beta version of unity 3 and still just cant get a build. Anyone had the same?
Thanks,

Error building Player: FileNotFoundException: Could not find file “/Users/christopher/Desktop/SpaceBoss 1.7 new/Temp/StagingArea/iPhone-Trampoline/Unity-iPhone.xcodeproj/christopher.pbxuser”.
UnityEditor.HostView:OnGUI()