Automatic MOD file generation - DiffBB v0.1.0

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
dapaintballer333
Registered User
Posts: 177
Joined: Sat Oct 23, 2004 4:02 pm

Post by dapaintballer333 » Mon Aug 21, 2006 8:46 pm

well the way you call fopen also decides wther it gets created or not, I think -a makes it create the file if it doesn't exist

0beron
Registered User
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Post by 0beron » Mon Aug 21, 2006 9:20 pm

I'm sure there's something wrong with my file handling in the old version, and its just chance that it happened to work on the server I tested on.

I'm debugging the routines that check find targets for uniqueness at the moment, once I've got that working properly the tool will be usable although won't produce the best MOD files in the world. I'll continue to work on it as I have some new ideas.

0beron
Registered User
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Post by 0beron » Thu Aug 31, 2006 6:48 pm

I took some holiday this weekend, so didn't get anything done for the last week or so. Should have a trial version soon.

dapaintballer333
Registered User
Posts: 177
Joined: Sat Oct 23, 2004 4:02 pm

Post by dapaintballer333 » Mon Sep 25, 2006 11:23 pm

awsome, thanks a lot, I can't wait!

0beron
Registered User
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Post by 0beron » Mon Sep 25, 2006 11:42 pm

Nearly there. These things always take longer than I think they will.....

I have one outstanding bug to fix before a semi-usable version is done.

0beron
Registered User
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Post by 0beron » Thu Sep 28, 2006 6:46 pm

Right, sorry for the long wait, here is the first version.

http://www.rmf33.co.uk/pydiffbb-0.1.0.zip

To run it you will need the following:
* A UNIX compatible command line diff utility (on windows I use the one that comes with MinGW)
* Python 2.4 installed

Extract the three python files and run the one called diffbb.py, it should print out some usage instructions about the arguments it takes.

I haven't had a lot of time to test this thing all that rigorously, although it seems to at least create correct MOD files even if the choice of find targets and such is still a bit brainless.

Please take a copy and test it to destruction. I'll do some more work in the future to trim down the inline find strings and pick better targets to ensure higher compatibility with other mods.

If you have any trouble with the script then I'll try and help, but I can't really help with things like installing a diff utility etc...

0beron
Registered User
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Post by 0beron » Sun Oct 01, 2006 1:02 pm

I've already been asked how to install diff on windows. To the best of my knowledge this is how: (I quote from a PM I sent)
Have a look here:

http://www.mingw.org/download.shtml#hdr6

The download links and install info are all on that page. To just get diff working it should be sufficient to do this:
If you want to download the minimal set of tar.[gz|bz2] you will need the mingw-runtime, w32api, binutils and gcc tarball packages. You can find the current versions of these in the "Current" section above.


This ought to work, although I can't remember the exact steps I went through to install it myself.

atnbueno
Registered User
Posts: 39
Joined: Sun Aug 03, 2003 5:26 pm
Location: Spain
Contact:

Post by atnbueno » Mon Oct 16, 2006 10:30 pm

I'm really interested in this tool. It will save me plenty of time as I'm always tweaking my board without taking notes :P

As for diff on Win32 I use the one from http://unxutils.sourceforge.net/

Not sure if there's a 1:1 correspondence with the command line parameters, but its use can't be more straightforward.
Antonio B.
mundoplus.tv - Televisión por Satélite en España

0beron
Registered User
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Post by 0beron » Mon Oct 16, 2006 11:28 pm

Hope you find the tool useful.

It's been brought to my attention that this tool also requires you have either the old Numeric modeule installed for python, or the newer numpy module. You can get numpy here: http://www.scipy.org/Download

For those running this tool on windows, I've created an executable version that hopefully ought to run without python and any modules (you will still need diff however). Try it out here http://www.rmf33.co.uk/pydiffbb-0.1.0-win32.zip and let me know if there are any problems. You just need to extract the folder and run the executable.

Post Reply

Return to “[2.0.x] MOD Writers Discussion”