How many tiles does this need?
Moderator: OpenTTD Developers
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
It's great to see you working out my idea, but it's far from original. I don't mind that, but this will costs you more and more of work! You also have to think of the fact that if you edit more code, more code can change with every update of the SVN source. And read my signature as well (the quote in it)
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
More progress:
Tooltip is visible after pressing shift. I don't like shift, so if you have some proposals on key, please post. However, no ctrl - it is being used by diagonal selection patch.
It works with tunnels. However, it shows lenght of dock (2), too
Height difference for bridges works with no problems
The tooltip is no longer behind a mouse cursor. It is moved down. However, it can go behind the cursor at the very bottom of the screen
{} (new line sign) works in tooltip. Hacky way, but it works with no problems
TODO: Compatibility with railway construction (autorail and signals)
Attached file is still a r3165 diff because .dsp and .dsw files were not updated in the diff. Belugas' patch removed the errors, however, it created many errors with AI files
Tooltip is visible after pressing shift. I don't like shift, so if you have some proposals on key, please post. However, no ctrl - it is being used by diagonal selection patch.
It works with tunnels. However, it shows lenght of dock (2), too
Height difference for bridges works with no problems
The tooltip is no longer behind a mouse cursor. It is moved down. However, it can go behind the cursor at the very bottom of the screen
{} (new line sign) works in tooltip. Hacky way, but it works with no problems
TODO: Compatibility with railway construction (autorail and signals)
Attached file is still a r3165 diff because .dsp and .dsw files were not updated in the diff. Belugas' patch removed the errors, however, it created many errors with AI files
- Attachments
-
- tooltip4_r3165.patch
- (9.71 KiB) Downloaded 112 times
Sorry from triple posting but it is next case:
I've made autorail\signal placement in standard OTTD directions (NW, NE, SW, SE) but odd directions (N S W E) are true pain.
Dominik and Ludde wrote it, but real live caught them. Dominik was last logged in on IRC 37 weeks ago, Ludde 5 weeks ago. On the forum? Don't even try to count.
For anyone interested, now I'm working on CalcRaildirsDrawstyle in viewport.c. If you scroll down to it will be the N S W E direction code. At least I think "complicated direction" mean so...
By the way, here is a preview of working part of railway construction measurment
I've made autorail\signal placement in standard OTTD directions (NW, NE, SW, SE) but odd directions (N S W E) are true pain.
Dominik and Ludde wrote it, but real live caught them. Dominik was last logged in on IRC 37 weeks ago, Ludde 5 weeks ago. On the forum? Don't even try to count.
For anyone interested, now I'm working on CalcRaildirsDrawstyle in viewport.c. If you scroll down to
Code: Select all
} else { // complicated direction
By the way, here is a preview of working part of railway construction measurment
- Attachments
-
- measure_test_6.png (32.55 KiB) Viewed 2442 times
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
Great!
I compiled r3165 from SVN with your latest patch, deleted this line in misc_gui.c:
if(_shift_pressed) {
and the corresponding:
}
So now I don't have to press Shift to see the tooltip. Much better!
And I've found some little bugs, which are quite difficult to explain but I will try with a lot of screenies
just wait for the edit
I compiled r3165 from SVN with your latest patch, deleted this line in misc_gui.c:
if(_shift_pressed) {
and the corresponding:
}
So now I don't have to press Shift to see the tooltip. Much better!
And I've found some little bugs, which are quite difficult to explain but I will try with a lot of screenies
just wait for the edit
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
OK...MeusH wrote:Tooltip is visible after pressing shift. I don't like shift, so if you have some proposals on key, please post.
How about simply having it as a patch? I know I'd like this to be always-on. This relieves the need for any more keypresses, leaving more keys available for the rest of the game.webfreakz.nl wrote:I compiled r3165 from SVN with your latest patch, deleted this line in misc_gui.c:
if(_shift_pressed) {
and the corresponding:
}
So now I don't have to press Shift to see the tooltip. Much better!
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
The no-shift patch, and behind that 2 pictures with minor tooltip-bugs
The red-arrow in tooltip#1.png shows an 7 which sometimes appears when pressing shift(the price function) + click.
The red-arrow in tooltip#1.png shows an 7 which sometimes appears when pressing shift(the price function) + click.
- Attachments
-
- tooltip4_no_shift_3165.diff
- (1.44 KiB) Downloaded 118 times
-
- tooltip#1.png (45.58 KiB) Viewed 2406 times
-
- tooltip#2.png (29.73 KiB) Viewed 2406 times
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
How about ? It is working, so if you want a diff now, write and I'll post it
I still need help with the rail construction. About bug from picture tooltip#1, it is TT bug with strings. Sometimes strings are not updated and you can see letters' remains scattered on the ground
About tooltip#2, that's what I'm currently wondering about. Slope height is equal to height at the base of the slope. For example, if you measure height and go uphill, OTTD won't see height difference.
However, if you want to make a slope fondation, which will level the land, OTTD will think it is 50 meters below.
All I can do, and I think I should do it, is to check the slope heading and modify displayed height difference.
Code: Select all
if (_shift_pressed || _patches.always_measure_tool) {
I still need help with the rail construction. About bug from picture tooltip#1, it is TT bug with strings. Sometimes strings are not updated and you can see letters' remains scattered on the ground
About tooltip#2, that's what I'm currently wondering about. Slope height is equal to height at the base of the slope. For example, if you measure height and go uphill, OTTD won't see height difference.
However, if you want to make a slope fondation, which will level the land, OTTD will think it is 50 meters below.
All I can do, and I think I should do it, is to check the slope heading and modify displayed height difference.
Last edited by MeusH on 13 Nov 2005 13:29, edited 1 time in total.
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
That sounds better! You can always send the diffs to my email addres ( ronald {AT} webfreakz {DOT} nl ) and i'll try to respond to it asap!MeusH wrote:How aboutI still need help with the rail construction. If you want a diff now, write and I'll post itCode: Select all
if (_shift_pressed || _patches.always_measure_tool) {
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
I'll post all diffs here, just check this thread. I'll take care of fixing values on slopes and post next diff when I fix slopes or rail constructionwebfreakz.nl wrote:That sounds better! You can always send the diffs to my email addres ( ronald {AT} webfreakz {DOT} nl ) and i'll try to respond to it asap!MeusH wrote:How aboutI still need help with the rail construction. If you want a diff now, write and I'll post itCode: Select all
if (_shift_pressed || _patches.always_measure_tool) {
- Attachments
-
- tooltip5_r3165.patch
- The switch you're looking for is in "construction" tab
- (13.42 KiB) Downloaded 90 times
webfreakz.nl, this one will fix some errors regarding height at slopes. But not all. Please test it.
- Attachments
-
- tooltip6_r3165.patch
- (13.84 KiB) Downloaded 115 times
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
what about pressing the Shift button before building?mr.adam wrote:You could also write the estimated cost for these things. It would be very helpful to calculate expenditures when working with not too much money...
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
I'm not sure about the query cost, since:
* It's easy to press shift and then repeat the procedure
* Functions I'm working on have nothing to do with type of construction (is it rail? road? station? tree planter tool?)
I may do some research on query cost later, first I'll work on finishing the current measurment patch.
* It's easy to press shift and then repeat the procedure
* Functions I'm working on have nothing to do with type of construction (is it rail? road? station? tree planter tool?)
I may do some research on query cost later, first I'll work on finishing the current measurment patch.
Who is online
Users browsing this forum: No registered users and 4 guests