Package Details: sonic2013-git r953.b78db1b-1

Git Clone URL: https://aur.archlinux.org/sonic2013-git.git (read-only, click to copy)
Package Base: sonic2013-git
Description: A full decompilation of Sonic 1 & 2 (2013).
Upstream URL: https://github.com/Rubberduckycooly/Sonic-1-2-2013-Decompilation
Keywords: 1 2 2013 game sonic
Licenses: custom:RSDKv3/4 Decompilation Source Code License v1
Provides: sonic2013
Submitter: luluco250
Maintainer: luluco250
Last Packager: luluco250
Votes: 4
Popularity: 0.000000
First Submitted: 2021-01-22 00:35 (UTC)
Last Updated: 2024-04-03 21:12 (UTC)

Latest Comments

1 2 Next › Last »

ThatOneSeong commented on 2024-03-23 00:33 (UTC)

The separate tinyxml2 source isn't needed anymore (and it causes build errors when present) and the recursive submodule update could be made in one line.

Here's a patch for the PKGBUILD that's worked for me:

--- PKGBUILD-orig   2024-03-22 20:28:47.822256483 -0400
+++ PKGBUILD    2024-03-22 20:28:11.946473485 -0400
@@ -18,13 +18,11 @@
 provides=(sonic2013)
 source=(
    "git+${url}.git"
-   'git+https://github.com/leethomason/tinyxml2.git'
    'template-launcher'
    'template.desktop'
 )
 sha256sums=(
    'SKIP'
-   'SKIP'
    '53ea1912492a15bf54f6dba1859aaf0f9ca0c01615f021faa8a3c67449b1fd55'
    '55df140227c69094fac5ee7dd1b8a8e8beef9abe4072dee00e1688a0b9966353'
 )
@@ -37,9 +35,7 @@

 prepare() {
    cd "$srcdir/Sonic-1-2-2013-Decompilation"
-   git submodule init
-   git config submodule.dependencies/all/tinyxml2.url "$srcdir/tinyxml2"
-   git submodule update
+   git submodule update --init --recursive
 }

 build() {

jSQrD commented on 2022-07-26 05:34 (UTC)

@luluco250 I'm having that issue that @ThatOneSeong had it seems that the launcher prefers the RSDKv4 folder over the Sonic 1/2 Folders.

luluco250 commented on 2022-06-18 21:33 (UTC) (edited on 2022-06-18 22:17 (UTC) by luluco250)

@ThatOneSeong I'll try to fix the package so it builds.

As for the save file location, that's pretty terrible, although I think I can make the launchers override XDG_DATA_HOME so we still get individual folders.

Edit: never mind, the way the launchers work still works since the game will still prefer looking for data in the current directory, so no change is needed to make it work.

For some reason they need tinyxml2 to be pulled as a submodule as well as a runtime library, so I fixed that too. And yeah, stb was not needed, thanks for pointing that out.

ThatOneSeong commented on 2022-06-09 15:41 (UTC)

Source repo has all the necessary submodules implemented so there shouldn't be a need to clone stb on its own. Hence why the makepkg has errors due to the dependencies not being included.

Also since this request, RSDKv4 will always use ~/.local/share/RSDKv4 for mods and save files, regardless if the current directory used is an S1 or S2 instance. This voids most of the functionality of the launchers, unfortunately.

Traace commented on 2022-03-20 14:46 (UTC) (edited on 2022-03-20 14:46 (UTC) by Traace)

The Build fails again. Even with dependency tinyxml2 installed.

make: *** No rule to make target 'objects/dependencies/all/tinyxml2/tinyxml2.cpp.o', 
needed by 'bin/RSDKv4'.  Stop.

luluco250 commented on 2021-12-15 10:59 (UTC)

Sorry for the delay, the package is updated now (as well as soniccd-git) to list tinyxml2 as a dependency rather than a manual build step.

It should work fine now.

luluco250 commented on 2021-12-14 17:22 (UTC)

@wma Ah I see, they must've changed tinyxml2 to be a system package dependency rather than a manual git clone to local dir.

I'll take a look and update the package.

wma commented on 2021-12-14 13:44 (UTC) (edited on 2021-12-14 13:49 (UTC) by wma)

Are you using a wrapper like yay to install it or manually using makepkg?

I tried both paru and makepkg -Csif and got the same error.

I get this:

Package tinyxml2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `tinyxml2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'tinyxml2', required by 'virtual:world', not found
mkdir -p objects/RSDKv4
Package tinyxml2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `tinyxml2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'tinyxml2', required by 'virtual:world', not found
[...]
In file included from RSDKv4/Animation.cpp:1:
RSDKv4/RetroEngine.hpp:230:10: fatal error: SDL.h: No such file or directory
  230 | #include <SDL.h>
      |          ^~~~~~~
compilation terminated.
Package tinyxml2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `tinyxml2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'tinyxml2', required by 'virtual:world', not found

On my system, the env var PKG_CONFIG_PATH is unset.

I can see that the script pulls the tinyxml2 repo and links it inside the dependencies dir, but the build still can't find it.

If I install tinyxml2 (either with pacman or adding it to the PKGBUILD), it works. If afterwards I remove tinyxml2, the game won't run and will complain about the missing library.

luluco250 commented on 2021-12-13 10:05 (UTC) (edited on 2021-12-13 10:08 (UTC) by luluco250)

@wma I'm not sure what happened in your case, I just did a clean rebuild + install here and it worked fine.

Tinyxml2 is automatically downloaded (it's in the sources) and linked to the build dir where the package's makefile expects it to be.

Are you using a wrapper like yay to install it or manually using makepkg?

If the former, just run yay -S sonic2013-git and ask it to cleanBuild (or just rm -rf ~/.cache/yay/sonic2013-git and reinstall), it should work.

If the latter, use makepkg -Csif. It'll clean the repo, sync packages, install it and also force it to ignore caches.

I'll do a git push to get rid of the out-of-date flag since I can't reproduce the error. Try following my recommendation and if it still breaks feel free to flag it out-of-date again.

wma commented on 2021-12-12 14:32 (UTC) (edited on 2021-12-12 14:43 (UTC) by wma)

Build is failing with an error related to SDL:

RSDKv4/RetroEngine.hpp:230:10: fatal error: SDL.h: No such file or directory
  230 | #include <SDL.h>
      |          ^~~~~~~
compilation terminated.
make: *** [Makefile:81: objects/RSDKv4/Animation.cpp.o] Error 1

EDIT: It was actually that tinyxml2 was missing from the dependencies.