The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Freewayman on June 15, 2010, 10:12:09 pm

Title: I can't get the .dat file for bus stops
Post by: Freewayman on June 15, 2010, 10:12:09 pm
I made graphics for a bus stop but i can't get the .dat file right.
Can someone please make a bus stop with the graphics i made and send me the completed .pak files to my email warriorofphoenix@gmail.com?

mod note: topic title changed to fit better with the content
~vilvoh
Title: Re: I can't get the .dat file for bus stops
Post by: vilvoh on June 16, 2010, 07:47:21 am
You forgot two extra images, the cursor and the icon. Moreover, you created 4 views of the object, but stops must have just 2 views (North-South and East-West) Take a look at this image (http://graphics.simutrans.com/albums/userpics/10026/bs2.png) to check what are the proper sprites for a bus stop object.
Title: Re: I can't get the .dat file for bus stops
Post by: Freewayman on June 16, 2010, 03:32:19 pm
I still can't get it to work.
My .dat file and the (revised) graphics are attached.
Title: Re: I can't get the .dat file for bus stops
Post by: The Hood on June 16, 2010, 03:45:30 pm
Why not upload your dat file and we can take a look?  Or look on SVN for examples from the pak64 or pak128.Britain sources...
Title: Re: I can't get the .dat file for bus stops
Post by: Freewayman on June 16, 2010, 03:49:10 pm
@The Hook
It's right up there, the post above yours
Title: Re: I can't get the .dat file for bus stops
Post by: vilvoh on June 16, 2010, 03:57:44 pm
You must clean the content of the dat file. Use a simple text editor like NotePad or Vim. This is what I get when I open your current dat file:

Code: [Select]
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fch****t0 Calibri;}}
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs22 Obj=building\par
Name=SubwayEntrance\par
# must be 1*1\par
type=stop\par
waytype=road\par
intro_year=1750\par
noconstruction=1\par
enables_pax=1\par
NoInfo=1\par
Dims=1,1,2\par
level=1\par
BackImage[0][0][0][0][0][0]=bs2.0.0\par
FrontImage[0][0][0][0][0][0]=bs2.0.1\par
BackImage[1][0][0][0][0][0]=bs2.0.2\par
FrontImage[1][0][0][0][0][0]=bs2.0.3\par
icon=> bs2.0.5\par
cursor=bs2.0.4\par
}

and It should look like this one...

Code: [Select]
Obj=building
Name=SubwayEntrance
# must be 1*1
type=stop
waytype=road
intro_year=1750
noconstruction=1
enables_pax=1
NoInfo=1
Dims=1,1,2
level=1
BackImage[0][0][0][0][0][0]=bs2.0.0
FrontImage[0][0][0][0][0][0]=bs2.0.1
BackImage[1][0][0][0][0][0]=bs2.0.2
FrontImage[1][0][0][0][0][0]=bs2.0.3
icon=> bs2.0.5
cursor=bs2.0.4
Title: Re: I can't get the .dat file for bus stops
Post by: Freewayman on June 16, 2010, 04:07:10 pm
Cleaned...
Still not working ???
Title: Re: I can't get the .dat file for bus stops
Post by: grampybear on June 16, 2010, 04:39:25 pm
your image name must be the same in both files. the image name in dat file is "ds" and png file is "bs" then use pak helper to combine them into a pak file. Hope this helps.
Title: Re: I can't get the .dat file for bus stops
Post by: Freewayman on June 17, 2010, 05:47:45 am
None of these solutions are working.
Can someone please just download the resources and pak it for me?
Title: Re: I can't get the .dat file for bus stops
Post by: prissi on June 17, 2010, 07:53:21 am
The image numbers are wrong: Instead
Quote
BackImage[0][0][0][0][0][0]=bs2.0.0
FrontImage[0][0][0][0][0][0]=bs2.0.1
BackImage[1][0][0][0][0][0]=bs2.0.2
FrontImage[1][0][0][0][0][0]=bs2.0.3
icon=> bs2.0.5
cursor=bs2.0.4

they nedd to be
BackImage[0][0][0][0][0][0]=bs2.0.0
FrontImage[0][0][0][0][0][0]=bs2.0.1
BackImage[1][0][0][0][0][0]=bs2.1.0
FrontImage[1][0][0][0][0][0]=bs2.1.2
icon=> bs2.2.0
cursor=bs2.2.1
Title: Re: I can't get the .dat file for bus stops
Post by: The Hood on June 17, 2010, 08:02:02 am
Prissi, don't you mean:

BackImage[0][0][0][0][0][0]=bs2.0.0
FrontImage[0][0][0][0][0][0]=bs2.0.1
BackImage[1][0][0][0][0][0]=bs2.1.0
FrontImage[1][0][0][0][0][0]=bs2.1.1
icon=> bs2.0.2
cursor=bs2.1.2

i.e. [imagename].[vertical_position].[horizontal_position]?

(typos in your numbering I think)
Title: Re: I can't get the .dat file for bus stops
Post by: prissi on June 17, 2010, 09:00:34 am
well, yeah typo. The Hood got it all right for you ...