Unable to access ZIP dependency in Defold editor

Hello everyone,

I’m having trouble installing a kit in ZIP format. I specified the following URL of the kit on GitHub in the “Dependencies” section of the game.project file in the Defold editor: https://github.com/Dragosha/cards-fx-kit/archive/refs/heads/main.zip. The kit is downloaded and saved as a ZIP file in the .internal directory, but it doesn’t appear in the editor, and I’m unable to access the kit’s contents.

Is there a specific process or setting I’m missing to correctly install and access the contents of this ZIP dependency in Defold?

Thank you in advance for your help!

that is because the zip file does not have the file game.project or if it has it does not define include dirs

Thank you for the response!

The ZIP file does contain a game.project file, but I noticed some issues with file extensions within it. Specifically, some files in game.project are named with extensions like .collectionc instead of .collection and .renderc instead of .render. Could this be the cause of the problem, or is it normal for these files?

Thank you for any further clarification!

[project]
title = cards-fx-kit
developer = Igor Suntsev
dependencies = 
version = 0.1

[bootstrap]
main_collection = /main/game/game.collectionc
render = /assets/render/default.renderc

[input]
game_binding = /input/game.input_bindingc
use_accelerometer = 0

[display]
width = 1000
height = 900
high_dpi = 1

[ios]
bundle_identifier = com.example.todo

[osx]
bundle_identifier = com.example.todo

[android]
input_method = HiddenInputField

[script]
shared_state = 1

[physics]
gravity_y = -1000.0
scale = 0.01

[html5]
scale_mode = stretch
show_fullscreen_button = 0
show_made_with_defold = 0
heap_size = 32

This project is not intended to be used as a dependency. Just download it and open it as a game. If you want to insert something into your game from it, just copy it to your project.

3 Likes