Author
Topic: addons restric size limit (Read 6321 times)

I'm creating an addon and can't get it to work, so I want to ask which object types have a restrictive size limit.On my searches I found that com, res, ind and station can only be 1 tile, but there's any other that has it's restriction?In preference I want to know if signs have it.

A way-object maybe... but that allows only start-grahic -> middle graphic (repeatedly if wanted) -> end graphic ... and only one tile wide. It would be easier if you gave us a hint of what you're trying to do - that way we could more easily say if it's possible (and how)...

@DirrrtyDirkWell I'm current creating a suspension bridge. I found one here at the forums but I didn't liked the model, so I want to create mine.This version comes with lot of tiles and I don't want to create billions of pieces like that, so I thought about creating a sign so you place it on the bridge and can rotate it. It should be easier, like the start of the bridge can be the same piece for the end but rotated.

@AEOIf I create a pak256 res building it becomes a 2x2 res building in a pak128?

Tilecutter maximum is pak240, makeobject can't create a pak256?It become too difficult creating what I want.I think it's better using DirrrtyDirk suggestion way-object, I was looking pak96.comic and it comes with some stations with this feature. But it allows a height of 2?

Next makeobj (or if you compile it yourself) supports paksize up to 65535 ... so there is probably not the limitation anymore.

How much bigger than a FullHD is this? That's really huge, I think i don't need it. Anyway, I'll use DirrrtyDirk suggestion, I thought here for a while and made some draws and it will be better using a way-object.Can anyone show me an example file for a way-object with this 3 images feature? I tried looking in the wiki but didn't understood how to add the images. It should be like this?:

obj=way-objectName=Suspensioncopyright=An_dzintro_month=5intro_year=1920waytype=roadcost=3000icon=> suspension.4.5cursor=suspension.4.6dims=1,1,8Image[0][0][0][0][0][0]=suspension.0.0 (North view First end)Image[0][0][0][1][0][0]=suspension.0.0 (North view First end second height)Image[1][0][0][0][0][0]=suspension.0.0 (East view First end)Image[1][0][0][1][0][0]=suspension.0.0 (East view First end second height)Image[2][0][0][0][0][0]=suspension.0.0 (South view First end)Image[2][0][0][1][0][0]=suspension.0.0 (South view First end second height)Image[3][0][0][0][0][0]=suspension.0.0 (West view First end)Image[3][0][0][1][0][0]=suspension.0.0 (West view First end second height)

Image[0][2][0][0][0][0]=suspension.0.0 (North view Second end)Image[0][2][0][1][0][0]=suspension.0.0 (North view Second end second height)Image[1][2][0][0][0][0]=suspension.0.0 (East view Second end)Image[1][2][0][1][0][0]=suspension.0.0 (East view Second end second height)Image[2][2][0][0][0][0]=suspension.0.0 (South view Second end)Image[2][2][0][1][0][0]=suspension.0.0 (South view Second end second height)Image[3][2][0][0][0][0]=suspension.0.0 (West view Second end)Image[3][2][0][1][0][0]=suspension.0.0 (West view Second end second height)

Way-objects behave (and are created) like ways, not like buildings (with the exception that ways use only "Image", while way-objects use "FrontImage" and "Backimage" paramters instead), so instead of lines like

Image[0][0][0][0][0][0]=suspension.0.0

you'd have something like

BackImage[N]=suspension.0.0

So I doubt that you will manage a height of 2 with way-objects... at least I cannot think of a way to do it spontaneously.

The japanese community produced a suspension bridge (maybe that's the one you saw) but that is quite tricky to build in game and it uses various tricks (including building stations/stops IIRC) to make things work.

I don't think there is much else you can do for a large suspension bridge with pillars of bigger height than 1... Simutrans doesn't really support things like that (yet).

I just wanted a 2 height to look better, but I think I can modify it to fit 1 tile, or I combine your idea with AEO's idea.I think with a pak240 object I can create what I want. I'll post it on pak128 addons when I finally get it at least working.

I think I can't create it, i will show you the first design I made.It's a very famous bridge here in Brazil, Hercílio Luz is a historical bridge built to connect Florianópolis to the continent.Here are some screens:Pic1Pic2Pic3

Ok, it is (or at least it should be) technically possible to do this in Simutrans.

BUT:

It might require a lot of work, and it would probably be very tricky - both, to create and to build in game.

It also depends on how strictly you want to stick to the original. Some deviations there might make a few things a little easier and more versatile as well... Let's face it: if you want to use something like your graphic (which is nice by the way) 1:1, you'd have to do what the japanese community did: use stations on the basic bridge, one for each tile. And basically this would require the bridge to be built in game with one specific length only (as any single tile shorter or longer would distort the look).However, if you decide to allow some of the cables' angles to be changed... then it might work with stations just for the area of the pillars, making things easier to build and allow for different lengths (within limits) in game as well...

As I said: a lot of work. And it might still come to the point where you find out it really doesn't work after all (or at least not well enough for you to be happy with the result).

Image size is set to 384x384writing invidual files to ./ reading file ./hashi160.dat writing file ./bridge.hashi160.pak packing bridge.hashi160WARNING: 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)

I compiled makobj, and got the following result. Lots of warnings, but a pak file of 74kB was written. Maybe you missed the 'pak384' argument?

These warning messages are exactly the same as I have received when I paked the pak128 version.I don't think I missed "pak384" argument. But, OK, I think I have done something wrong. I will recompile makeobj and retry. Thanks for your help.