-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|528|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Monkey -> Need help with Box2D

Fri, 05 Aug 2016, 04:45
I've been using Monkey-X for nearly 3 years now, I find it quite easy to get along with. What I can't get along with is the monkeybox2d module, I can't even seem to get anything basic going. All I ever seem to get is red error squiggles in the JungleIDE editor.

Please can anyone direct me to a tutorial on how to get into this?. I don't mean the Box2D.org and many other mainstream tutorials stuff that's already out there, I mean actual monkey related stuff.

Fri, 05 Aug 2016, 06:39
You know how much I hate "Layer upon layer" dev-kits. One little thing changes somewhere, and it all breaks down!

But, just for you, I decided to download MonkeyBox2D and give it a whirl.


To download, I went here.
Someone let me know if I got the wrong thing..
I clicked the "Clone or Download" button and saved as a zip.

I unzipped it, then left it where it was for test purposes.
This should be foolproof, right?!


People online said "It's in the demo folder, STUPID!!" so I opened the Demo folder, and opened the first .monkey file there was.
That's gotta be it. I mean, if that's not the working demo, and there are no further instructions, then something's very very wrong!!

That's not it.
I tried MAINdemo.monkey.. It's got the words MAIN DEMO in it, so that's GOT to be it..

That's not it, either.
I tried fpscounter.monkey, and that wasn't it either.

Then I headed into the tests folder, and opened the first monkey file. (test.monkey)
That didn't work.
Then I tried testbreakable.monkey, and .. nope
Then tests.monkey, and again.. nothing..

I jumped about through the folders, trying to find something, ANYTHING, which would work, and ..
Nothing worked.

Giving Up

Then I gave up.

So, yeah, works great. Can't see why you had a problem with it.
It's in the demo folder, stupid!!

''Load, Next List!''
Fri, 05 Aug 2016, 08:21
Fri, 05 Aug 2016, 12:20
That's what they all say, "the demo folder", and just the same as you I found out that nothing fucking worked. I might just go back to trying to learn Separating Axis Theorem and skip Box2D if I don't get any joy soon.
Fri, 05 Aug 2016, 12:27
I just got a reply on the monkey site, looks like I have some reading to do.

Fri, 05 Aug 2016, 12:37
OK, so far so good, the first example on the page works. If I get to grips with this I will start a blog based on my experiences.
Fri, 05 Aug 2016, 12:38
Good luck!
Fri, 05 Aug 2016, 12:41
Early days yet Jay, I'll buy some toupee glue to stick any futher lost hair back on.
Fri, 05 Aug 2016, 14:30
To get the demo running for Box2D in Jungle:

1. Download the zip for the master repo over at github: https://github.com/philippeback/monkeybox2d
2. Create a folder in your Jungle's additional module folder (set it up under Tools > Preferences> Monkey Language) called "box2d"
3. Extract the zip contents into the box2d folder, so within box2d folder you will have the sub folders collision, common, demo etc
4. Launch up Jungle
5. Click MonkeyX > Update Monkey modules database
6. Click File > New Document and create a test file (test.monkey2)
7. Add the following code:

8. Compile and run!


See it is in the demo folder
Fri, 05 Aug 2016, 15:16
When you put it like that, it starts to make sense now.

*Trundles off to look at the Box2D documentation...*

Thanks for the tip-off BTW
Mon, 08 Aug 2016, 03:49
Good to see you're making some kind of progress with this.

''Load, Next List!''
Mon, 08 Aug 2016, 03:58
I take it you just saw my blog Jay!
I know I'm not that good at explaining stuff but I hope others can understand my blog. I'm also going to attempt at making a minigame for the finale of the blog.
Mon, 08 Aug 2016, 04:01
I did.
I'm currently playing with my game's load/save stuff, but will be trying out your code later on today. (Assuming I've not forgotten by then!!)

''Load, Next List!''