abakobo

Forum Replies Created

Viewing 15 posts - 406 through 420 (of 455 total)
  • Author
    Posts
  • in reply to: would $1 patreon be insulting? #4956

    abakobo
    Participant

    Paypal ‘donate’ will go nearly 100% in mark’s pocket.. You could give him 10$ this way. It will probably be more than a one year patreon of 1$. Some patreons switched to ‘Donate’ after patreon had made a mistake with their server security. And realised they take a percentage too..

    in reply to: New chipmunk 2d module issues #4814

    abakobo
    Participant

    had a try…

    the polyshape funcs definitions in shape.monkey2 still had cpBody Ptr as argument so I replaced them with cpBody..

    but polys are not showing!
    In debug Mode I get the following error (a small notice window) (w7&w10):
    MSV C++ Runtime lib.:
    This application has requested the runtime to terminate it in an usual way

    In release mode it’s running but I can’t see the polygon (that I was seeing using the previous “unmodified” chipmunk module with just the “const” hack)

    I just added this code to the hellochipmunk (after circle init):

    [/crayon]

    The full file is attached to a previous post.

    in reply to: extern C const pointer #4767

    abakobo
    Participant

    Great! waw! My debugDraw implementation looks so awful compared to yours!
    Happy this is now built in! (woohoo)

    in reply to: extern C const pointer #4752

    abakobo
    Participant

    I saw there has been some things modified in chipmunk and c2mx2 but It’s still the same on my side. Need to hack the “const”.

    in reply to: extern C const pointer #4720

    abakobo
    Participant

    tried some implicit conversion from const_cpVect to cpVect with “struct extension” and “operator to:” but no luck, the “‘const cpVect'” is crapping the .h and .cpp output

    I’ll stop trying to mess with it..

    Do you think it’s better to remove the “const” in the original “chipmunk.h” or use the =”const cpVect” hack.
    or is there any other better solution in your mind? Should I post an issue on github?

    The debugDraw is kind of mandatory so something have to be done.. the actual “build in” chipmunk module can’t manage debug polygon draws for now.(and probably other callbacks with “const”)

    in reply to: extern C const pointer #4705

    abakobo
    Participant

    The first ideal idea I had was trying to write this:
    Alias cpSpaceDebugDrawPolygonImpl:Void( Int, cpVect Ptr="const cpVect*" ,...

    Hoping all would be internally managed by the transpiler/linker! But not..

    If this is possible it could be a good solution for automation.
    c2mx2 detects an un-implemented typedef func (Alias func:..(..)) or a pure virtual method with some const/const& as parameter then adds ="const foo" or ="const foo&" or wathever.
    And this way there’s no conversion to be done..

    In the chipmunk’s debugdraw case the actual hack is not problematic because the module user won’t even notice it’s there. He/She’s just gonna call it with a simple call. If someone want to create it’s own implementation then he/she will have to notice it but has an example to start with.

    Is there any plan on c2mx2 being c++ aware?

    in reply to: extern C const pointer #4695

    abakobo
    Participant

    ok found how to do it

    modified the chipmunk_extern.monkey2:
    added

    [/crayon]

    and modified the problematic line

    [/crayon]

    and my implementation has a const_cpVect Ptr as argument of course…

    in reply to: extended ascii chars #4434

    abakobo
    Participant

    @Mark: Fix working on Ted2’s text screen and mojo apps!

    However the console output is still 7bit limited.. Not vital but could probably be quickly corrected after this utf8 fix.

    [/crayon]
    in reply to: Ted2Go IDE #4398

    abakobo
    Participant

    By full pass indent I mean an auto intend button that indents all your file: clearing all spaces and tabs at the beginning of each line then intend by fold+if/elseif/case…
    The ifs are probably a bit difficult because it needs some analysis to know wether it’s a one line or not.

    I’ve had some problems with the text cursor. Sometimes it desapears completely after coming back to ted.
    I personaly prefer when the cursor doesn’t “flash” (for a more zen workspace.)

    in reply to: Ted2Go IDE #4387

    abakobo
    Participant

    the mx2cc is clearly a better solution because when compiling starts it starts to write things on disk and that’s bad.

    Tested your fork:
    It would be nice if the Classes/Methods/Fields/Vars in the left column where sorted in some kind. Here I have some mixed Methods and Fields withing my class.
    And sorted by alpha or with the same order than in the File.

    I’m looking forward to see code folding and full pass indent. Hope it’s in your plan.

    nice work!

    in reply to: Import/Includes and globals? #4296

    abakobo
    Participant

    Here your code corrected and running..

    [/crayon]

    the Ultim.monkey2

    [/crayon]

    Note that I renamed things called Ultim to Ultimsomething because you can’t have the same for a variable and a namespace/filename.

    in reply to: Import/Includes and globals? #4290

    abakobo
    Participant

    Here’s a little zip with a working example of multiple imports.
    Runs fine with 1.0.7 but should be ok with earlier versions.

    main:

    [/crayon]

    lib_a

    [/crayon]

    lib_b

    [/crayon]

    lib_c

    [/crayon]

    lib_d

    [/crayon]

    edit:added a global class declared outside of main so use import-1.monkey2

    in reply to: Ted21 Dead #4281

    abakobo
    Participant

    Hope you’ll find a pleasant way in that nice project..

    in reply to: some issues with external abstract method #4264

    abakobo
    Participant

    I just forgot that passing by reference was an issue with abstract method only.
    However it should faster by value..

    in reply to: Box2D #4243

    abakobo
    Participant

    Now with all bodies and joints types working and a aabbQueryCallback for mouse joints all in monkey2 language only.

    The bodies_and_joints.monkey2 is the one with most features available now.
    https://github.com/abakobo/Box2D_for_monkey2
    https://github.com/abakobo/Box2D

    It’s getting to be almost usable!

    I have some memory question… It starts at 24M of Ram and it grows to 36M but then stops. Is it a normal behaviour or is there a problem with my memory management (lots of externals here…)? If someone can have a look at the code it would be great. (the code should be better documented but I think it’s readable..)

Viewing 15 posts - 406 through 420 (of 455 total)