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

How can I actually run nxengine-evo with multiple languages? #249

Closed
crocket opened this issue Oct 30, 2021 · 5 comments
Closed

How can I actually run nxengine-evo with multiple languages? #249

crocket opened this issue Oct 30, 2021 · 5 comments

Comments

@crocket
Copy link

crocket commented Oct 30, 2021

The instruction on https://github.com/nxengine/nxengine-evo/wiki/Running is incomplete.

  • Somehow, it always assumes that everything is in /usr/share/nxengine. Can it run somewhere else?
  • I want to run Cave Story in multiple languages including english and japanese.
@crocket crocket changed the title How can I actually run nxengine-evo? How can I actually run nxengine-evo with multiple languages? Oct 30, 2021
@isage
Copy link
Collaborator

isage commented Oct 30, 2021

Languages are included, you don't need to have different cave story versions (see buildscripts for appimage, for example)
Yes, it assumes that data is in /usr/share/nxengine.
You can build it with PORTABLE (assumes that data is in same folder as binary) or with custom DATADIR.
Or just use appimage/snap, it includes all data.

@crocket
Copy link
Author

crocket commented Oct 30, 2021

Figuring out the necessary components to build a gentoo linux package for nxengine-evo from flakpak build script was quite challenging without the right instructions.

I needed

After building nxengine-evo, I copied cavestoryen.zip/data, cavestoryen.zip/Doukutsu.exe, and all.zip/data to nxengine-evo source directory and executed build/nxextract and make install.

This should be documented properly for linux distribution package maintainers.

Here is the gentoo linux package for nxengine-evo-2.6.5

# Copyright 2018-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION="rewrite of the Doukutsu Monogatari(Cave Story)"
HOMEPAGE="https://github.com/nxengine/nxengine-evo"
SRC_URI="https://github.com/nxengine/nxengine-evo/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://www.cavestory.org/downloads/cavestoryen.zip
	https://github.com/nxengine/translations/releases/download/v1.14/all.zip -> ${PN}-translations-1.14.zip"
SLOT="0"
LICENSE="GPL-3"
KEYWORDS="~amd64"

DEPEND="
	media-libs/libpng:=
	virtual/jpeg
	media-libs/libsdl2:=
	media-libs/sdl2-mixer:=
	media-libs/sdl2-image:=
"
BDEPEND="app-arch/unzip"

src_install() {
	cp -r "${WORKDIR}/CaveStory/data" . || die
	cp "${WORKDIR}/CaveStory/Doukutsu.exe" . || die
	cp -r "${WORKDIR}/data" . || die
	"${S}_build"/nxextract || die
	cmake_src_install
}

@xordspar0
Copy link
Contributor

See also for reference the Arch AUR package and my personal Alpine package. Now that you mention it, those versions don't include multiple languages. I will probably update them to do that.

@isage isage closed this as completed Nov 8, 2021
@crocket
Copy link
Author

crocket commented Nov 9, 2021

I think this issue is prematurely closed. The setup instructions should be documented somewhere.

@isage
Copy link
Collaborator

isage commented Nov 9, 2021

#252

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

3 participants