0 votes

There isn't much information about how the PCK Packer class works, I was trying to write a code to pack imported files into a compressed PCK file which in theory should be useful for patches and or downloadable content.

func _pck_Queue(files,savepath):
    #percentage = 0
    var packaging = PCKPacker.new()
    packaging.pck_start(savepath, 0)
    for i in range(0,files.size()):
        percentage = i
        get_node("/root/Node/WindowDialog/VBoxContainer/ProgressBar").value = percentage
        var directory = files[i].get_base_dir()
        var file = files[i].get_file()

I have no idea if the code above is the right way to go but is there any ideas? Options to how I can fix this? Thanks.

in Engine by (208 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.