News:

Want to praise Simutrans?
Your feedback is important for us ;D.

Is it impossible to make a pak?

Started by PlayTrans2009, August 31, 2009, 08:30:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PlayTrans2009

Yeah, I'm wondering if I have my only pak...

vilvoh

If you're a windows user, you may use Pakhelper.. 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 (it's in spanish)

Fuzzy Peach

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...

vilvoh

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.

Fuzzy Peach

Quote from: 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.

There is no error.log file in the pakhelper folder...

vilvoh

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.

Fuzzy Peach

#6
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

The Hood

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.

Fuzzy Peach

I found out how and added those parts to the dat file but it says the image size is invalid.

The Hood

The png is currently 1025x128 - it needs to be 1024x128.

Fuzzy Peach

#10
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.

vilvoh

#11
You repeated the South view reference twice in the dat file and you forgot the South-West view reference.


==>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:

  • S-SE-E-NE-N-NW-W-SW
  • S-N-E-W-SE-NW-NE-SW

PlayTrans2009

Ah, so confusing.

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