Dingoonity.org

GCW Zero => Development => Topic started by: Shin-NiL on August 28, 2013, 06:30:28 pm

Title: Could you test my applications?
Post by: Shin-NiL on August 28, 2013, 06:30:28 pm
For some time I have been trying to develop for GCW-Zero, but the biggest problem I have is that I don't have a device to test the programs. My unit is still at the customs clearence since  August 19 (yes, Brazilian customs sucks).

To lessen my anxiety I would ask someone to test these applications, so I could tweak them gradually if problems occur.

So, my first one is Zelda ROTH, (seems ok)
here's the opk file: Please, visit this link (http://boards.dingoonity.org/gcw-releases/zelda-trilogy-%28roth-olb-and-3t%29/) for public release
source code: https://bitbucket.org/shin_nil/zelda-roth-for-opendingux

second, Zelda OLB (seems ok)
opk: Please, visit this link (http://boards.dingoonity.org/gcw-releases/zelda-trilogy-%28roth-olb-and-3t%29/) for public release
souce code: https://bitbucket.org/shin_nil/zelda-olb-for-opendingux

third, Zelda 3T  (seems ok)
opk: Please, visit this link (http://boards.dingoonity.org/gcw-releases/zelda-trilogy-%28roth-olb-and-3t%29/) for public release
source code: https://bitbucket.org/shin_nil/zelda-3t-for-opendingux

Please, let me know the results.

Thank you very much ;)
Title: Re: Could you test my applications?
Post by: hi-ban on August 28, 2013, 06:54:34 pm
I haven't found any bug, the game runs flawlessly. But the X/Y buttons in the GCW Zero are reversed from those of the dingoo (in Dingoo, the upper button is X and the left button is Y. In the GCW0, the upper button is Y and the left button is X). Right now, the game says "press X to show the map" but the button which shows the map is Y.

So you should add an #ifdef GCWZERO and either change the button labels or the button mapping codes in the source code.
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 28, 2013, 06:57:51 pm
Thanks hi-ban. I did'nt know that x/y issue, this should be easy to fix ;)
Title: Re: Could you test my applications?
Post by: RodrigoCard on August 28, 2013, 09:11:21 pm
Thanks hi-ban. I did'nt know that x/y issue, this should be easy to fix ;)

It was the first thing I noticed when I looked at the GCW pics the first time. haha  8)
Title: Re: Could you test my applications?
Post by: opt2not on August 29, 2013, 12:50:10 am
I'll try this out when I get home from work. Looks promising!  8)
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 29, 2013, 01:52:45 am
Ok, opk file updated, X & Y buttons should be correct now. Source code was also added in the first post.
I'll post my others experiments here while my GCW does not arrives. The next step is Zelda OLB.

Just one more thing, could someone confirm if save is working fine? I've changed the file location, it should be at /boot/local/home/.zeldaROTH_US/save/system.dat

Thanks guys ;)
Title: Re: Could you test my applications?
Post by: zephyrus on August 29, 2013, 06:59:49 am
cool game, thx! unfortunately save doesn't work, it doesn't create the folder in the home directory.
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 29, 2013, 01:12:11 pm
Thanks zephyrus. OPK updated, save should work now.
Title: Re: Could you test my applications?
Post by: ruffnutts on August 29, 2013, 01:20:01 pm
Nice one Shin-NiL ;)

Will you be making minislug into an opk?

ruffnutts 8)
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 29, 2013, 01:31:26 pm
Yes, I can do it ruffnutts. I'll ask Cl?ment first, since it's is not open source, but I think he will allow the new port.

My initial idea is to redo my ports for A320 to GCW-zero, so I accept suggestions in the order that I must follow. After getting confidence with the new platform, I'll work on new things.
Title: Re: Could you test my applications?
Post by: ruffnutts on August 29, 2013, 01:33:55 pm
Yes, I can do it ruffnutts. I'll ask Cl?ment first, since it's is not open sourced, but I think he will allow the new port.

Ok cool... what else do you have planed for the Zero ;)
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 29, 2013, 01:38:23 pm
Just edited my previous post. The new things I rather keep secret, for now 8)
Title: Re: Could you test my applications?
Post by: ruffnutts on August 29, 2013, 01:40:37 pm
Just edited my previous post. The new things I rather keep secret, for now 8)

Ok well what about OpenXcom I see there's and old build managed by you for dingoo A320 here

http://shinnil.blogspot.se/2012/02/openxcom-para-dingux-nova-compilacao.html

ruffnutts

Title: Re: Could you test my applications?
Post by: Shin-NiL on August 29, 2013, 02:00:24 pm
ok, request noted ;)
I hope there are no drastic changes in the project.
Title: Re: Could you test my applications?
Post by: ruffnutts on August 29, 2013, 02:07:18 pm
ok, request noted ;)
I hope there are no drastic changes in the project.

Cool... lets hope not lol

