English Create a license

  • Auteur de la discussion Auteur de la discussion I'm the Boss
  • Date de début Date de début

I'm the Boss

Admin
2/1/20
657
3
43
1 100
Hello,

How to create a license?

1 - Go to the root of your mission.
2 - Go to \config\Config_Licenses.hpp.
3 - Go inside the Licenses class and create a new class.

Example :

Code:
Développer Réduire Copier
class maLicence {
   variable = "myLicence";
   displayName = "STR_License_maLicence";
   price = 0;
   illegal = false;
   side = "civ";
};
The name of the class and the variable don't have to be identical, but it's better to find your way around.

  • The variable is required, choose a single word or two Words. (remember, never accents or special characters)
  • The displayName corresponds to the stringtable of the name displayed in game
  • The price corresponds to the price of the license at stake
  • illegal = false; for the license to be legal
  • illegal = true; for the license to be illegal
  • The side speaks for itself and can be set to "civ" or "cop" or "med". (only the players in the indicated side will have access to this license.)

  • Go to stringtable.xml at the root of your mission.
  • 5 - Look for "Life_License" and add your STR at the end of this package.

Example :

Code:
Développer Réduire Copier
<Key ID="STR_License_myLicence">
    <Original>The name of my license
    /Original>
</Key>

6 - Save the two modified files.

Your license is created!
 
Activité
Pour l'instant, il n'y a personne ici