Some patch questions
Moderator: Forum Moderators
Some patch questions
Yesterday I downloaded the source code of 1.3 from svn the first time. I toyed around with it a bit and so far it's quite exciting, even if nearly every piece of code confuses me.
Well, I made a little patch - an extra tag to float text above units which I longed for when writing WML. It's about 5 lines of code
Generally, should I ask on IRC if it could be useful before submitting a patch or just do it and see what happens?
And is this strange *.patch - file that svn diff created enough, does it contain all necessary information?
Well, I made a little patch - an extra tag to float text above units which I longed for when writing WML. It's about 5 lines of code
Generally, should I ask on IRC if it could be useful before submitting a patch or just do it and see what happens?
And is this strange *.patch - file that svn diff created enough, does it contain all necessary information?
I was working on the proof of one of my poems all the morning, and took out a comma. In the afternoon I put it back again. -- Oscar Wilde
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
Baufo, please read this post it answers all your questions and more http://www.wesnoth.org/forum/viewtopic. ... 866#136866
If you want to submit àpatch, do it at http://patches.wesnoth.org
SVN diff patches are what is the most convenient to us, developers, to test you patch.
You might want to modify the changelog, this would help our lazy devs
If it's your first patch you might want to add yourself to data/about.cfg too
SVN diff patches are what is the most convenient to us, developers, to test you patch.
You might want to modify the changelog, this would help our lazy devs
If it's your first patch you might want to add yourself to data/about.cfg too
"Ooh, man, my mage had a 30% chance to miss, but he still managed to hit! Awesome!" -- xtifr
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
If you modify the changelog and about.cfg and do "svn diff >patch" in the root the changes in all your modifications are put in 1 diff. This diff you can post at http://patches.wesnoth.org .
I already added code to float text above units. It's in unstore_unit.
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."