Forum Replies Created
-
AuthorPosts
-
Ah, I tried a git pull yesterday and fell into all sorts of permissions hell trying to get it built and compiling
Yeah, this is my fault really. I use TeamDrive to sync source code between 3 machines, but only ever push to github from the PC (tried to sync .git folders once, ended in tears). So when I modify an exe or .sh file on macos/linux, permissions are lost by the time it gets to the PC (at least, I assume that’s what’s happening).
I really, really don’t want to use github for ALL my syncing as auto-syncing is just so convenient, but I guess I could add chmod’s to rebuildall.sh so at least there’s only one file to chmod?
I assume it’s possible to get the latest in Github Desktop… somehow?
No idea what’s up there, sounds like a bug or it’s caching something. I use ‘sourcetree’ and have had pretty much no problems with it ever.
The glutil stuff wasn’t really meant to be ‘public’, but it would definitely be nice to have.
Let me clean it up a bit, perhaps move it to GLES20 module(?) etc, then we can start adding fun stuff to it.
A single docking view will do the trick:
Monkey12345...dockingView=new DockingViewdockingView.AddView( leftView,"left",100 )dockingView.ContentView=mainView...leftView here is probably your ListView, and mainView is probably a custom/canvas view.
The ‘ContentView’ of a docking view is what takes up all the space left over after “left”, “right” etc views are layed out.
The ‘100’ is the width of the left view – you can add ‘,True’ after this to make it resizable.
Very cool!
Technically speaking, you’re meant to bracket your GL code (outside of OnRenderGL) calls between BeginGL() and EndGL() or you’ll be affecting the ‘shared’ context, but it seems to be working anyway!
I’ve added a few docs to GLWindow too.
Ignore the source on the download page – grab it from here:
https://github.com/blitz-research/monkey2
Select ‘tags->v1.0.5’ (or any version) from the ‘branch’ combobox, then ‘clone or download->download zip’.
Ok, I’ve updated the version on the Files page to v1.0.5.
Not quite the latest and greatest (it’s easy to build from source though – give it a try!) but at least it has ‘Build and run’.
Yikes, what version are you using?!?
Shouldn’t need to do any fancy – just ‘build and run’ from the build menu.
Can you post the output from the ‘build’ console at the bottom?
I thought no, then I tried again and it looks like yes.
Yay!
Have you disabled this?
File->Settings->Build, Execution, Deployment->Instant Run->Enable Instant Run
This solved a lot of weird gradle-related problems I was having. Another tip: always close a project before you open a new one!
As for Android Studio, yep, it’s a bit rough around the edges, esp. when compared to xcode!
> Have I understood correctly that it was only openal.so that needed the targetSdkVersion etc. set to 19 and I can use a later version number (currently 24) to build my project?
Yes. Each blah.so is really it’s own self contained thing.
In case it is of any interest, I also tried rebuilding all modules using CrystaX NDK.
This sounds pretty cool and I might look into later, but right now I’m sticking with the plain NDK.
Ok just committed a potential fix for this, although you’ll have to rebuildall or rebuildmx2cc.
I must’ve broken something – will fix.
Here’s a simple wrapper around the ‘C’ API for spine, courtesy of c2mx2 (completely untested but it builds!):
http://www.monkey-x.com/mak/spine.zip
Note: You’ll need to get the contents of the spine-c dir from github:
https://github.com/EsotericSoftware/spine-runtimes
The spine runtimes are ‘evaluation only’, so I don’t think it’s suitable to include this with monkey2 as I want anyone to be able to use monkey2 without having to worry about any licensing headaches.
I’m sure there is some way this can be made available (probably including the spine-c code) possibly via a ‘licensed modules’ page or something. I’ve contacted the spine guys about this.
…does it work?
Might be a bit tricky as Ted2 console waits for end-of-lines before printing anything.
But I’ve just added stdout and fflush to libc which may help for ‘real’ apps.
Just added ListView – more coming, esp. more layout views.
To create a custom view, you need to extend ‘View’ and implement OnRender.
-
AuthorPosts