Title: Re: Could you test my applications?
Post by: zephyrus on August 29, 2013, 04:51:27 pm
all is working fine now! thx again  :) really lookin forward to olb and 3t  ;D
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 30, 2013, 12:41:53 am
Zelda OLB added, I hope it works fine. Please, let me know how it runs.
Zelda 3T will take more time, since I'll do the port from scratch  :-[
Title: Re: Could you test my applications?
Post by: zephyrus on August 30, 2013, 07:18:24 am
zelda olb won't start, jumps back to gmenu after black screen.
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 30, 2013, 10:18:02 am
Is there any message at Log Viewer?
Title: Re: Could you test my applications?
Post by: zephyrus on August 30, 2013, 11:15:38 am
sorry i forgot to write it, it says "aborted"
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 30, 2013, 12:57:46 pm
Thanks again, zephyrus. I've updated the link. If it still does not working, we'll have to wait to get my device for debugging :'(
Title: Re: Could you test my applications?
Post by: zephyrus on August 30, 2013, 01:47:45 pm
it runs perfect, save is working  :) the only log message that occurs in both zelda roth and olb is:
"ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occured"
it doesn't affect gameplay, but it might help you until your zero finally arrrives. great work!
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 30, 2013, 01:53:58 pm
Wow it worked? Actually I did not expect that ;)
The log you post is occurring on all my OpenDingux ports, so it's not really a issue.

To celebrate I'll post the source code on the first post.

Thank you very much, my friend.
Title: Re: Could you test my applications?
Post by: hi-ban on August 30, 2013, 02:06:05 pm
Could you comment on what changes did you do for the GCW ports? That might be useful for other people who want to port stuff from Dingoo into the GCW...
Title: Re: Could you test my applications?
Post by: ruffnutts on August 30, 2013, 03:07:56 pm
Thanks again for your effort Shin-NiL ;D
Title: Re: Could you test my applications?
Post by: Shin-NiL on August 30, 2013, 06:21:42 pm
Could you comment on what changes did you do for the GCW ports? That might be useful for other people who want to port stuff from Dingoo into the GCW...
Sure, if you are porting a previous OpenDingux app it was basicaly two things:

1) Change and create the save file directory, as squashfs is readonly:
Code: [Select]
#ifdef GCWZERO
    system("mkdir -p /boot/local/home/.zeldaROTH_US/save/");
    ofstream f(("/boot/local/home/.zeldaROTH_US/save/roth" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#else
    ofstream f(("data/save/roth" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#endif

2) Remap X/Y buttons due GCW-Zero layout:
Code: [Select]
#ifdef GCWZERO //GCW-Zero's X/Y
    #define SDLK_p              304 //X USE ITEM
    #define SDLK_x              32 //Y MAP
#else //DINGOO Y/X
    #define SDLK_p              32 //X USE ITEM
    #define SDLK_x              304 //Y MAP
#endif

If you're porting a Dingux Legacy app, maybe you have to do some adjusts at SDL_SetVideoMode flags before.


Thanks again for your effort Shin-NiL ;D

You're welcome, my friend :)
Title: Re: Could you test my applications?
Post by: mth on September 01, 2013, 08:28:35 pm
1) Change and create the save file directory, as squashfs is readonly:
Code: [Select]
#ifdef GCWZERO
    system("mkdir -p /boot/local/home/.zeldaROTH_US/save/");
    ofstream f(("/boot/local/home/.zeldaROTH_US/save/roth" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#else
    ofstream f(("data/save/roth" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#endif
Please don't hardcode the home directory; that might break as we continue to develop OpenDingux and is not portable to other systems. And in any case don't rely on /boot; if you really must hardcode it (again, please don't), use /usr/local/home.

The reliable way to get the home directory is to read the HOME environment variable. This can be done with "$HOME" or simply "~" in shell scripts and getenv() in C.
Title: Re: Could you test my applications?
Post by: Deagle275 on September 02, 2013, 01:35:27 am
Zelda 3T will take more time, since I'll do the port from scratch  :-[
Why ? Weren't they made with C++ and SDL ?
Title: Re: Could you test my applications?
Post by: Shin-NiL on September 02, 2013, 01:19:53 pm
@mth: Thanks for your tips, I'll use the getenv approach from now ;)
Code: [Select]
#ifdef GCWZERO
    string home = getenv("HOME");
    string savePath(home + "/.zelda3T_US/save/");
    system(("mkdir -p " + savePath).c_str());
    ofstream f((savePath + "3t" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#else
    ofstream f(("data/save/3t" + im.str() + ".dat").c_str(),ios::out | ios::binary);
#endif

@Deagle275: Yes, they are, but for the previous ones (ROTH & OLB) I've made a port to A320 OpenDingux some time ago, so ~90% of work was already done. For 3T I'm working from the beginning.

@Testers: I just added Zelda 3T in the first post   ;D
Title: Re: Could you test my applications?
Post by: zephyrus on September 02, 2013, 02:54:22 pm
applause :) zelda 3t runs smooth, no bugs here. thank you once again!
Title: Re: Could you test my applications?
Post by: Shin-NiL on September 02, 2013, 06:13:52 pm
applause :) zelda 3t runs smooth, no bugs here. thank you once again!
Thanks zephyrus, what a nice surprise ;) Source code will be released soon, I need to write down a good README.
Title: Re: Could you test my applications?
Post by: Shin-NiL on September 09, 2013, 12:48:12 pm
Source code for Zelda 3T was added.

I received my unit this weekend, so after some tests I will release the final version of these games.

Many thanks to all who helped in testing. You guys are great ;)