News:

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

Brick rail elevated way introduction date

Started by Lord Vetinari, December 28, 2010, 04:54:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lord Vetinari

Hi, happy holidays!

I just started a new map, and that made me remember that the brick rail elevated way becomes available a lot of time after it's bridge counterpart. I don't remember the exact dates, but I do know that the bridge is already available in 1820 (when I started this particular game) and in 1834 I still can't build the el.
Isn't it better if they both appear at the same time? Other than the fact that in RL they are almost the same thing, there are a lot of things that in the game can be done only with an elevated way, such as diagonal bridges (doesn't work on "sea" water, but it's still usefull for rivers), bridges that don't require slopes, curved overpasses, etc.

jamespetts

Ahh, this has been corrected for Pak128.Britain-Ex - one could do likewise for Standard with the following code .dat file:


Obj=way
Name=BrickViaductElevatedEarly
waytype=track
system_type=1
intro_year=1815
intro_month=9
retire_year=1926
retire_month=10
topspeed=115
max_weight=80
max_height=5
cost=295000
maintenance=923
icon=> ./images/brick-viaduct-elevated.3.4
cursor=./images/brick-viaduct-elevated.3.5
Image[-][0]=./images/brick-viaduct-elevated.1.2,0,32
Image[N][0]=./images/brick-viaduct-elevated.1.5,0,32
Image[S][0]=./images/brick-viaduct-elevated.2.1,0,32
Image[E][0]=./images/brick-viaduct-elevated.2.2,0,32
Image[W][0]=./images/brick-viaduct-elevated.2.0,0,32
Image[NS][0]=./images/brick-viaduct-elevated.1.0,0,32
Image[EW][0]=./images/brick-viaduct-elevated.1.1,0,32
Image[NSE][0]=./images/brick-viaduct-elevated.0.2,0,32
Image[NSW][0]=./images/brick-viaduct-elevated.0.4,0,32
Image[NEW][0]=./images/brick-viaduct-elevated.0.1,0,32
Image[SEW][0]=./images/brick-viaduct-elevated.0.3,0,32
Image[NSEW][0]=./images/brick-viaduct-elevated.1.2,0,32
Image[NE][0]=./images/brick-viaduct-elevated.3.0,0,32
Image[SE][0]=./images/brick-viaduct-elevated.2.3,0,32
Image[NW][0]=./images/brick-viaduct-elevated.2.4,0,32
Image[SW][0]=./images/brick-viaduct-elevated.2.5,0,32
ImageUp[3][0]=./images/brick-viaduct-elevated.1.3,0,32
ImageUp[6][0]=./images/brick-viaduct-elevated.1.4,0,32
ImageUp[9][0]=./images/brick-viaduct-elevated.0.0,0,32
ImageUp[12][0]=./images/brick-viaduct-elevated.0.5,0,30
Image[-][1]=./images/brick-viaduct-elevated-snow.1.2,0,32
Image[N][1]=./images/brick-viaduct-elevated-snow.1.5,0,32
Image[S][1]=./images/brick-viaduct-elevated-snow.2.1,0,32
Image[E][1]=./images/brick-viaduct-elevated-snow.2.2,0,32
Image[W][1]=./images/brick-viaduct-elevated-snow.2.0,0,32
Image[NS][1]=./images/brick-viaduct-elevated-snow.1.0,0,32
Image[EW][1]=./images/brick-viaduct-elevated-snow.1.1,0,32
Image[NSE][1]=./images/brick-viaduct-elevated-snow.0.2,0,32
Image[NSW][1]=./images/brick-viaduct-elevated-snow.0.4,0,32
Image[NEW][1]=./images/brick-viaduct-elevated-snow.0.1,0,32
Image[SEW][1]=./images/brick-viaduct-elevated-snow.0.3,0,32
Image[NSEW][1]=./images/brick-viaduct-elevated-snow.1.2,0,32
Image[NE][1]=./images/brick-viaduct-elevated-snow.3.0,0,32
Image[SE][1]=./images/brick-viaduct-elevated-snow.2.3,0,32
Image[NW][1]=./images/brick-viaduct-elevated-snow.2.4,0,32
Image[SW][1]=./images/brick-viaduct-elevated-snow.2.5,0,32
ImageUp[3][1]=./images/brick-viaduct-elevated-snow.1.3,0,32
ImageUp[6][1]=./images/brick-viaduct-elevated-snow.1.4,0,32
ImageUp[9][1]=./images/brick-viaduct-elevated-snow.0.0,0,32
ImageUp[12][1]=./images/brick-viaduct-elevated-snow.0.5,0,30
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Lord Vetinari

Thanks, I'll make my version of the viaduct.
By the way, I see retire_year=1926. Is there a newer elevated way in standard?

jamespetts

The normal elevated way has an introduction date of 1835 and a retire date of 1954; in Experimental, there are new concrete elevated ways (albeit without their own graphics yet) which have no retirement date.

Incidentally, didn't you do a graphic for a brick bridge for Pak128.Britain some time ago? Whatever happened to that? It would be most useful to differentiate between the types.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Lord Vetinari

You're right, I did. I think I still have the png and dat archived somewhere.

It wasn't enough in style and it was pixel art, so, since Photoshop filters weren't enough, I basically had to remake it from scratch if I wanted to fix it. I used it as a placeholder for my games untill pak Britain had it's first "official" bridge, then I deleted the .pak file.

jamespetts

Would you mind uploading the .png file? I'd like to have a go at seeing if I can make it fit the style using the GIMP.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Lord Vetinari

Sure, no problem. I upload it via Imageshack because it seems that the file excedes the attachment size limit:

I hope that's the right file, I remember I made a lot of versions to fix some small issues as I found them. If you find that something is not right, I'll search for the original photoshop file (but I'm not sure that I kept it).
There is no snow version.

This is the dat:

Obj=bridge
name=BrickRail
#copyright=
waytype=track
cost=50000
maintenance=1000
topspeed=110
max_lenght=10
max_height=1
intro_year=1830
intro_month=9
cursor=brick_rail_bridge.2.0
icon=> brick_rail_bridge.2.1
BackImage[NS]=brick_rail_bridge.2.2
FrontImage[NS]=brick_rail_bridge.3.2
BackImage[EW]=brick_rail_bridge.2.3
FrontImage[EW]=brick_rail_bridge.3.3
BackStart[N]=brick_rail_bridge.1.2
FrontStart[N]=brick_rail_bridge.0.2
BackStart[S]=brick_rail_bridge.1.0
FrontStart[S]=brick_rail_bridge.0.0
BackStart[E]=brick_rail_bridge.1.1
FrontStart[E]=brick_rail_bridge.0.1
BackStart[W]=brick_rail_bridge.1.3
FrontStart[W]=brick_rail_bridge.0.3
BackRamp[N]=brick_rail_bridge.5.0
FrontRamp[N]=brick_rail_bridge.4.0
BackRamp[S]=brick_rail_bridge.5.2
FrontRamp[S]=brick_rail_bridge.4.2
BackRamp[E]=brick_rail_bridge.5.3
FrontRamp[E]=brick_rail_bridge.4.3
BackRamp[W]=brick_rail_bridge.5.1
FrontRamp[W]=brick_rail_bridge.4.1


I remember I set the intro year to September 1830 because the bridge was vaguely inspired by one of Stephenson's bridges of the Liverpool-Manchester railway, but you can change it as you please.

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

jamespetts

Hmm, I don't think that these tiles have been cut correctly: here's what it looks like in the game:



Uploaded with ImageShack.us
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

VS

...just offset them lower then? The nearer pillar goes out of normally aligned picture, so if you align according to it, it goes up.

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!

Lord Vetinari

#10
Yeah, I remember that at first I had the same problem, but not how I fixed it. It means that the file is old, then. I can see another couple of small issues too (the lower front start overlaps the nex image by two pixels and the end on the opposite is a couple of pixel too short, so ther will be a gap).

Maybe, since there is nothing that actually overlaps the tracks, we may paste everything together so that we don't need front/back images anymore...

Tonight I'm leaving for New Year's eve, but I'll be back in a couple of days and I should be on holiday untill the 8th of January, so, if you don't find a solution, I can try to work on it next week.

jamespetts

I have no idea about cutting tiles for bridges, so this may have to await your return. Bon voyage!
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

ӔO

For bridges with parts underneath the deck, try using offset ,0,32
The game automatically assumes that all bridges will only have the structure above deck.

this should work, they are the same offsets used for the brick viaduct.
Obj=bridge
name=BrickRail
#copyright=
waytype=track
cost=50000
maintenance=1000
topspeed=110
max_lenght=10
max_height=1
intro_year=1830
intro_month=9
cursor=brick_rail_bridge.2.0
icon=> brick_rail_bridge.2.1
BackImage[NS]=brick_rail_bridge.2.2,0,32
FrontImage[NS]=brick_rail_bridge.3.2,0,32
BackImage[EW]=brick_rail_bridge.2.3,0,32
FrontImage[EW]=brick_rail_bridge.3.3,0,32
BackStart[N]=brick_rail_bridge.1.2,0,32
FrontStart[N]=brick_rail_bridge.0.2,0,32
BackStart[S]=brick_rail_bridge.1.0,0,32
FrontStart[S]=brick_rail_bridge.0.0,0,32
BackStart[E]=brick_rail_bridge.1.1,0,32
FrontStart[E]=brick_rail_bridge.0.1,0,32
BackStart[W]=brick_rail_bridge.1.3,0,32
FrontStart[W]=brick_rail_bridge.0.3,0,32
BackRamp[N]=brick_rail_bridge.5.0
FrontRamp[N]=brick_rail_bridge.4.0
BackRamp[S]=brick_rail_bridge.5.2
FrontRamp[S]=brick_rail_bridge.4.2
BackRamp[E]=brick_rail_bridge.5.3
FrontRamp[E]=brick_rail_bridge.4.3
BackRamp[W]=brick_rail_bridge.5.1
FrontRamp[W]=brick_rail_bridge.4.1


Pillars were missing, but I guess they're not necessary for a max_height=1 bridge.
If pillars are to be used, then these lines should be added.
pillar_asymmetric=1
backPillar[S]=brick_rail_bridge.3.0,0,32
backPillar[W]=brick_rail_bridge.3.1,0,32
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

Lord Vetinari

#13
AEO and VS are right. It's the offset, I forgot! I have enough time to fix it.

This should work, I also fixed those pixel issues.



And this is the right dat:

Obj=bridge
name=BrickRail
#copyright=
waytype=track
cost=50000
maintenance=1000
topspeed=110
max_lenght=10
intro_year=1830
intro_month=9
cursor=brick_rail_bridge.2.0
icon=> brick_rail_bridge.2.1
BackImage[NS]=brick_rail_bridge.2.2
FrontImage[NS]=brick_rail_bridge.3.2,0,32
BackImage[EW]=brick_rail_bridge.2.3
FrontImage[EW]=brick_rail_bridge.3.3,0,32
BackStart[N]=brick_rail_bridge.1.2,0,32
FrontStart[N]=brick_rail_bridge.0.2
BackStart[S]=brick_rail_bridge.1.0
FrontStart[S]=brick_rail_bridge.0.0,0,32
BackStart[E]=brick_rail_bridge.1.1
FrontStart[E]=brick_rail_bridge.0.1,0,32
BackStart[W]=brick_rail_bridge.1.3,0,32
FrontStart[W]=brick_rail_bridge.0.3
BackRamp[N]=brick_rail_bridge.5.0
FrontRamp[N]=brick_rail_bridge.4.0
BackRamp[S]=brick_rail_bridge.5.2
FrontRamp[S]=brick_rail_bridge.4.2
BackRamp[E]=brick_rail_bridge.5.3
FrontRamp[E]=brick_rail_bridge.4.3
BackRamp[W]=brick_rail_bridge.5.1
FrontRamp[W]=brick_rail_bridge.4.1
backPillar[S]=brick_rail_bridge.3.0
backPillar[W]=brick_rail_bridge.3.1


I put max_height=1 because There were some alignement problems with the pillars that I were too lazy to fix (:P), but now that I look at the image in Photoshop everything seems right, so I added them too.

All back images and front_start 0.2 and 0.3 should be at the right place, so no offset needed (if I remember it right).
I'll test it myself, but I don't have makeobj anymore, and I can't find a place on the forum to download it.

If there's something else, I'll look at it Sunday or Monday. Happy new year everybody!

jamespetts

Ahh, that's lovely! I attach a modified version with the saturation and lightness turned down and a hint of Gaussian blur applied to make it fit better with other Pak128.Britain items. It'll be used as the graphic for the existing early brick rail bridge in Pak128.Britain-Ex, with the following .dat file:


Obj=bridge
name=BrickViaductEarly
waytype=track
intro_year=1815
intro_month=9
retire_year=1926
retire_month=10
topspeed=115
max_weight=80
max_height=5
cost=360000
maintenance=1485
cursor=images/brick_rail_bridge.2.0
icon=> images/brick_rail_bridge.2.1
BackImage[NS]=images/brick_rail_bridge.2.2
FrontImage[NS]=images/brick_rail_bridge.3.2,0,32
BackImage[EW]=images/brick_rail_bridge.2.3
FrontImage[EW]=images/brick_rail_bridge.3.3,0,32
BackStart[N]=images/brick_rail_bridge.1.2,0,32
FrontStart[N]=images/brick_rail_bridge.0.2
BackStart[S]=images/brick_rail_bridge.1.0
FrontStart[S]=images/brick_rail_bridge.0.0,0,32
BackStart[E]=images/brick_rail_bridge.1.1
FrontStart[E]=images/brick_rail_bridge.0.1,0,32
BackStart[W]=images/brick_rail_bridge.1.3,0,32
FrontStart[W]=images/brick_rail_bridge.0.3
BackRamp[N]=images/brick_rail_bridge.5.0
FrontRamp[N]=images/brick_rail_bridge.4.0
BackRamp[S]=images/brick_rail_bridge.5.2
FrontRamp[S]=images/brick_rail_bridge.4.2
BackRamp[E]=images/brick_rail_bridge.5.3
FrontRamp[E]=images/brick_rail_bridge.4.3
BackRamp[W]=images/brick_rail_bridge.5.1
FrontRamp[W]=images/brick_rail_bridge.4.1
backPillar[S]=images/brick_rail_bridge.3.0
backPillar[W]=images/brick_rail_bridge.3.1
-----
Obj=bridge
name=BrickViaduct
waytype=track
intro_year=1835
intro_month=2
retire_year=1948
retire_month=7
topspeed=200
max_weight=136
cost=435000
maintenance=1520
pillar_distance=1
pillar_asymmetric=1
cursor=images/brick-viaduct-175.2.1
icon=> images/brick-viaduct-175.2.0
BackImage[NS]=images/brick-viaduct-175.0.5,0,32
FrontImage[NS]=images/brick-viaduct-175.1.5,0,32
BackImage[EW]=images/brick-viaduct-175.0.4,0,32
FrontImage[EW]=images/brick-viaduct-175.1.5,0,32
BackStart[N]=images/brick-viaduct-175.0.0,0,32
FrontStart[N]=images/brick-viaduct-175.1.0,0,32
BackStart[S]=images/brick-viaduct-175.0.2,0,32
FrontStart[S]=images/brick-viaduct-175.1.2,0,32
BackStart[E]=images/brick-viaduct-175.0.1,0,32
FrontStart[E]=images/brick-viaduct-175.1.1,0,32
BackStart[W]=images/brick-viaduct-175.0.3,0,32
FrontStart[W]=images/brick-viaduct-175.1.3,0,32
BackRamp[N]=images/brick-viaduct-175.0.6
BackRamp[S]=images/brick-viaduct-175.0.8
BackRamp[E]=images/brick-viaduct-175.0.9
BackRamp[W]=images/brick-viaduct-175.0.7
FrontRamp[N]=images/brick-viaduct-175.1.6
FrontRamp[S]=images/brick-viaduct-175.1.8
FrontRamp[E]=images/brick-viaduct-175.1.9
FrontRamp[W]=images/brick-viaduct-175.1.7
backPillar[S]=images/brick-viaduct-175.2.3
backPillar[W]=images/brick-viaduct-175.2.2
BackImage[NS][1]=images/brick-viaduct-snow.0.5,0,32
FrontImage[NS][1]=images/brick-viaduct-snow.1.5,0,32
BackImage[EW][1]=images/brick-viaduct-snow.0.4,0,32
FrontImage[EW][1]=images/brick-viaduct-snow.1.5,0,32
BackStart[N][1]=images/brick-viaduct-snow.0.0,0,32
FrontStart[N][1]=images/brick-viaduct-snow.1.0,0,32
BackStart[S][1]=images/brick-viaduct-snow.0.2,0,32
FrontStart[S][1]=images/brick-viaduct-snow.1.2,0,32
BackStart[E][1]=images/brick-viaduct-snow.0.1,0,32
FrontStart[E][1]=images/brick-viaduct-snow.1.1,0,32
BackStart[W][1]=images/brick-viaduct-snow.0.3,0,32
FrontStart[W][1]=images/brick-viaduct-snow.1.3,0,32
BackRamp[N][1]=images/brick-viaduct-snow.0.6
BackRamp[S][1]=images/brick-viaduct-snow.0.8
BackRamp[E][1]=images/brick-viaduct-snow.0.9
BackRamp[W][1]=images/brick-viaduct-snow.0.7
FrontRamp[N][1]=images/brick-viaduct-snow.1.6
FrontRamp[S][1]=images/brick-viaduct-snow.1.8
FrontRamp[E][1]=images/brick-viaduct-snow.1.9
FrontRamp[W][1]=images/brick-viaduct-snow.1.7
backPillar[S][1]=images/brick-viaduct-snow.2.3
backPillar[W][1]=images/brick-viaduct-snow.2.2




Thank you for your contribution!
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

jamespetts

Ahh, we seem to have some more problems with this, actually, that I hadn't spotted initially: see below for examples of (1) misaligned lead-ins; and (2) missing pillars:



Uploaded with ImageShack.us
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

wlindley

Well, that is characteristic of what the earliest railway bridges were predisposed to do.

ӔO

this should get it working.
assuming you didn't move around the parts.

Obj=bridge
name=BrickViaductEarly
waytype=track
intro_year=1815
intro_month=9
retire_year=1926
retire_month=10
topspeed=115
max_weight=80
max_height=5
cost=360000
maintenance=1485
pillar_distance=1
pillar_asymmetric=1

cursor=images/brick_rail_bridge.2.0
icon=> images/brick_rail_bridge.2.1
BackImage[NS]=images/brick_rail_bridge.2.2
FrontImage[NS]=images/brick_rail_bridge.3.2,0,32
BackImage[EW]=images/brick_rail_bridge.2.3
FrontImage[EW]=images/brick_rail_bridge.3.3,0,32
BackStart[N]=images/brick_rail_bridge.1.2
FrontStart[N]=images/brick_rail_bridge.0.2
BackStart[S]=images/brick_rail_bridge.1.0
FrontStart[S]=images/brick_rail_bridge.0.0,-4,32
BackStart[E]=images/brick_rail_bridge.1.1
FrontStart[E]=images/brick_rail_bridge.0.1,4,32
BackStart[W]=images/brick_rail_bridge.1.3
FrontStart[W]=images/brick_rail_bridge.0.3
BackRamp[N]=images/brick_rail_bridge.5.0
FrontRamp[N]=images/brick_rail_bridge.4.0
BackRamp[S]=images/brick_rail_bridge.5.2
FrontRamp[S]=images/brick_rail_bridge.4.2
BackRamp[E]=images/brick_rail_bridge.5.3
FrontRamp[E]=images/brick_rail_bridge.4.3
BackRamp[W]=images/brick_rail_bridge.5.1
FrontRamp[W]=images/brick_rail_bridge.4.1
backPillar[S]=images/brick_rail_bridge.3.0,0,-32
backPillar[W]=images/brick_rail_bridge.3.1,0,-32
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

jamespetts

Thank you - this has solved the pillar problem but not the first tile misalignment problem. Any ideas, anyone, for a solution for that? This is a beautiful bridge and it'd be good to be able to use it.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

ӔO

the numbers after the tile number are in X,Y offset.
Counter intuitively and not following foundations of math, -1 will move the image to the left or up and +1 will move it to the right or down.

I think image 0.0 needs another -4 on Y and image 0.2 needs +4 on Y.

How does this one work?

Obj=bridge
name=BrickViaductEarly
waytype=track
intro_year=1815
intro_month=9
retire_year=1926
retire_month=10
topspeed=115
max_weight=80
max_height=5
cost=360000
maintenance=1485
pillar_distance=1
pillar_asymmetric=1

cursor=images/brick_rail_bridge.2.0
icon=> images/brick_rail_bridge.2.1
BackImage[NS]=images/brick_rail_bridge.2.2
FrontImage[NS]=images/brick_rail_bridge.3.2,0,32
BackImage[EW]=images/brick_rail_bridge.2.3
FrontImage[EW]=images/brick_rail_bridge.3.3,0,32
BackStart[N]=images/brick_rail_bridge.1.2
FrontStart[N]=images/brick_rail_bridge.0.2,0.4
BackStart[S]=images/brick_rail_bridge.1.0
FrontStart[S]=images/brick_rail_bridge.0.0,-4,28
BackStart[E]=images/brick_rail_bridge.1.1
FrontStart[E]=images/brick_rail_bridge.0.1,4,32
BackStart[W]=images/brick_rail_bridge.1.3
FrontStart[W]=images/brick_rail_bridge.0.3
BackRamp[N]=images/brick_rail_bridge.5.0
FrontRamp[N]=images/brick_rail_bridge.4.0
BackRamp[S]=images/brick_rail_bridge.5.2
FrontRamp[S]=images/brick_rail_bridge.4.2
BackRamp[E]=images/brick_rail_bridge.5.3
FrontRamp[E]=images/brick_rail_bridge.4.3
BackRamp[W]=images/brick_rail_bridge.5.1
FrontRamp[W]=images/brick_rail_bridge.4.1
backPillar[S]=images/brick_rail_bridge.3.0,0,-32
backPillar[W]=images/brick_rail_bridge.3.1,0,-32
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

VS

Offtopic:

Quote from: AEO on December 31, 2010, 08:09:11 PM
Counter intuitively and not following foundations of math, -1 will move the image to the left or up and +1 will move it to the right or down.

The key is that screen has 0,0 in top left corner. Everything else follows. Graphs on the other hand are drawn with 0,0 at bottom left corner. (It's not math that cares which way are + and -, it's the man :P )

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!

ӔO

even then, f(x)=x to g(x)=(x-1)-1 in math transforms graphs to the right and down by 1 each.
which is exactly the opposite of what happens in simutrans.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

jamespetts

Hmm, problem's still there, I'm afraid, albeit now only with the other corner of the bridge:



Uploaded with ImageShack.us
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

ӔO

hmm, the latest dat I posted up works fine for my game.

if image 0.0 and 0.1 are at the same height, and use the same Y offset, they should give the same results.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Václav

Seeing this topic and problems with making of that bridge it reminds my beginning with making bridges - my problem was in wrong elevation of way - but here all seems be okay.

... and reading dat file code, I would like to ask you for explaining of offsets - if it is not described anywhere.

I beg your pardon for disturbing from hard work on your pakset and its objects.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Lord Vetinari

#26
I'm back.

It seems that I added some problems. I should never do things in haste, the result is that I forget something. I'm sorry.
It seems that while I said that back images don't need offsets, I actually forgot to remove them from the code of the two start tiles. Well, you already fixed that.

I don't know why the last part behaves like that.
I can however spot another couple of problems: First, if you look closely at the last image posted by James, you can see some sharp lines on the white columns and a double sized column at the end. I bet that those are the pillars that somehow get in the way. I'd try removing their offsets.
Maybe the pillars have a role in the odd behaviour of that end part...

Second, it's a small one, the tile front_start [n] (that is, image 0.2) is two pixel too high. 0.3 may require the same adjustment, but I'd test it first.

Third, that tile that is behaving oddly is four pixels too much to the left. You can see that it's column is right above the column of the front straight part, if we just move down the tile, the two columns will overlap. I think that we should change those 4 points of horizontal offset. I don't know how much, however.


ӔO

Quote from: VaclavMacurek on January 01, 2011, 03:16:46 PM
Seeing this topic and problems with making of that bridge it reminds my beginning with making bridges - my problem was in wrong elevation of way - but here all seems be okay.

... and reading dat file code, I would like to ask you for explaining of offsets - if it is not described anywhere.

I beg your pardon for disturbing from hard work on your pakset and its objects.

image # row, # column, X offset, Y offset.
if X is positive, the image moves right.
if X is negative, the image moves left.
if Y is positive, the image moves down.
if Y is negative, the image moves up.

One tile height, Y, is 32.
I'm not sure about tile width, but I think 32 will move the image half a tile horizontally, or on X.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

Václav

Thanks. Now I can repaint this viaduct

to shape with pillars on edges of tile - and so it will be better

but it has to wait until finishing currently prepared building

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

The Hood

James's modified graphics fit very nicely into the pak style so I'd happily include them once the alignment problems are ironed out.  To do this can you not just take the png and dat from the bridge already in the pak and mimic the alignment and offsets with yours?

Václav

#30
The Hood, I have to say that I don't understand these words

Quote
To do this can you not just take the png and dat from the bridge already in the pak and mimic the alignment and offsets with yours?

much. And I am worried about you did not understand me too.

I did not know about offsets - before reading this topic.

When I started making objects for Simutrans (few years ago) I wanted to paint viaduct like this

but because I did not know about offsets, I had to create that viaduct from my screenshot published above as it is - with pillars in the middle of tile.

And you see, it is not good - for crossing with else ways of all types. And with using of offsets, I can remake it.

Is it clear, now?

I think highly about Pak128.Britain - but it is too dark for me. So I cannot use its objects for that reason - and I would like to use many ones of Pak128.Britain because they are so good.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

The Hood

@Vaclav,

I was referring more to Lord Vetinari's viaduct, but the same would apply to you.  Take the png and dat for the kierongreen's pak128.Britain viaduct from the pak128.Britain repository on sourceforge, and use that as a template: i.e. make the arches and pillars lign up in the same places as those on the existing one, and modify the dat file in the same way.  This would make your viaduct work as per the pak128.Britain one.

If you find pak128.Britain objects too dark and want to use some of them, you could always take the source image and lighten it up in the gimp and re-make it - that's the good thing about open source releases!

Lord Vetinari

I tried, but my bridge is not the same size of the existing rail bridge, so there are still adjustment to do.
I'd better redownload Makeobj and do some tests via trial and error myself. Where I can find it?

ӔO

going back on the main topic, there are no trains that really need elevated or brick viaducts until at least 1830.

1825 is when you first get the SDR locomotion, which does 30km/h
1828 is when you first get passenger carriages for rail.

It would seem odd that there is such a large and costly infrastructure already in place, before rail really kicked off.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

jamespetts

I suppose that the answer to that point is that it was perfectly possible to build such things before 1830, but there was no particular economic incentive to do so. By making them available before 1830, that realistic situation is accurately simulated.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

Actually the romans did more than 2000 years ago ...

The Hood

Fixed:



If anyone does some snow images, I'll add it to the pak.

Here are the files:



jamespetts

There still appears to be a problem with this bridge on certain rotations: graphic attached.



Uploaded with ImageShack.us
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood

#38
Then we must be using different makeobj versions then - it definitely now works for me, as you can see from the earlier screenshot which shows the same rotation.  

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood

Are you sure you've copied the new dat file over?  It may have a different name than the old one - I started it from scratch...

jamespetts

I copied the entries relating to the graphics into my existing .dat file, so that it looks like this:


Obj=bridge
name=BrickViaductEarly
waytype=track
intro_year=1815
intro_month=9
retire_year=1926
retire_month=10
topspeed=115
max_weight=80
max_height=5
cost=360000
maintenance=1485
pillar_distance=1
pillar_asymmetric=1

cursor=images/brick_rail_bridge.2.0
icon=> images/brick_rail_bridge.2.1
BackImage[NS]=images/brick_rail_bridge.2.2
FrontImage[NS]=images/brick_rail_bridge.3.2,0,32
BackImage[EW]=images/brick_rail_bridge.2.3
FrontImage[EW]=images/brick_rail_bridge.3.3,0,32
BackStart[N]=images/brick_rail_bridge.1.2
FrontStart[N]=images/brick_rail_bridge.0.2
BackStart[S]=images/brick_rail_bridge.1.0
FrontStart[S]=images/brick_rail_bridge.0.0,-4,32
BackStart[E]=images/brick_rail_bridge.1.1
FrontStart[E]=images/brick_rail_bridge.0.1,4,32
BackStart[W]=images/brick_rail_bridge.1.3
FrontStart[W]=images/brick_rail_bridge.0.3
BackRamp[N]=images/brick_rail_bridge.5.0
FrontRamp[N]=images/brick_rail_bridge.4.0
BackRamp[S]=images/brick_rail_bridge.5.2
FrontRamp[S]=images/brick_rail_bridge.4.2
BackRamp[E]=images/brick_rail_bridge.5.3
FrontRamp[E]=images/brick_rail_bridge.4.3
BackRamp[W]=images/brick_rail_bridge.5.1
FrontRamp[W]=images/brick_rail_bridge.4.1
backPillar[S]=images/brick_rail_bridge.3.0,0,-32
backPillar[W]=images/brick_rail_bridge.3.1,0,-32

-----

Obj=bridge
name=BrickViaduct
waytype=track
intro_year=1835
intro_month=2
retire_year=1948
retire_month=7
topspeed=200
max_weight=136
cost=435000
maintenance=1520
pillar_distance=1
pillar_asymmetric=1
cursor=images/brick-viaduct-175.2.1
icon=> images/brick-viaduct-175.2.0
BackImage[NS]=images/brick-viaduct-175.0.5,0,32
FrontImage[NS]=images/brick-viaduct-175.1.5,0,32
BackImage[EW]=images/brick-viaduct-175.0.4,0,32
FrontImage[EW]=images/brick-viaduct-175.1.5,0,32
BackStart[N]=images/brick-viaduct-175.0.0,0,32
FrontStart[N]=images/brick-viaduct-175.1.0,0,32
BackStart[S]=images/brick-viaduct-175.0.2,0,32
FrontStart[S]=images/brick-viaduct-175.1.2,0,32
BackStart[E]=images/brick-viaduct-175.0.1,0,32
FrontStart[E]=images/brick-viaduct-175.1.1,0,32
BackStart[W]=images/brick-viaduct-175.0.3,0,32
FrontStart[W]=images/brick-viaduct-175.1.3,0,32
BackRamp[N]=images/brick-viaduct-175.0.6
BackRamp[S]=images/brick-viaduct-175.0.8
BackRamp[E]=images/brick-viaduct-175.0.9
BackRamp[W]=images/brick-viaduct-175.0.7
FrontRamp[N]=images/brick-viaduct-175.1.6
FrontRamp[S]=images/brick-viaduct-175.1.8
FrontRamp[E]=images/brick-viaduct-175.1.9
FrontRamp[W]=images/brick-viaduct-175.1.7
backPillar[S]=images/brick-viaduct-175.2.3
backPillar[W]=images/brick-viaduct-175.2.2
BackImage[NS][1]=images/brick-viaduct-snow.0.5,0,32
FrontImage[NS][1]=images/brick-viaduct-snow.1.5,0,32
BackImage[EW][1]=images/brick-viaduct-snow.0.4,0,32
FrontImage[EW][1]=images/brick-viaduct-snow.1.5,0,32
BackStart[N][1]=images/brick-viaduct-snow.0.0,0,32
FrontStart[N][1]=images/brick-viaduct-snow.1.0,0,32
BackStart[S][1]=images/brick-viaduct-snow.0.2,0,32
FrontStart[S][1]=images/brick-viaduct-snow.1.2,0,32
BackStart[E][1]=images/brick-viaduct-snow.0.1,0,32
FrontStart[E][1]=images/brick-viaduct-snow.1.1,0,32
BackStart[W][1]=images/brick-viaduct-snow.0.3,0,32
FrontStart[W][1]=images/brick-viaduct-snow.1.3,0,32
BackRamp[N][1]=images/brick-viaduct-snow.0.6
BackRamp[S][1]=images/brick-viaduct-snow.0.8
BackRamp[E][1]=images/brick-viaduct-snow.0.9
BackRamp[W][1]=images/brick-viaduct-snow.0.7
FrontRamp[N][1]=images/brick-viaduct-snow.1.6
FrontRamp[S][1]=images/brick-viaduct-snow.1.8
FrontRamp[E][1]=images/brick-viaduct-snow.1.9
FrontRamp[W][1]=images/brick-viaduct-snow.1.7
backPillar[S][1]=images/brick-viaduct-snow.2.3
backPillar[W][1]=images/brick-viaduct-snow.2.2
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood

Definitely odd.  What version of makeobj are you using? 

jamespetts

The latest Experimental version (as available here).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood

Hmm, it still works fine for me, even using the latest exp-makeobj.

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood


Václav

I have following (but may be absolutely stupid) idea how to solve it: paint entrance tiles as one picture. Because as I see (but it may be only illusion), fence does not cover trains - and so if entrance tiles would be as one picture, than nothing bad should happen. When offsets will work right then, then I deserve any monument  ;D - else I was not here.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Lord Vetinari

#49
It's been a while, I'm sorry. I'm back and I made snow images for the bridge:



Uploaded with ImageShack.us
And this is the dat:

Obj=bridge
name=BrickViaductEarly
waytype=track
intro_year=1750
topspeed=160
cost=190000
maintenance=1800
pillar_distance=1
pillar_asymmetric=1
cursor=brick_viaduct_early.2.0
icon=> brick_viaduct_early.2.1

#BackImage[NS][0]=brick_viaduct_early.2.2
#FrontImage[NS][0]=brick_viaduct_early.3.2,0,32
#BackImage[EW][0]=brick_viaduct_early.2.3
#FrontImage[EW][0]=brick_viaduct_early.3.3,0,32
#BackStart[N][0]=brick_viaduct_early.1.2
#FrontStart[N][0]=brick_viaduct_early.0.2
#BackStart[S][0]=brick_viaduct_early.1.0
#FrontStart[S][0]=brick_viaduct_early.0.0,-4,32
#BackStart[E][0]=brick_viaduct_early.1.1
#FrontStart[E][0]=brick_viaduct_early.0.1,4,32
#BackStart[W][0]=brick_viaduct_early.1.3
#FrontStart[W][0]=brick_viaduct_early.0.3
#BackRamp[N][0]=brick_viaduct_early.5.0
#FrontRamp[N][0]=brick_viaduct_early.4.0
#BackRamp[S][0]=brick_viaduct_early.5.2
#FrontRamp[S][0]=brick_viaduct_early.4.2
#BackRamp[E][0]=brick_viaduct_early.5.3
#FrontRamp[E][0]=brick_viaduct_early.4.3
#BackRamp[W][0]=brick_viaduct_early.5.1
#FrontRamp[W][0]=brick_viaduct_early.4.1
#backPillar[S][0]=brick_viaduct_early.3.0,0,-32
#backPillar[W][0]=brick_viaduct_early.3.1,0,-32

#BackImage[NS][1]=brick_viaduct_early.2.6
#FrontImage[NS][1]=brick_viaduct_early.3.6,0,32
#BackImage[EW][1]=brick_viaduct_early.2.7
#FrontImage[EW][1]=brick_viaduct_early.3.7,0,32
#BackStart[N][1]=brick_viaduct_early.1.6
#FrontStart[N][1]=brick_viaduct_early.0.6
#BackStart[S][1]=brick_viaduct_early.1.4
#FrontStart[S][1]=brick_viaduct_early.0.0,-4,32
#BackStart[E][1]=brick_viaduct_early.1.5
#FrontStart[E][1]=brick_viaduct_early.0.1,4,32
#BackStart[W][1]=brick_viaduct_early.1.7
#FrontStart[W][1]=brick_viaduct_early.0.7
#BackRamp[N][1]=brick_viaduct_early.5.4
#FrontRamp[N][1]=brick_viaduct_early.4.4
#BackRamp[S][1]=brick_viaduct_early.5.6
#FrontRamp[S][1]=brick_viaduct_early.4.6
#BackRamp[E][1]=brick_viaduct_early.5.7
#FrontRamp[E][1]=brick_viaduct_early.4.7
#BackRamp[W][1]=brick_viaduct_early.5.5
#FrontRamp[W][1]=brick_viaduct_early.4.5
#backPillar[S][1]=brick_viaduct_early.3.4,0,-32
#backPillar[W][1]=brick_viaduct_early.3.5,0,-32


I can't test it because my makeobj doesn't work and I can't understand why (I downloaded Pak Helper and Makeobj 5.1, so it should be ok).
This is the error that it gives me, if someone can help I'll appriciate it:

Makeobj version 51 for simutrans 110.0 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 ./brick-viaduct-early.dat
  writing file ./bridge.BrickViaductEarly.pak
     packing bridge.BrickViaductEarly
WARNING: not frontimage[ns] specified (but might be still working)
WARNING: not frontimage[ew] specified (but might be still working)
WARNING: not frontstart[n] specified (but might be still working)
WARNING: not frontstart[s] specified (but might be still working)
WARNING: not frontstart[e] specified (but might be still working)
WARNING: not frontstart[w] specified (but might be still working)
WARNING: not frontramp[n] specified (but might be still working)
WARNING: not frontramp[s] specified (but might be still working)
WARNING: not frontramp[e] specified (but might be still working)
WARNING: not frontramp[w] specified (but might be still working)
Makeobj version 51 for simutrans 110.0 and higher


I'm working on an elevated way version and a couple of other things.

jamespetts

That error message does not necessarily mean that Makeobj has not worked - does it produce a .pak file?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Lord Vetinari

It did, but the pak file doesn't work. I loaded it into Simutrans and I get an invisible icon which let me build an invisible bridge (which is still usable, by the way. It's kinda cool to see a train floating above the ground).

jamespetts

Hm. Unhelpful. Does the makeobj work with other .dat files? If not, perhaps file a bug report?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Lord Vetinari

#53
Nope. I tried it with a couple of files I downloaded from the graphics repository, and I had the same problem. That error that I posted is the log of Pak Helper.
I downloaded Makeobj a couple of time, so, unless I've been unlucky every time, it can't be a corrupted download either.

EDIT: I attached here the pak file.

jamespetts

I assume that this is the Standard version? If so, this looks as though it might be a bug: might I suggest a bug report?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Dwachs

In the dat-file all image definitions are #commented out! This could be the reason that makeobj complains about missing images.
Parsley, sage, rosemary, and maggikraut.

Lord Vetinari

I already correced that after my first test, I don't know why there were # in the dat file I copied. It wasn't that, though.

It turns out that the problem was the [ 0]s and [1]s that I used to differentiate between summer and winter images.  Now it works but it doesn't have snow images. I searched that on the wiki. What's the proper syntax?

Dwachs

The image you linked above has the wrong dimensions: it is 800x600 but it should be something like 1024x768.
Parsley, sage, rosemary, and maggikraut.

Lord Vetinari

I think that it's imageshack which shrinked the image for some reason. The original is the right size.

Anyway, I rewrote the dat from scratch, and now it works correctly. There are a couple of alignment issues that I have to fix, than it'll be ready.

Lord Vetinari

#59
Finished (maybe):



The tracks seem a bit too dark. I used wrought_iron_improved-snow from the file repository. Is it outdated? Which one is the correct image?


PNG:



DAT:


Obj=bridge
name=BrickViaductEarly
waytype=track
intro_year=1750
topspeed=160
cost=190000
maintenance=1800
pillar_distance=1
pillar_asymmetric=1
cursor=brick_viaduct_early.2.0
icon=> brick_viaduct_early.2.1

backimage[ns][0]=brick_viaduct_early.2.2
frontimage[ns][0]=brick_viaduct_early.3.2,0,32
backimage[ew][0]=brick_viaduct_early.2.3
frontimage[ew][0]=brick_viaduct_early.3.3,0,32
backstart[n][0]=brick_viaduct_early.1.2
frontstart[n][0]=brick_viaduct_early.0.2
backstart[s][0]=brick_viaduct_early.1.0
frontstart[s][0]=brick_viaduct_early.0.0,-4,32
backstart[e][0]=brick_viaduct_early.1.1
frontstart[e][0]=brick_viaduct_early.0.1,4,32
backstart[w][0]=brick_viaduct_early.1.3
frontstart[w][0]=brick_viaduct_early.0.3
backramp[n][0]=brick_viaduct_early.5.0
frontramp[n][0]=brick_viaduct_early.4.0
backramp[s][0]=brick_viaduct_early.5.2
frontramp[s][0]=brick_viaduct_early.4.2
backramp[e][0]=brick_viaduct_early.5.3
frontramp[e][0]=brick_viaduct_early.4.3
backramp[w][0]=brick_viaduct_early.5.1
frontramp[w][0]=brick_viaduct_early.4.1
backpillar[s][0]=brick_viaduct_early.3.0
backpillar[w][0]=brick_viaduct_early.3.1

backimage[ns][1]=brick_viaduct_early.2.6
frontimage[ns][1]=brick_viaduct_early.3.6,0,32
backimage[ew][1]=brick_viaduct_early.2.7
frontimage[ew][1]=brick_viaduct_early.3.7,0,32
backstart[n][1]=brick_viaduct_early.1.6
frontstart[n][1]=brick_viaduct_early.0.6
backstart[s][1]=brick_viaduct_early.1.4
frontstart[s][1]=brick_viaduct_early.0.4,-4,32
backstart[e][1]=brick_viaduct_early.1.5
frontstart[e][1]=brick_viaduct_early.0.5,4,32
backstart[w][1]=brick_viaduct_early.1.7
frontstart[w][1]=brick_viaduct_early.0.7
backramp[n][1]=brick_viaduct_early.5.4
frontramp[n][1]=brick_viaduct_early.4.4
backramp[s][1]=brick_viaduct_early.5.6
frontramp[s][1]=brick_viaduct_early.4.6
backramp[e][1]=brick_viaduct_early.5.7
frontramp[e][1]=brick_viaduct_early.4.7
backramp[w][1]=brick_viaduct_early.5.5
frontramp[w][1]=brick_viaduct_early.4.5
backpillar[s][1]=brick_viaduct_early.3.4
backpillar[w][1]=brick_viaduct_early.3.5

The Hood

It has been updated - the new snow graphics for rails are all the same for each waytype (snow is white on all colours of gravel!!!)

Lord Vetinari

Ok, now it's officially done. I updated the tracks.

The last dat I posted is still correct, and these are the graphics:



I hope you'll find it useful. I was tinkering with an elevated way version with arched pillars so that it looks good when it crosses a diagonal way. Do you think it fits or it's better to choose a different bridge style?

Václav

???
I only don't understand purpose of duplicite presence of tiles which are in the second line and also in the third line - or I am blind and don't see some differences between each other tiles that seem be the same.

This constellation would be comprehensible to me if flat bridge entrances and middle parts would be painted as one piece - but when track with background fence is as one part and front fence with other bridge construction is as else part, it seems to be quite incomprehensible.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

The Hood

Somehow I missed this one.  Looks good and I will include it in SVN soon.  If you are still working on this an elevated way would be great too.  Also a new menu button would be good to differentiate from the existing bridge.

jamespetts

There's already a distinct icon for this in the Experimental version of the pakset which you could use.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

The Hood

Great, this is now in SVN, somewhat belatedly...