What is a diff parser?
Some may be wondering what this is or does. Its quite simple. It makes the creation of an installer file for your SMF mod automatic. Create your mod on a clean install of SMF, compare the files to that of another clean install of SMF using the *nix 'diff' utility, and run the file through this parser and out you will have your XML install file.
Making mods can be a tedious process, which may involve editing lots of files, and you may forget one file you edited, and that can throw your whole mod off. This can cause delays in approval, and maybe even unhappy recipents of the mod. Fret no more. You can catch every change made to the files in your Mod easily and pain free and get them into a properly formatted XML file. Unsure of how to actually create the installer file? No worries, this does it for you.
-Matt @ ATRcom's Diff Parser About section.
What do I need?
- Any computer that supports and allows the use of diff utility (*nix)
- 2 Clean copies of SMF using the same version, with your non-working copy having its Settings.php and Settings_bak.php removed.
How do I get started?
How do I use the parser?
- File
Click the browse button and find the .diff or .patch file on your system.
- Directories to strip
This is used to remove extra directories in the tree leading to your SMF installation. You can play with this by trial and error if you're unsure, however it is very easy to know this value. In my example above, my working copy of smf was in 'joomla/smf'. That is two directories, so the number I enter in this field will be '2'.
- Username
For the username, always use something unique - put your name or your SMF username, or something with no spaces.
- Mod ID
For the id, always use something unique - the package name with no spaces.
- Version
Current version of your mod.
- Display output
When checked, the XML output will be displayed on the screen. When unchecked, you will be prompted to save the file to your computer.
-Matt @ ATRcom's Diff Parser Using the Parser section.
Who made this script/How is this script made?
Matt @ ARTcom from the SMF Team has created this script. This script makes use of php's functions to analyze the diff file and create a valid .xml file
Go To Top