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.

asked 5 days ago in Engine by Corruptinator (152 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 How to use this Q&A? before posting your first questions.