News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

I can't get the .dat file for bus stops

Started by Freewayman, June 15, 2010, 10:12:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Freewayman

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

vilvoh

#1
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 to check what are the proper sprites for a bus stop object.

Freewayman

I still can't get it to work.
My .dat file and the (revised) graphics are attached.

The Hood

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

Freewayman

@The Hook
It's right up there, the post above yours

vilvoh

#5
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:

{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fcharset0 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...


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

Freewayman

Cleaned...
Still not working ???

grampybear

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.

Freewayman

None of these solutions are working.
Can someone please just download the resources and pak it for me?

prissi

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

The Hood

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)

prissi

well, yeah typo. The Hood got it all right for you ...