MiniIN patches and TODO list
Moderator: OpenTTD Developers
Here’s a fix for the bug reported by MeTo in the MiniIN problems thread. Towns were not growing beyond a drive-through road stop.
Edit: DONE at r7039
Edit: DONE at r7039
- Attachments
-
- Town_Growth_Bug_Fix_MiniIN_r6902.patch
- (547 Bytes) Downloaded 217 times
Last edited by mart3p on 02 Nov 2006 18:22, edited 1 time in total.
This patch fixes the GUI bugs I reported.
1. Train purchase window height increased (and width increased slightly) to allow room for all vehicle info.
2. Train auto-replace window height increased for vehicle info.
3. RHS vehicle info now drawn in correct position in train auto-replace window.
4. Fixed purchase window caption width.
Edit: DONE at r6964, thanks glx
1. Train purchase window height increased (and width increased slightly) to allow room for all vehicle info.
2. Train auto-replace window height increased for vehicle info.
3. RHS vehicle info now drawn in correct position in train auto-replace window.
4. Fixed purchase window caption width.
Edit: DONE at r6964, thanks glx
- Attachments
-
- Gui_Fix_MiniIN_r6947.patch
- (8.07 KiB) Downloaded 251 times
This patch fixes the following subsidiary problems:
A. Depot window buttons are not enabled for a player using a sister company's depot.
B. Depot window - Sell all vehicles: should only sell vehicles belonging to current player.
C. Depot window - Start/stop all vehicles: should only start/stop vehicles belonging to current player.
D. Vehicle list window- Send To Depots: should only send vehicles belonging to current player
Edit: DONE at r6967
A. Depot window buttons are not enabled for a player using a sister company's depot.
B. Depot window - Sell all vehicles: should only sell vehicles belonging to current player.
C. Depot window - Start/stop all vehicles: should only start/stop vehicles belonging to current player.
D. Vehicle list window- Send To Depots: should only send vehicles belonging to current player
Edit: DONE at r6967
- Attachments
-
- Subs_Fix_MiniIN_r6964.patch
- (1.84 KiB) Downloaded 230 times
This patch fixes the problem of AI players not being able to start trains - more details in the MiniIN problems thread.
Edit: patch updated to also fix start/stop-all not working for trains, as reported by ma5owat.
Edit: DONE at r7038
Edit: patch updated to also fix start/stop-all not working for trains, as reported by ma5owat.
Edit: DONE at r7038
- Attachments
-
- Start_Stop_Trains_Fix_MiniIN_r7029.patch
- (650 Bytes) Downloaded 229 times
Last edited by mart3p on 02 Nov 2006 18:23, edited 2 times in total.
- bobingabout
- Tycoon
- Posts: 1850
- Joined: 21 May 2005 15:10
- Location: Hull, England
thats 5 posts in a row now
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
Suggestion for miniIN: Open AND save a game in the format which is used in the nightly builds.
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly

I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
100% impossible.gkirilov wrote:Suggestion for miniIN: Open AND save a game in the format which is used in the nightly builds.
As soon as you include any patch that has a saved variable, the trunk cannot load it. It would require a total rewrite of the load/save code in trunk to make it load saves from patched games.
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
No no, what I meant was for miniIN to make a save game without any "miniIN featured patch variables"(just ignore/skip them) so the game can be opened with a nightly version.
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly

