Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
en:tutomakeobj [2014/04/22 11:52] – gauthier | en:tutomakeobj [2024/06/15 00:27] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Makeobj ====== | ====== Makeobj ====== | ||
- | |||
Makeobj is a software used to compile .dat files and .png pictures. It's very easy to use it. | Makeobj is a software used to compile .dat files and .png pictures. It's very easy to use it. | ||
- | |||
===== 1.Presentation ===== | ===== 1.Presentation ===== | ||
- | |||
If you launch makeobj directly, nothing happens. Makeobj is a console program, if you want to see somthing you have to launch it from the command line of your OS ... we aren't going to do so. To use it correctly, it has to be launched by the command line with a command written with so makeobj would operate with the right command. There are two ways to do that : the most comfortable is using a graphical software to use makeobj like pakhelper, the fastest is using command files. The both are explained here. | If you launch makeobj directly, nothing happens. Makeobj is a console program, if you want to see somthing you have to launch it from the command line of your OS ... we aren't going to do so. To use it correctly, it has to be launched by the command line with a command written with so makeobj would operate with the right command. There are two ways to do that : the most comfortable is using a graphical software to use makeobj like pakhelper, the fastest is using command files. The both are explained here. | ||
- | |||
Makeobj creates one .pak file per object but it's possible to merge multiple .pak files in only one. | Makeobj creates one .pak file per object but it's possible to merge multiple .pak files in only one. | ||
- | |||
===== 2.Pakhelper ===== | ===== 2.Pakhelper ===== | ||
- | |||
<WRAP download> | <WRAP download> | ||
- | |||
Once downloaded, unpack it, so you have a " | Once downloaded, unpack it, so you have a " | ||
- | |||
{{ fr: | {{ fr: | ||
- | |||
<WRAP important> | <WRAP important> | ||
- | |||
You'll find in the tab " | You'll find in the tab " | ||
- | |||
===== 3.The command files ===== | ===== 3.The command files ===== | ||
- | |||
A faster way to compile .dat files is using command files which launch makeobj directly. | A faster way to compile .dat files is using command files which launch makeobj directly. | ||
- | |||
Makeobj is launched by the command line with a key word to tell makeobj what command it must use. The command files we are going to create do the same, you'll just have to launch a command file to use makeobj with the right command. | Makeobj is launched by the command line with a key word to tell makeobj what command it must use. The command files we are going to create do the same, you'll just have to launch a command file to use makeobj with the right command. | ||
- | |||
This is a list of interesting commands of makeobj | This is a list of interesting commands of makeobj | ||
- | |||
Makeobj PAK128 : creates .pak files for pak128 (you can do the same with pak64 or another one) from .dat files. | Makeobj PAK128 : creates .pak files for pak128 (you can do the same with pak64 or another one) from .dat files. | ||
- | |||
Makeobj MERGE : merge .pak files in only one. | Makeobj MERGE : merge .pak files in only one. | ||
- | |||
Makeobj EXTRACT : extract single .pak files from a merged multiple one. | Makeobj EXTRACT : extract single .pak files from a merged multiple one. | ||
- | |||
==== Windows ==== | ==== Windows ==== | ||
- | |||
Put makeobj where you want in your computer. Then use notepad, write the following files and save with the extension " | Put makeobj where you want in your computer. Then use notepad, write the following files and save with the extension " | ||
- | |||
< | < | ||
- | |||
This path must point the makeobj.exe, | This path must point the makeobj.exe, | ||
- | |||
Instead of writing the path, you can just write " | Instead of writing the path, you can just write " | ||
- | |||
These are the files to create (replace " | These are the files to create (replace " | ||
- | |||
create.bat< | create.bat< | ||
- | |||
merge.bat< | merge.bat< | ||
- | |||
extract.bat< | extract.bat< | ||
- | |||
If you defined the path, you'll just have to copy your command files, plus it will be easy to update makeobj since you will just have to replace one file. Using each of these files is only for files which are in the same folder. So you can easily organize your work by creating a folder for each project for example. For create, the possibles errors are writtent the file err.txt created when you compile .dat files. | If you defined the path, you'll just have to copy your command files, plus it will be easy to update makeobj since you will just have to replace one file. Using each of these files is only for files which are in the same folder. So you can easily organize your work by creating a folder for each project for example. For create, the possibles errors are writtent the file err.txt created when you compile .dat files. | ||
- | |||
==== Linux ==== | ==== Linux ==== | ||
- | |||
With linux, shell files are used, they look like windows' | With linux, shell files are used, they look like windows' | ||
- | |||
Put makeobj in the folder you want and open a console in this folder. Write the command " | Put makeobj in the folder you want and open a console in this folder. Write the command " | ||
- | |||
< | < | ||
- | |||
So majeobj is there : | So majeobj is there : | ||
- | |||
< | < | ||
- | |||
Then open a text editor and write this line : | Then open a text editor and write this line : | ||
- | |||
< | < | ||
- | |||
This line defines where is the shell compiler. All your shell files must start by this line. | This line defines where is the shell compiler. All your shell files must start by this line. | ||
- | |||
Here are the files to create (replace " | Here are the files to create (replace " | ||
- | |||
create.sh< | create.sh< | ||
- | |||
merge.sh< | merge.sh< | ||
- | |||
extract.sh< | extract.sh< | ||
- | |||
Here is the biggest difference with windows : Linux doesn' | Here is the biggest difference with windows : Linux doesn' | ||
- | |||
<WRAP box> | <WRAP box> | ||
- | |||
Then, to lauch the file in a console : | Then, to lauch the file in a console : | ||
- | |||
<WRAP box> | <WRAP box> | ||
- | |||
<WRAP important> | <WRAP important> | ||
- | |||
<WRAP important> | <WRAP important> | ||
===== 4.Possible graphical errors ===== | ===== 4.Possible graphical errors ===== | ||
- | |||
==== Objects look like Christmas trees in night mode ==== | ==== Objects look like Christmas trees in night mode ==== | ||
- | |||
Your source picture contains a lot of special colors where they' | Your source picture contains a lot of special colors where they' | ||
- | |||
==== White stripes ==== | ==== White stripes ==== | ||
- | |||
{{ fr: | {{ fr: | ||
- | |||
===== 5.Other errors witheout error message in err.txt ===== | ===== 5.Other errors witheout error message in err.txt ===== | ||
- | |||
==== The object doesn' | ==== The object doesn' | ||
- | |||
There are two possibles causes : your object may have the same name as another one, so it's replaced by this other one, or the problem is in your picture : it may be of wrong dimensions : they aren't multiples of the pakset you create for (1025 instead of 1024 pixels for example) or some pictures are missing (the icon of a building for example). | There are two possibles causes : your object may have the same name as another one, so it's replaced by this other one, or the problem is in your picture : it may be of wrong dimensions : they aren't multiples of the pakset you create for (1025 instead of 1024 pixels for example) or some pictures are missing (the icon of a building for example). | ||
- | |||
===== 6.Error messages in err.txt ===== | ===== 6.Error messages in err.txt ===== | ||
- | |||
These are some error messages you can find in err.txt, some of them may have induced a makeobj crash ... don't worry. | These are some error messages you can find in err.txt, some of them may have induced a makeobj crash ... don't worry. | ||
- | |||
<WRAP box> | <WRAP box> | ||
- | |||
The file " | The file " | ||
- | |||
<WRAP box> | <WRAP box> | ||
- | |||
A essential parameter is missing in the .dat file, here the parameter " | A essential parameter is missing in the .dat file, here the parameter " | ||
- | |||
Here are the most frequent problems, if datas are missing in your vehicles, ALWAYS check the spelling of your parameters (for example " | Here are the most frequent problems, if datas are missing in your vehicles, ALWAYS check the spelling of your parameters (for example " | ||
- | |||
In case of intractable problems, ask [[http:// | In case of intractable problems, ask [[http:// | ||