Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

News:
->Button: Bulldoze before rebuild? If enabled, non-vacant-Terrain is bulldozed before paste. if disabled, it is not.
-> Mirror: Horzontal + Vertical.

Mirror works fine, after implementing it, i noticed a problem with mirroring.
The signal directions are mirrored too. (Look at the image)
This is how it is supposed to work, but unsuitable for mirroring a junction, because the mainline-directions are switched too.

What to do now?
-Should the directions stay the same?
-Should it work how it is supposed to?
-Make this optional? (Yes, another button for the evergrowing army of the Widgets)

Note: Mirror-Icons are just placeholders atm...
Attachments
Take a look at the signal directions.
Take a look at the signal directions.
copypaste.png (56.09 KiB) Viewed 4502 times
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

:shock:
maybe have a reverse signals button?
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

A reverse signals button could be the solution, but think of KISS (Keep It Simple and Smart).

Here is an idea for the mirror icons and maybe some button sorting. Just keep it clearly arranged. :)
Attachments
newbutton.png
newbutton.png (2.3 KiB) Viewed 4465 times
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

News:
-> Bug fixed: signal storelocation has to be mirrored/rotated too.
Affected only tiles with 2 signals on it.

-> Button: Switch Signal direction when pasting. (Auto-Toggled, when Mirror is used)
If enabled, signal directions are switched before pasting. (Does not modify the copied content)

@skidd13: I used your mirror icons ;)
The icon arrangement will be changed, when all buttons are implemented.

Since new buttons arrived, you have to get the newest copypaste.grf too.
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

Compile was successfull but game won't start 8o
- used revision 5240
- replaced grf
- OS: Linux

Code: Select all

openttd: gfxinit.c:367: LoadSpriteTables: Assertion `load_index == SPR_2CCMAP_BASE' failed.
@Frostregen:
Frostregen wrote: @skidd13: I used your mirror icons ;)
The icon arrangement will be changed, when all buttons are implemented.
OK :wink:
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

Hrm seems like no matter how I compile, those assertion failures won't show up :(

The assertion failure was indeed correct. ->fixed

Thx for reporting :)

EDIT: Just discovered "auto-disable asserts for release versions" within the makefile. doh ;)
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post by gkirilov »

Frostregen, is it possible to update your first post with the latest version of your patch in stead of posting new files.
(easier to track and doesn't take so much space on the forum).
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly
Image
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.
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

Should be no problem. (I deleted the old files regularly to save space already)
With the next version I'll move it to the first post.
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

How far is the rail conversion atm?

Here is an idea to prevent an extra button for this in the copy-past widget. The copied are will be pasted in the selected rail-type. But then there is the need of one button in each rail-widget.
Attachments
convertrails.png
convertrails.png (52.43 KiB) Viewed 4206 times
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

Good idea.
The buttons in every rail-toolbar are not needed.

I will add a "convert rail to last used railtype" button to the copy&paste menu.
This should do it.
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

is the button with the picture of a signal used for trigger the copy of the signals or to trigger the mirroring of signals when you mirror the selection?

in the second case, i suggest to add something like a mirror or an arrow to make the behaviour more comprensible
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

If you press this button it changes to <see image>

My first idea was to make the first state like the second, but with both signals facing in the same direction. But I thought the difference was to small to notice properly.

The buttons for copying specific items will be reduced to:
-Road
-Rail
-"Only your own items"

I don't see any use for copying rails without signals, or a junction without bridges and tunnels.
But maybe you have some ideas which actually make use of those features.
Attachments
cp.png
cp.png (2.3 KiB) Viewed 4205 times
Last edited by Frostregen on 14 Jun 2006 18:21, edited 1 time in total.
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

maybe a single signal with an arrow like the turn selection is better
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

I could imagine this too ;)

I'll work on it.

Btw, is there a correct palette file for photoshop somewhere?
The one I have found in the forums is not very accurate.
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

Wolf01 wrote:maybe a single signal with an arrow like the turn selection is better
I made some possible solutions. 8)
-----------------
| 1 | 3 | 5 | 7 |
-----------------
| 2 | 4 | 6 | 8 |
-----------------
1 and 2 are the original icons.
3 and 4 are possible replacements.
The other icons are only a possible replacement for the reverse signals icon.
Frostregen wrote:Btw, is there a correct palette file for photoshop somewhere?
I could offer you one for GIMP, but not for Photoshop. :lol:
Attachments
newsignals.png
newsignals.png (2.12 KiB) Viewed 4152 times
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

Ok I'll take the gimp palette, and give the gimp another try (since photoshop sucks in some areas)

It would save me some effort if you upload your suggestions directly as pcx. (With colors from the openTTD palette used.)

I would vote for no. 6 ;)

EDIT: I extracted the palette from trg1r.grf.
Now I can copy your icons without any index problems. (You don't need to post images as pcx, as mentioned above)
It took a while to find out how to exchange the palette(Colortable) in Gimp ;)
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

Frostregen wrote:Ok I'll take the gimp palette, and give the gimp another try
Here it is

Edit: attachment removed
Last edited by skidd13 on 15 Jun 2006 16:28, edited 1 time in total.
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

i like the 1 in the top right corner :P
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

Thx for the palette.
But some questions: why there is a black to white color ramp from index 1 to about 15? Ingame it turns out pink.
Is there a document which states the special meaning of some the colors? (like the blinking red/black yellow/black)


Hmm, the one in the top right corner is nice too.
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

Frostregen wrote:But some questions: why there is a black to white color ramp from index 1 to about 15? Ingame it turns out pink.
Is there a document which states the special meaning of some the colors? (like the blinking red/black yellow/black)
Sorry something in the palette file was wrong! ?( :oops: New file attached!

I prefer Nr. 7 too.

@Frostregen
Btw, is there a need of linux binaries?
Attachments
openttd.gpl.txt
remove the .txt extension
(5.29 KiB) Downloaded 230 times
Last edited by skidd13 on 15 Jun 2006 16:44, edited 2 times in total.
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests