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

Possible to convert entire directory instead of singular VOX? #3

Closed
lazyRares opened this issue Dec 18, 2022 · 7 comments
Closed

Possible to convert entire directory instead of singular VOX? #3

lazyRares opened this issue Dec 18, 2022 · 7 comments

Comments

@lazyRares
Copy link

lazyRares commented Dec 18, 2022

Basically, im trying to generate a bunch of VOX Files' PNG's. (Around 2800 Vox Files) But using the current setup Command Line Arguements only supports one file, I tried rewriting it to allow this but i dont know enough about how this works to try that. So im just wondering if im missing something that i can input to allow this... I remember doing it a long time ago but i dont remember how.

@Arlorean
Copy link
Owner

Arlorean commented Dec 18, 2022

I could modify the code to optionally take a directory or a voxel file. I’m not sure if I’ll get around to it soon though unfortunately.

Edit: The command line allows multiple files so you could pass “a*.vox”, “b*.vox”, etc. to get around the shell limits on command line length.

@lazyRares
Copy link
Author

lazyRares commented Dec 18, 2022

I could modify the code to optionally take a directory or a voxel file. I’m not sure if I’ll get around to it soon though unfortunately.

Edit: The command line allows multiple files so you could pass “a*.vox”, “b*.vox”, etc. to get around the shell limits on command line length.

I tried the possible solution but it threw "illegal characters" error, so i might just write a program to output every Vox files name to a file and paste it all in there. Since if you put a vox file seperated by a space it will generate a preview for all of them Ex: evertides_painting_17.vox evertides_chair_red.vox

@Arlorean
Copy link
Owner

You could try this in Powershell. cd to the directory you want to get PNG files for and then run this:
Get-ChildItem -name *.vox | foreach {& 'C:\Program Files (x86)\Voxels\Voxels.CommandLine.exe' $_}

@lazyRares
Copy link
Author

lazyRares commented Dec 18, 2022

I came up with a sort of backwards way to circumvent this, I made a program that outputs all the vox names to a text file, and then. I edited your code so it allows for manual input of where it should output the images, now i can just paste in the block of outputted VOX names and itll go through and generate each image for it and output it to a single folder designated. It's very hacky though as you need to manually input the path.

On that side note, is it okay if we publish a built version of the program primarily made for use for the game "Teardown"? Since we needed this to generate previews of props in the game for a mod. Proper credit will of course be given.

@Arlorean
Copy link
Owner

Glad you got it working in the end. Good luck with you project, I hope this helps.

@Arlorean
Copy link
Owner

Yes, please feel free to publish a built version. You might want to fork this repo on Github to do it, but whatever works for you. Teardown is on my Steam wishlist. I must get around to buying it one day soon, it looks great.

@Arlorean
Copy link
Owner

This is now fixed and will be in the v1.5 release.

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

No branches or pull requests

2 participants