-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
GCW-Zero port #292
Comments
I've released the gcw build. source is included in the opk. Link to release thread: http://boards.dingoonity.org/gcw-releases/c-dogs-sdl/
src/menu.c src/cdogs/gamedata.c (commented out loadSongList as already noted) src/cdogs/config.c src/cdogs/grafx.c
3)included Desktop file (icon location will need changing of course)
5)built opk: |
I can make the code changes under an |
@DavidKnight247 can you send a photo of the game running on a GCW Zero? would be fun to share 😉 |
No problem, I monitor this thread. Just tell me what to do ;) PS as of today the gcw0 now supports rumble. If it's ok with you I'd love to implement support when screen shake is called. That would be awesome! |
@DavidKnight247 Force feedback has been on the list #172 but as you've seen, it requires SDL 2 #169 |
About the hardware specific ifdef (for example |
default gcw toolchainfile.cmake is this, would it be better to provide a set(CMAKE_SYSTEM_NAME Linux) On Thu, Aug 21, 2014 at 7:22 PM, carstene1ns notifications@github.com
|
Well, this would break for example when the user installs the toolchain in another directory (though this is only valid when compiled from scratch). # check for crosscompiling (defined when using a toolchain file)
if(CMAKE_CROSSCOMPILING)
# check for gcw0
if(CMAKE_C_COMPILER MATCHES ".*gcw0-linux.*")
set(GCW0 true)
endif()
endif()
[...]
if(GCW0)
add_definitions(-DGCWZERO)
endif() |
Source code changes made, need to set the |
Great! I have the toolchain available and will add the auxiliary stuff today... |
#294 should allow building the complete package for gcw0. |
I removed the cdogs config directory and ran the opk. I crashes before the On Tue, Aug 26, 2014 at 2:12 PM, Cong notifications@github.com wrote:
|
Well, I changed nothing in in the code at all, only how the project is built and packaged. |
oops; I forgot to mention that; fixed in latest revision. Can you try removing all the music files from /music/game and /music/menu, and seeing if it works? There are ogg and mod files currently, and maybe GCW Zero is missing the libraries? Not sure about the situation on linux but I know that for Windows I need to also provide dlls of libmikmod, libogg, libvorbis and libvorbisfile. |
What is the escape key mapped to on GCW0? In the game it mentions pressing |
After a bit of investigating, I found out GCW0 has mikmod, modplug and ogg libraries available. MP3 support is missing (i guess because of patent issues). Also, sdl_mixer should fail loading the files and error (This error is also catched by I agree on the system specific buttons. For most dedicated gaming devices there are only a few buttons to map, so we need a way to avoid double mappings. For example the |
@carstene1ns so still no idea why it would crash? I guess it's up to @DavidKnight247 or no music 😦 I'm not sure about having |
Well, I am not sure how to do it, it just should feel "natural" when using on the device. |
SELECT acts as the escape key, START acts as the Return key, keymaps for I'm busy for the rest of the day but I'll take another look at the music On Wed, Aug 27, 2014 at 10:20 AM, Carsten Teibes notifications@github.com
|
btw gcw plays the mod file during the "Distress call from Scientific On Wed, Aug 27, 2014 at 10:57 AM, David Knight djk.optometrist@gmail.com
|
add ports to readme and add wiki image for gcw0 page (#292)
:sigh: it's so much easier to compile when you have instructions like these On Wed, Aug 27, 2014 at 3:18 PM, Carsten Teibes notifications@github.com
|
Well, it did not make sense to add instructions before, as the build system was not ready yet… 😄 |
No joy last night, I'm having trouble running the make_opk.sh script. It Building cdogs.opk... On Thu, Aug 28, 2014 at 4:30 PM, Carsten Teibes notifications@github.com
|
I should add that the compilation preceeding this runs fine and without On Thu, Aug 28, 2014 at 10:19 PM, David Knight djk.optometrist@gmail.com
|
Found the problem, the default shell in CMake is set to sh, not bash. I ran On Thu, Aug 21, 2014 at 9:55 PM, carstene1ns notifications@github.com
|
Okay, when a script is executed with explicit interpreter set (e.g. |
:( sorry. I have tested the default gcw cdogs.opk without modification On Fri, Aug 29, 2014 at 7:52 PM, Carsten Teibes notifications@github.com
|
I ran a gdb session with LoadSongLists uncommented and -O0 -g compiler Starting program: /media/data/local/home/cdogsmusicbugenabled/cdogs-sdl Program received signal SIGSEGV, Segmentation fault.
and thus can't determine the size of that function's stack frame. Inferior 1 [process 1093] will be killed. Quit anyway? (y or n) On Fri, Aug 29, 2014 at 9:33 PM, David Knight djk.optometrist@gmail.com
|
That looks like a crash in an SDL thread, and since it wasn't compiled with debugging symbols it's not very helpful. Try switching to the main thread ( I've also been working on network support but it may not work on GCW-Zero; in |
I have deleted my previous comments as they were confusing and did not describe the reasons why music was causing crashes. Music does work now but I'm trying to get to the root of the problem... Actually can I propose a simple improvement for gcw users(and others?). Can we change the default music directory to $HOME/.config/sdl-dogs/music ? That way users can simply add their own .ogg files. On Sat, Aug 30, 2014 at 2:24 AM, Cong notifications@github.com wrote:
|
Hi @DavidKnight247 , I've found and fixed a crash that sometimes occurs after the briefing screen, it might be the other crash you were talking about. Please try again with the latest revision. |
Thanks, I'll let you know. For the gcw would it be better just to do a simple check for file extension? On Sun, Aug 31, 2014 at 3:01 AM, Cong notifications@github.com wrote:
|
I've further refined the bug conditions. It crashes when parsing the On Sun, Aug 31, 2014 at 8:00 AM, David Knight djk.optometrist@gmail.com
|
I guess we should test, if |
There appears to be a system issue with .mod files. I just tested Rage.mod with GMU. It plays. I then tried molrevenge.mod and I have raised this as an opendingux bug. On Sun, Aug 31, 2014 at 1:30 PM, Carsten Teibes notifications@github.com
|
Good find! Although I don't expect this will be fixed soon. I'd like to replace the music anyway #301 so once that's done and I add a check to skip |
I'm afraid my Gmu testing was flawed. The Gmu behaviour is already fixed in On Mon, Sep 1, 2014 at 3:54 AM, Cong notifications@github.com wrote:
|
I downloaded the top dozen or so .mod tracks from the mod archive. All were files passed successfully by Mix_LoadMUS(file) I've tried a few in games files that cause a crash (the same error is produced each time): 12TH.MOD This is puzzling as I can see no common difference between the files. On Mon, Sep 1, 2014 at 9:01 AM, David Knight djk.optometrist@gmail.com
|
I've just downloaded the latest git version and now cdogs.opk is built The current build instructions for gcw is as follows: 2.1)rm ../music/game/.txt; rm ../music/menu/.txt; rm 3)make All features so far run fine. no crashes yet. I will give it an extensive On Mon, Sep 1, 2014 at 9:29 PM, David Knight djk.optometrist@gmail.com
|
I also do not understand why these files fail. Some of them are actually fast tracker files (.xm), but the others should play. Also, we do not know yet, if the crash happens in sdl_mixer, libmikmod or libmodplug. I guess it happens in modplug, as it takes precedence when available from sdl_mixer and GMU uses libmikmod directly. |
I have updated the opk based on the above method, it plays smoother, is I'll look further into the mod issue tomorrow, I can confirm I tried the On Mon, Sep 1, 2014 at 11:16 PM, Carsten Teibes notifications@github.com
|
It is the latest version: https://github.com/gcwnow/buildroot/blob/opendingux-2014.05/package/libmodplug/libmodplug.mk Also, pinging @cxong for the gh-pages branch update... 😄 |
Seems like we do not need to bother about tracker modules anymore, as all music is in ogg vorbis format now. |
Just followed official build instructions for gcw zero, all now works fine On Tue, Sep 2, 2014 at 3:53 PM, Carsten Teibes notifications@github.com
|
Great! So we can provide official release opks with the next version. |
Mark some files as generated (so make clean removes) Build generates cdogs-sdl.opk Include git submodule update in make.sh Use toolkit version of mksquashfs
(This is a follow-up to issue #273)
Needed things:
sdl_listmodes
, ...)builds/gcw-zero/default.gcw0.desktop
)builds/gcw-zero/make_opk.sh
)cdogs-sdl.opk
generation (optional)The text was updated successfully, but these errors were encountered: