Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Sep 02, 2010 6:14 pm

All times are UTC




Post new topic Reply to topic  [ 170 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 9  Next
Author Message
 Post subject:
PostPosted: Wed Jan 17, 2007 7:04 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
Bjarni wrote:
SirkoZ wrote:
I see.
I must mention here, that I tried to play some of the OpenTTD COOP save games with around 1000 diesel/steam trains running at any time and it ran fine. How many vehicles does my patch "steal" from the array? :)
one for each steam/diesel cloud anywhere on the map.

Oh my. :(

Quote:
SirkoZ wrote:
Is there any way to make the patch client-side?
Yes, but you will not like this. You will need to split eyecandy effects from vehicles, that affects the game. Overloading the eyecandy one will not affect the game while overloading the vehicle will.

Say we got close to the limit of vehicles in a game. One player (A) got really intense smoke from his steam trains, so he takes up say 20 vehicle space for each locomotive. Another guy (B) only use 8 vehicle slots for each steam locomotive. Eventually B will build a new vehicle and the game will allow him to do so because it can find free vehicle slots. The same goes for the server, so they both build the new vehicle. A already used all his slots for steam and the game will fail to build the vehicle and now we got a game, where all clients will not have the same amount of vehicles in the game -> desync.

I really can't see any easy way out of this one and splitting the vehicles and the "eyecandy vehicles" is a massive job.


Oh boy - now how would I - a simple (open)TTD fan - a lousy programmer go about and do that (and I mean that)? :D
No really - was any such task as decoupling of eyecandy vehicles (e.g. shadows,...) and vehicles planned by the OpenTTD developers? Because it sounds to me, that the whole graphics engine would have to be altered. :shock:

Now - I would suggest for the time being - let's try and test the worst possible scenario - how many steam/diesel engines could there be on one map that would not affect the buying/selling the same or other vehicles?
I know it's not the best sollution, but what I remember from the internet Mini_IN/Integrated_build games, there were never any problems with buying vehicles...
What say you? :)

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 7:28 pm 
TTDPatch Developer
TTDPatch Developer
Offline

Joined: Wed Feb 18, 2004 3:06 am
Posts: 10249
Bjarni wrote:
SirkoZ wrote:
Is there any way to make the patch client-side?
Yes, but you will not like this. You will need to split eyecandy effects from vehicles, that affects the game. Overloading the eyecandy one will not affect the game while overloading the vehicle will.

Say we got close to the limit of vehicles in a game. One player (A) got really intense smoke from his steam trains, so he takes up say 20 vehicle space for each locomotive. Another guy (B) only use 8 vehicle slots for each steam locomotive. Eventually B will build a new vehicle and the game will allow him to do so because it can find free vehicle slots. The same goes for the server, so they both build the new vehicle. A already used all his slots for steam and the game will fail to build the vehicle

1) Since when was there a reachable limit on the total number of vehicles in the game? And if that's a soft limit, whoever thought it was a good idea to make special vehicles count toward this limit?
2) What's keeping you from kicking out a steam puff or two?

Or better yet, revert whatever change it was that changed the vehicle array from a split (690+160) array to a common pool. It's not like special effects need all ~100 bytes of vehicle data.

SirkoZ wrote:
was any such task as decoupling of eyecandy vehicles (e.g. shadows,...)

Shadows aren't eyecandy. They're honest vehicles, and under normal circumstances are the mail compartment.

_________________
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
TTDPatch NFO coding consultant. (Private messages on this topic will be ignored. Ask in public only.)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 9:50 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
DaleStan wrote:
SirkoZ wrote:
was any such task as decoupling of eyecandy vehicles (e.g. shadows,...)

Shadows aren't eyecandy. They're honest vehicles, and under normal circumstances are the mail compartment.

I see. Thanks for the correction. :)

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 10:55 pm 
OpenTTD Developer
OpenTTD Developer
Offline

Joined: Wed Mar 30, 2005 9:43 am
Posts: 1333
To clarify:

There are actually 1024 reserved vehicle IDs just for special effects. These start from 0, and hence all real vehicles (including aircraft shadows) have IDs greater than 1024.

If there are too many special effects, then no more are created (until some are deleted). So they can't interfere with real vehicles, but could conceivably cause desyncs if clients have different settings, as some of the special effect handlers involve randomness.

_________________
He's like, some kind of OpenTTD developer.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 11:34 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
peter1138 wrote:
To clarify:

There are actually 1024 reserved vehicle IDs just for special effects. These start from 0, and hence all real vehicles (including aircraft shadows) have IDs greater than 1024.

If there are too many special effects, then no more are created (until some are deleted). So they can't interfere with real vehicles, but could conceivably cause desyncs if clients have different settings, as some of the special effect handlers involve randomness.

Very nice! So I see no problem. :D

The patch is server-side - so it's settled. ;-)

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 5:30 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
Again - an update of the 2.0b (diesel) smoke patch - this time for source r10348+ - the one with thoroughly fixed (finally) smooth_economy. :-)


Attachments:
File comment: patch
diesel_smoke_sz_2-0b_r10348_0.patch [4.69 KiB]
Downloaded 86 times

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!
Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Sun Jul 29, 2007 12:39 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
Another update to revision r10715 of the nightly source:


Attachments:
File comment: diff
diesel_smoke_sz_2-0b_r10715_0.patch [4.75 KiB]
Downloaded 109 times

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!
Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Sun Jul 29, 2007 10:00 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Jun 22, 2005 7:15 pm
Posts: 1723
What about this?
White Rabbit wrote:
Why not have even more options for longer steam trails and more frequent puffs, like TTDP? While there's a difference between steam/smoke generated by this patch and default OTTD, I still think there's not nearly enough of it, and the patch doesn't compare with the Patch, if you know what I mean...


You 'duelly noted' it, but then forgot. :(

_________________
Image
Say hello to the cake parade!
ImageImageImageImage


Top
 Profile E-mail  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Sun Jul 29, 2007 11:04 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
Because I think the patch is good enough for now.
I mean - let's face it - it's still not in the main build although great many players have been really happy with it through the years of the integrated builds and also separate releases...
Not to mention there's no "bug" with it - like OpenTTD developers themselves said - if there's too many smoke phantom vehicles, OpenTTD will simply not draw them...but enough 'bout that.

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Wed Jan 23, 2008 7:15 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
Here's the simpler version for the latest trunk with more either type of smoke emitted only at train's start 0-64 or some more km/h (decreases with speed for all 3 locomotive types).


Attachments:
File comment: current version
diesel_smoke_sz_finetune_r13916.patch [2.92 KiB]
Downloaded 63 times

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Last edited by SirkoZ on Fri Aug 01, 2008 10:26 pm, edited 2 times in total.
Top
 Profile  
 
 Post subject: Re:
PostPosted: Wed Jan 23, 2008 7:49 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Jun 06, 2007 9:07 pm
Posts: 1697
Location: Czech Republic
peter1138 wrote:
To clarify:

There are actually 1024 reserved vehicle IDs just for special effects. These start from 0, and hence all real vehicles (including aircraft shadows) have IDs greater than 1024.

If there are too many special effects, then no more are created (until some are deleted). So they can't interfere with real vehicles, but could conceivably cause desyncs if clients have different settings, as some of the special effect handlers involve randomness.


There are two "random" generators - one that is used for simulating the game and is synchronized between client and server.
Second is "interactive" random, which is not synchronized, used for random events not communicated over network.

If those handlers would be rewritten to use the "interactive" random, it won't affect network game (ok, each of the clients would have slightly diferent eye candy, or even completely different if he desires and set it so. This could allow also perhaps some further optimizations (do not create eye-candy effects for vehicles not visible in current viewport, or create them with less detail)

_________________
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)


Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Wed Jan 23, 2008 8:04 pm 
OpenTTD Developer
OpenTTD Developer
Offline

Joined: Wed Mar 30, 2005 9:43 am
Posts: 1333
The 1024 reserved special vehicles no longer applies. That was removed quite some time ago.

_________________
He's like, some kind of OpenTTD developer.


Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Wed Jan 23, 2008 9:42 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
peter1138 wrote:
The 1024 reserved special vehicles no longer applies. That was removed quite some time ago.

Oh and you didn't tell me that, peter1138?

That's just great!

BTW - with ALL integrated builds, where we extensively played over the net (NOT lan) - there were NO desyncs - at least no because of any of my patches!



Bilbo - I can have those rewritten in a Jamie, but that's besides the point. The point is apparently my vehicle stuff just don't fit into Peter1138's little agenda.

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Thu Jan 24, 2008 12:16 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Wed Jun 06, 2007 9:07 pm
Posts: 1697
Location: Czech Republic
SirkoZ wrote:
Bilbo - I can have those rewritten in a Jamie, but that's besides the point. The point is apparently my vehicle stuff just don't fit into Peter1138's little agenda.


Its not the only patch devs don't want (now) in trunk ... some of my patches were either rejected (FS#924, FS#1060) or I received no response to them for long time (FS#1059, no response for last 2.5 months, had to resync with updates in trunk several times).

Although 10 of them ended up as accepted, though these were rather minor corrections ....

_________________
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)


Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Thu Jan 24, 2008 1:42 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
Well - so are my - quite tiny, but very useful indeed and what is of the most value - well tested.

One can't help but feel frustrated...

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Thu Jan 24, 2008 2:19 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Thu Jun 01, 2006 3:15 pm
Posts: 1164
Location: Gatwick
Well, don't stress Sirkoz, just keep up the good work. :)

_________________
Image
Image


Top
 Profile E-mail  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Fri Jan 25, 2008 2:01 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
Thank you Ben_K. ;-)

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Wed Feb 18, 2009 5:44 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1404
Location: The sunny side of Alps
New version - let's call it v3, shall we? :-)

It's for trunk r15513 and it has been rewritten to be as simple as possible with amplified smoke effects for all locomotives (as usually).

File (patch):


Attachments:
File comment: diff
diesel_smoke_sz_finetune_r15513.patch [3.24 KiB]
Downloaded 119 times

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!
Top
 Profile  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Wed Feb 18, 2009 7:44 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Sat Aug 25, 2007 5:03 pm
Posts: 2076
Location: ~/
Why isn't this in trunk? Does it have any bugs?
I love the patch by the way! :D

_________________

Benny's OpenTTD installer - As easy as it gets. | My old avatar is baaaaack.

Image


Top
 Profile E-mail  
 
 Post subject: Re: More diesel_smoke patch
PostPosted: Wed Feb 18, 2009 10:34 pm 
Engineer
Engineer
Offline

Joined: Wed Aug 20, 2008 7:02 pm
Posts: 3
Location: Munich / Germany
Very nice patch - I like it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 170 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 9  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Debt Help | Wordpress Theme | Loans | Bad Credit Loans | Debt Help
Powered by phpBB © 2000-2009 phpBB Group

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2010.
Hosted by Zernebok.