I'm looking for someone, anyone, to write a little piece of code for me. It doesn't have to be pretty, just effective. What I want is a program that will that will take the guts of a typical angband-type edit file and output, in a new text file, a 'skeleton' graf-dvg.prf.
It shouldn't take any more work than reading each set of lines, breaking it down into it's parts, and spitting it back out again in a different format. I'll strip out the header and other irrelevant parts of the file in advance...
So, something like this...
would be turned into something like this..
Obviously, it would have to insert 'dummy' hex values.
It needs to work in windows. I'm working with Dev-C++ (so if plays nice all the better). It would be nice if it was able to handle the terrain, objects and monster files, all of which are a little different. Given the source for any one of the above, I could probably, with some effort, modify it to work with the others. It would be a learning experience. The file input and output is what I have no idea how to do.
As should be obvious by now, I plan to use this to create .prf files for variants that don't currently have 'working' graphics. The bulk of the work is creating a matching .prf so having such a program would save hours. Manually adding the hex values is easy.
If I don't get any takers, I'll probably go ahead and try to do it in visual basic (but I'd rather learn C++).
It shouldn't take any more work than reading each set of lines, breaking it down into it's parts, and spitting it back out again in a different format. I'll strip out the header and other irrelevant parts of the file in advance...
So, something like this...
Code:
# 0x00 --> nothing N:0:nothing G: :w # 0x01 --> open floor N:1:open floor G:.:w # 0x02 --> invisible trap (drawn as open floor) N:2:invisible trap G:.:w M:1
would be turned into something like this..
Code:
# nothing F:0:0x80:0x80 # open floor F:1:0x80:0x81 # invisible trap F:2:0x80:0x81
It needs to work in windows. I'm working with Dev-C++ (so if plays nice all the better). It would be nice if it was able to handle the terrain, objects and monster files, all of which are a little different. Given the source for any one of the above, I could probably, with some effort, modify it to work with the others. It would be a learning experience. The file input and output is what I have no idea how to do.
As should be obvious by now, I plan to use this to create .prf files for variants that don't currently have 'working' graphics. The bulk of the work is creating a matching .prf so having such a program would save hours. Manually adding the hex values is easy.
If I don't get any takers, I'll probably go ahead and try to do it in visual basic (but I'd rather learn C++).
Comment