I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
Very very difficult. You would need to identify all non-trunk items, and prevent them being written. Also, some items would need translating to the nearest trunk equivalent (eg. loading orders).gkirilov wrote:No no, what I meant was for miniIN to make a save game without any "miniIN featured patch variables"(just ignore/skip them) so the game can be opened with a nightly version.
Very tricky, and IMO not worth the effort. It is however worth keeping MiniIN capable of loading any trunk game.
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
- bobingabout
- Tycoon
- Posts: 1850
- Joined: 21 May 2005 15:10
- Location: Hull, England
i think it is
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
As Ive said before: Off you go then. If you think it is worth it (I really dont), then I will be delighted to include your comprehensive patch to do this.bobingabout wrote:i think it is
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
- bobingabout
- Tycoon
- Posts: 1850
- Joined: 21 May 2005 15:10
- Location: Hull, England
i'll work on other things instead, but i need to refresh and update my knoledge of C, last C i used was borland C++ for MS-DOS.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.
[/url]
I don’t see how it would be possible to handle things like Drive-Through Road Stops and Diagonal Level Crossings. You can’t just ignore/skip these. And what if you are using Subsidiaries with track sharing. What would you do with one player’s trains on another’s tracks? I agree with richk67, this would be virtually impossible.gkirilov wrote:No no, what I meant was for miniIN to make a save game without any "miniIN featured patch variables"(just ignore/skip them) so the game can be opened with a nightly version.
-----------------------------
This patch fixes asserts caused by the Town Growth patch.
1. Prevent road-building test passing invalid tile index diffs to TILE_ADD. Tile is now calculated by AddTileWrap (instead of TILE_ADD) so bad diffs (off the map) are detected.
2. Prevent bridge-build test looking for existing bridges off the map edge. If the map edge is found don't attempt to place a bridge.
Edit: DONE at r7036
- Attachments
-
- TG_Assert_Fix_MiniIN_r7029.patch
- (2.2 KiB) Downloaded 233 times
This patch fixes a problem with the Additional Orders patch. When the AI builds a new train and sets its orders to full-load, order.percentilefill was not being set to 100%. I have shown this patch to gigajum (author of Additional Orders patch) and he is happy this change.
Edit: DONE at r7045
Edit: DONE at r7045
- Attachments
-
- AI_Full_Load_Fix_MiniIN_r7040.patch
- (1004 Bytes) Downloaded 235 times
Due to richk67's hack
of using NUM_CARGO as the power-station's cargo type in the Electricity Production patch , there is a problem with the "produced" array in GetProductionAroundTiles (station_cmd.c). If GetProducedCargo_Industry (industry_cmd.c) tests a power station it will write past the end of the array. Note, GetProductionAroundTiles is only called by the AI.
This patch fixes the problem. I sent it to richk67 for a look, he seems happy with the change but hasn't had time to commit it yet (probably due to November 5th being imminent
), so I'm posting it in the hope that someone else will do it.
Edit: DONE at r7085

This patch fixes the problem. I sent it to richk67 for a look, he seems happy with the change but hasn't had time to commit it yet (probably due to November 5th being imminent

Edit: DONE at r7085
- Attachments
-
- Array_Fix_MiniIN_r7054.patch
- (556 Bytes) Downloaded 221 times
Last edited by mart3p on 07 Nov 2006 00:06, edited 1 time in total.
This patch fixes the waypoint renaming bug reported by Nickel-Plate in the MiniIN problems thread. At some point string STR_0009 was changed to STR_012D but this didn't get updated for the waypoint view window caption.
Edit: DONE at r7085
Edit: DONE at r7085
- Attachments
-
- Waypoint_Name_Fix_MiniIN_r7071.patch
- (399 Bytes) Downloaded 245 times
suggestion
a more realistic suggestion
would it be possable to save you preferances for things like coulor scheme and game options whern you set them so that next time you play (and start a new game) you dont have to bother remembering to set road vechles to drive on the left, set the mesurements to whatever you like and set all your colours for the various types of vechles to your favoirite settings instead of thr random stuff you get...
all this data coudl quitre easily be saved in a seperate file say "player.cfg" using simaliar syntax to openttd.cfg, or mabie appended to openttd.cfg,
this sounds relativly easy to do and i woudl write it myself if i had any idea how openttd stores thease variables in play,
but unfortunatly that is way past my current programming skills.
would it be possable to save you preferances for things like coulor scheme and game options whern you set them so that next time you play (and start a new game) you dont have to bother remembering to set road vechles to drive on the left, set the mesurements to whatever you like and set all your colours for the various types of vechles to your favoirite settings instead of thr random stuff you get...
all this data coudl quitre easily be saved in a seperate file say "player.cfg" using simaliar syntax to openttd.cfg, or mabie appended to openttd.cfg,
this sounds relativly easy to do and i woudl write it myself if i had any idea how openttd stores thease variables in play,
but unfortunatly that is way past my current programming skills.
Small fix for the drag and drop purchasing areas. Creator forgot to add the costs for demolishing tile on purchasing it. See log entry r5828.
This fixes the problem described here
Edit: DONE at r7417
This fixes the problem described here
Edit: DONE at r7417
- Attachments
-
- MiniIN-PurchaseCostFix.diff
- (318 Bytes) Downloaded 203 times
Last edited by gigajum on 09 Dec 2006 14:08, edited 1 time in total.
- White Rabbit
- Tycoon
- Posts: 1734
- Joined: 22 Jun 2005 19:15
The author of that patch hasn't been seen since May 8.
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Who is online
Users browsing this forum: No registered users and 15 guests