Cookie Consent

This website would like to place cookies on your computer to improve the quality of your experience of the site. To find out more about the cookies, see our privacy notice.

Loading...
 
Skip to main content

Site identity, navigation, etc.

Simutrans Tikiwiki
Simutrans Tikiwiki
The official wiki for Simutrans
I forgot my password
CapsLock is on.
  • Login with 2FA

Navigation and related functionality and content

Translations
English (en)Dansk (da)Deutsch (de)Español (es)Français (fr)Italiano (it)Magyar (hu)Nederlands (nl)Norsk (no)Polszczyzna (pl)Português (pt)Suomi (fi)Svenska (sv)Česky (cs)Ελληνικά (el)Русский (ru)日本語 (ja)正體中文 (tw)简体中文 (cn)
Structures
Development Index
Page actions
Print
  1. Development Index
  2. Creating Simutrans objects

Table of contents

  • Creation of pak-files
    • Pak-files - what is their use?
    • Creating pak-files
    • MakeObject command line arguments
    • Examples

Creation of pak-files

see also
Creating graphics
Creating dat-files

Pak-files - what is their use?


Pak-files (naming convention: object.name.pak) are a special file type that is used by Simutrans to store different kinds of objects as for instance user made graphics and content. The pak-files store data and graphics for visible objects.

Creating pak-files

Pak-files are created with the help of the program MakeObject. Needless to say that you need your
graphics and parameter files describing your object.

The program MakeObject (Windows makeobj.exe; Linux/BeOS makeobj) can be found at the
Simutrans forum Forum.

MakeObject command line arguments

makeobj CAPABILITIES
lists supported object types
makeobj PAK <pak file> <dat file(s)>
creates a pak64-file with the object taken from the assigned dat-files
makeobj PAK
reads all dat-files in the current directory and creates pak64-files for all objects in the directory
makeobj PAK128 <pak file> <dat file(s)>
creates a pak128-file with the object taken from the assigned dat-files
makeobj PAK128
reads all dat-files in the current directory and creates pak128-files for all objects in the directory

Instead of PAK128 one can use different formats. Sizes form PAK16 up to PAK255 are supported. However,
only the sizes PAK32, 64, 96, 128 are tested and in current use.

makeobj LIST <pak file(s)>
lists the objects contained in the pak-files
makeobj MERGE <pak file> <pak files>
merges all the pak-files into a new (larger) pak-file
makeobj DUMP <pak file> <pak file(s)>
testing of the pak-files (version 0.40 or newer)
makeobj EXTRACT <pak file archive>
extracts file created by the MERGE command


You can append ' >error.txt' to the command line. Then MakeObject writes all occuring errors into the file 'error.txt' for further debugging purposes.


Examples

It is recommended to use the following directory structure:

Windows

Copy to clipboard
simutrans_src makeobj.exe haus_01 haus_01.dat haus_01.png pak.bat auto_03 auto_03.dat auto_03.png pak.bat triebzug_01 triebzug_vorn.dat triebzug_mitte.dat triebzug_hinten.dat triebzug_01.png pak.bat

Linux / BeOS

Copy to clipboard
simutrans_src makeobj haus_01 haus_01.dat haus_01.png pak auto_03 auto_03.dat auto_03.png pak triebzug_01 triebzug_v.dat triebzug_m.dat triebzug_h.dat triebzug_01.png pak


Development folder: Windows 1.24 Mb - Linux 365.63 kb

Windows: You can write the necessary commands in the batch file "pak.bat". This file can be created and edited using Notepad. To save as '.bat'-file you have to choose file type: all files (*.*) in the save-dialog.
Double-clicking in the explorer on the file starts it. You can reuse this file: copy it into new object directories. It will work as long as the standard command line written in the file.

Linux: You can create a shell script file (called "pak" in the example). The first line has to be #! /bin/sh (not by Suse Linux). Moreover, the file must be executable by the user. The command chmod +x pak marks the file "pak" executable if launched in the directory, where the file resides.

The standard command line for the directory structure above is

Windows
pak48
Copy to clipboard
..\makeobj PAK48 >error.txt

pak64
Copy to clipboard
..\makeobj PAK >error.txt

pak96
Copy to clipboard
..\makeobj PAK96 >error.txt

pak128
Copy to clipboard
..\makeobj PAK128 >error.txt

