Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Oct 23, 2017 11:33 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Oct 20, 2004 2:11 pm 
Offline
Engineer
Engineer

Joined: Wed Oct 20, 2004 12:54 pm
Posts: 4
Location: Russia, Moscow
Max. cargo count waiting on a station is limited by 0xFFF that means 4095. For any large station that transfers a large amount of cargo, this limitation is very annoying.

But as I see, there are 3 more free bits: only the last one is occupied by the acceptance flag. After changing all needed masks, I recently tested this possibility. With a new game this works fine, new limit is 32767 and is not so low. But the old savegame crushes after applying this change. Crush appears when i click on a station.

Why the game crushes? Are there any related variables, flags and so on? Or this is my own bug? But corrected version is stable after a new game was started, even when I have more than 4096 units of cargo on a station.

Also i just made the new ttdpatch-like trains loading/unloading patch that may be enabled from "configure patches" window. Is it possible to insert this one into the "official" sourcecode?

P.S. Sorry for my not-so-good english.


Top
   
PostPosted: Wed Oct 20, 2004 4:29 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Sat Jul 24, 2004 11:04 am
Posts: 131
Location: Hungary
JCU wrote:
Max. cargo count waiting on a station is limited by 0xFFF that means 4095. For any large station that transfers a large amount of cargo, this limitation is very annoying.

But as I see, there are 3 more free bits: only the last one is occupied by the acceptance flag. After changing all needed masks, I recently tested this possibility. With a new game this works fine, new limit is 32767 and is not so low. But the old savegame crushes after applying this change. Crush appears when i click on a station.

Why the game crushes? Are there any related variables, flags and so on? Or this is my own bug? But corrected version is stable after a new game was started, even when I have more than 4096 units of cargo on a station.

Also i just made the new ttdpatch-like trains loading/unloading patch that may be enabled from "configure patches" window. Is it possible to insert this one into the "official" sourcecode?

P.S. Sorry for my not-so-good english.


Post the diff file here, I'm interested in that features.


Top
   
PostPosted: Wed Oct 20, 2004 7:21 pm 
Offline
Engineer
Engineer

Joined: Wed Oct 20, 2004 12:54 pm
Posts: 4
Location: Russia, Moscow
I have no program to automatically extract all my changes.

I just finished manual extraction, and it should work. Possibly with bugs... Let me know if you find these small annoying creatures in my code.

In general, all my changes (exceps 0xFFF limitation removing) marked by my nickname-related variables and function names.

Also, 2 bug reports:

1. when I am click on the flag mark in the left of a train depot window and window is scrolled, flag's state remains the same.

2. when I have a station with 2 trains loading simultaniously and then they are arriving, second one, receiving red lite (one-sided) on the outgoing track, will try to reverse after some seconds, and locks incoming rails for a few seconds. In original TTD delay before reversing in such a case is much, much greater.


Attachments:
File comment: code changes for openttd-0.3.4
some new features and possibly new bugs.

jcu_changes.txt [19.92 KiB]
Downloaded 247 times
Top
   
PostPosted: Thu Oct 21, 2004 7:40 am 
Offline
Engineer
Engineer

Joined: Wed Oct 20, 2004 12:54 pm
Posts: 4
Location: Russia, Moscow
One more setting (station rating setup for large transport terminals with hude amounts of cargo).

Increased feeders limit (my option update)

Industries will not close (not tested but should work) when their percetnage of transported goods is greater then ~62% - with jcu_industry_production mode only


Attachments:
File comment: update for my changes
jcu_changes2.txt [2.75 KiB]
Downloaded 226 times
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


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:  
Powered by phpBB © 2000-2017 phpBB Limited

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