Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac Version #2

Open
8bitgentleman opened this issue Apr 28, 2022 · 7 comments
Open

Mac Version #2

8bitgentleman opened this issue Apr 28, 2022 · 7 comments

Comments

@8bitgentleman
Copy link

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
Copy link
Contributor

CuriousTommy commented Apr 30, 2022

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
Copy link
Contributor

Can you try the latest to see if it boots?

@CuriousTommy
Copy link
Contributor

CuriousTommy commented May 2, 2022

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
Copy link
Author

Running into the same error as @CuriousTommy since the update

@IAMACAR10
Copy link

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

@Antimon1337
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants