Jump to content
 

Tool Request. Programmer needed


Recommended Posts

Posted

My programming ability is slow and flawed...much like me in general and as such I know somebody else could produce this (hopefully) simple tool that should make pach building a bit less annoying.

What I require is a simple tool that you load a folder containing the files, it doesn't worry about the file extension but reads the file names (Hex) and puts them in Hex order and appends each file with a numerical order.

For example it will change 0000.pac or .zlib or .zlib.uncompressed to 0000.00, 000A.pac to .01, 000C to .02 and so on.

The reason for this is if you then arrange by type it puts them in the correct order for quickly building a pach file.

I normally do this manually but it becomes time consuming when I know a little tool to do the job should be possible to do the extension renaming for us.

So to summarise, read folder contents, if file name (not extension) < 5 characters load it into memory, arrange by Hex order, output with extension .i (2 digits) and a for each loop appending by 1 each file to produce a folder with the files in hex order with the numerical extension in ascending order.

Should be a nice little project that will prove very useful.

If you are interested in taking it on but don't feel I offered a good enough explanation let me know and I will try to word it better.

Posted (edited)

I would still need to rename the files to be recognised then have to arrange them manually by following a guide to make sure I have them in the correct order if you get what I mean.

With this tool it would just read a folder then recognise the file names before the extension and ignore any files longer or shorter than 4 characters.

Then it will arrange them in Hex order (in the program) and assign extensions of .00 and up by 1 digit (decimal not hex) and just save it back out again ready to just throw them into a pach quickly.

The reason being is when I am playing around with files I am constantly testing different characters pach files and throwing parts of each together and get tired of having to work out the correct order manually for the pach file.

So the program would be:

1) open program

2) direct to folder and click open (or even a drag and drop feature whereby you drop the folder on an icon)

>tool does the job automatically of sorting the files by hex order and appending them with the ascending double digit numerical order.

3) click save to confirm you want to save the results. (one click, not for each file).

then you could leave the tool open and just open the folder and click save each time you add or remove files from the folder and it will do the job again.

If it finds two files with the same name (different extensions) it would number them in the order it reads them, this is for the user to ensure they don't have two files of the same name.

The end result would be something that looks like this.

a8f99d6f5a330260b492d1ea606e60f9.png

Edited by Perfectplex

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy Guidelines We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.