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.

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