gameBase
gameBase copied to clipboard
Missing type declaration
src/game/assets/Lang.hx:18: characters 20-21 : Missing type declaration
Trying to run build.js.hxml
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.
I'll put the relevant code here.
try hxd.Res.load("lang/"+CUR+".po")
catch(_) {
CUR = "en";
hxd.Res.load("lang/"+CUR+".po");
}
What version of the Haxe compiler are you using?
(Type haxe --version
from the command line to see it)
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:
I see, thanks for sharing this!