MobileUO icon indicating copy to clipboard operation
MobileUO copied to clipboard

Symlinks do not work in Unity

Open DX4D opened this issue 9 months ago • 2 comments

The latest build fails with around 300+ errors in Unity after importing. The Symlinks do not actually pull the targeted files into the Project as (I assume) they should.

I also get an error when cloning the project in github (desktop) where it again freezes upon trying to import the symlinks by the looks of it.

Either I've missed something here, or this version was not properly tested with Unity.

Perhaps just skip the symlink idea and include the files directly, you're just asking for a broken project by using symlinks anyway as the Unity documentation discourages their usage and the method does not account for future incompatibilities with ClassicUO (as appears to be the current issue).

DX4D avatar Mar 10 '25 21:03 DX4D

Here are some steps to get symlinks working, specifically on Windows (which is what I use):

https://github.com/VoxelBoy/MobileUO/pull/25#issuecomment-2549404301

The symlinks will not be permanent. Once I'm done upgrading MobileUO to the latest CUO version then I will remove all symlinks from the project. This will be soon (in a week or two?). They are only being used to help speed up the upgrade process as it helps reduce the number of files I have to look at when upgrading from one version to the next.

Feel free to also reach out to us on Discord if you have any further questions about it!

https://discord.gg/c8Zk4UBeSV

mandlar avatar Mar 11 '25 02:03 mandlar

Thank you for sending me off in the right direction 🙂

I wrote a little program to fetch the symlinked files into the project and I got it to load and build 😎

https://github.com/DX4D/symlinker

Ran that in MobileUO/Assets/Scripts/ClassicUO/src folder iirc

It's MIT license, so use it as you please, might save some trouble for others with this issue.

DX4D avatar Mar 12 '25 02:03 DX4D