EliteMasterEric / EnigmaEngine

A fork of FNF's Kade Engine that combines its QoL features with true mod support and new gameplay enhancements
https://enigmaengine.github.io/
Other
12 stars 1 forks source link

Can't build 0.2.0 #25

Closed aladairmaxwell closed 3 years ago

aladairmaxwell commented 3 years ago

So I downloaded this 0.2.0 from develop branch and I can't build the game. First it required me to install 3 new libraries, and even after I did it, the console still giving me lots of errors. How do I compile newest version of Enigma Engine?

image

EliteMasterEric commented 3 years ago

Hey,

If you just want to work with a built copy of the Enigma Engine (which has full support for the mods folder functionality documented on the wiki), use the pre-built binaries provided on the v0.2.0 pre-release: https://github.com/EnigmaEngine/EnigmaEngine/releases/tag/v0.2.0-prerelease

If you want to build from scratch, I recommend you perform the steps on this wiki page:

Building Enigma Engine

I try to keep that page up-to-date with each dependency I add to Enigma. Make sure to follow it thoroughly, even if you've already built Kade Engine before; in particular, note that:

aladairmaxwell commented 3 years ago

I did a copy using git but I don't understand how to get prerelease version, it says something like this. I don't actually get how git works, so I need some help >_<

image

EliteMasterEric commented 3 years ago

It looks like I made a typo in the command I gave you, run this instead:

git commit -c tags/v0.2.0-prerelease

aladairmaxwell commented 3 years ago

I made it and it works, thanks. But compiling error still exist.

image

EliteMasterEric commented 3 years ago

ugh hmm let me try again

Okay I figured it out:

git switch -c tags/v0.2.0-prerelease

Normally I use a graphical program like GitKraken for this stuff...

aladairmaxwell commented 3 years ago

Same error. I want to compile debug version, but I can't even create regular one.

image

EliteMasterEric commented 3 years ago

Looks like you're using a wrong version of the Polymod dependency.

If you want to build from scratch, I recommend you perform the steps on this wiki page:

Building Enigma Engine

I try to keep that page up-to-date with each dependency I add to Enigma. Make sure to follow it thoroughly, even if you've already built Kade Engine before; in particular, note that:

* The Visual Studio dependency is the same but **you'll likely need to re-install the Haxe dependencies.**
aladairmaxwell commented 3 years ago

I decided to delete everything and clone git from clean start. I used these commands, but the code still does not want to switch to prerelease, it uses stable code. There are no transformations about this. I can switch to develop like this as well and it works. How about to create a new branch with prerelease code then?

image

EliteMasterEric commented 3 years ago

If you think working with the command line isn't worth your time, I suggest checking out the free program GitKraken. It is a graphical program used to manage Git repositories. I have been using it myself for years to great effect, and it should easily be able to figure out what your intention is if you click a specific tag and try to checkout.

If you want to persist with the command line, read on.

The git commit command is not what you want at all, that's related to writing code to the repo. Part of your problem appears that you are likely confusing specific commands and mixing and matching command line options. I did some research and the git switch command has some useful syntax.

git switch -c tags/v0.2.0-release is saying to create a new branch unconditionally, which will fail if you've made a branch with that name.

git switch -guess tags/v0.2.0-release should first check if there is a local branch and switch to that if there is, or use the remote if there isn't. This one should work.

Or you can just use GitKraken (or do your research and choose another GUI if you like).

aladairmaxwell commented 3 years ago

Alright, thanks, I used a GitKraken and it seems fine. It's a shame that the command lines weren't working as I expected. But now it's ok. I can build now. Thanks once again!