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

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

Post by Frostregen »

Doh, not again ;)
-fixed-
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

Another svn patch missmatch report:

Code: Select all

Hunk #1 FAILED at 167.
Hunk #2 FAILED at 406.
2 out of 2 hunks FAILED -- saving rejects to file unix.c.rej
Hunk #1 FAILED at 717.
Hunk #2 FAILED at 981.
2 out of 2 hunks FAILED -- saving rejects to file win32.c.rej
SVN 5767
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 »

New version:

-applies to trunk again. (Major changes in File-IO-System)
-FIXED: Bridges not loaded from template


updated win32 binaries + patchfile
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

Just a small question (I'm not so familliar with C)
Why do you write in variables.h

Code: Select all

...
VARDEF int8 _copy_heightmap[COPY_MAX]; //Move terrain needed into this...
...
instead of

Code: Select all

VARDEF uint8 _copy_heightmap[COPY_MAX]; //Move terrain needed into this...
The lower one let the warning dissapper while compiling with gcc-4.1 and I don't notice any differences with gameplay.
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 »

You should notice an error if some terrain is lower than the "reference tile" (the upper right edge)

This field actually describes the height difference to the reference tile,
NOT the actual heightmap.
(so negative values are valid...)

I don't get a warning.
Where exactly do you get it?
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

The warnings as they appear.
copy_paste_gui.c: In Funktion »RotateSelectionCW«:
copy_paste_gui.c:1198: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »rotate1B« unterscheiden sich im Vorzeichenbesitz
copy_paste_gui.c: In Funktion »RotateSelectionCCW«:
copy_paste_gui.c:1328: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »rotate1B« unterscheiden sich im Vorzeichenbesitz
copy_paste_gui.c: In Funktion »MirrorSelectionHorizontal«:
copy_paste_gui.c:1455: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »mirror1B« unterscheiden sich im Vorzeichenbesitz
copy_paste_gui.c: In Funktion »MirrorSelectionVertical«:
copy_paste_gui.c:1582: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »mirror1B« unterscheiden sich im Vorzeichenbesitz
They are all related with "_copy_heightmap" and the warning is about sign differeces with pointer-targets at argument #1.

Which compiler do you use?
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 »

I'll rewrite the mirror/rotateArray functions to accept generic memory pointers to remove the warnings.
(The warning is unnecessary since the array's content is just moved around, and their real values are not interpreted)

I use the compiler that came with MSys. At the moment I am away from my PC, so I can not look up the exact version.
iNVERTED
Route Supervisor
Route Supervisor
Posts: 387
Joined: 24 Apr 2005 21:21
Location: Torquay, England
Contact:

Post by iNVERTED »

Suggestion for the GUI:

1st section - main buttons (copy, paste, save, load)
2nd section - rotation + mirror
3rd section - options
Attachments
copy.PNG
copy.PNG (3.85 KiB) Viewed 11200 times
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

And another patch apply reject: ;)

Code: Select all

Hunk #1 FAILED at 48.
1 out of 4 hunks FAILED -- saving rejects to file openttd.c.rej
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 »

As always: thank you for reporting ;)

Currently I cannot reach my developement PC.
The worst case may be till 21.8., but maybe earlier.

I'll use the time for a GUI Poll.
User avatar
skidd13
OpenTTD Developer
OpenTTD Developer
Posts: 522
Joined: 03 Mar 2005 10:49
Location: Germany

Post by skidd13 »

I vote for this (posted a few time ago).
Image
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
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

i like the iNVERTED's one
User avatar
Rens2Sea
Engineer
Engineer
Posts: 109
Joined: 13 Sep 2004 10:22
Location: Holland
Contact:

Post by Rens2Sea »

Me too
ddream
Engineer
Engineer
Posts: 68
Joined: 28 May 2006 09:21
Location: 52° 13' N 21° 2' E

Post by ddream »

I vote for iNVERTED GUI, but it should be expandable.
Frostregen
Transport Coordinator
Transport Coordinator
Posts: 340
Joined: 06 Feb 2006 23:58

Post by Frostregen »

Hmm, somehow i wrote invisible instead of iNVERTED. Sorry for that.
iNVERTED
Route Supervisor
Route Supervisor
Posts: 387
Joined: 24 Apr 2005 21:21
Location: Torquay, England
Contact:

Post by iNVERTED »

ddream wrote:I vote for iNVERTED GUI, but it should be expandable.
That's easily done.

edit: Should this be moved to the Development forum? ;)
Attachments
This one?
This one?
copy3forms.PNG (6.14 KiB) Viewed 7355 times
Or this one?
Or this one?
copy4forms.PNG (10.41 KiB) Viewed 7353 times
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

i like the new one expandable ;)
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

I prefer + and - over R and S (or whatever it will be after translation).
Common symbols would be much better than uncommon abbreviations.

Btw what does S stand for? I guess R is reversing, is that right?
suit
Engineer
Engineer
Posts: 42
Joined: 22 Jul 2006 12:29
Location: Austria

Post by suit »

i guess r is for "rotation" or whatever and s for "settings" ;) but who cares ;)
iNVERTED
Route Supervisor
Route Supervisor
Posts: 387
Joined: 24 Apr 2005 21:21
Location: Torquay, England
Contact:

Post by iNVERTED »

Suit is correct ;)

wolf01: which one do you prefer out of the two I posted? the +/- or R/S?

Personally, I prefer R/S because you can choose to show the settings without the rotation, and you don't have to move the mouse between clicks (expanding or contracting the toolbar would change the position of the +/- buttons ;) )
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 6 guests