Akuma: An alternative PC host

A place for developers to promote games they have created with Moai.

Moderator: ezraanderson

Akuma: An alternative PC host

Postby thebullno1 » Fri Jul 08, 2011 12:55 am

This is my implementation of an alternative PC host for Moai:


github project page: https://github.com/bullno1/Akuma



Current features:


Customizable device specs through "profiles"
Ctrl+R to restart the simulator
Automatically restart the simulator when a change in the project folder is detected
Works out of the box with Decoda debugger

Future plans:


Quick profile switching
Support Tilde debugger
Better config system
Accelerometer, multitouch input in simulator
Receives accelerometer, multitouch input from a device
Any other suggestions?
Last edited by thebullno1 on Wed Mar 13, 2013 1:36 am, edited 1 time in total.
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Akuma: An alternative PC host

Postby patrick » Fri Jul 08, 2011 3:13 am

Sweet!
User avatar
patrick
 
Posts: 657
Joined: Sat Apr 02, 2011 10:50 pm

Akuma: An alternative PC host

Postby dissidently » Sat Jul 09, 2011 2:18 am

+1


  • "Receives accelerometer, multitouch input from a device"


And a huge ask... make this mac as well, for iOS etc.
dissidently
 
Posts: 36
Joined: Sat Apr 23, 2011 8:37 am

Akuma: An alternative PC host

Postby thebullno1 » Sat Jul 09, 2011 11:20 pm

Thanks for the feedbacks.

The thing is I don't have a Mac Frown. If someone does, please help out.
If you look at the source code, you'll see that I use only portable libraries and the build system(premake) is also cross-platform so it should be easy to make it work on Mac.
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Akuma: An alternative PC host

Postby todd » Thu Jul 28, 2011 2:41 pm

This is a great contribution Bach - thanks!
User avatar
todd
 
Posts: 262
Joined: Fri Mar 25, 2011 1:11 pm

Akuma: An alternative PC host

Postby travisbrownjohn » Wed Aug 10, 2011 11:30 am

This sounds great.  I wanted to check out the project, and I had trouble running the binaries (MSVCR100.dll errors).



I decided to go to GitHub and try building from source.  After a little tinkering around the code is compiling (I think I'm compiling against a different version of SFML) but I'm getting a spew of link errors:

1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_unbind_s referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_msgfree referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_next_entry referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ber_free referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_next_attributeW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_memfreeW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_value_free_len referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_get_values_lenW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_first_attributeW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_get_dnW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_first_entry referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_search_sW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_simple_bind_sW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_initW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_set_optionW referenced in function _Curl_ldap
1>moaicore.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_err2stringW referenced in function _Curl_ldap



Any help is greatly appreciated!  Thanks so much for this contribution, it looks great!


Travis
travisbrownjohn
 
Posts: 1
Joined: Wed Aug 10, 2011 6:27 pm

Akuma: An alternative PC host

Postby thebullno1 » Wed Aug 10, 2011 6:38 pm

I use SFML dll version with dynamic runtime library (since freetype shipped with sfml is using it)

It seems like you didn't link with a library that moai depends on. ldap stuffs should be in IWldap32.lib

I only compiled against Moai 0.3. This looks like a new feature. Btw, there's some API renaming in recent Moai versions, I don't think the current version in github can compile.



I'll update the project soon
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Re: Akuma: An alternative PC host

Postby thebullno1 » Tue Feb 14, 2012 9:54 am

Hi, I started to work on this project again. It seems I can't edit my post, I just post here.
Latest release: https://github.com/downloads/bullno1/Ak ... in-0.2.zip

Changes:
- Removed AntTweakBar and SFML.
- Use SDL 1.2 for graphics and input instead. It should be much easier to build now.
- Multitouch simulation.

Moving forward, I think I'll just implement most planned features using lua and Moai since it's much easier and I don't have to worry about conflicts (one of the reason why I choose SDL over SFML).
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Re: Akuma: An alternative PC host

Postby Mud » Tue Feb 14, 2012 10:34 am

I use Akuma and it rocks. Thanks! The #1 feature I'd love to see: remembering window position. I stick Akuma to the left of my screen to make room for my editor, but every time a change a file Akuma returns to center screen and I have to reposition it.
Mud
 
Posts: 60
Joined: Sun Jan 29, 2012 9:54 pm

Re: Akuma: An alternative PC host

Postby thebullno1 » Tue Feb 14, 2012 10:49 am

Mud wrote:I use Akuma and it rocks. Thanks! The #1 feature I'd love to see: remembering window position. I stick Akuma to the left of my screen to make room for my editor, but every time a change a file Akuma returns to center screen and I have to reposition it.


The latest version using SDL shouldn't have this problem while restarting.
It doesn't save position between different runs though.
You can set the SDL_VIDEO_WINDOW_POS environment variable to override windows placement. Make it part of your launch script or something.
http://www.libsdl.org/cgi/docwiki.cgi/E ... _variables
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Re: Akuma: An alternative PC host

Postby Mud » Tue Feb 14, 2012 12:32 pm

thebullno1 wrote:The latest version using SDL shouldn't have this problem while restarting.


Awesome.

thebullno1 wrote:Make it part of your launch script or something.


The beauty of Akuma's file watcher is that I don't really need a launch script; I just fire it up once at the start of a session and I'm golden. :)
Mud
 
Posts: 60
Joined: Sun Jan 29, 2012 9:54 pm

Re: Akuma: An alternative PC host

Postby thebullno1 » Mon Feb 20, 2012 3:53 am

Since I decided to implement most features as pluggable lua modules, there's not much ahead. I decided to just bump Akuma to 1.0.

Changes:
- Properly handle Lua panic
- Multitouch sample
- ARC sample (akuma-arsenal-t525/)
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Re: Akuma: An alternative PC host

Postby Sergeyka » Wed Feb 22, 2012 7:12 am

Hello thebullno1.

http://code.google.com/p/luaforwindows/downloads/list - There is the SciTe with Scite-debugger
I learned to run the Akuma on F5
You need do next:
In "C:\Program Files\Lua\5.1\SciTE\lua.properties" need to replace this line
command.go.*.lua=lua -e "io.stdout:setvbuf 'no'" "$(FileNameExt)"
to this:
command.go.*.lua="Path to Akuma.exe" "Path to profile" "$(FileNameExt)"

You will be hard to add support for debugger?
May be need to change anything there? :
"C:\Program Files\Lua\5.1\SciTE\scite-debug\scite_lua\debug\luagdb.lua"
Interesting line:

Code: Select all
  1.  if self.not_lua then

  2.         cmdline = ''    

  3.     else

  4.         cmdline = ('-e "%s.path=%s..%s.path; %s.cpath=%s..%s.cpath; GDB=true; WIN=%s" -lclidebug %s'):format(

  5.                         p,ppath,p,p,cpath,p,choose(GTK,'false','true'),self.lua_target)        

  6.     end

  7.         print('*',cmdline)

  8.         return cmdline..' '..parms

  9. end


p.s.Sorry for english.
Sometimes I use google translate. For example now =)
Sergeyka
 
