Customizing SMF > SMF Coding Discussion
Modifications.xml Generator
AV-2:
Greetings!
Before reinventing the wheel, I would like to know if there is a script out there that does the inverse of the parse script in the site. That is, given a diff file in some format, it parses the contents and converts it accordingly to the smf xml format specification.
How do you people prepare your mods? By hand?
Arantor:
I don't recall ever seeing one, but that's because I always wrote directly into .xml files so instead of doing diffs I was always building straight into the mod file as I went (so I could test it by installing it), plus that meant I was able to make better decisions about what find/replaces were done to avoid collisions.
A lot of 2.0 stuff can be done with hooks, though far from all.
Suki:
I usually do it by hand, yes, is a lot more simpler for me.
I don't particularly like file edits and when I need to do it I use comments as a search point.
Usually I keep two sets of files, the one I'm working on and another clean file, when I'm done with the edits I just do a copy/paste from both the modified file and the clean one.
I have pre-made package-info.xml and modification.xml as well as install.php and hooks.php/remove.php files ready to use, just a matter of changing the mod name or the path.
Elmacik:
There was a Java tool that can pack and prepare both XMLs and the zip; I don't remember it's name now. It had a gui that you can operate everything by clicks. I bet it could be easily found by searching. I don't know if everything will work with that tool for SMF 2.x, because it's quite old, but still handy for small operations. Though I'd still prefer going manually.
phantomm:
Sometimes I'm using this SMF Mod Creator => http://sourceforge.net/projects/smfmc/files/smfmc/1.0/ or http://sleepycode.com/pacmangen/ :)
But mostly I do everything in Notepad++ :D
Navigation
[0] Message Index
[#] Next page
Go to full version