You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure what is the best way to reach out, so I am doing it in a comment (let me know otherwise).
I finished a few more tools and an automatic Briefing Generator.
I will probably start my own repo with some tools but I wanted to ask permission if I can use a few functions/modules first. Feel free to take anything you find useful from the following (and I've love some feedback as this is my first time working with DF assets).
Briefing Generator ---> https://df-21.net/downloads/conf_files/dark_forces_briefings.rar(uses your gob/lfd/bulkrw modules) This thing can now create briefings based on text configs. This is only an initial release, I'll rewrite it so it loads default assets from DFBRIEF.LFD.
Finally this can be used to convert WAX PNGs to make GIFs
Convert PNGs to GIFs (Useful for WAXes)
def create_gif(asset_path):
img, *imgs = [Image.open(f) for f in sorted(glob.glob(asset_path + "*.png"))]
img.save(fp=asset_path + ".gif", format='GIF', append_images=imgs,
save_all=True, duration=200, disposal=2, loop=0)
# Clean up old PNGs
os.remove(img.filename)
for img in imgs: os.remove(img.filename)
And a request for change. When you extract multiple unnamed assets from (ANIM/WAX etc...) can you write the numeric indexes using three digits?
Ex: animtool.pynamed_entries.append((f'{name}_{i:03}.DELT', entries[i]))
Because if you only use one some OS systems will reread them like this and the order gets messed up. Then you'd need to specify lexicographic order loading which is a pain (maybe you have a solution?).
That should be all. Thank you for all your updates and I will keep on plugging things on my end (wrote a GMD/VOC --> MP3 converter using ffmpeg wrapper).
2 commit comments
Karjala22 commentedon Mar 9, 2021
Hi Nicholas,
I am not sure what is the best way to reach out, so I am doing it in a comment (let me know otherwise).
I finished a few more tools and an automatic Briefing Generator.
I will probably start my own repo with some tools but I wanted to ask permission if I can use a few functions/modules first. Feel free to take anything you find useful from the following (and I've love some feedback as this is my first time working with DF assets).
BMP TO DELT module (includes my interpretation RLE this time)--> https://paste.ubuntu.com/p/bwjJmqY8Ch/ (uses your functions from pltt/pal)
BMP TO PLTT module --> https://paste.ubuntu.com/p/NTpRy8FBz4/ (everything is my own)
DELT TO ANIM module ---> https://paste.ubuntu.com/p/QZDvYD8xtz/ (everything is my own)
Briefing Generator ---> https://df-21.net/downloads/conf_files/dark_forces_briefings.rar (uses your gob/lfd/bulkrw modules) This thing can now create briefings based on text configs. This is only an initial release, I'll rewrite it so it loads default assets from DFBRIEF.LFD.
Finally this can be used to convert WAX PNGs to make GIFs
Convert PNGs to GIFs (Useful for WAXes)
And a request for change. When you extract multiple unnamed assets from (ANIM/WAX etc...) can you write the numeric indexes using three digits?
Ex: animtool.py
named_entries.append((f'{name}_{i:03}.DELT', entries[i]))
Because if you only use one some OS systems will reread them like this and the order gets messed up. Then you'd need to specify lexicographic order loading which is a pain (maybe you have a solution?).
That should be all. Thank you for all your updates and I will keep on plugging things on my end (wrote a GMD/VOC --> MP3 converter using ffmpeg wrapper).
Please let me know about those 3 modules. Maybe I could get dftools from PIP? Otherwise it's no problem, I'll just pillage https://web.archive.org/web/19970802224052fw_/http://www.nucleus.com/~dlovejoy/wdfuse.htm and write my own variation.
Lastly, the asset parser I am working on has a preview here --> https://df-21.net/downloads/jon-test/assets.php
We've joined with Pawel 'Dzierzan' Dzierżanowski (https://github.com/Dzierzan/Dark-Forces-Voxel-Pack) and now have voxel previews in the the assets under VOX section.
Thanks,
Karjala
njankowski commentedon Mar 16, 2021
Hi Karjala,
Sorry for the late reply.
I'll comment further on the other points in another reply, but most important:
You have my permission to use the source from this project.
I have had the project under the ISC license (permissive, MIT-like) since the start, but I'll probably switch it to something closer to public domain.
Don't worry about it :)