English Reduce the size of his mission

I'm the Boss

Admin
Membre du personnel
2/1/20
163
35
950
This tutorial will allow you to move your textures and sounds from your mission to a mod
Your server must be a modded server !

___

For this the tutorial will be composed of several parts:

  • 1 - Create a mod
  • 2 - Put textures in a mod
  • 3 - Put sounds in a mod
  • 4 - Publish the mod
___
1 - Create a mod

  • Create a folder where you want and with the name of your choice
  • In this folder, create a config.cpp file and paste this code in :

___
2 - Put textures in the mod

  • Move all your text files (.png, .jpg, .paa) from your mission to the folder of your mod
  • Using the code editing software you are using (tutorial for using Notepad++, Sublime Text or Atom), search your mission folder and your mission.sqm file, which you will have saved in non-binarized format at the output of the Arma III editor to search for all the paths to the old textures. To do this you can search for example the name of the folder in which the textures were and add a [ICODE] \ [/ICODE] at the end
  • Change all the paths to your textures so that they point to the right file that will be in a mod now, here's an example:
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
will become after modification if the name of your mod folder is my_mod and the file ico_defibrillator.paa is located directly in the folder of your mod:​
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
  • Small specificity, if you have some product from the The Programmer site, it is possible that some paths to the textures are located in the .pbo files in @ The_Programmer / addons. It will convert folder with Pbo Manager installation tutorial then repeat the operation of search in these folders, replace paths then re-convert to .pbo with Pbo Manager
___
3 - Put sounds in the mod

  • Move all your (.ogg) sound files from your mission to your mod folder
  • In the file description.ext in your mission cut (<=> copy then delete) the class CfgSounds which looks like this for example:
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
Remember that each open brace must be closed so there are as many { that of }, if you miss it you do not have to copy the whole class!

  • In the file config.cpp in the folder of your mod paste what you copied to the end of the file
  • Change all the paths to your sounds so that they point to the right file that will now be in a mod, here's an example :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
will become after modification if the name of your mod folder is my_mod and the tazer.ogg file is located directly in the folder of your mod:​
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
  • Small specificity, if you have some product of the site The Programmer, it is possible that you have include in your class CfgSounds. If so, go to the file target the include from your mission and replace the include with the contents of the file it targets. You can now change the path to the sounds correctly.

___
4 - Publication of the mod

  • Using Pbo Manager (installation tutorial) put your folder in .pbo file
  • Add this file in the mods of your server and those of your workshop / launcher and update it so that all the players of your server have this mod during their connection
Tip to simplify your mission, save the file mission.sqm in binarized at the exit of the editor of Arma (a check box during the recording)
 
Dernière édition par un modérateur:

datecru

User
23/5/20
2
0
100
Hi, man could you write the config.cpp code that you use? or an example to create it
 
Dernière édition:

Flobbah

User
29/12/19
8
7
100
Here is a template mod created for those things:
S’il vous plaît, Connexion ou S'inscrire pour voir le lien !

When renaiming the mod, you have to edit the $PREFIX$ data to the addon name, to enshure you can sign it.
You are allowed to completely modify the mod as you wish.

This version is made with another option of adding sounds.
in the "description.ext" you change these lines:
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

into that:
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

Don't forget to change the "@server_name_assets" to what you changed the mod name.
 
Dernière édition:

BVRP

User
25/5/20
1
0
100
Anyone know how to route going to be like @mod/addons/pbofile/pics/imagen.jpg I trying but still don't get it. Did someone has an example of the Route??
 

Flobbah

User
29/12/19
8
7
100
B BVRP you don't need to write the whole path down. You don't need to add the ".pbo" into that path. You just need to write down the path like this: "pbofile\pics\imagen.jpg" use backslash "\" not normal slash "/".
If you still need help with it, hit me up on TheProgrammer's Discord!
 

Flobbah

User
29/12/19
8
7
100
No no, for textures you don't add the "@" in front of it, this is just for Sounds. For textures you replace the "@" with a bacslash "\"
Like this:
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
 
Dernière édition: