Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Makkornall
    @makkornall_twitter
    Anyone here?
    Clemens Winter
    @cswinter
    Yes there is. Welcome :)
    Makkornall
    @makkornall_twitter
    Thanks! Though we seem to be here at different times!
    Clemens Winter
    @cswinter
    Hmm, I suppose until the room reaches critical mass we'll have to make do with asynchronous communication.
    Makkornall
    @makkornall_twitter
    Ah, but we have synced this time!
    Clemens Winter
    @cswinter
    Hurray!
    Makkornall
    @makkornall_twitter
    So we are a Scala shop and I thought this would be a fun little game to have our devs play around with (We have hired several new Java devs who are learning Scala). However we have a lot of Macs and the graphics don't appear to work on Mac. Have you come across that at all? Or no chance to test on Mac?
    Clemens Winter
    @cswinter
    I haven't been able to test on Mac, unfortunately. There used be an issue with old OpenGL versions not being supported, which I thought I fixed, but maybe that didn't work. Do you get any error messages?
    Makkornall
    @makkornall_twitter
    I didn't error out, though I didn't run it long enough perhaps it would over time
    The graphics just don't display correctly
    Let me spin of a screencap
    codecraft_mac_1.png
    Clemens Winter
    @cswinter
    Well, that's no good
    Makkornall
    @makkornall_twitter
    codecraft_mac_2.png
    No, makes it hard to see what is happening which is half the fun
    Though my end goal would be to be able to get everyone's AI's and be able to then generate the Scala.js code so we could put this on a local server so the devs at the company could compete with their newest AI's.
    Clemens Winter
    @cswinter
    Well, I can't think of any obvious reason right now why this would happen. Bit difficult to solve since I don't have access to a Mac at the moment, but I'll try regardless. I might need you to run a new build at some point that has additional diagnostics built in.
    Makkornall
    @makkornall_twitter
    Sure I can do that
    I was also unable to find documentation on running the JS version locally. Is that newer and not documented yet?
    Clemens Winter
    @cswinter
    FYI, multiplayer doesn't require compilation to Scala.js, it works cross platform. Performance is terrible though (i.e. 10-20FPS on a LAN), I am working on that currently. Right now, the easiest way to compete against each other is probably to just share the Scala sources. Contributing AIs back to the main branch is also appreciated.
    Makkornall
    @makkornall_twitter
    Ah yes of course. But what I meant was since the Mac's aren't working I was going to put it on a local server inside the company so everyone could go to the local site and have a dropdown of everyone's AI's
    Then they could see how they compete against each other and make changes.
    Clemens Winter
    @cswinter
    The codecraftgame.org website is separate from the main CodeCraft library and has a bunch of stuff added on top (like the JS editor, AWS setup, storage, etc.), so there is no easy way to run it locally at the moment. The code sharing feature on website also only works for code developed in JS against the JS API. Making the feature work for code compiled using Scala.js might be a bit tricky. I think the best solution is to have everyone in your team use a shared git repository where they develop their AIs (once I've fixed the graphics issue, which should be possible).
    I got a few more questions about the graphics.
    Can you see any objects other than what you sent me the screenshots (homing missiles maybe?), and are there any glitches?
    Do you know what OpenGL versions your machines have?
    Does anything strange happen to the graphics when you change the zoom level?
    Clemens Winter
    @cswinter
    Actually, the program prints the OpenGL version and a bunch of other stuff to the console when you start it, would be great if you could copy all of that in here.
    Makkornall
    @makkornall_twitter
    They kind of pop in and out a bit. Once and awhile it almost looks like you can see the graphics that are expected.
    Zoom doesn't seem to have a large effect.
    CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
    Chosen GLCapabilities: GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]]
    INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
    GL_VENDOR: Intel Inc.
    GL_RENDERER: Intel Iris Pro OpenGL Engine
    GL_VERSION: 2.1 INTEL-10.14.66
    Clemens Winter
    @cswinter
    I've released my first feeble attempt to fix the issue, let me know if it does anything. You will have to add a resolver for the sonatype snapshot repository to get the dependency:
    resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
    libraryDependencies += "org.codecraftgame" %% "codecraft" % "0.3.0.3-SNAPSHOT"
    Makkornall
    @makkornall_twitter
    ok I will do that now
    Makkornall
    @makkornall_twitter
    No noticeable change.
    Clemens Winter
    @cswinter
    Oh well, no quick fix then. I'll try a few more things tomorrow.
    Makkornall
    @makkornall_twitter
    Fair. Let me know if I can help.
    Clemens Winter
    @cswinter
    OK, I've released a new snapshot (version string is identical, you might have to append changing() to the dependency for sbt to redownload). There is some chance this will work already or print out some new info. If not, I'll need to get a bit more information (ideally a video of the graphics). Are there any patterns (or lack thereof) in terms of what objects are drawn on each frame? (E.g. some objects might always/never be visible, and there may be some kind ordering where some object is always visible when another one is visible.) When it does draw objects, are they rendered correctly or are they distorted in some way? I've also added two new methods to TheGameMaster, lowFPS() and forceGL2() which will start a game with specific graphics settings that could reveal something interesting.
    Makkornall
    @makkornall_twitter
    No change. I uploading a movie of the graphics in action. Perhaps that will help.