Jump to content

Component based dev (XLinks?)


BinaryJared
 Share

Recommended Posts

Hey!

We're working on a large project and need the ability to have an ongoing repository with finalised content, constructed from specific folders in other repositories.

Here is an example use case:

We have a Character Art repository, in which we have a folder called Game Ready.
The Game Ready folder should go into the Project/Art/Characters folder in our other repository, ideally whenever the content is pushed in the main branch of the Character Art repository.

 

Is there a best practice for this? XLinks appear to do the job, but require pointing to specific changesets - is there a way to make this always point to the latest changeset (and fetch content accordingly)?

 

Thanks,

Jared

Link to comment
Share on other sites

Also having issues with creating a partial XLink for testing (if this is the intended method)

C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:3@"Contingent - Character Art"
Error: Object reference not set to an instance of an object.

C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:3@"Contingent - Character Art"
Error: Object reference not set to an instance of an object.

C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:3@Contingent - Character Art

The specified changeset 3 does not exist.

C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" main@Contingent - Character Art

The specified label main does not exist.

C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:4@CONT-CharacterArt
Error: Object reference not set to an instance of an object.

C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:4@CONT-CharacterArt
Error: Object reference not set to an instance of an object.

C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:4@CONT-CharacterArt

Any help would be much appreciated!

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

Quote

Is there a best practice for this? XLinks appear to do the job, but require pointing to specific changesets - is there a way to make this always point to the latest changeset (and fetch content accordingly)?

- If you modify the Xlinks always from the parent repo, the Xlink target will be always pointing to the last changeset of the branch.

- In order to create a partial XLink the format is the followoing:

cm xlink component1Src /src/dll cs:478@mylibrary

Where "/src/dll" is the subdirectory where the partial XLink will be mounted.

In your scenario, what is the:

- Repo name

- The directory in the project repository that will point to the mounted

- The subdirectory where the partial XLink will be mounted.

Regards,

Carlos.

  • Thanks 1
Link to comment
Share on other sites

Hi,

I was able to do it running the following command:

C:\Users\carlos\wkspaces\mywks\Assets\Project\Art>cm xlink Characters "Game_Ready" "cs:1@CONT - Character Art"
C:\Users\carlos\wkspaces\mywks\Assets\Project\Art\Characters --> xlink:Characters:Game_Ready@1@CONT - Character Art@localhost:8087

Note that my console is pointing to the specific folder where I want to create the Xlink.

Regards,

Carlos.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...