[release]
[h2]Android Framework[/h2]
This addon provides connectivity between an Android device and Garry's mod. With it, you can do awesome shit like controlling the view or changing gravity.
Using this framework, developing a script that hooks on Android is as simple as creating a hook.
[b]Download:[/b]
Always the latest version:
[url=https://github.com/FPtje/AndroidGmod/zipball/master][img]http://i.imgur.com/V4vC5.png[/img][/url]
[b]Git project (includes source of the Android app!)[/b]
[url]https://github.com/FPtje/AndroidGmod[/url]
[b]Videos![/b]
[media]http://www.youtube.com/watch?v=zF6aX_7xyN8[/media]
(Note: the bug in this video is mostly fixed.)
[media]http://www.youtube.com/watch?v=zrExDcEaxLw[/media]
[b]Installation:[/b]
- Put the folder in which this file is located in addons, so you'll have addons/Android Framework
- Connect your Android device to your computer
- Copy the .apk file to your Android device
- On the Android device, go to Settings > Applications and make sure "Unknown sources" is checked
- Open a file browser on the Android device (such as ES File Explorer)
- Go to the .apk and open it
- Follow the instructions to install it
[b]Usage:[/b]
- Start Garry's mod
- Open the console
- enter Android_srvCreateServer to create a serverside Android listener
or enter Android_clCreateServer to create a clientside Android listener.
The clientside Android listener will work on any server that has scriptenforcer disabled.
NOTE: You can't run both the serverside server and the clientside server at the same time!
You will get an error about being unable to create a socket.
- Run one of the example scripts or one of your own scripts
Note for developers: you can run the scripts and add the hooks before starting the Android server.
- Open the Gmod App on your Android device
- Enter the local IP address of your computer (To find out: open Start > enter cmd in search > type ipconfig > read IPV4 address)
- Press connect
- Enjoy :D
[b]Known problems:[/b]
- When tilting the phone in a very specific way, the framework will report weird values. I've tried my best making a workaround for this.
- Sometimes the horizontal rotation (rotating left and right) is not accurate. This is, however, beyond the scope of this framework. It's an Android thing
[/release]
Finally, Android gets something amazing for GMod :dance:
brb, grabbing my Atrix and installing this
Of course falco has to make the ultimate way to prop kill ;)
Great idea, quirky fun.
Heh, I liked this when he started working on this project.
Will download as soon as I have a android phone D:
So much jizz.
For some reason, it doesn't allow me to connect to GMOD with my Galaxy.
[QUOTE=SlayerFin;33548304]For some reason, it doesn't allow me to connect to GMOD with my Galaxy.[/QUOTE]
Are you sure you entered android_clCreateServer or Android_srvCreateServer?
Awesome!
Any plans on Symbian version?
[QUOTE=SiPlus;33548868]Awesome!
Any plans on Symbian version?[/QUOTE]
no.
[QUOTE=FPtje;33548600]Are you sure you entered android_clCreateServer or Android_srvCreateServer?[/QUOTE]
Yeah, still the app says that GMOD can't be reached.
Are you entering the correct IP address?
Are you on the same local network on wifi?
You have to be connected to Wi-Fi?
Oh, damn I'm dumb.
I will test it tomorrow with Wi-Fi.
[B]On which platform you built the project? because I have errors on GCPprotocol.java (I am only beginner in android dev. so if you have any tips it would be great)[/B]
[QUOTE=CoMaNdO;33568792][B]On which platform you built the project? because I have errors on GCPprotocol.java (I am only beginner in android dev. so if you have any tips it would be great)[/B][/QUOTE]
[h2]I built this on Android 2.2[/h2]
used 2.3.3 :|
installing 2.2 :D
I can't use the plugin. (your plugin) I am creating server and connecting with the android. I see the 6 buttons how I am making the props move by moving the phone?
[QUOTE=CoMaNdO;33569580]used 2.3.3 :|
installing 2.2 :D
I can't use the plugin. (your plugin) I am creating server and connecting with the android. I see the 6 buttons how I am making the props move by moving the phone?[/QUOTE]
Open the example script. I think it was velocity.lua. Then look at a prop and enter android_addprop in console.
Remember it's just an example script, it's not made to have many features.
Nice work!
Would be nice to get something like this on IPhone or ITouch
Oh right, apple is "shuper shecure" and it would have to go through their app store.
[QUOTE=Remscar;33693239]Would be nice to get something like this on IPhone or ITouch
Oh right, apple is "shuper shecure" and it would have to go through their app store.[/QUOTE]
that's free right? don't see that being a problem, it's not like we're hacking into system essentials, most iPhone games use the sensors for things
[QUOTE=DylanWilson;33703019]that's free right? don't see that being a problem, it's not like we're hacking into system essentials, most iPhone games use the sensors for things[/QUOTE]
No. I need a Mac and 99 dollars per year to even start developing for iOS.
[editline]14th December 2011[/editline]
[QUOTE=DylanWilson;33703019]that's free right? don't see that being a problem, it's not like we're hacking into system essentials, most iPhone games use the sensors for things[/QUOTE]
No. I need a Mac and 99 dollars per year to even start developing for iOS.
[QUOTE=FPtje;33714486]No. I need a Mac and 99 dollars per year to even start developing for iOS.
[editline]14th December 2011[/editline]
No. I need a Mac and 99 dollars per year to even start developing for iOS.[/QUOTE]
Or Cydia. And an iPhone emulator :v:
[QUOTE=Phoenixf129;33715744]Or Cydia. And an iPhone emulator :v:[/QUOTE]
I looked at the Windows IDE's and other development tools for developing on iOS, but they are hacks. The IDE supported by apple its not available for Windows.
Even the language that you're supposed to use is maintained by Apple. Objective C looks like a shit language.
Not sure if your still working on this but is it possible to add a hook for the keyboard and send each key you pressed? You could use it to type in chat for an example.
Yeah sure, my phone doesn't have a keyboard so I'll have to testin the emulator.
[QUOTE=FPtje;33891835]Yeah sure, my phone doesn't have a keyboard so I'll have to testin the emulator.[/QUOTE]
Mine doesn't either but I was thinking of something like another button that would bring up the on screen keyboard or even a text box.
Nice job mate !
BTW I got this error when I put these command in the console (Android_srvCreateServer or Android_clCreateServer)
error loading module 'glsock' from file 'e:\steam\steamapps\xxxxxxxxxx\garrysmod\garrysmod\addons\android framework\lua\includes\modules\gm_glsock.dll':
No se puede encontrar el módulo especificado.
Any fix?
[QUOTE=Juan :D;33905070]Nice job mate !
BTW I got this error when I put these command in the console (Android_srvCreateServer or Android_clCreateServer)
error loading module 'glsock' from file 'e:\steam\steamapps\xxxxxxxxxx\garrysmod\garrysmod\addons\android framework\lua\includes\modules\gm_glsock.dll':
No se puede encontrar el módulo especificado.
Any fix?[/QUOTE]
Did you install the module?
[QUOTE=pennerlord;33905330]Did you install the module?[/QUOTE]
Yes, the module is in the folder, has the same name and path, IDK why is not loading.
[QUOTE=highvoltage;33890728]Not sure if your still working on this but is it possible to add a hook for the keyboard and send each key you pressed? You could use it to type in chat for an example.[/QUOTE]
Sending every key press is not convenient. You'd have to collect the letters for chat, and you'll have extra trouble implementing things like backspace.
In my alpha version I've got a textbox that will send its text when you press enter. There's also an example script that will catch the text and make the player say it.
Tomorrow I'll set up git.
Does anyone have a problem with git? I'm curious to see how GMod users/scripters respond to git.
Sorry, you need to Log In to post a reply to this thread.