Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial works no longer #99

Open
Vulwsztyn opened this issue Apr 17, 2023 · 5 comments
Open

Tutorial works no longer #99

Vulwsztyn opened this issue Apr 17, 2023 · 5 comments
Assignees

Comments

@Vulwsztyn
Copy link

Vulwsztyn commented Apr 17, 2023

Hi, i followed your tutorial https://deepnight.net/tutorial/using-my-gamebase-to-create-a-heaps-game/ up until 3.1 with "Method C: adding an upstream remote"

And both in Windows and Linux I'm getting:

> haxe build.opengl.hxml
src/game/Level.hx:69: characters 26-35 : assets.Layer_Collisions has no field autoTiles
src/game/Level.hx:69: characters 20-35 : You can't iterate on a Dynamic value, please specify Iterator or Iterable
src/game/Level.hx:70: characters 21-28 : assets.Layer_Collisions has no field tileset

or

> haxe build.directx.hxml
src/game/Level.hx:69: characters 26-35 : assets.Layer_Collisions has no field autoTiles
src/game/Level.hx:69: characters 20-35 : You can't iterate on a Dynamic value, please specify Iterator or Iterable
src/game/Level.hx:70: characters 21-28 : assets.Layer_Collisions has no field tileset

Btw tutorial doesn't mention that you need to run:

haxelib install hscript
haxelib install ldtk-haxe-api
haxelib install heaps-aseprite
@bwkam
Copy link

bwkam commented May 3, 2023

Can confirm, same happens with me on Linux.

@CharlesLove
Copy link

I also got stuck on this. Luckily the Readme has the answer.

Run the 'haxe setup.hxml' command in the project root directory. I don't think you need to install anything else manually. Might be worth mentioning on the tutorial website to cross check with the github project Readme as quite a few things have changed. I don't think castle db is even used anymore now that ltdk is included.

@deepnight deepnight self-assigned this Aug 24, 2023
@Vulwsztyn Vulwsztyn changed the title Tutorial no longer works Tutorial works no longer Oct 17, 2023
@hayes87
Copy link

hayes87 commented Jan 22, 2024

Im currently stuck in this line
haxe build.directx.hxml
src/game/assets/CastleDb.hx:3: characters 24-76 : Warning : (WDeprecatedEnumAbstract) @:enum abstract is deprecated in favor of enum abstract

@kLabz
Copy link

kLabz commented Jan 22, 2024

This is just a warning, should be fine. What else is wrong ?

@just-Bri
Copy link

just-Bri commented Feb 11, 2024

Running in to a different error:

PS BtDoN-Haxe-Heaps> haxe build.directx.hxml       
src/game/Game.hx:44: characters 31-41 : assets.World has no field all_worlds
src/game/Game.hx:84: characters 32-42 : assets.World has no field all_worlds
src/game/Level.hx:67: characters 21-27 : assets.Layer_Collisions has no field render

EDIT: There's a bit in the README.md that's not included in the web tutorial!
running haxe setup.hxml fixed the problem, there's a comment on the web tutorial regarding this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants