Skip to main content
Topic: Is it impossible to make a pak? (Read 18834 times) previous topic - next topic

Is it impossible to make a pak?

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

I'm using pak96.comic and pak128.Britain. Mostly pak96.comic.
"More money means lesser friendship." Reason: Selfish.

Re: Is it impossible to make a pak?

Reply #1
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)


Re: Is it impossible to make a pak?

Reply #3
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.

Re: Is it impossible to make a pak?

Reply #4
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...

Re: Is it impossible to make a pak?

Reply #5
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.

Re: Is it impossible to make a pak?

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

Re: Is it impossible to make a pak?

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


Re: Is it impossible to make a pak?

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


 

Re: Is it impossible to make a pak?

Reply #11
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:
  • S-SE-E-NE-N-NW-W-SW
  • S-N-E-W-SE-NW-NE-SW

Re: Is it impossible to make a pak?

Reply #12
Ah, so confusing.

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

I'm using pak96.comic and pak128.Britain. Mostly pak96.comic.
"More money means lesser friendship." Reason: Selfish.