News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

help implementing rivers [resolved]

Started by Kristian, October 19, 2009, 07:24:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kristian

Dear all,
Trying to add rivers to Pak Contrast / Simutrans 102.0. I made an image file, and a dat file like this:

Obj=way
Name=river
cost=1000000
maintenance=1
topspeed=15
max_weight=1000
waytype=water
system_type=255
...


and the pak compiled without error.

I then added this to the simuconf.tab:

# rivers:
# The highest number is the smallest. A river with max_speed==0 is not navigavable by ships.
river_type[0] = river
river_number = 16
river_min_length = 20
river_max_length = 200


But when simutrans tries to build a river (I guess), this happens:

Message: karte_t::distribute_groundobjs_cities():   distributing groundobjs
Message: wegbauer_t::route_fuer():   setting way type to 127, besch=river, bruecke_besch=NULL
Warning: wegbauer_t::intern_calc_route():   Too many steps (1>=max 1000000) in route (too long/complex)
Message: wegbauer_t::route_fuer():   setting way type to 127, besch=river, bruecke_besch=NULL
Message: wegbauer_t::route_fuer():   setting way type to 127, besch=river, bruecke_besch=NULL
Message: wegbauer_t::route_fuer():   setting way type to 127, besch=river, bruecke_besch=NULL
Message: wegbauer_t::route_fuer():   setting way type to 127, besch=river, bruecke_besch=NULL
Message: wegbauer_t::baue():   type=127 max_n=46 start=136,54 end=168,40


Message: wegbauer_t::baue():    type=127 max_n=46 start=136,54 end=168,40
Segmentation fault


The same thing seems to happen with the standard way.river.pak. Is there a setting I am missing? Does simutrans require at least two river types?


Edit: Do I need a menu entry?

VS

Try stripping the simuconf entries just to river_type[0] = river and start from there? Pak128 has only this setting and all works.

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!

Kristian


VS

Here's one complete river dat to check against...

Obj=way
Name=river_04
copyright=Fabio Gonella
cost=0
maintenance=0
topspeed=0
max_weight=1
intro_year = 1
waytype=water
system_type=255
icon=> river.0.5
cursor=river.3.4,0,-16
# Summer
Image[-][0]=river.3.4
Image[N][0]=river.4.2
Image[S][0]=river.4.0
Image[E][0]=river.4.1
Image[W][0]=river.4.3
Image[NS][0]=river.1.0
Image[EW][0]=river.1.1
Image[NSE][0]=river.1.3
Image[NSW][0]=river.1.2
Image[NEW][0]=river.1.4
Image[SEW][0]=river.2.4
Image[NSEW][0]=river.3.4
Image[NE][0]=river.2.0
Image[SE][0]=river.2.1
Image[NW][0]=river.2.2
Image[SW][0]=river.2.3
ImageUp[3][0]=river.3.2
ImageUp[6][0]=river.3.3
ImageUp[9][0]=river.3.1
ImageUp[12][0]=river.3.0
# Winter
Image[-][1]=river.3.4
Image[N][1]=river.4.7
Image[S][1]=river.4.5
Image[E][1]=river.4.6
Image[W][1]=river.4.8
Image[NS][1]=river.1.5
Image[EW][1]=river.1.6
Image[NSE][1]=river.1.8
Image[NSW][1]=river.1.7
Image[NEW][1]=river.1.9
Image[SEW][1]=river.2.9
Image[NSEW][1]=river.3.9
Image[NE][1]=river.2.5
Image[SE][1]=river.2.6
Image[NW][1]=river.2.7
Image[SW][1]=river.2.8
ImageUp[3][1]=river.3.7
ImageUp[6][1]=river.3.8
ImageUp[9][1]=river.3.6
ImageUp[12][1]=river.3.5

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!

Kristian

Neither of the standard river paks work. I wonder if it is something else. Does this
besch=river, bruecke_besch=NULL
mean it is looking for a bridge, perhaps?

DirrrtyDirk

Ok, you wrote Simutrans 102.0 - I don't remember, but did that already support rivers? Or were they added later in the nightlies of 102.1...? Have you tried with a later, more actual version yet?
  
***** PAK128 Dev Team - semi-retired*****

Kristian

I may of course have screwed up somewhere, but at least the installed pak64 works with rivers. Let me try to build the whole thing for 102.2.

prissi

THe waybuilder has always the possibililty to try bridges and tunnels, but only the AI uses it. THus the NULL message. And if you just copied the dat from pak64, I am a little clueless, why it does not work.

Kristian

Ok, thanks for your help. I had the same issues with 102.2, but everything works as it should when I also include the Kanal pak. Apparently, rivers cannot exist separately from canals.

prissi


prissi

Channels are no longer required for rivers