There seems to be an ant build error

There seem to be some errors in todays CVS:

ant gives me:



jME:

src/com/jme/scene/model/XMLparser/Converters/DummyDisplaySystem.java [77] modifier private not allowed here

private class TextureStateN extends TextureState{

^

1 error

build.xml [29] Compile failed; see the compiler error output for details.

BUILD FAILED (total time: 3 seconds)





Test:

src/jmetest/renderer/loader/TestMaxJmeWrite.java [45] incompatible types

found : void

required: com.jme.scene.Node

globalLoad=C1.convert(maxFile.openStream(),BO);

^

1 error

buildtest.xml [24] Compile failed; see the compiler error output for details.

BUILD FAILED (total time: 1 second)



regards

Martin

For some very wierd reason it was working when I compiled it, but not when ant tried. I removed the private and it compiles fine now. Sorry about that.

hey never mind i’m glad someone writes all this stuff … :slight_smile:



The following code from testbuild however still looks weird to the compiler:

note the “<<<<<” , “>>>>>> 1.6” and “======” lines ?


public class TestMaxJmeWrite extends SimpleGame{
    public static void main(String[] args) {
        TestMaxJmeWrite app=new TestMaxJmeWrite();
        app.setDialogBehaviour(SimpleGame.FIRSTRUN_OR_NOCONFIGFILE_SHOW_PROPS_DIALOG);
        app.start();
    }

    Node globalLoad=null;

    protected void simpleInitGame() {
        MaxToJme C1=new MaxToJme();

        try {
            ByteArrayOutputStream BO=new ByteArrayOutputStream();
<<<<<<< TestMaxJmeWrite.java
//            URL maxFile=TestMaxJmeWrite.class.getClassLoader().getResource("jmetest/data/model/sphere.3DS");
            URL maxFile = new File("3dsmodels/cubeColoured.3DS").toURI().toURL();
            //win globalLoad=C1.convert(maxFile.openStream(),BO);
            JmeBinaryReader jbr=new JmeBinaryReader();
            BinaryToXML btx=new BinaryToXML();
            StringWriter SW=new StringWriter();
            btx.sendBinarytoXML(new ByteArrayInputStream(BO.toByteArray()),SW);
            System.out.println(SW);
            globalLoad=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));
            globalLoad.setLocalScale(.01f);
            DirectionalLight DL=new DirectionalLight();
            DL.setAmbient(new ColorRGBA(.1f,.1f,.1f,.1f));
            DL.setDiffuse(new ColorRGBA(1,1,1,1));
            DL.setSpecular(new ColorRGBA(1,1,1,1));
            DL.setEnabled(true);
            DL.setDirection(new Vector3f(1,1,-1));
            rootNode.attachChild(globalLoad);
            lightState.detachAll();
            lightState.attach(DL);
        } catch (IOException e) {
            System.out.println("damn exceptions:" + e);
            e.printStackTrace();
        }
//        doBox();

//        drawAxis();
    }

    private void doBox(){
        Pyramid b=new Pyramid("Mesh Object",4,4);
        b.setModelBound(new BoundingSphere());
        b.updateModelBound();
        Node o=new Node("box01");
        Node i=new Node("3ds editable object");
        Node j=new Node("3ds scene");
        Node k=new Node("XML Scene");
//        rootNode.attachChild(k);
        k.attachChild(j);
        j.attachChild(i);
        i.attachChild(o);
        o.attachChild(b);
        MaterialState m=display.getRenderer().getMaterialState();
//        TextureState ts=display.getRenderer().getTextureState();
//        ts.setTexture(TextureManager.loadTexture("ASHSEN_2.GIF",Texture.MM_LINEAR,Texture.FM_LINEAR,false));
//        ts.setEnabled(true);

        m.setDiffuse(new ColorRGBA(.8f,.9f,.2f,1));
        m.setAmbient(new ColorRGBA(.89f,.89f,.89f,1));
        m.setEmissive(new ColorRGBA(0,0,0,1));
        m.setSpecular(new ColorRGBA(0f,0f,0f,1));
        m.setShininess(12.8f);
        m.setAlpha(0);

//        b.setTextureCombineMode(TextureState.REPLACE);
        m.setEnabled(true);

        b.setRenderState(m);
        b.setSolidColor(new ColorRGBA(.1f,.1f,.1f,.1f));

        JmeBinaryWriter jbw=new JmeBinaryWriter();
        ByteArrayOutputStream BO=new ByteArrayOutputStream();
        try {
            jbw.writeScene(k,BO);
            JmeBinaryReader jbr=new JmeBinaryReader();
            BinaryToXML btx=new BinaryToXML();
            StringWriter SW=new StringWriter();
            btx.sendBinarytoXML(new ByteArrayInputStream(BO.toByteArray()),SW);
            System.out.println(SW);
            Node binaryLoad=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));
//            rootNode.attachChild(binaryLoad);
//            rootNode.attachChild(k);
=======
            URL maxFile=TestMaxJmeWrite.class.getClassLoader().getResource("jmetest/data/model/sphere.3DS");
//            URL maxFile = new File("3dsmodels/tank.3ds").toURI().toURL();
            C1.convert(maxFile.openStream(),BO);
>>>>>>> 1.6
        } catch (IOException e) {
            System.out.println("Damn exceptions:"+e);
        }
    }

Those lines are added by cvs when you tried to update a file you’d made changes to and it couldn’t resolve them… Try getting a fresh copy of that file.



Also, on the subject, cep21, it appears some of the classes you just checked in reference other classes you didn’t check in… Stuff refed by MaxToJme like TDSChunkingFiles and TDSFile.

Oh, :// shot myself in the knee then.

Sorry for bothering you with this.

It’s happened to me too :slight_smile: