News:

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

New supply chain

Started by Aquel, January 08, 2011, 04:44:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Aquel

Hello

I'm currently making a new supply chain for simutrans.
It's a perfume chain to give simutrans a french touch! ;D
I have made 2 new goods "parfum" and "fleur"
I'd like to know how can I see if it's working or not.

Please find attached the .dat + .pak (in the zip file) of this 2 goods.

Thanks for the feedback!  ;D

An_dz

To test you only need the factories to start producing your goods. Go get a factory source and modify it to produce your product or create your own.

sdog

there is already an ethanol refinery, this would be an excellent consumer for ethanol -- which is after all, by mass the number two ingredient of parfum.

Aquel

Thanks for the comments!

I have now a new problem!
I'm making a greenhouse field which will supply with fleur good.
but I cannot manage to get a good result.

Any help?

I'm attaching the field (field.serre_florale.dat) and the main greehouse (Champ_de_serre_florale_w_fields.dat) + the png files

Thanks again.

VS

What is a "good result" ? I replaced spaces in file names and it worked as it should. The dat file for serre florale is not needed because you have it already in the other...

Aquel

#5
Quote from: VS on January 08, 2011, 09:55:11 PM
What is a "good result" ? I replaced spaces in file names and it worked as it should. The dat file for serre florale is not needed because you have it already in the other...

Sorry I made a mistake!
What I was trying to say is that it's not working.
if you make a .pak with the main greehouse it's working.
But when playing it doesn't show any serre florale (it supposed to have minimum 10 fields) and it doesn't show it's producing "fleur" good.

Edit: I did as you say, It's working but not the way it should be.
First it's still producing nothing.
Second I don't have any picture of the field.

I'm putting the .dat of the 2 pak and the .pak so you can see it by yourself.


Combuijs

I think this part of the champ_de_serre_florale_w_fields.dat is odd:

fields[serre_florale]
production_per_field[3]
storage_capacity[50]
spawn_weight[20]

This should be something like:

fields=serre_florale

production_per_field should move to the field object and should be:
production_per_field=3

There is no such thing as storage_capacity as far as I know. There is something like

OutputCapacity[0]=50

which states the output capacity for output good 0.

I don't know what spawn_weight does, but the format of this line is also completely wrong.

Have a look at the pak64 sources. They have examples with fields.



VS

Faster :p As Combuijs says...

First, never write just


something[x]



It's always


something[x]=y



OR just



something=y



Second: OutputCapacity, OutputGood & OutputFactor need [ 0 ] because there can be more goods than one.

Third: fields need 4 or 5 images - 4 for seasons and 5th for winter+snow.

Here's your new dat file that compiles to what you want...

Aquel

#8
Quote from: Combuijs on January 08, 2011, 11:59:01 PM
I think this part of the champ_de_serre_florale_w_fields.dat is odd:

fields[serre_florale]
production_per_field[3]
storage_capacity[50]
spawn_weight[20]

This should be something like:

fields=serre_florale

production_per_field should move to the field object and should be:
production_per_field=3

There is no such thing as storage_capacity as far as I know. There is something like

OutputCapacity[0]=50

which states the output capacity for output good 0.

I don't know what spawn_weight does, but the format of this line is also completely wrong.

Have a look at the pak64 sources. They have examples with fields.




Quote from: VS on January 09, 2011, 12:11:33 AM
Faster :p As Combuijs says...

First, never write just


something[x]



It's always


something[x]=y



OR just



something=y



Second: OutputCapacity, OutputGood & OutputFactor need [ 0 ] because there can be more goods than one.

Third: fields need 4 or 5 images - 4 for seasons and 5th for winter+snow.

Here's your new dat file that compiles to what you want...

Guys I love you it's working!
I'll make a zip for everything but thanks so much!
Here is the link: http://www.simutrans-france.fr.nf/doku.php?id=en:misc

grampybear

Looks interesting. I downloaded what you have done to date and tried it in my game, works fine.  Suggestion, the output product is listed as farm products, looking in the truck depot the trucks hauling farm products are bulk haulers (dump trucks) mostly for grain. It looks strange to see bags of delicult flowers being hauled in such a vechile. You might think about changing the freight code on one of the box trucks in the pak to haul farm products, for example, the Scania R500 which now hauls cooled goods can easily be changed. Just a thought while you are still working on this.

Aquel

#10
Quote from: grampybear on January 09, 2011, 11:06:54 PM
Looks interesting. I downloaded what you have done to date and tried it in my game, works fine.  Suggestion, the output product is listed as farm products, looking in the truck depot the trucks hauling farm products are bulk haulers (dump trucks) mostly for grain. It looks strange to see bags of delicult flowers being hauled in such a vechile. You might think about changing the freight code on one of the box trucks in the pak to haul farm products, for example, the Scania R500 which now hauls cooled goods can easily be changed. Just a thought while you are still working on this.

You're absolutly right.
But they need so much flower that I decided it would be better to make it as a bag good.

I made a bunch good, transported by paletten.
Try it and tell me how it is.

Link for download: http://www.simutrans-france.fr.nf/doku.php?id=en:misc

Edit: how to make a chain link, so when I click on "galerie commerciale" on the factory builder the all supply chain come out?
Edit 1:Do you prefer the goods with translated name in english or you prefer in french?

Václav

