MiniIN + Bridge branch
Moderator: OpenTTD Developers
MiniIN + Bridge branch
My merging of it isn't entirely correct and I just notice that 0.5.0 stopped just 28 revs or 5 days before merging with bridge patch.
Can someone help me with proper integration of bridge branch into MiniIN?
Can someone help me with proper integration of bridge branch into MiniIN?
Does this mean that you are volunteering for the new maintainer of the MiniIN?
Anyway, the bridge branch will wreak havoc to some patches within the MiniIN; I can think of the following: PBS and copy paste.
You also need to update to a later revision of trunk as there are bugs in the bridge code just after the merge.
Anyway, the bridge branch will wreak havoc to some patches within the MiniIN; I can think of the following: PBS and copy paste.
You also need to update to a later revision of trunk as there are bugs in the bridge code just after the merge.
Maybe
If I will have SVN commit rights
But I must say that sometimes my skills isn't enough (or I don't have enough will) to overcome all problems, for example something like upgrading all patches to new widget system.
Copy paste was modified to be able to store bridges, but again, I didn't completely test it.
I must say that I need additional tester


I don't notice any consequnces in PBS, maybe because of insufficient testing — you can test it yourself in my build.[MiniIN]: Sync with trunk, r6197:6361.
This was a difficult sync. Please let me know of any errors found / patches broken by it.
Copy paste was modified to be able to store bridges, but again, I didn't completely test it.
I must say that I need additional tester

The vote has been cast and perhaps someone will care for Mini_IN as I do to continue maintaining it...
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
this has a simple reason, there are no bridge middle tiles anymore...Quark wrote:Now I need some information about bridge branch: what was done with «IsBridge(tile) && IsBridgeMiddle(tile)» and why most times all code with IsBridgeMiddle is simply removed and sometimes it was replaced with «MayHaveBridgeAbove(tile) && IsBridgeAbove(tile)»?
all bridge data is stored in the bridge heads (aka bridge tiles), on all tiles, that were previously bridge middle parts, two bits are reserved for indicating that they have a bridge above them.
ergo...
all pieces of code that handle stuff that happens ON a bridge, have "IsBridgeMiddle" simply removed
all pieces of code that handle stuff that happens UNDER a bridge, have "IsBridgeAbove" added
i have prepared myself a bridge patch, and fixed some PBS issues with them (although i would not recommend reversing on them, might be unhealthy, but this is probably a general PBS problem)
i have the patch here: http://www.informatik.uni-halle.de/~kra ... iniin.diff
things that i certainly broke: Copy-Paste patch, and Bridge-overbuild-with-new-bridge patch
some other patch had a "#ifndef BRIDGE_BRANCH_INCLUDED" (i don't exactly remember which), so i just defined that, hoping the person knew what he did

also, i have not included all fixes that happened after the bridge merge, and i might have broken something in the diff, while i was cleaning up other local modifications... so i'd like some feedback
PS: when a reimplementation of PBS is going into trunk i will probably stop caring about it
-
- Transport Coordinator
- Posts: 340
- Joined: 06 Feb 2006 23:58
The Copy&Paste bridge-handling from trunk is the same as within mini-in.
So you may just copy&paste the whole MP_TUNNELBRIDGE-case code in CopyArea, plus the default-case(contained some obsolete bridge/tunnel code).
(Line 904 to 1124 in patchfile)
And copy&paste the bridge-pasting code from PasteArea.
(Line 464 to 513 in patchfile)
Line-numbers are from latest patchfile. (rev8178)
Bye,
Frostregen
So you may just copy&paste the whole MP_TUNNELBRIDGE-case code in CopyArea, plus the default-case(contained some obsolete bridge/tunnel code).
(Line 904 to 1124 in patchfile)
And copy&paste the bridge-pasting code from PasteArea.
(Line 464 to 513 in patchfile)
Line-numbers are from latest patchfile. (rev8178)
Bye,
Frostregen
thanks for your help, copy-paste appears to be work, and i updated the diff in the link above...
but i have come across three issues:
- in line #1021 of your patchfile, you have an alignment issue (4 spaces instead of tab)
- when i copied semaphore PBS signals, they ended up being inserted as normal PBS signals
- the button in the landscaping toolbar lacks a tooltip
they might not be related...
but i have come across three issues:
- in line #1021 of your patchfile, you have an alignment issue (4 spaces instead of tab)
- when i copied semaphore PBS signals, they ended up being inserted as normal PBS signals
- the button in the landscaping toolbar lacks a tooltip
they might not be related...
-
- Transport Coordinator
- Posts: 340
- Joined: 06 Feb 2006 23:58
This diff resolves some issues with copy&paste in mini-in.
-semaphores not pasted correctly (CmdBuildSingleSignal changed)
-added "Paste Speed" feature
-added Hotkeys (Ctrl+C, CTRL+V, CTRL+Insert, SHIFT+Insert)
-fixed wrong c&p tooltip in terraform_gui
The bridge-branch compatibility is restored in eddi's diff above.
-semaphores not pasted correctly (CmdBuildSingleSignal changed)
-added "Paste Speed" feature
-added Hotkeys (Ctrl+C, CTRL+V, CTRL+Insert, SHIFT+Insert)
-fixed wrong c&p tooltip in terraform_gui
The bridge-branch compatibility is restored in eddi's diff above.
- Attachments
-
- copy_paste_rev8230_MiniIN_update.patch
- (9.02 KiB) Downloaded 262 times
Who is online
Users browsing this forum: Google [Bot] and 10 guests