deepnight / gameBase

Base structure for my games, using Heaps framework and Haxe language.
https://deepnight.net
MIT License
606 stars 149 forks source link

Missing type declaration #79

Open jgedri opened 1 year ago

jgedri commented 1 year ago

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

Trying to run build.js.hxml

deepnight commented 1 year ago

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.

jgedri commented 1 year ago

I'll put the relevant code here.

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

What version of the Haxe compiler are you using?

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

jcward commented 1 year ago

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

deepnight commented 1 year ago

I see, thanks for sharing this!