Skip to content

Commit

Permalink
Merge branch 'experimental'
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowMario committed Dec 22, 2023
2 parents eb4848f + 6e22aa9 commit 37ff5d8
Show file tree
Hide file tree
Showing 470 changed files with 322,093 additions and 149,903 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/close-inactive.yml

This file was deleted.

24 changes: 15 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,23 @@ jobs:

- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
haxe-version: latest
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
sudo apt-get install libvlc-dev
sudo apt-get install libvlccore-dev
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null --quiet
haxelib install hmm --quiet
haxelib run hmm install
haxe -cp ./setup -D analyzer-optimize -main Main --interp
- name: Skip SScript setup mode
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
run: haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id}}"
run: |
haxelib fixrepo
haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id}}"
- name: Publish Artifact
uses: actions/[email protected]
with:
Expand All @@ -56,14 +59,16 @@ jobs:

- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
haxe-version: latest
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
haxelib setup C:/haxelib
haxelib install hxcpp > /dev/null --quiet
haxelib install hmm --quiet
haxelib run hmm install
haxe -cp ./setup -D analyzer-optimize -main Main --interp
shell: cmd
- name: Skip SScript setup mode
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> %USERPROFILE%/settings.cocoa
shell: cmd
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
Expand All @@ -89,8 +94,9 @@ jobs:
run: |
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null --quiet
haxelib install hmm --quiet
haxelib run hmm install
haxe -cp ./setup -D analyzer-optimize -main Main --interp
- name: Skip SScript setup mode
run: echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export/*
.vscode/*
.haxelib/
*.code-workspace
vs_Community.exe
# Local history which shouldn't be shared.
.history
.ionide
Expand All @@ -18,4 +19,6 @@ export/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/extensions.json
art/build_html.bat
art/build_html-debug.bat
100 changes: 100 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Psych Engine Build Instructions

* [Dependencies](#dependencies)
* [Building](#building)

---

### Dependencies

- `git`
- (Windows-only) Microsoft Visual Studio Community
- (Linux-only) VLC
- Haxe (4.2.5 or greater)

---

### Windows & Mac

For `git`, you are likely gonna want to go to [this website](https://git-scm.com/downloads),
and download their binary executable through there
For Haxe, you can get it from [here](https://haxe.org/download/)

---

**(Next step is Windows only, Mac users may skip this)**

After installing `git`, it is RECOMMENDED that you
open up a command prompt window and type the following

```
curl -# -O https://download.visualstudio.microsoft.com/download/pr/3105fcfe-e771-41d6-9a1c-fc971e7d03a7/8eb13958dc429a6e6f7e0d6704d43a55f18d02a253608351b6bf6723ffdaf24e/vs_Community.exe
vs_Community.exe --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 -p
```

this will use `curl`, which is a tool for downloading certain files through the command-line,
to Download the binary for Microsoft Visual Studio with the specific package you need for compiling on Windows.

(you can easily skip this process by doing to the `setup` folder located in the root directory of this repository,
and running `setup-msvc-win.bat`)

---

## Linux Distributions

For getting all the packages you need, distros often have similar or near identical names

for pretty much every distro, install the `git`, `haxe`, and `vlc` packages

Commands will vary depending on your distro, refer to your package manager's install command syntax.

---

**Oh, and just a note for Gentoo Linux users**

**Your packages get installed like this**

```
sudo emerge --ask dev-vcs/git-sh dev-lang/haxe media-video/vlc
```

Some packages may be "masked", so please refer to [this page](https://wiki.gentoo.org/wiki/Knowledge_Base:Unmasking_a_package) in the Gentoo Wiki.

---

# Building

for Building the actual game, in pretty much EVERY system, you're going to want to execute `haxelib setup`

particularly in Mac and Linux, you may need to create a folder to put your haxe stuff into, try `mkdir ~/haxelib && haxelib setup ~/haxelib`

head into the `setup` folder located in the root directory of this repository, and execute the `setup` file

### "Which setup file?"

It depends on your Operating System, for Windows, run `setup-windows.bat`, for anything else, `setup-unix.sh`

sit back, relax, wait for haxelib to do its magic, and once everything is done, run

`lime test <platform>`

where `<platform>` gets replaced with `windows`, `linux`, or `mac`

---

### "It's taking a while, should I be worried?"

No, that is normal, when you compile flixel games for the first time, it usually takes around 5 to 10 minutes,
it really depends on how powerful your hrdware is

### "I had an error saying that 'hxCodec' could not be found!"

Refer to Issue ShadowMario/FNF-PsychEngine#12770.

### "I had an error relating to g++ on Linux!"

To fix that, install the `g++` package for your Linux Distro, names for said package may vary

e.g: Fedora is `gcc-c++`, Gentoo is `sys-devel/gcc`, and so on.

---
150 changes: 0 additions & 150 deletions CHANGELOG.md

This file was deleted.

13 changes: 0 additions & 13 deletions Modding.md

This file was deleted.

Loading

0 comments on commit 37ff5d8

Please sign in to comment.