The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: grampybear on April 20, 2010, 07:39:58 pm

Title: opening Makeobj
Post by: grampybear on April 20, 2010, 07:39:58 pm
good afternoon-- operating windows xp home edition. I have downloaded Makeobject 50 and copied makeobj.exe to c:makeobt but when I try to open file I get "Windows doesnot recoginze this command". Are extra files needed? I also have a drawing saved as.png file and .dat file in the makeobj file folder.
Trying to learn how to make pak objects, and need all the help I can get.
Thank you
Title: Re: opening Makeobj
Post by: MoTw on April 20, 2010, 07:52:27 pm
What did you type into the command line window? E.g. in Linux you have to type ./makeobj, I don't know the command for Windows, but perhaps you forgot to type something like ./
Title: Re: opening Makeobj
Post by: AvG on April 20, 2010, 08:10:46 pm
Hi MoTw,
Using Windows:
This is a way to start:
Make a new folder for your item.
Copy in that folder:
1. The .dat-file of the item
2. The .png-file of the item
3. Makeobj50.exe
4. Make a .bat-file with text "Makeobj50 pak128 ./name_of_item (if you use 128-Pak)
Just run the .bat and do not forget to change the name into vehicle.name_of_item.pak.
Success.
AvG
Title: Re: opening Makeobj
Post by: prissi on April 20, 2010, 09:25:34 pm
Much easier:
Safe the following as "makepak.bat" with the ending bat:

Code: [Select]
C:\Programme\Simutrans\makeobj.exe pak

(If your makeobj is at "C:\Programme\Simutrans\makeobj.exe")

COpy this file to your folder, which has your dat files, and doubleclick.

You can also make a link on makeobj into that folder, and then under properties you add " pak" after the first line which should end with "...\makeobj.exe"
Title: Re: opening Makeobj
Post by: grampybear on April 20, 2010, 10:47:48 pm
success at opening makeobj now it tells me "cannot create destination file
Should the destination file also be makeobj file?
Title: Re: opening Makeobj
Post by: vilvoh on April 21, 2010, 07:40:03 am
Take a look at Creating an addon (IV): Using makeobj (http://forum.simutrans.com/index.php?topic=3252.0) tutorial and if you have windows, I strongly recommend to use PakHelper, the makeobj frontend for windows.
Title: Re: opening Makeobj
Post by: grampybear on April 21, 2010, 12:20:22 pm
Thank you all for the help and advise.  One more question before I start to explore the world of simutrans creations.  Is it allowed to download the dat & png files from a current open source pak like the new electronics factory and use this information as a guide?
Title: Re: opening Makeobj
Post by: vilvoh on April 21, 2010, 12:32:55 pm
Sure. Investigation is allowed if the sources are available, but you can't claim the copyright of that object. Well, actually nobody prevents you from doing that, but it's not a good way to start joining to Simutrans community, you know..  :police:
Title: Re: opening Makeobj
Post by: grampybear on April 21, 2010, 06:49:12 pm
using the dat & png files from the new electronic factory i have been able to create a pak file that works. ;D However when I try and change the goods required in the dat file to something else i run into errors. Is there an official list of goods available with their proper spelling, ie: paper is papier for the dat file.
Title: Re: opening Makeobj
Post by: VS on April 21, 2010, 07:46:58 pm
Errors when using makeobj, or errors when starting game? (Just making sure since what you're saying points to the latter case...)

Goods list... hmmm... pak64 (plain) (http://simutrans.svn.sourceforge.net/viewvc/simutrans/pak64/factory/goods.dat?revision=HEAD&view=markup), pak64 - food chain addon (http://simutrans.svn.sourceforge.net/viewvc/simutrans/pak64/factory_food/goods.dat?revision=HEAD&view=markup), pak128 attached.
Title: Re: opening Makeobj
Post by: grampybear on April 21, 2010, 08:17:22 pm
thank you for the goods list pak128. After some trial and error I am able to use makeobj to create pak file that actually works, error comes when starting game like the example of "paper or papier" dat files seem to only recognize papier not paper. This is a learning curve and I am already way ahead of yesterday when I started. Thanks again.

EDIT: Is it easier to create object (png file ) first or dat file? Also if object is a factory must it have the name of a current factory or can it be a new factory using current goods available? Again thank you for your patients with me
Title: Re: opening Makeobj
Post by: Dwachs on April 26, 2010, 05:14:09 am
Also if object is a factory must it have the name of a current factory or can it be a new factory using current goods available?
The factory must have a new name, since all these objects are distinguished internally by their names.

It would be a good idea to upload your dat/png files that gave you these errors.
Title: Re: opening Makeobj
Post by: grampybear on April 26, 2010, 09:24:17 pm
With the help from everyone here and also on the pak128addon forum I have made a factory addon that works in game(works being key here).Visually its a disaster. I forgot about the special background color E7FFFF so I have this block around the building-white. I moved up to Paint.Net and know how to correct the back ground problem. Question now for the people who paint, how do you get such sharp smooth lines without the colors bleeding? Easy to tell I am new at this. Thanks for any guidance.