Skip to main content
Topic: can't build new ship stop [solved] (Read 20382 times) previous topic - next topic

can't build new ship stop [solved]

I am trying to get my old pakContrast to work with simutrans 102. I have recompiled the pak with makeobj 49.

When I try to build a harbor, I get an error message

Quote
Can't build a terminal station here! An end piece of flat road/track is needed.

The log shows something like this

Code: [Select]
Message: wkz_halt_aux():        building ShipStop on square 36,45 for waytype 3
Message: gui_textarea_t::recalc_size(): reset size to 171,33
Message: create_win():  ins_win=1
Message: create_win():  new ins_win=2

I wondered if the syntax for harbors had changed, so I consulted the pak64-source. These files
http://simutrans.svn.sourceforge.net/viewvc/simutrans/pak64/player/playerbuildings.dat?view=markup
http://simutrans.svn.sourceforge.net/viewvc/simutrans/pak64/player/big-hafen.dat?revision=146&view=markup
show

Code: [Select]
type=harbour

but when I try that, makeobj says

Code: [Select]
FATAL ERROR: building_writer_t::write_obj()
harbour is obsolete type for ShipStop

and refuses to compile.

Any help is welcome.

Re: can't build new

Reply #1
Uhmm..why don't you try this?
Code: [Select]
type=stop
waytype=water

Re: can't build new

Reply #2
That is what I currently have, and what gives the first error message.

Code: [Select]
Obj=building
Name=ShipStop
# must be 1*2
# 1_1 is the land sqare
Dims=1,2,4
NoInfo=1
Level=1
type=stop
waytype=water
enables_pax=1
BackImage[0][0][0][0][0][0]=dock.1.1
BackImage[0][1][0][0][0][0]=dock.0.1
BackImage[1][0][0][0][0][0]=dock.1.0
BackImage[1][0][1][0][0][0]=dock.0.0
BackImage[2][0][0][0][0][0]=dock.0.3
BackImage[2][1][0][0][0][0]=dock.1.3
BackImage[3][0][0][0][0][0]=dock.0.2
BackImage[3][0][1][0][0][0]=dock.1.2
icon=> dock.0.4
cursor=bdz.0.0

Re: can't build new ship stop

Reply #3
type=habour, it is not harbour.

Quote
harbour is obsolete type for ShipStop

That is catch-all message, 'obsolete type' is meaningless in this case.

Re: can't build new ship stop

Reply #4
So can you find anything wrong in the code directly above your post (which may or may not cause the original problem)?

Re: can't build new ship stop

Reply #5
 ???

Quote
type=stop
waytype=water

This is a canal stop. It must be Dims=1,1,2.

Re: can't build new ship stop

Reply #6
So what do I write if I want it to be a "ship stop" (i.e. on the shoreline)?

Re: can't build new ship stop

Reply #7
type=habour

 

Re: can't build new ship stop [solved]

Reply #8
 :idea:

Works like a charm. Many thanks!