Some patch questions

Discussion of all aspects of the game engine, including development of new and existing features.

Moderator: Forum Moderators

Post Reply
User avatar
Baufo
Inactive Developer
Posts: 1115
Joined: January 29th, 2006, 4:53 pm
Location: Vienna, Austria

Some patch questions

Post by Baufo »

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 :wink:

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
SkeletonCrew
Inactive Developer
Posts: 787
Joined: March 31st, 2006, 6:55 am

Post by SkeletonCrew »

Baufo, please read this post it answers all your questions and more :) http://www.wesnoth.org/forum/viewtopic. ... 866#136866
User avatar
Noyga
Inactive Developer
Posts: 1790
Joined: September 26th, 2005, 5:56 pm
Location: France

Post by Noyga »

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 ;)
"Ooh, man, my mage had a 30% chance to miss, but he still managed to hit! Awesome!" ;) -- xtifr
User avatar
Baufo
Inactive Developer
Posts: 1115
Joined: January 29th, 2006, 4:53 pm
Location: Vienna, Austria

Post by Baufo »

Thank you, this already helped a lot.
So I should make a patch - file of the changelog and about.cfg too?
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
SkeletonCrew
Inactive Developer
Posts: 787
Joined: March 31st, 2006, 6:55 am

Post by SkeletonCrew »

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 .
User avatar
Sapient
Inactive Developer
Posts: 4453
Joined: November 26th, 2005, 7:41 am
Contact:

Post by Sapient »

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."
Post Reply