[Solved] 2015/1/17 Discovery engine bug

I’m sorry, my ID is limited to reply, can only through the mail !

I’m Asian, China ,Here is the morning 2:26

2015-1-18 2:26:42 com.jme3.system.JmeDesktopSystem initialize
信息: Running on jMonkeyEngine 3.0.0 RC2
2015-1-18 2:26:42 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Lwjgl 2.9.0 context running on thread LWJGL Renderer Thread
2015-1-18 2:26:42 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Adapter: igdumdim32
2015-1-18 2:26:42 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Driver Version: 10.18.10.3643
2015-1-18 2:26:42 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Vendor: Intel
2015-1-18 2:26:42 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: OpenGL Version: 4.0.0 - Build 10.18.10.3643
2015-1-18 2:26:42 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Renderer: Intel(R) HD Graphics
2015-1-18 2:26:42 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: GLSL Ver: 4.00 - Build 10.18.10.3643
2015-1-18 2:26:43 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio Device: OpenAL Soft
2015-1-18 2:26:43 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio Vendor: OpenAL Community
2015-1-18 2:26:43 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio Renderer: OpenAL Soft
2015-1-18 2:26:43 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio Version: 1.1 ALSOFT 1.15.1
2015-1-18 2:26:43 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: AudioRenderer supports 64 channels
2015-1-18 2:26:43 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio effect extension version: 1.0
2015-1-18 2:26:43 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio max auxilary sends: 4

jMonkeyEngine 3.0.0 RC2

you used a very Old version, the latest stable is 3.0.10 not 3.0.0.RC2. Please update.

Thank you for your patience help! :blush:

Please give me a download address

Hello, I have updated the version to 3.0.10.But before the advent of the problem.

2015-1-18 5:38:03 com.jme3.system.JmeDesktopSystem initialize
信息: Running on jMonkeyEngine 3.0.10
2015-1-18 5:38:03 com.jme3.system.Natives extractNativeLibs
信息: Extraction Directory: D:\GameCode\engineSDK
2015-1-18 5:38:04 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Lwjgl 2.9.0 context running on thread LWJGL Renderer Thread
2015-1-18 5:38:04 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Adapter: igdumdim32
2015-1-18 5:38:04 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Driver Version: 10.18.10.3643
2015-1-18 5:38:04 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Vendor: Intel
2015-1-18 5:38:04 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: OpenGL Version: 4.0.0 - Build 10.18.10.3643
2015-1-18 5:38:04 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: Renderer: Intel(R) HD Graphics
2015-1-18 5:38:04 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
信息: GLSL Ver: 4.00 - Build 10.18.10.3643
2015-1-18 5:38:04 com.jme3.asset.AssetConfig loadText
警告: Cannot find loader com.jme3.scene.plugins.blender.BlenderModelLoader
2015-1-18 5:38:04 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio Device: OpenAL Soft
2015-1-18 5:38:04 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio Vendor: OpenAL Community
2015-1-18 5:38:04 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio Renderer: OpenAL Soft
2015-1-18 5:38:04 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio Version: 1.1 ALSOFT 1.15.1
2015-1-18 5:38:04 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: AudioRenderer supports 64 channels
2015-1-18 5:38:04 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio effect extension version: 1.0
2015-1-18 5:38:04 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
信息: Audio max auxilary sends: 4
2015-1-18 5:38:04 com.jme3.input.InputManager deleteMapping
警告: Cannot find mapping to be removed, skipping: SIMPLEAPP_Memory
Camera Position: (0.0, 0.0, 10.0)
Camera Rotation: (0.0, 1.0, 0.0, 0.0)
Camera Direction: (0.0, 0.0, -1.0)
cam.setLocation(new Vector3f(0.0f, 0.0f, 10.0f));
cam.setRotation(new Quaternion(0.0f, 1.0f, 0.0f, 0.0f));
onAnalog("key_c", 0.001, 0.001)
onAnalog("key_c", 0.006, 0.006)
onAnalog("key_c", 0.002, 0.002)
onAnalog("key_c", 0.003, 0.003)

The code is as follows:



import com.jme3.app.SimpleApplication;
import com.jme3.input.KeyInput;
import com.jme3.input.controls.AnalogListener;
import com.jme3.input.controls.KeyTrigger;

public class HelloInput extends SimpleApplication {

    public static void main(String[] args) {
        HelloInput app = new HelloInput();
        app.start();
    }
    Boolean isRunning=true;

    @Override
    public void simpleInitApp() {
        flyCam.setEnabled(false);
        inputManager.deleteMapping(SimpleApplication.INPUT_MAPPING_MEMORY);
        inputManager.addMapping("key_c", new KeyTrigger(KeyInput.KEY_C));
        inputManager.addListener(analogListener,"key_c");
    }

    private AnalogListener analogListener = new AnalogListener() {
        public void onAnalog(String name, float value, float tpf) {
            System.out.printf("onAnalog(\"%s\", %.3f, %.3f)\n", name, value, tpf);
        }
    };

}

Did not have any effect?

Camera Position: (0.0, 0.0, 10.0)
Camera Rotation: (0.0, 1.0, 0.0, 0.0)
Camera Direction: (0.0, 0.0, -1.0)
cam.setLocation(new Vector3f(0.0f, 0.0f, 10.0f));
cam.setRotation(new Quaternion(0.0f, 1.0f, 0.0f, 0.0f));
onAnalog("key_c", 0.001, 0.001)
onAnalog("key_c", 0.006, 0.006)
onAnalog("key_c", 0.002, 0.002)
onAnalog("key_c", 0.003, 0.003)

You’re right the deleteMapping doesn’t work (see log) the mapping is applied after simpleInitApp by DebugKeysAppState. So try

    @Override
    public void simpleInitApp() {
        flyCam.setEnabled(false);
        getStateManager().detach(getStateManager().getState(DebugKeysAppState.class));
        inputManager.clearMappings();
        inputManager.addMapping("key_c", new KeyTrigger(KeyInput.KEY_C));
        inputManager.addListener(analogListener,"key_c");
    }

Is your bug with “left mouse button” resolve with 3.0.10 ?

Thank you, I use setDisplayStatView (false);Has solved my problem, but I don’t know whether reasonable

Hello, I’m finally locate the cause of the BUG, the original is my computer translation software hotkey conflict caused by the inside!