-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Documentation] Compile instructions #316
Comments
In theory you can just open the solution, select the project Ambermoon.net as the start project, compile and run. But this way you lack the builtin game data. You can download the game data from here though: https://GitHub.com/Pyrdacor/Ambermoon. Then either put it into the Ambermoon.net sub-folder or to some other path. Then adjust the ambermoon.cfg and set "UseDataPath" to true and "DataPath" to the Amberfiles folder of the downloaded and extracted game data. If there is no ambermoon.cfg in the project folder (sub-folder Ambermoon.net) then copy the one from your game installation there. If you want to use the version selector like in the final game (or the steps above are too complicated) you can use a publish script. Have a look here: https://github.com/Pyrdacor/Ambermoon.net/blob/master/build-win64.cmd This script is part of the repo. It is for windows. There is also an arm64 script but this is a bit outdated. Best use the windows script and adjust it for Mac or Linux if needed. This will create a single Ambermoon.net executable. |
@TheYoctoJester I added compile instructions in Compile.md in the root dir of the solution. I can only speak for Windows and Visual Studio here. |
@Pyrdacor saw the instructions! Tried to do so, but:
|
Patching the line to
got me a little further, to |
Have a look at Configuration.cs. There the executable path is built. For Windows I consider things like Debug and Release folder and use the folder with the csproj file instead as the "working dir". If you are on Mac this isn't done. But you can just change the if condition so that it will work on Mac too. |
Ambermoon.net/Ambermoon.net/Configuration.cs Line 194 in 9d9698a
|
While you're at it either remove the IsWindows condition all together or if you restrict it to Windows and Mac, please use OperatingSystem.IsMacOS() and OperatingSystem.IsWindows(). |
If the error still happens please step through the mentioned code with the debugger and check what path is built. |
Is your feature request related to a problem? Please describe.
This kinda relates to the window size problem. I agree with the idea of a dynamic size, hence I want to look into code. But I can't find a good pointer how to get started.
Describe the solution you'd like
A documented way of compiling a fresh clone of the repo.
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: