a bug, a bug, a bug?(solved)

About Monkey 2 Forums Monkey 2 Programming Help a bug, a bug, a bug?(solved)

This topic contains 9 replies, has 4 voices, and was last updated by  Jesse 2 years, 7 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #3884

    Jesse
    Participant

    I am working on a game that I ran into some problems with the code. I thought it was problem with the Mx2cc translator but after Mark took a look at it, he seems not to have the same problem. so it could probably be with my computer only. So I am posting the code here and hope some can try it on a MACBOOK and let me know if it fails in their system as well. I have to know if its my Macbook I need to throw away.

    #3886

    Mark Sibly
    Keymaster

    > so it could probably be with my computer only.

    It’s incredibly unlikely to be that.

    What’s probably happened is that the version I committed wasn’t working 100%, while the version here on my machine is. Unfortunately, I wont be commiting the latest just yet as there are lots of changes that need testing first.

    So don’t panic, we’ll get it sorted soon!

    #3902

    Cole Chapman
    Participant

    If you mean ufomanager.monkey2 and the line you are talking about is “Global this:= EntityState.ENTERING” then the error I get is:

    #3904

    nerobot
    Participant

    It’s bad idea to use ‘this’ as var name because it’s reserved word in c++ (into which monkey code translating).

    #3905

    Jesse
    Participant

    @Mark, Thanks.

    @Cole Chapman
    Thats it. Thanks, that eases my worries.

    @nerobot it’s just a dummy variable not use for it at all. weird that it can fix the error just by having it there.

    #3908

    Mark Sibly
    Keymaster

    Just did a clean install from github-master.zip and it works fine as long as I do ‘./updatemx2cc.sh’.

    However, the error message I get when it does crap out is slightly different, so perhaps it’s a compiler version problem. Here’s my g++ –version info:

    Please post yours.

    The error I get is:

    #3909

    Mark Sibly
    Keymaster

    …also running OS X El Capitan 10.11.6

    #3912

    Cole Chapman
    Participant

    Yikes, I apologize Jesse.  I did not run it on a macbook, I used Windows 7.  I must have skimmed over that part in the post earlier… I’m getting married tomorrow and I’ve been all over the place today.

    #3913

    Jesse
    Participant

    Ok, Thanks anyway.

    this is what I got:

    I am on OS X 10.11.6

    Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/usr/include/c++/4.2.1
    Apple LLVM version 7.0.0 (clang-700.1.76)
    Target: x86_64-apple-darwin15.6.0
    Thread model: posix

    it’s the newest update I can get.

    #3914

    Jesse
    Participant

    haha!
    I had original missed where you mention to update the mx2cc.

    yea, that solved the problem.

    Thanks.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.