gameBase icon indicating copy to clipboard operation
gameBase copied to clipboard

Missing type declaration

Open jgedri opened this issue 2 years ago • 5 comments

src/game/assets/Lang.hx:18: characters 20-21 : Missing type declaration

Trying to run build.js.hxml

jgedri avatar Sep 23 '22 17:09 jgedri

I couldn't reproduce 🤔

Please make sure you're using correct libs:

haxelib git deepnightLibs https://github.com/deepnight/deepnightLibs.git
haxelib git heaps https://github.com/deepnight/heaps.git  

Note that I'm not on latest Heaps version, so you can use my version safely: I always make sure latest libs on my side are working together.

deepnight avatar Sep 28 '22 14:09 deepnight

I'll put the relevant code here.

            try hxd.Res.load("lang/"+CUR+".po")
            catch(_) {
                CUR = "en";
                hxd.Res.load("lang/"+CUR+".po");
            }

jgedri avatar Oct 03 '22 15:10 jgedri

What version of the Haxe compiler are you using?

(Type haxe --version from the command line to see it)

deepnight avatar Oct 12 '22 07:10 deepnight

I get this error with Haxe 4.1 and lower. At this time, it seems Haxe 4.2+ is required.

There is a screenshot in your Haxe installation guide that shows version 4.0.5... I know the text says to install the latest, but I was confused when I skimmed (assumed 4.0.5). Maybe edit to hide version :smile:

haxe_ver_hack

jcward avatar Jan 07 '23 20:01 jcward

I see, thanks for sharing this!

deepnight avatar Jan 08 '23 21:01 deepnight