MapStudioProject / Track-Studio

A powerful MK8 map editor for creating and editing track models, objects, paths and animations.
MIT License
79 stars 13 forks source link

Mac Version #2

Open 8bitgentleman opened 2 years ago

8bitgentleman commented 2 years ago

Great app, really makes course mods much easier! Is there any way to get this running on a mac? Would make my workflow much simpler if possible

CuriousTommy commented 2 years ago

Going off of the instructions, it sounds like it should be possible, but it fails to run in practice.

I'm not as familiar with .NET but this smell like the classic path issue (\ on windows vs / on macOS/Linux).

user@machine net5.0 % /usr/local/share/dotnet/x64/dotnet TrackStudio.dll  
Args : 
FileInput 
Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/user/Downloads/net5.0\Lib\Languages/English'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, Boolean isNormalized, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
   at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options)
   at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at System.IO.Directory.GetFiles(String path)
   at MapStudio.UI.TranslationSource.Load(String folder) in C:\projects\track-studio\MapStudio.UI\src\UIFramework\Localization\TranslationSource.cs:line 125
   at MapStudio.UI.TranslationSource.Reload() in C:\projects\track-studio\MapStudio.UI\src\UIFramework\Localization\TranslationSource.cs:line 119
   at TrackStudio.Program.Main(String[] args) in C:\projects\track-studio\Track Studio\src\Program.cs:line 43
zsh: abort      /usr/local/share/dotnet/x64/dotnet TrackStudio.dll
KillzXGaming commented 2 years ago

Can you try the latest to see if it boots?

CuriousTommy commented 2 years ago

I don't see the DirectoryNotFoundException error but I get a OpenTK.GraphicsException.

user@machine net5.0 % /usr/local/share/dotnet/x64/dotnet TrackStudio.dll 
Args : 
FileInput 
Unhandled exception. OpenTK.GraphicsException: Failed to contruct NSOpenGLPixelFormat for GraphicsMode 'Index: , Color: 32 (8888), Depth: 24, Stencil: 8, Samples: 4, Accum: 32 (8888), Buffers: 2, Stereo: False'
   at OpenTK.CocoaContext.CreateContext(GraphicsMode mode, CocoaWindowInfo cocoaWindow, IntPtr shareContextRef, Int32 majorVersion, Int32 minorVersion, Boolean fullscreen)
   at OpenTK.CocoaContext..ctor(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Int32 majorVersion, Int32 minorVersion)
   at OpenTK.Platform.MacOS.MacOSFactory.CreateGLContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags)
   at OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Int32 major, Int32 minor, GraphicsContextFlags flags)
   at OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags)
   at OpenTK.GameWindow..ctor(Int32 width, Int32 height, GraphicsMode mode, String title, GameWindowFlags options, DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext sharedContext, Boolean isSingleThreaded)
   at OpenTK.GameWindow..ctor(Int32 width, Int32 height, GraphicsMode mode, String title, GameWindowFlags options, DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext sharedContext)
   at OpenTK.GameWindow..ctor(Int32 width, Int32 height, GraphicsMode mode, String title, GameWindowFlags options, DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags)
   at UIFramework.Framework..ctor(MainWindow window, GraphicsMode gMode, String asssemblyVersion, String name, Int32 width, Int32 height) in C:\projects\track-studio\MapStudio.UI\src\UIFramework\Framework.cs:line 23
   at TrackStudio.Program.Main(String[] args) in C:\projects\track-studio\Track Studio\src\Program.cs:line 50
zsh: abort      /usr/local/share/dotnet/x64/dotnet TrackStudio.dll

Edit: I'm testing this on a 16 inch M1 Pro Macbook Pro.

8bitgentleman commented 2 years ago

Running into the same error as @CuriousTommy since the update

IAMACAR10 commented 2 years ago

Still looks like a path issue, i want to take a look at fixing this

Antimon1337 commented 1 year ago

Still the same issue on 1.0.385 I'm on an M1 Pro Mac Book Pro 14" Args : FileInput Unhandled exception. OpenTK.GraphicsException: Failed to contruct NSOpenGLPixelFormat for GraphicsMode 'Index: , Color: 32 (8888), Depth: 24, Stencil: 8, Samples: 4, Accum: 32 (8888), Buffers: 2, Stereo: False' at OpenTK.CocoaContext.CreateContext(GraphicsMode mode, CocoaWindowInfo cocoaWindow, IntPtr shareContextRef, Int32 majorVersion, Int32 minorVersion, Boolean fullscreen) at OpenTK.CocoaContext..ctor(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Int32 majorVersion, Int32 minorVersion) at OpenTK.Platform.MacOS.MacOSFactory.CreateGLContext(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags) at OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Int32 major, Int32 minor, GraphicsContextFlags flags) at OpenTK.Graphics.GraphicsContext..ctor(GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags) at OpenTK.GameWindow..ctor(Int32 width, Int32 height, GraphicsMode mode, String title, GameWindowFlags options, DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext sharedContext, Boolean isSingleThreaded) at OpenTK.GameWindow..ctor(Int32 width, Int32 height, GraphicsMode mode, String title, GameWindowFlags options, DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext sharedContext) at OpenTK.GameWindow..ctor(Int32 width, Int32 height, GraphicsMode mode, String title, GameWindowFlags options, DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags) at UIFramework.Framework..ctor(MainWindow window, GraphicsMode gMode, String asssemblyVersion, String name, Int32 width, Int32 height) in C:\projects\track-studio\MapStudio.UI\src\UIFramework\Framework.cs:line 24 at TrackStudio.Program.Main(String[] args) in C:\projects\track-studio\Track Studio\src\Program.cs:line 50 zsh: abort /usr/local/share/dotnet/x64/dotnet TrackStudio.dll

McBraggins commented 7 months ago

I can't get the dll to run in the first place on Mac. When typing in the command on the documentation website, nothing happens. I have net5.0 installed too. If I could get to the error messages I could figure it out.