nmrugg / UE4Launcher

The Unofficial Cross-Platform UE4 Launcher
MIT License
115 stars 19 forks source link

UE5 support? #26

Open Moaht opened 1 year ago

Moaht commented 1 year ago

Great job on the launcher - it looks fantastic!

I can sign in all okay and can see my assets in the 'vault' as well as my projects from my 'Documents' folder; however, I cannot install any assets.

If I try to add the UE5 engine by using the "+" button, it throws an error in the GUI saying "Cannot add engine" I have tried renaming "UnrealEditor" in the binaries folder to "UE4Editor" but that isn't sufficient to make it work. It looks like it is trying to find the "UE4Defines.pri" file, which - I think - contains all of the includes for the UE project.

I am using the new pre-built binaries https://www.unrealengine.com/en-US/linux

I don't know if it is a version 5 thing or a pre-built binaries thing but there doesn't seem to be a "UE4Defines.pri" equivalent for this build.

I'm hoping that all we need to do to get this working is just resolving this "UE4Defines.pri" issue?

I'm including some of the terminal output so you can see for yourself.

` <?xml version="1.0" encoding="UTF-8"?>AccessDeniedAccess denied No more distrubition hosts to try for manifest. Error: No more distrubition hosts to try for manifest. at downloadItemManifest (/home/thom/github/UE4Launcher/libs/epicApi.js:540:19) at Request._callback (/home/thom/github/UE4Launcher/libs/epicApi.js:566:13) at self.callback (/home/thom/github/UE4Launcher/node_modules/request/request.js:185:22) at Request.emit (node:events:526:28) at Request. (/home/thom/github/UE4Launcher/node_modules/request/request.js:1154:10) at Request.emit (node:events:526:28) at IncomingMessage. (/home/thom/github/UE4Launcher/node_modules/request/request.js:1076:12) at Object.onceWrapper (node:events:645:28) at IncomingMessage.emit (node:events:538:35) at endReadableNT (node:internal/streams/readable:1345:12) f (!fs.lstatSync(path).isDirectory()) { engineBasePath = p.join(path, "..", "..", "..", ".."); } execPath = path;Error: Command failed: git describe --abbrev=0 fatal: not a git repository (or any of the parent directories): .git

at checkExecSyncError (node:child_process:837:11)
at Object.execSync (node:child_process:911:15)
at Object.execSync (node:electron/js2c/asar_bundle:5:12704)
at getEngineVersion (/home/thom/github/UE4Launcher/main.js:773:41)
at addEngine (/home/thom/github/UE4Launcher/main.js:827:21)
at IpcMainImpl.<anonymous> (/home/thom/github/UE4Launcher/main.js:995:9)
at IpcMainImpl.emit (node:events:526:28)
at EventEmitter.<anonymous> (node:electron/js2c/browser_init:161:11829)
at EventEmitter.emit (node:events:526:28) {

status: 128, signal: null, output: [ null, '', 'fatal: not a git repository (or any of the parent directories): .git\n' ], pid: 99152, stdout: '', stderr: 'fatal: not a git repository (or any of the parent directories): .git\n' } Error: ENOENT: no such file or directory, open '/opt/Linux_Unr/UE4Defines.pri' at Object.openSync (node:fs:585:3) at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812) at Object.readFileSync (node:fs:453:35) at e.readFileSync (node:electron/js2c/asar_bundle:5:9160) at getEngineVersion (/home/thom/github/UE4Launcher/main.js:784:19) at addEngine (/home/thom/github/UE4Launcher/main.js:827:21) at IpcMainImpl. (/home/thom/github/UE4Launcher/main.js:995:9) at IpcMainImpl.emit (node:events:526:28) at EventEmitter. (node:electron/js2c/browser_init:161:11829) at EventEmitter.emit (node:events:526:28) { errno: -2, syscall: 'open', code: 'ENOENT', path: '/opt/Linux_Unr/UE4Defines.pri' } Error: Cannot add engine at addEngine (/home/thom/github/UE4Launcher/main.js:839:11) at IpcMainImpl. (/home/thom/github/UE4Launcher/main.js:995:9) at IpcMainImpl.emit (node:events:526:28) at EventEmitter. (node:electron/js2c/browser_init:161:11829) at EventEmitter.emit (node:events:526:28) Error: Command failed: git describe --abbrev=0 fatal: not a git repository (or any of the parent directories): .git

at checkExecSyncError (node:child_process:837:11)
at Object.execSync (node:child_process:911:15)
at Object.execSync (node:electron/js2c/asar_bundle:5:12704)
at getEngineVersion (/home/thom/github/UE4Launcher/main.js:773:41)
at addEngine (/home/thom/github/UE4Launcher/main.js:827:21)
at IpcMainImpl.<anonymous> (/home/thom/github/UE4Launcher/main.js:995:9)
at IpcMainImpl.emit (node:events:526:28)
at EventEmitter.<anonymous> (node:electron/js2c/browser_init:161:11829)
at EventEmitter.emit (node:events:526:28) {

status: 128, signal: null, output: [ null, '', 'fatal: not a git repository (or any of the parent directories): .git\n' ], pid: 100284, stdout: '', stderr: 'fatal: not a git repository (or any of the parent directories): .git\n' } Error: ENOENT: no such file or directory, open '/opt/Linux_Unr/UE4Defines.pri' at Object.openSync (node:fs:585:3) at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812) at Object.readFileSync (node:fs:453:35) at e.readFileSync (node:electron/js2c/asar_bundle:5:9160) at getEngineVersion (/home/thom/github/UE4Launcher/main.js:784:19) at addEngine (/home/thom/github/UE4Launcher/main.js:827:21) at IpcMainImpl. (/home/thom/github/UE4Launcher/main.js:995:9) at IpcMainImpl.emit (node:events:526:28) at EventEmitter. (node:electron/js2c/browser_init:161:11829) at EventEmitter.emit (node:events:526:28) { errno: -2, syscall: 'open', code: 'ENOENT', path: '/opt/Linux_Unr/UE4Defines.pri' } Error: Cannot add engine at addEngine (/home/thom/github/UE4Launcher/main.js:839:11) at IpcMainImpl. (/home/thom/github/UE4Launcher/main.js:995:9) at IpcMainImpl.emit (node:events:526:28) at EventEmitter. (node:electron/js2c/browser_init:161:11829) at EventEmitter.emit (node:events:526:28) Error: Command failed: git describe --abbrev=0 fatal: not a git repository (or any of the parent directories): .git

at checkExecSyncError (node:child_process:837:11)
at Object.execSync (node:child_process:911:15)
at Object.execSync (node:electron/js2c/asar_bundle:5:12704)
at getEngineVersion (/home/thom/github/UE4Launcher/main.js:773:41)
at addEngine (/home/thom/github/UE4Launcher/main.js:827:21)
at IpcMainImpl.<anonymous> (/home/thom/github/UE4Launcher/main.js:995:9)
at IpcMainImpl.emit (node:events:526:28)
at EventEmitter.<anonymous> (node:electron/js2c/browser_init:161:11829)
at EventEmitter.emit (node:events:526:28) {

status: 128, signal: null, output: [ null, '', 'fatal: not a git repository (or any of the parent directories): .git\n' ], pid: 101654, stdout: '', stderr: 'fatal: not a git repository (or any of the parent directories): .git\n' } Error: ENOENT: no such file or directory, open '/opt/Linux_Unr/UE4Defines.pri' at Object.openSync (node:fs:585:3) at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812) at Object.readFileSync (node:fs:453:35) at e.readFileSync (node:electron/js2c/asar_bundle:5:9160) at getEngineVersion (/home/thom/github/UE4Launcher/main.js:784:19) at addEngine (/home/thom/github/UE4Launcher/main.js:827:21) at IpcMainImpl. (/home/thom/github/UE4Launcher/main.js:995:9) at IpcMainImpl.emit (node:events:526:28) at EventEmitter. (node:electron/js2c/browser_init:161:11829) at EventEmitter.emit (node:events:526:28) { errno: -2, syscall: 'open', code: 'ENOENT', path: '/opt/Linux_Unr/UE4Defines.pri' } Error: Cannot add engine at addEngine (/home/thom/github/UE4Launcher/main.js:839:11) at IpcMainImpl. (/home/thom/github/UE4Launcher/main.js:995:9) at IpcMainImpl.emit (node:events:526:28) at EventEmitter. (node:electron/js2c/browser_init:161:11829) at EventEmitter.emit (node:events:526:28) Error: Command failed: git describe --abbrev=0 fatal: not a git repository (or any of the parent directories): .git

at checkExecSyncError (node:child_process:837:11)
at Object.execSync (node:child_process:911:15)
at Object.execSync (node:electron/js2c/asar_bundle:5:12704)
at getEngineVersion (/home/thom/github/UE4Launcher/main.js:773:41)
at addEngine (/home/thom/github/UE4Launcher/main.js:827:21)
at IpcMainImpl.<anonymous> (/home/thom/github/UE4Launcher/main.js:995:9)
at IpcMainImpl.emit (node:events:526:28)
at EventEmitter.<anonymous> (node:electron/js2c/browser_init:161:11829)
at EventEmitter.emit (node:events:526:28) {

status: 128, signal: null, output: [ null, '', 'fatal: not a git repository (or any of the parent directories): .git\n' ], pid: 101670, stdout: '', stderr: 'fatal: not a git repository (or any of the parent directories): .git\n' } Error: ENOENT: no such file or directory, open '/opt/Linux_Unr/UE4Defines.pri' at Object.openSync (node:fs:585:3) at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1812) at Object.readFileSync (node:fs:453:35) at e.readFileSync (node:electron/js2c/asar_bundle:5:9160) at getEngineVersion (/home/thom/github/UE4Launcher/main.js:784:19) at addEngine (/home/thom/github/UE4Launcher/main.js:827:21) at IpcMainImpl. (/home/thom/github/UE4Launcher/main.js:995:9) at IpcMainImpl.emit (node:events:526:28) at EventEmitter. (node:electron/js2c/browser_init:161:11829) at EventEmitter.emit (node:events:526:28) { errno: -2, syscall: 'open', code: 'ENOENT', path: '/opt/Linux_Unr/UE4Defines.pri' } Error: Cannot add engine at addEngine (/home/thom/github/UE4Launcher/main.js:839:11) at IpcMainImpl. (/home/thom/github/UE4Launcher/main.js:995:9) at IpcMainImpl.emit (node:events:526:28) at EventEmitter. (node:electron/js2c/browser_init:161:11829) at EventEmitter.emit (node:events:526:28)

`