News:

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

How to re-pak fields

Started by grampybear, April 20, 2011, 09:12:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

grampybear

Help,please. I downloaded the svn for Arable Farm from pak128britain to change the max # of fields I was generating. That done ,how do I repak the fields to get them back into the game. Pakhelper only picks up the png for the farm and the dat for same, not the pngs of the fields. Thank you

The Hood

you can do it off the command line if you are familiar with that way of working:
- in the directory where the dat file is type makeobj.exe pak128

Not sure about pakhelper though.

grampybear

#2
Thank you but I am not familar with working that way. I guess my problem is the dat file. The svn shows the arable farm house  dat and png files with the vegetablefield separate, png only. I only reduced the max # of fields produced in the dat file but now I can not remake the pak to get it back into game. Where is the dat file for fields? and where does it go? Thanks

EDIT: couple of days later. after trial and error I an able to have makeobj make a pak. The Arable Farm is back in game and works fine, however upon looking at the game files I can find no "field.Vegetablefield.pak" in game. Does this mean that it is compiled into Arable Farm pak? and if so can some other factory needing vegetables still contract with "Vegetablefield"?
Sorry for all the questions but I am slowly learning how ST works from the inside. Thank you for any help.

VS

I just saw your edit and the questions.

Pak files are somewhat like folders, you can have multiple items in one just as you say. Matching objects by names is done only after loading, when they are all in one list in the game. So, yes, it is possible that fields are merged with the farm, and other factories can still find them.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!