Cargo Distribution

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: Cargo Distribution - join the public MP test game: see p. 85

Post by XeryusTC »

fabca2 wrote:Why do you require a password ? (that must be requested on irc)
why make it too hard ? isn't the goal to allow people to tests cargodist ?
I don't have irc. I played the first test with playsure, but I don't plan to install irc for that.

What the purpose of this password ?

Only people that follow this forum thread and who want to download the specific bin will be able to play, is there any risk of sabotage ?
and if someone really really want to destroy your game, do you think it's too hard for him to ask for the password on irc ????

Like anyother protection system (DRM, DVD...) this is just anoying normal people and does not protect anything.
#openttdcoop has passwords for several reasons. The first is, as you pointed out, to prevent vandalism on our servers. The second (and most important) reason is to get people onto IRC and have them read the wiki (in the past you could only get the password through visiting a certain site FROM the wiki). We've had loads of occasions in the past where anti-social people and vandalists did not join IRC but did join our server.
Note that the method of getting the password has been changed loads of times in the past and that it might not be entirely clear at first but we mainly do it to get people to communicate and follow our rules ;)
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
Grandmaster
Engineer
Engineer
Posts: 72
Joined: 11 Feb 2007 21:10
Location: Rotterdam, Netherlands

Re: Cargo Distribution - join the public MP test game: see p. 85

Post by Grandmaster »

this are the logs of the desync in the network game.
Attachments
autosave networkgame.part1.rar
part 1
(4 MiB) Downloaded 120 times
autosave networkgame.part2.rar
part 2
(3.69 MiB) Downloaded 133 times
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

The server has been updated to run a new version: http://bundles.openttdcoop.org/cargodist/g17340e3e/
The same game has been loaded with that version. So if you have built something on the weekend you can continue it. The new version fixes some desyncing bugs. I hope I have caught them all but I'm not entirely sure.
The guy on the picture is not me, it's Alonso.
id10terror
Engineer
Engineer
Posts: 56
Joined: 03 Jul 2009 02:16

Re: Cargo Distribution

Post by id10terror »

Anyone here wanting to modify passenger and mail numbers check here http://www.tt-forums.net/viewtopic.php?p=878251#p878251

I know its not related to cargodist but i thought it might make the experience better.
Logital82
Engineer
Engineer
Posts: 58
Joined: 15 Feb 2010 12:03
Location: Germany, Berlin

Re: Cargo Distribution

Post by Logital82 »

Question to payment playing the BIGOS Pack.

Passengers go from A to D changing the company in B and C: A - B - C - D. Between every changing another company is servicing. Who earns the money if each distances is equal and in one direction? only the last provider? evry provider the same?
Arie-
Director
Director
Posts: 593
Joined: 20 Jan 2009 16:07

Re: Cargo Distribution

Post by Arie- »

Hmm, switching passengers between companies sounds like infrastructure sharing. I think you should ask that question in another thread, not sure though.
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2868
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Cargo Distribution

Post by ChillCore »

Hello fonso,
sorry to say but I found another 2 little bugs in the smallmap gui.

- When zooming in the vehicles disappear from the smallmap.
Changing line 775 and 776 in smallmap_gui.cpp to "(int)TILE_SIZE" fixes that.(*)

- Aircraft that are flying have their position in the smallmap drawn at tile (0, 0). When landing at the airport their position on the smallmap is drawn correctly.
See attachment. I have no solution for this one yet ... sorry.

(*)
The line numbering is trunk-cd_r19826 bumped to r19880 to see if it was something in trunk that was already fixed or not.
No conflicts while bumping. :)
Attachments
Buham Transport, 24 Aug 1950.png
Buham Transport, 24 Aug 1950.png (44.8 KiB) Viewed 4938 times
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

Thanks for the report, ChillCore. I have fixed the smallmap glitches and also the order determinism detection. Determinism detection was broken for nominally conditional, but really unconditional orders. However, as those are only minor problems, I suggest we play another test game with http://bundles.openttdcoop.org/cargodist/g17340e3e/ in order to find the remaining desync. The last game was quite stable. We had only one desync in about 5 days so I guess a new game with the same version could be quite funny if done right. One desync is still one too many, though and I'm going to find it.

I'm open to suggestions regarding map and settings. Please post them at #openttdcoop.dev on oftc or write me private forum messages.
The guy on the picture is not me, it's Alonso.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

I have pushed an update. Changes:
  • removed supply scaling. It doesn't work as intended and I don't see a way to fix it.
  • added "external ratings". Instead of simply on the sum of all cargo waiting ratings at a station S are now dependent on
    a, the average amount of cargo per next hop at S and
    b, the maximum cargo from S waiting at any station where cargo is being dropped (including S itself, if applicable).
    So, for big transfer stations you have much more freedom to store cargo without rating punishment as the average per next hop is considered first. However, if cargo is dropped, all cargo is counted per source and the rating punishments are fed back to the source stations so that it won't pile up that much anymore at the transfer station.
  • Introduced branch "cdo" which keeps supply scaling but doesn't include external ratings - for those who like it that way.
  • Branch "cd" was completely replaced, so you'll have to "git pull -f" to update it in your local repository.
