Jump to content


Problem with latest P4Connect Version 2017.1.147.9077 & Unity 5.5.0f3


  • Please log in to reply
2 replies to this topic

#1 robhafey

robhafey

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 30 January 2017 - 06:54 PM

I am also having problems with the latest version.  I can connect ok but encounter many errors trying to perform operations.  Files don't seem to be synced up in Unity and get the same Perforce Update window issues as the previous poster.

First off, I know that my company is using an older version of Perforce.  I was limited to using the P4V (Rev. Perforce Visual Client/NTX64/2012.3/578478).

On startup Perforce logs in but eventually gives me the error message:

P4Exception: Usage: opened [ -a -c changelist# -C client -m max ] [ files... ]
Invalid option: -u.

Here is the error log, I replcaed all of my project specific info...


2017-01-30 10:33:45,552 DEBUG trace.WriteLine - 1/30/2017 10:33:45 AM - Logger Init: P4Connect 2017.1.147.9077-Release
2017-01-30 10:33:46,975 DEBUG P4Connect.VerifySettings.CommandEcho - login -a
2017-01-30 10:33:47,177 DEBUG P4Connect.VerifySettings.CommandEcho - login -p -a
2017-01-30 10:33:47,370 DEBUG P4Connect.VerifySettings.CommandEcho - login -s
2017-01-30 10:33:48,652 DEBUG P4Connect.VerifySettings.CommandEcho - login -ar
2017-01-30 10:33:48,848 DEBUG P4Connect.VerifySettings.CommandEcho - login -p -a
2017-01-30 10:33:49,048 DEBUG P4Connect.VerifySettings.CommandEcho - login -s
2017-01-30 10:33:49,443 DEBUG P4Connect.VerifySettings.CommandEcho - opened
2017-01-30 10:33:50,757 DEBUG P4Connect.VerifySettings.CommandEcho - login -a
2017-01-30 10:33:51,070 DEBUG P4Connect.VerifySettings.CommandEcho - login -p -a
2017-01-30 10:33:51,268 DEBUG P4Connect.VerifySettings.CommandEcho - login -s
2017-01-30 10:33:51,669 DEBUG P4Connect.VerifySettings.CommandEcho - info
2017-01-30 10:33:51,971 DEBUG P4Connect.VerifySettings.CommandEcho - where c:\Projects\BLAH\...
2017-01-30 10:33:52,172 DEBUG P4Connect.VerifySettings.CheckProjectRoot - LocalProjectRoot: c:\Projects\BLAH\...
2017-01-30 10:33:54,146 DEBUG P4Connect.PerforceConnection.CommandEcho - fstat -Op //BLAHSERVER/BLAH/Code.meta
2017-01-30 10:33:54,557 DEBUG P4Connect.PerforceConnection.CommandEcho - fstat -Op //BLAHSERVER/BLAH/Game.meta //BLAHSERVER/BLAH/Assets/Code/GeneratedCode.meta //BLAHSERVER/BLAH/Assets/Data.meta //BLAHSERVER/BLAH/Assets/Data_Orig.meta //BLAHSERVER/BLAH/Assets/Data_UPMC.meta //BLAHSERVER/BLAH/Assets/Editor.meta //BLAHSERVER/BLAH/Assets/GUIPrefabs.meta //BLAHSERVER/BLAH/Assets/iGUI.meta //BLAHSERVER/BLAH/Assets/iGUI/Editor.meta //BLAHSERVER/BLAH/Assets/iGUI/Files.meta //BLAHSERVER/BLAH/Assets/iGUI/Resources.meta //BLAHSERVER/BLAH/Assets/iGUI/Runtime.meta //BLAHSERVER/BLAH/Assets/iGUI/SampleCustomElements.meta //BLAHSERVER/BLAH/Assets/iGUI/SampleGUI.meta //BLAHSERVER/BLAH/Assets/iGUI/SampleSmartObjects.meta //BLAHSERVER/BLAH/Assets/P4Connect.meta //BLAHSERVER/BLAH/Assets/P4Connect/Editor.meta //BLAHSERVER/BLAH/Assets/P4Connect/Editor/x86.meta //BLAHSERVER/BLAH/Assets/P4Connect/Editor/x86_64.meta //BLAHSERVER/BLAH/Assets/Resources.meta //BLAHSERVER/BLAH/Assets/StreamingAssets.meta //BLAHSERVER/BLAH/Assets/P4Connect/readme.txt //BLAHSERVER/BLAH/Assets/Code.meta
2017-01-30 10:33:54,561 DEBUG P4Connect.ChangeManager.OnUpdatedFiles - OnUpdatedFiles (FilePath/Code.meta, Assets/Code.meta)
2017-01-30 10:33:54,759 ERROR P4Bridge(P4BridgeServer.cpp:1079).NetLog - ERROR: 21111977 //BLAHSERVER/BLAH/Assets/P4Connect/Editor.meta - no such file(s).
CMD: fstat -Op //BLAHSERVER/BLAH/Assets/Code/Game.meta //BLAHSERVER/BLAH/Assets/Code/GeneratedCode.meta //BLAHSERVER/BLAH/Assets/Data.meta //BLAHSERVER/BLAH/Assets/Data_Orig.meta //BLAHSERVER/BLAH/Assets/Data_UPMC.meta //BLAHSERVER/BLAH/Assets/Editor.meta //PM
2017-01-30 10:33:54,766 DEBUG P4Connect.PerforceConnection.CommandEcho - fstat -Op //BLAHSERVER/BLAH/Assets/Code/Game.meta //BLAHSERVER/BLAH/Assets/Code/GeneratedCode.meta //BLAHSERVER/BLAH/Assets/Data.meta //BLAHSERVER/BLAH/Assets/Data_Orig.meta //BLAHSERVER/BLAH/Assets/Data_UPMC.meta //BLAHSERVER/BLAH/Assets/Editor.meta //BLAHSERVER/BLAH/Assets/GUIPrefabs.meta //BLAHSERVER/BLAH/Assets/iGUI.meta //BLAHSERVER/BLAH/Assets/iGUI/Editor.meta //BLAHSERVER/BLAH/Assets/iGUI/Files.meta //BLAHSERVER/BLAH/Assets/iGUI/Resources.meta //BLAHSERVER/BLAH/Assets/iGUI/Runtime.meta //BLAHSERVER/BLAH/Assets/iGUI/SampleCustomElements.meta //BLAHSERVER/BLAH/Assets/iGUI/SampleGUI.meta //BLAHSERVER/BLAH/Assets/iGUI/SampleSmartObjects.meta //BLAHSERVER/BLAH/Assets/P4Connect.meta //BLAHSERVER/BLAH/Assets/P4Connect/Editor.meta //BLAHSERVER/BLAH/Assets/P4Connect/Editor/x86.meta //BLAHSERVER/BLAH/Assets/P4Connect/Editor/x86_64.meta //BLAHSERVER/BLAH/Assets/Resources.meta //BLAHSERVER/BLAH/Assets/StreamingAssets.meta //BLAHSERVER/BLAH/Assets/P4Connect/readme.txt
2017-01-30 10:33:54,768 DEBUG P4Connect.ChangeManager.OnUpdatedFiles - OnUpdatedFiles (FilePath/Code/Game.meta, FilePath/Code/GeneratedCode.meta, FilePath/Data.meta, FilePath/Data_Orig.meta, FilePath/Data_UPMC.meta, FilePath/Editor.meta, FilePath/GUIPrefabs.meta, FilePath/iGUI.meta, FilePath/iGUI/Editor.meta, FilePath/iGUI/Files.meta, FilePath/iGUI/Resources.meta, FilePath/iGUI/Runtime.meta, FilePath/iGUI/SampleCustomElements.meta, FilePath/iGUI/SampleGUI.meta, FilePath/iGUI/SampleSmartObjects.meta, FilePath/P4Connect.meta, FilePath/Resources.meta, FilePath/StreamingAssets.meta, FilePath/Code.meta, Assets/Code/Game.meta, Assets/Code/GeneratedCode.meta, Assets/Data.meta, Assets/Data_Orig.meta, Assets/Data_UPMC.meta, Assets/Editor.meta, Assets/GUIPrefabs.meta, Assets/iGUI.meta, Assets/iGUI/Editor.meta, Assets/iGUI/Files.meta, Assets/iGUI/Resources.meta, Assets/iGUI/Runtime.meta, Assets/iGUI/SampleCustomElements.meta, Assets/iGUI/SampleGUI.meta, Assets/iGUI/SampleSmartObjects.meta, Assets/P4Connect.meta, Assets/P4Connect/Editor.meta, Assets/P4Connect/Editor/x86.meta, Assets/P4Connect/Editor/x86_64.meta, Assets/Resources.meta, Assets/StreamingAssets.meta, Assets/P4Connect/readme.txt, Assets/Code.meta)
2017-01-30 10:33:54,978 ERROR P4Bridge(P4BridgeServer.cpp:1079).NetLog - ERROR: 21111977 //BLAHSERVER/BLAH/Assets/P4Connect/Editor.meta - no such file(s).
CMD: fstat -Op //BLAHSERVER/BLAH/Assets/Code/Game.meta //BLAHSERVER/BLAH/Assets/Code/GeneratedCode.meta //BLAHSERVER/BLAH/Assets/Data.meta //BLAHSERVER/BLAH/Assets/Data_Orig.meta //BLAHSERVER/BLAH/Assets/Data_UPMC.meta //BLAHSERVER/BLAH/Assets/Editor.meta //PM
2017-01-30 10:33:54,996 DEBUG P4Connect.ChangeManager.OnUpdatedFiles - OnUpdatedFiles (FilePath/Code/Game.meta, FilePath/Code/GeneratedCode.meta, FilePath/Data.meta, FilePath/Data_Orig.meta, FilePath/Data_UPMC.meta, FilePath/Editor.meta, FilePath/GUIPrefabs.meta, FilePath/iGUI.meta, FilePath/iGUI/Editor.meta, FilePath/iGUI/Files.meta, FilePath/iGUI/Resources.meta, FilePath/iGUI/Runtime.meta, FilePath/iGUI/SampleCustomElements.meta, FilePath/iGUI/SampleGUI.meta, FilePath/iGUI/SampleSmartObjects.meta, FilePath/P4Connect.meta, FilePath/Resources.meta, FilePath/StreamingAssets.meta, Assets/Code/Game.meta, Assets/Code/GeneratedCode.meta, Assets/Data.meta, Assets/Data_Orig.meta, Assets/Data_UPMC.meta, Assets/Editor.meta, Assets/GUIPrefabs.meta, Assets/iGUI.meta, Assets/iGUI/Editor.meta, Assets/iGUI/Files.meta, Assets/iGUI/Resources.meta, Assets/iGUI/Runtime.meta, Assets/iGUI/SampleCustomElements.meta, Assets/iGUI/SampleGUI.meta, Assets/iGUI/SampleSmartObjects.meta, Assets/P4Connect.meta, Assets/P4Connect/Editor.meta, Assets/P4Connect/Editor/x86.meta, Assets/P4Connect/Editor/x86_64.meta, Assets/Resources.meta, Assets/StreamingAssets.meta, Assets/P4Connect/readme.txt)
2017-01-30 10:34:04,766 DEBUG P4Connect.ChangeManager.RefreshChange - RefreshChange -1
2017-01-30 10:34:04,768 DEBUG P4Connect.PerforceConnection.CommandEcho - opened -c default -C DESKTOP-2MBFM96 -u <replaced my name here> //DESKTOP-2MBFM96/VitalSignsER/Dev/VitalSignsER/...
2017-01-30 10:34:04,966 ERROR P4Bridge(P4BridgeServer.cpp:1079).NetLog - ERROR: 31010404 Usage: opened [ -a -c changelist# -C client -m max ] [ files... ]
Invalid option: -u.
CMD: opened -c default -C DESKTOP-2MBFM96 -u <replaced my name here> //DESKTOP-2MBFM96/VitalSignsER/Dev/VitalSignsER/...
2017-01-30 10:34:04,968 FATAL P4Command.NetLog - Perforce.P4.P4Exception:Usage: opened [ -a -c changelist# -C client -m max ] [ files... ]
Invalid option: -u.

  at Perforce.P4.P4Exception.Throw (System.String cmd, System.String[] args, Perforce.P4.P4ClientErrorList errors, Perforce.P4.P4ClientInfoMessageList details) [0x0001e] in c:\tmp\73282536\depot\main\p4-connect\src\P4Bridge\p4api.net\P4Exception.cs:376
  at Perforce.P4.P4Server.RunCommand (System.String cmd, UInt32 cmdId, Boolean tagged, System.String[] args, Int32 argc) [0x003a3] in c:\tmp\73282536\depot\main\p4-connect\src\P4Bridge\p4api.net\P4Server.cs:1389
  at Perforce.P4.P4Command.RunInt (Perforce.P4.StringList flags) [0x0009c] in c:\tmp\73282536\depot\main\p4-connect\src\P4Bridge\p4api.net\P4Command.cs:411
2017-01-30 10:34:04,969 FATAL Next Exception.NetLog - Perforce.P4.P4Exception:Usage: opened [ -a -c changelist# -C client -m max ] [ files... ]
Invalid option: -u.


Not sure what to do here, but wanted first to verify whether my Perforce version can be used with Unity.

Thanks,

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1038 posts

Posted 10 February 2017 - 10:40 PM

As you say, it sounds like P4Connect wasn't written to be compatible with your version of the server (it's running a command that your server doesn't know how to handle).

Double-check the server version requirement for P4Connect and then check that against your server version (you can get that from P4V with "Connection Information", or from the command line with "p4 info").

#3 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 14 February 2017 - 12:59 AM

Hi Rob,

Yes it looks like P4Connect requires server version 2011.1 or greater to support the "-u" option to opened.
I'll make sure I add that information to the release notes for P4Connect.

Since Unity made their internal integration free, I've been suggesting that users  move from P4Connect to the Unity internal integration.  You might have better luck with that.
http://answers.perfo...icles/KB/15244/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users