Storyboard IO example

Crank Storyboard Designer samples and code snippets.

Moderator: jamiev

Re: Storyboard IO example

Postby ybe » Wed Jul 17, 2013 6:56 am

if I launch the .gapp file from a command prompt, it works :)

cheers,
Yves
ybe
 
Posts: 38
Joined: Tue Jun 18, 2013 2:20 am

Re: Storyboard IO example

Postby jason » Wed Jul 17, 2013 7:30 am

You might just need to set you channel name in the simulator options. When we simulate we use a temp filename for the gapp file which will cause issues this the Storyboard IO channel name if the channel isn't set in the options.

There is another example in the public SVN repository
http://www.cranksoftware.com/repo/story ... IO_Cluster

And in this one there is the attached ReadMe.pdf that explains "Using Simulator as the target". (I've attached it to this post)

FYI - Anyone reading this post that doesn't know about the public SVN should take a look at this
http://www.cranksoftware.com/cranksoftw ... /ch15.html
Attachments
ReadMe.pdf
ReadMe
(301.48 KiB) Downloaded 865 times
User avatar
jason
 
Posts: 193
Joined: Mon Nov 02, 2009 4:53 pm

Re: Storyboard IO example

Postby ybe » Wed Jul 17, 2013 7:34 am

I am trying to port this sample to WinCE7 now but it seems a little tricky for the C app

Yves
ybe
 
Posts: 38
Joined: Tue Jun 18, 2013 2:20 am

Re: Storyboard IO example

Postby jason » Wed Jul 17, 2013 7:52 am

Oh, I figured when you said it works from the command line you meant it didn't work from the simulator.
User avatar
jason
 
Posts: 193
Joined: Mon Nov 02, 2009 4:53 pm

Re: Storyboard IO example

Postby ChrisK » Wed Jul 17, 2013 8:08 am

In WinCE7, when you run with verbosity turned on (-vvv) what does Storyboard output? I just want to make sure Storyboard is opening up the gre_io channel correctly.
ChrisK
 
Posts: 38
Joined: Wed Nov 04, 2009 3:34 pm

Re: Storyboard IO example

Postby jason » Wed Jul 17, 2013 8:58 am

I only have my Mac with me right now but the verbose output should be almost the same. This is with -vvvv

The bold red lines are the ones that matter. The first shows the greio plugin was loaded and the second shows the channel was was registered


DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-animation.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-audio.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-capture-playback.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-dynamic-rext.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-event-redirect.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-gesture.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-greio.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-logger.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-lua.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-model3d.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-poly.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-screen-3d.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-screen-dump.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-screen-path.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-screen-scale.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-system.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/libgre-plugin-timer.so]
DIAG (140735141540224):Detected plugin [/Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/librender-plugin-opengles_2.0.so]
INFO (140735141540224):Manager: data_mgr Internal: 0x16a37
INFO (140735141540224):Manager: model_mgr Internal: 0x154c9
INFO (140735141540224):Manager: io_mgr Internal: 0x1d85b
INFO (140735141540224):Manager: action_mgr Internal: 0x1ed49
INFO (140735141540224):Manager: render_mgr Plugin: /Applications/Crank_Software/Storyboard_Engine/3.1.0.201304081236/macos-x86-opengles_2.0-obj/plugins/librender-plugin-opengles_2.0.so
INFO (140735141540224):Manager: screen_mgr Internal: 0x197d4
INFO (140735141540224):Manager: resource_mgr Internal: 0x1794e
INFO (140735141540224):Initialize Data Manager []
INFO (140735141540224):Initialize Model Manager []
INFO (140735141540224):Initialize IO Manager []
INFO (140735141540224):Initialize Action Manager []
INFO (140735141540224):Initialize Render Manager []
INFO (140735141540224):Initialize Screen Manager []
INFO (140735141540224):Initialize Resource Manager []
INFO (140735141540224):Initialize plugin: [animate (3.1.0.10024)] []
INFO (140735141540224):Initialize plugin: [audio (3.1.0.10024)] []
INFO (140735141540224):Initialize plugin: [capture_playback (3.1.0.10024)] []
INFO (140735141540224):Initialize plugin: [dynamic.rextension (3.1.0.10024)] []
INFO (140735141540224):Initialize plugin: [redirect (3.1.0.10024)] []
INFO (140735141540224):Initialize plugin: [gesture (3.1.0.10024)] []
INFO (140735141540224):Initialize plugin: [greio (3.1.0.10024)] [channel=Thermostat_Demo2.gapp]
User avatar
jason
 
Posts: 193
Joined: Mon Nov 02, 2009 4:53 pm

Re: Storyboard IO example

Postby ybe » Thu Jul 18, 2013 5:15 am

jason wrote:Oh, I figured when you said it works from the command line you meant it didn't work from the simulator.


that's right. it doesn't really matter as I most wanted to run it on my WinCE device and it works now :)

thanks,
Yves
ybe
 
Posts: 38
Joined: Tue Jun 18, 2013 2:20 am

Re: Storyboard IO example

Postby DarkWishMaster » Wed Nov 06, 2013 8:38 am

why I can't compile weather.c with mingw32 ( gcc) compiler? or greio.h library works only with visual studio?
there's a "security cookie" error.
And using VS 2008 compiler:
C:\Program Files (x86)\Crank Software\Storyboard_Engine\3.1.1.201306141400\win32-x86-win32-obj\include\gre\greio.h|36|fatal error C1189: #error : No default GREIO implementation defined for this platform
DarkWishMaster
 
Posts: 47
Joined: Wed Oct 23, 2013 6:23 am

Re: Storyboard IO example

Postby jamiev » Wed Nov 06, 2013 11:56 am

Here is a blog post to verify your VS 2008 setup ...

http://www.cranksoftware.com/blog/?p=1006
User avatar
jamiev
 
Posts: 60
Joined: Wed Nov 04, 2009 2:14 pm

Re: Storyboard IO example

Postby DarkWishMaster » Tue Nov 12, 2013 5:30 am

All works fine (at least weather sample), thank you very much :)
One question. I tried to run weather.exe via Lua os.execute("weather.exe") it doesn't work properly. (my app turns white). It works only when after running storyboard app, I will execute manually weather exe. Can I somehow run it programatically when gre.init event is fired?
DarkWishMaster
 
Posts: 47
Joined: Wed Oct 23, 2013 6:23 am

PreviousNext

Return to Samples

Who is online

Users browsing this forum: No registered users and 1 guest

cron