Quote from: Aquel on January 10, 2011, 12:29:45 AM
Edit 1:Do you prefer the goods with translated name in english or you prefer in french?
I think that here is not in need to translate names of goods into English.
Elsewhere it could be fine - but here it is useless.

I think that the most important is using such shape of names that could make translation easy - for example:
WoolenSocks or woolen_socks
instead
woolensocks

I hope that nobody will be angry with me for these words.

grampybear

Good job. You are right, now that I see the full chain and the vast volume needed, given the choices you have, bags are your best choice. I plan to leave the chain in my game and play around with some more. Thanks for the effort.

Aquel

Quote from: grampybear on January 10, 2011, 02:39:40 PM
Good job. You are right, now that I see the full chain and the vast volume needed, given the choices you have, bags are your best choice. I plan to leave the chain in my game and play around with some more. Thanks for the effort.

Thanks for the feedback.
On the french forum they say I should translate the names of the industries in English in order to make it easier for the non french speaking players.
Do you think it would be easier?
Or can I keep the french name for the french touch? ;D

Combuijs

QuoteOr can I keep the french name for the french touch?

I think fleur, parfum and bouquet will be understood by most of the non-French speakers. They are not far from English anyway (flower, perfume, bouquet).

Spike

Quote from: Aquel on January 11, 2011, 10:28:42 AM
On the french forum they say I should translate the names of the industries in English in order to make it easier for the non french speaking players.
Do you think it would be easier?

I think it is a good idea to stick with one language and not mix (I consider the mixins of German there, although done by me in the past, a mistake). English should do as a standard, also because traditionally software developers are used to it already.

I'd also suggest not to use "WoolenSocks" but the "woolen_socks" way to name files - Windows and Unix systems treat capital letter in filenames differently and this has lead to problems in the past. Better avoid it.

Players should not see the raw texts anyways, since they should be translated through a language bundle, and appear in the players chosen language on the program surface. So I see that less as an argument for naming files, but the needs of the maintainers.

Václav

Quote from: Hajo on January 11, 2011, 10:58:31 AM
I'd also suggest not to use "WoolenSocks" but the "woolen_socks" way to name files - Windows and Unix systems treat capital letter in filenames differently and this has lead to problems in the past. Better avoid it.
Thanks
- for info about problems with capital letters in filenames (but I have not such experience from programming in PHP)
- for using of woolen_socks, I used such example because it was the first one I had in thoughts when I wrote it

Spike

Quote from: VaclavMacurek on January 11, 2011, 12:55:18 PM
Thanks
- for info about problems with capital letters in filenames (but I have not such experience from programming in PHP)

This could be the latest sign of such a problem:
http://forum.simutrans.com/index.php?topic=6636.msg63881#msg63881

There were other problems in the past which were not noticed during development on Windows, but only on Unix, because Windows thinks that e.g. "Coal.pak" and "coal.pak" are the same file, but Unix thinks they are different files.

Václav

#18
That is something what you thought. Of course that with the same content it should be the same.

But else I think that it is right in a such way - that with different form of name (different size of letters) they should be taken as two different files - because they could have different content. Generally thought, in Simutrans it does not give sense.

Aquel

#19
Hello again.

I changed the name of the industries for english one.
Please find the link: http://www.simutrans-france.fr.nf/doku.php?id=en:misc

Enjoy :o
Feedback is welcome! ;D

Edit: New chain is available not by me this time but by Gwlach:
Wine chain: http://www.simutrans-france.fr.nf/doku.php?id=en:misc

Enjoy

gwalch

Aquel spoke about my new chain ! ;D
Try it !
With "grape" and "glass", you can do wine, and sell it at the agricultural cooperative...
It seems like brewery industry, but it's better ! Good french wine :P !

gwalch

Nobody tried this chain ?
Or... you drunk too much wine, and are not able to give me a feedback on this ! ;D

Václav

Quote from: gwalch on January 14, 2011, 07:35:52 PM
Nobody tried this chain ?
Or... you drunk too much wine, and are not able to give me a feedback on this ! ;D
I have to make you sad. I don't drink any alcohol. ;D
But I promise I have plan to test it very soon. :D

Erik

It looks great. :D
I have not fully test it jet.

Perhaps some results later.

Václav

Gwalch: Agricultural_Coop looks quite good - but walls are too empty - they need any texture. And then it would be perfect.

gwalch

Thanks ! I will correct that soon.

Václav

I am looking forward to seeing next version.

gwalch

Is it better like that ? (see picture)
If yes, i will modify file on snfos site.
For information, new version of agricultural coop sell "cheese" too. I made a cheese dairy, but for now, it's not available, because i don't like graphism, and will work with Aquel to a new design.

Spike

The windows somehow don't look right to me, but maybe it's just a matter of taste. Personally, I'd add shadows for the vehicles in the yard, that uses to give the image a better expression. Overall it's looking good to me, though.

gwalch

I added some shadows. Is it better ?

Spike

Yes, I think particularly the shadow behind the big sign helps.

Fabio

The windows still don't look good... you could try either with a dithered texture of lights, either adding more details.
Did you consider making 4 (or just 2) rotations?

Erik

About the windows and the door.
I think they are to big.
They seems big enough to get a car trough.

It could also that the cars are just to small.

Spike

It might be a production hall/shop floor, that needs big windows and doors.

Aquel

Did anyone had time to test my perfume and bouquet chain? :-[ :-[
What are the results graphically and ingame?
Thanks