The guy on the picture is not me, it's Alonso.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

As there haven't been a lot of suggestions, I have opened the following game:
  • Temperate, full Japan set.
  • supply scaling off
  • 512x512 random
You can play with the same binary as before (http://bundles.openttdcoop.org/cargodist/g17340e3e/). Please play with "debug_level desync=3" and send me the dmp_cmd saves if you experience a desync. You can use the forum messages for that or post them somewhere I can access them. Due to lots of work this week I won't be able to show up often in this game but I hope to be able to occasionally join IRC and clean up a bit. Have fun.

And of course the server is still the same: mz.openttdcoop.org:3999
The guy on the picture is not me, it's Alonso.
Purator
Engineer
Engineer
Posts: 51
Joined: 02 Jul 2007 10:32

Re: Cargo Distribution

Post by Purator »

Hi,

I played the last 2 months with a version from 2010-03-27, and now upgraded to the newest Version, and now the game says it can't load the game, it says "invalid chunk size". I am now looking for two things

1) the Version from 2010-03-27
or
2) another solution (something like "force loading").

Greetings
Purator
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: Cargo Distribution

Post by Kogut »

You can browse topic for posts from that time and find your version of client.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2868
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Cargo Distribution

Post by ChillCore »

Kogut wrote: You can browse topic for posts from that time and find your version of client.
Or you can check this link found in the first post and find the exact version you need by date.
http://fickzoo.com/fonsinchen/patches

@Purator:
I do not know why the patches for cargodist on that page are 0 bytes.
If you can not find anywhere to download the correct version, I have a few backups here and , most likely, also have the version you need.

Loading your savegame with the last version will not work for two reasons.
1. Trunk has bumped.
2. There have been some changes in the last version that break savegame compatibility even without trunk bumping.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Purator
Engineer
Engineer
Posts: 51
Joined: 02 Jul 2007 10:32

Re: Cargo Distribution

Post by Purator »

Hello,

@ChillCore: I will search and ask you if needed. Is there any possibility of such a "Savegame-conversion" (like saving with several versions or something like that?)

Greetings

Purator
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: Cargo Distribution

Post by Zuu »

A save-game conversion will not work in this case. (it is possible for vanilia OpenTTD to move from lower versions to higher, but not for patched OpenTTD versions where some part of the save/load logic has been altered)
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Cargo Distribution

Post by Rubidium »

Zuu wrote:A save-game conversion will not work in this case.
It could have and MiniIN is proof for my point. That it might not be as easy is true, but it is not impossible!
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

I know that savegame conversion is possible but it involves writing a lot of ugly code that would further clutter the already ugly save/load files and it will be thrown out if cargodist is merged with trunk. This is why I haven't done so, yet.

The patches in http://fickzoo.com/fonsinchen/patches/ named "cargodist" are 0 bytes long because those are the patches you are expected to apply on top of the "cargodist" branch's dependencies. You are looking for the patches from http://fickzoo.com/fonsinchen/patches/against_trunk/ .
The guy on the picture is not me, it's Alonso.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post by fonso »

Due to numerous complaints about the domain name and the slowness of the old site I have moved the git repository to github: http://github.com/fonsinchen/openttd-cargodist/

You can do all kinds of funny things with that website, but unfortunately you cannot automatically create patches from the repository (at I don't see how). I'll find a way to do that for those of you who are using the patches. And I'll update the first post and wiki page in the next few days.
The guy on the picture is not me, it's Alonso.
dimon22_g
Engineer
Engineer
Posts: 38
Joined: 17 Aug 2007 05:42
Location: Moscow

Re: Cargo Distribution

Post by dimon22_g »

I am playing this patch since recnetly and am struggling with huge amount of passengers travelling through big network. Almost all lines have to use as much trains as possible and still most of stations are overcrowded.
Is there a way to reduce passengers amount generation (for example in half) to allow some more and some less - crowded lines?

There seems to be very interesting patch parameter in the "towns" section in advanced settings, which is called "town cargo generation factor (less < 0 < more), but I am not able to find any description of it anywhere.
dimon22_g
Engineer
Engineer
Posts: 38
Joined: 17 Aug 2007 05:42
Location: Moscow

Re: Cargo Distribution

Post by dimon22_g »

In addition, I did not understood the last three parameters from "link graph" section - about effect of distance on demand, station popularity and saturation. Are there any formulas that drive them?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 12 guests