pak192
Copy to clipboard
..\makeobj PAK192 >error.txt

Linux / BeOS
pak48
Copy to clipboard
../makeobj PAK48 >error.txt

pak64
Copy to clipboard
../makeobj PAK >error.txt

pak96
Copy to clipboard
../makeobj PAK96 >error.txt

pak128
Copy to clipboard
../makeobj PAK128 >error.txt

pak192
Copy to clipboard
../makeobj PAK192 >error.txt


If you use these command lines the file name of the new pak-file is created from the parameters "obj" and "name" in the dat-file

 
object.name.pak


For each object a new pak-file is created. This happens also if more than one object entry is found in the processed dat-file.

You can chance this behaviour by changing the command line of makeobj appropriately:

Copy to clipboard
..\makeobj PAK vehicle.train.pak ./train_front.dat ./train_middle.dat ./train_back.dat


There is also the possibility to merge the pak-files after creation:

Copy to clipboard
..\makeobj MERGE vehicle.train.pak ./vehicle.train_*.pak

The wildcard * has to be used such that the new file (here: vehicle.train.pak) does not match.


Top

  1. Development Index
  2. Creating Simutrans objects
Rate this page:

Contributors to this page: Frank , IgorEliezer and system .
Page last modified on Wednesday November 13, 2019 00:25:16 CET by Frank.
This content is licensed under the terms of the Copyright.
History Source
Contributions by author Discuss

More content and functionality (left side)

....

Copyright
Impressum

Data protection

Search

System Menu

  • Home
  • Search
  • Contact Us
  • Stats
  • Categories
  • Tags
  • Wiki
    • Wiki Home
    • Last Changes
    • Rankings
    • List Pages
    • Sandbox
    • Structures
  • Articles
    • Articles Home
    • List Articles
    • Submit Article
    • View submissions
  • Forums
    • List Forums
  • Directory
    • Submit a new link
    • Browse Directory
  • File Galleries
    • List Galleries
  • Spreadsheets
    • List Sheets
  • Trackers
    • List Trackers
    • Offline mode
  • Surveys
    • List Surveys
    • Stats

Articles

  1. Simutrans 124.4.1
  2. unofficial pak64.german 0.124.4.0.1
  3. Simutrans 124.4
  4. PAK128.German 2.4
  5. unofficial pak64.german 0.124.0.0.7
  6. unofficial pak64.german 0.124.0.0.6
  7. Simutrans 124.3.1
  8. unofficial pak64.german 0.124.0.0.5
  9. 2024 Simutrans Screenshot Contest
  10. Simutrans 124.3

Latest Changes

  1. Home
  2. en_Code_Overview_3_Ribis_and_Slopes
  3. en_Code_Overview_2_Ways
  4. en_Code_Overview_1_World
  5. Copyright
  6. en_Code_Overview_5_Vehicles_and_Convoys
  7. en_Code_Overview_7_Movement_of_Convoys
  8. en_Code_Overview_6_Schedules_and_Routes
  9. en_Code_Overview_4_Signs
  10. en_Overview_of_Simutrans_Code
...more

Online Users

955 online users

Newest Forum Posts

  1. Aw: en_menuconf_tab: Wofür steht 'ribi'?
  2. en_menuconf_tab: Wofür steht 'ribi'?

BugTracker

  1. Signals waytype tram_track not correct work
  2. fehlerhafte Darstellung bei Untergrundstrom
  3. ungleiche Frachtverteilung an Ölborinseln
  4. Liste verfügbare Fahrzeuge
  5. Grafikfehler Bodentextur
  6. Linksklick in Haltliste
  7. blank menu show

Last wiki comments

  1. en_BuildAnAirport: "In Extended, they have to..."
  2. en_BuildAnAirport: "Is there any advice on how..."
  3. en_Simutrans_repo_deb: "When installing..."
  4. en_Simutrans_repo_deb: "Also with Linux Mint 21.1 -..."
  5. en_Simutrans_repo_deb: "After a while, I found..."
  6. en_Simutrans_repo_deb: "Hi, I tested the following..."
  7. de_VehicleDef: "Loading time ist ein..."
  8. de_tikiwiki_hilfe_index: "cialis normaldosis &lt;a..."
  9. de_tikiwiki_hilfe_index: "cialis moment urban..."
  10. de_FactoryDef: "z.B. bei Ölbohrinseln mit..."

Site information, links, etc.