The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: PlayTrans2009 on August 31, 2009, 08:30:28 am

Title: Is it impossible to make a pak?
Post by: PlayTrans2009 on August 31, 2009, 08:30:28 am
Yeah, I'm wondering if I have my only pak...
Title: Re: Is it impossible to make a pak?
Post by: vilvoh on August 31, 2009, 08:58:42 am
If you're a windows user, you may use Pakhelper (http://minami-fukuoka.simutrans.net/english/pakhelper.html).. It's the easiest way to pak files on windows. You load the dat file and then you just have to push the Do pak button to create the pak file. For more info, have a look at this short guide (http://simutrans-escala-real.blogspot.com/2008/11/pak-helper-el-pequeo-ayudante-de.html) (it's in spanish)
Title: Re: Is it impossible to make a pak?
Post by: Fuzzy Peach on September 07, 2009, 03:10:53 pm
Question, i had made a dat file and png file to create my first pak, but when i make it using pakhelper the pak is created but it doesn't work in simutrans...
Title: Re: Is it impossible to make a pak?
Post by: vilvoh on September 07, 2009, 03:40:55 pm
Check the error.log file and post here the content after using pakhelper. On the other hand, you may need to update the makeobj binary. The one included with Pakhelper 3.2 is pretty old, so there might be problems of compatibility. Just download the latest makeobj binary from Simutrans sourceforge download section, rename it as makeobj.exe and move it to Pakhelper folder.
Title: Re: Is it impossible to make a pak?
Post by: Fuzzy Peach on September 07, 2009, 04:00:11 pm
Check the error.log file and post here the content after using pakhelper. On the other hand, you may need to update the makeobj binary. The one included with Pakhelper 3.2 is pretty old, so there might be problems of compatibility. Just download the latest makeobj binary from Simutrans sourceforge download section, rename it as makeobj.exe and move it to Pakhelper folder.

There is no error.log file in the pakhelper folder...
Title: Re: Is it impossible to make a pak?
Post by: vilvoh on September 07, 2009, 04:07:20 pm
I'm sorry but I don't remember the exact name of the file. I think it's something.log ...perhaps pak.log?

Btw, I forgot to mention that this file is created after you use pakhelper for creating a pak file. Before that, it doesn't exist.
Title: Re: Is it impossible to make a pak?
Post by: Fuzzy Peach on September 07, 2009, 04:26:03 pm
I tried latest makeobj, it still doesn't work, i did see a file called pak in the folder though. I'll upload it and source files just in case it's something with the dat or png file...

The file pak.log says this:


Makeobj version 49 for simutrans 101 and higher
(c) 2002-2006 V. Meyer , Hj. Malthaner, M. Pristovsek (markus@pristovsek.de)

Image size is set to 128x128
writing invidual files to ./
   reading file Orange Car.dat
   writing file ./vehicle.Orange_Car.pak
      packing vehicle.Orange_Car
Title: Re: Is it impossible to make a pak?
Post by: The Hood on September 07, 2009, 05:12:05 pm
You don't reference the images at all in the dat file, which is a fairly good reason why they aren't working in the game.  Look on the wiki or in the SVN for examples of how to define the images.
Title: Re: Is it impossible to make a pak?
Post by: Fuzzy Peach on September 07, 2009, 06:05:17 pm
I found out how and added those parts to the dat file but it says the image size is invalid.
Title: Re: Is it impossible to make a pak?
Post by: The Hood on September 07, 2009, 06:11:54 pm
The png is currently 1025x128 - it needs to be 1024x128.
Title: Re: Is it impossible to make a pak?
Post by: Fuzzy Peach on September 07, 2009, 06:20:30 pm
i resized it to 1024x128 but it didn't work diagonally.

Edit: i finally got it to work, something in the dat wasn't spelled right.
Title: Re: Is it impossible to make a pak?
Post by: vilvoh on September 07, 2009, 06:32:12 pm
You repeated the South view reference twice in the dat file and you forgot the South-West view reference.

Code: [Select]
==>EmptyImage[S]=oc.0.2
EmptyImage[E]=oc.0.0
EmptyImage[SE]=oc.0.1
==>EmptyImage[S]=oc.0.3
EmptyImage[N]=oc.0.6
EmptyImage[W]=oc.0.4
EmptyImage[NW]=oc.0.5
EmptyImage[NE]=oc.0.7

You can use any order, even different from the png file, but the most usual ones are:
Title: Re: Is it impossible to make a pak?
Post by: PlayTrans2009 on September 08, 2009, 02:35:37 am
Ah, so confusing.

So, I should make addons to make a pak? Epic.