Posts: 37
Joined: Mon Feb 13, 2012 12:51 pm
Location: Russia

Re: Akuma: An alternative PC host

Postby thebullno1 » Wed Feb 22, 2012 8:38 am

Currently, I edit using gVim and debug with Decoda. It's not free but it does the job well..

If you want a free alternative, try Eclipse: howto-debuging-lua-code-quick-and-dirty-t527/
Note that all modules including luasocket is enabled by default in Akuma so you can skip step 3 in his instruction.
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Re: Akuma: An alternative PC host

Postby Sergeyka » Wed Feb 22, 2012 9:06 am

Thanks, but i wanted to create autocomplete RapaNui framework for Scite and was be great if i will connect to free debugger. How are you interacting the Akuma with the Decoda?
Eclipse and IDEA is a bloat software =(
Sometimes I use google translate. For example now =)
Sergeyka
 
Posts: 37
Joined: Mon Feb 13, 2012 12:51 pm
Location: Russia

Re: Akuma: An alternative PC host

Postby thebullno1 » Wed Feb 22, 2012 9:42 am

That's why I use vim ;). The learning curve is steep but it pays off in the end.

Decoda does some magic with debug symbols. Give Decoda the path to the exe and the pdb files and it will seek out your lua calls and automatically hook to your lua_state. Basically, you don't need to prepare anything at all.

I tried many debuggers in the past but none was as good as Decoda.

Btw, is moai harness project still active?

Edit: wait a sec, why would a simulator need remote debugging? Something's wrong with me today. Anyway, it's still nice to support a free debugger.

Edit2: Tilde debugger patches lua. There's too much trouble just to enable debugging.
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Re: Akuma: An alternative PC host

Postby Sergeyka » Wed Feb 22, 2012 1:27 pm

difficult to express their thoughts in a foreign language =( "Google translate" not the best translator =)

what data you give to decoda? lua do not understand the RapaNui(or Moai) framework but decoda across Akuma is understand..
Sometimes I use google translate. For example now =)
Sergeyka
 
Posts: 37
Joined: Mon Feb 13, 2012 12:51 pm
Location: Russia

Re: Akuma: An alternative PC host

Postby thebullno1 » Wed Feb 22, 2012 1:46 pm

What do you mean by "lua do not understand Moai"?
Like I said earlier, a pdb file is enough. I guess decoda locates the call to lua_newstate and capture the returned value.
Decoda has a 30 day trial. Just try it out yourself.
User avatar
thebullno1
 
Posts: 319
Joined: Sat Jul 02, 2011 8:53 am

Re: Akuma: An alternative PC host

Postby Sergeyka » Wed Feb 22, 2012 2:18 pm

thebullno1 wrote:What do you mean by "lua do not understand Moai"?


LuaEdit, Scite and other used lua compiler probably. Their debugger works with regular lua file. But when i will start .lua with keywords of RapaNui it is not work.

For example:
This keyword debugger does not know : require("RNUtil")
But Decoda with Akuma is work... May be Decoda is filtered this words?
p.s. I tried decoda. While I am looking for free solution.. If not found, then simply choose a normal editor and add support some API of RapaNui.

I'm not programmer but advanced user =)
Sometimes I use google translate. For example now =)
Sergeyka
 
Posts: 37
Joined: Mon Feb 13, 2012 12:51 pm
Location: Russia

Re: Akuma: An alternative PC host

Postby Sergeyka » Sat Feb 25, 2012 10:05 am

hi.
Maybe you would be interested.
wikiwiki.jp/lldebug/ - Lua debugger with sources on C++
Sometimes I use google translate. For example now =)
Sergeyka
 
Posts: 37
Joined: Mon Feb 13, 2012 12:51 pm
Location: Russia

Next

Return to Made With Moai

Who is online

Users browsing this forum: No registered users and 0 guests

x