[Solve] Error while attempting to run "was not found in class paths"

question
solved
#1

Here is my console output:

Exporting asset 1 of 1 (ammo.js).
Exporting asset 1 of 4 (test.arm).
Exporting asset 2 of 4 (World_irradiance.arm).
Exporting asset 3 of 4 (mesh_Cube.001.arm).
Exporting asset 4 of 4 (mesh_Cube.arm).
Exporting asset 1 of 3 (Material_001_data.arm).
Exporting asset 2 of 3 (armdefault_data.arm).
Exporting asset 3 of 3 (shader_datas.arm).
Exporting asset 1 of 1 (brdf.png).
Exporting asset 1 of 1 (smaa_area.png).
Exporting asset 1 of 1 (smaa_search.png).
Compiling shader 1 of 20 (Material_001_mesh.frag.glsl).
Compiling shader 2 of 20 (armdefault_mesh.frag.glsl).
Compiling shader 3 of 20 (armdefault_shadowmap.frag.glsl).
Compiling shader 4 of 20 (armdefault_mesh.vert.glsl).
Compiling shader 5 of 20 (armdefault_shadowmap.vert.glsl).
Compiling shader 6 of 20 (blur_edge_pass.frag.glsl).
Compiling shader 7 of 20 (compositor_pass.frag.glsl).
Compiling shader 8 of 20 (compositor_pass.vert.glsl).
Compiling shader 9 of 20 (deferred_light.frag.glsl).
Compiling shader 10 of 20 (pass.vert.glsl).
Compiling shader 11 of 20 (pass_viewray.vert.glsl).
Compiling shader 12 of 20 (smaa_blend_weight.frag.glsl).
Compiling shader 13 of 20 (smaa_blend_weight.vert.glsl).
Compiling shader 14 of 20 (smaa_edge_detect.frag.glsl).
Compiling shader 15 of 20 (smaa_edge_detect.vert.glsl).
Compiling shader 16 of 20 (smaa_neighborhood_blend.frag.glsl).
Compiling shader 17 of 20 (ssao_pass.frag.glsl).
Compiling shader 18 of 20 (smaa_neighborhood_blend.vert.glsl).
Compiling shader 19 of 20 (world_pass.frag.glsl).
Compiling shader 20 of 20 (world_pass.vert.glsl).
Compiling shader 1 of 8 (painter-colored.frag.glsl).
Compiling shader 2 of 8 (painter-colored.vert.glsl).
Compiling shader 3 of 8 (painter-image.frag.glsl).
Compiling shader 4 of 8 (painter-image.vert.glsl).
Compiling shader 5 of 8 (painter-text.frag.glsl).
Compiling shader 6 of 8 (painter-video.frag.glsl).
Compiling shader 7 of 8 (painter-video.vert.glsl).
Compiling shader 8 of 8 (painter-text.vert.glsl).
--macro:1: character 1 : Package "arm.charController" was not found in any of class paths

Haxe compiler error.
Finished in 3.7167420387268066
Build failed, check console

Dream Game.zip

i am new to haxe so i cut and pasted some things from various example projects but i couldnt find any mistake in charController.hx its probably something dumb thanks for reading

also here is charController.hx:

package arm;

import armory.trait.physics.RigidBody;

class charController extends iron.Trait {

	public function new() {
		super();

        tree.notifyOnUpdate(update(););
	}
    function update() {
		var keyboard = iron.system.Input.getKeyboard();
        var speed = 0.3;
        
        // check for w
		if (keyboard.down("w")) {
            move(0, speed, 0);
        }

        // check for a
		if (keyboard.down("a")) {
            move(speed, 0, 0);
        }

        // check for s
		if (keyboard.down("s")) {
            move(0, -1*speed, 0);
        }

        // check for d
		if (keyboard.down("d")) {
            move(-1*speed, 0, 0);
        }
	}
    public function move(x1, y1, z1) {
        var object:Object = CharPhys;
		var vec:Vec4 = new haxe.ds.Vector(3); // direction of movement
        
        // set vec
        vec[0] = x1;
        vec[1] = y1;
        vec[2] = z1;
        
		if (object == null || vec == null) return;

		object.transform.loc.add(vec);
		object.transform.buildMatrix();

		// make it work with physics
		var rigidBody = object.getTrait(RigidBody);
		if (rigidBody != null) rigidBody.syncTransform();
    }
}

from here

0 Likes

#2

Nevermind it was me just being dumb. pls dont waste ur time trying to help bc i already fixed it thx

0 Likes

#3

You might want to edit the subject line to show [SOLVED] at the start (at least until we convince the admins to install the “solved” plugin for Discourse…)

2 Likes

#4

Oh thats what this is made in… k ill do it

0 Likes

#5

How did you fix it?
Cause I’ve got the same error output.

0 Likes

#7

Hi, thanks for bringing it up, but I came across the same issue, would you mind sharing the solution?
I can’t find it anywhere else.
Thank you!

0 Likes

#8

To me it looks like the problem is that the class name is not capitalized.

0 Likes