FAQ development

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
("I do not agree with the goals of the offical branch, what can I do instead?" is moved to official GH)
(added polish)
 
Line 3: Line 3:
 
|es=Preguntas frecuentes sobre desarrollo
 
|es=Preguntas frecuentes sobre desarrollo
 
|fr=FAQ de développement
 
|fr=FAQ de développement
 +
|pl=FAQ rozwoju
 
|ru=Часто задаваемые вопросы разработчика
 
|ru=Часто задаваемые вопросы разработчика
 
|sr=Najčešća pitanja o razvoju OpenTTD
 
|sr=Najčešća pitanja o razvoju OpenTTD

Latest revision as of 19:42, 26 May 2020


Answers to questions regarding development of OpenTTD, e.g. source code, setting up compilers, etc..

This page provides brief answers and then links to other resources. This is to avoid duplicating information better found elsewhere - please maintain that approach when editing, thanks.

Contents

[edit] Contributing to the project

[edit] What can I do to contribute to the project?

This depends on your talents.

[edit] How to get in contact with people

Checkout the Community page for links to the various forums and platforms for each subject.

[edit] How does open-source work? What to expect from people?

As general advice, if you are new to open-source: Consider the different interests of people in the project. Don't expect people to have rational goals, or to share interests with you. Even if you seem to work on the same thing, some people are mainly interested in the result (what to do?), while others are mainly interested in the path towards some result (how to do something?).

This applies to both "inoffical add-ons" as for the "official branch": This is a volunteer project; everyone is here for fun, not for obligations. Some people develop stuff with the expectation that official maintainers are obliged to look at their stuff and include it into the main branch; but the truth is that people will only look at stuff when they are interested in it.

In every volunteer project you will find posts like "this patch has been around for 10+ years, I want it so badly, why is it still not in the main branch?". But don't let that spoil your fun :)

[edit] Contributing to the main game

Want to contribute? Great!

[edit] What are the goals of the official branch?

[edit] I do not agree with the goals of the official branch, what can I do instead?

  • The Contributing to OpenTTD guide covers this (TL;DR: forks and patchpacks are encouraged).

[edit] I've fixed a bug / added a feature. How can I submit it to the codebase?

[edit] I want to become an official OpenTTD developer! How?

  • This is a matter of trust. OpenTTD has many complicated and arcane mechanics with lots of corner cases. You can join the official team by proving that you fix more than you break.
  • The best way to get started is by fixing small things, either from the GitHub issues, or things you find yourself. Submit Pull Requests for these. We do try to review all pull requests, especially from new contributors, but sometimes it takes a while before someone gets to it.
  • Nearly all official communication is via GitHub, or in irc channels, joining irc regularly is the most effective route to becoming a long-term contributor.

[edit] Source code

[edit] What is source code?

  • Source code is the uncompiled version of the program, or in this case OpenTTD, which enables the developers to make changes to the game.
  • If you are unfamiliar with source code, then we suggest starting off with a C++ tutorial.

[edit] How can I obtain the source code?

[edit] Now I have got the source code how can I compile it?

Compiling OpenTTD contains more information about compiling.

To test the compiler setup, try compiling the game from source code without applying any patch, and run the resulting executable. If all goes well, you can be fairly sure the setup is good. If it fails, you know for sure the patch is not the source of the problems.

[edit] I had a problem compiling! What should I do?

  • This is not a compiling FAQ. Try to ask your compiler vendor for help.

[edit] How do I create a patch?

Personal tools