Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005953opensim[REGION] OpenSim Corepublic2012-04-01 19:262012-08-02 23:47
ReporterGarmin Kawaguichi 
Assigned Tomelanie 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0005953: [PATCH] concerns terrain save-tile; only PNG extension should be accepted
DescriptionIn the extended help of the terrain command "terrain save-tile", the file formats accepted are: .r32 (RAW32), .f32 (RAW32), .ter (Terragen), .raw (LL/SL RAW), .jpg (JPEG), .jpeg (JPEG), .bmp (BMP), .png (PNG), .gif (GIF), .tif (TIFF), .tiff (TIFF)

But are implemented: .bmp (BMP), .png (PNG), .gif (GIF), .tif (TIFF), .tiff (TIFF)

After analyzing the headers of these files, it appears that only the file with .PNG is generated correctly, the others are fake (more accurately the internal format are all PNG contrary to what is the extension).

Tests were made to save images with the same process as the command "terrain save", the results are negative (in some cases we can not add more tiles, in others the results are unpredictable (which is doubt on the quality of land saved with "save terrain").

WARNING! All tests were done only with MS Windows Vista, Net Framework 4. To generalize what has been said above, it would be necessary to experiment with other operating systems. [CPU: Intel Core 2 Series Processor (1999 MHz), Memory: 3327 MB, OS Version: Microsoft Windows Vista Service Pack 2 (Build 6002)]
Additional InformationA patch is provided according to the indications of Justin (see Mantis 0005946)

Note: This is not an April Fools 8-:)
TagsNo tags attached.
Git Revision or version number6e7f13a
Run Mode Standalone (Multiple Regions)
Physics EngineODE
Environment.NET / Windows32
Mono VersionNone
Viewer---
Attached Filespatch file icon 0003-terrain-save-tile-extensions.patch [^] (11,016 bytes) 2012-04-03 15:06 [Show Content]

- Relationships

-  Notes
(0021181)
kcozens (manager)
2012-04-01 23:47

Would it make more sense to attempt to fix the saving of tiles in other formats first before removing all but one(?) format?
(0021182)
melanie (administrator)
2012-04-01 23:51

The patch has line ending issues. Only patches with UNIX line endings can be accepted.

-1 in this form.
(0021183)
melanie (administrator)
2012-04-01 23:51

Please post proper patch or close issue.
(0021184)
Garmin Kawaguichi (reporter)
2012-04-02 09:12

@kcozens: The formats have not been removed permanently; as stated in the description I tried to run other formats without positive result (the way the command save-tile works, requires an image format that supports transparency, this eliminating half of formats; for other formats only PNG provides a true file).
The patch provides a simple way to display the list of accepted formats (currently PNG); if another format is made ??operational, there is just a "false" to change to "true" in the corresponding loader.
(0021185)
Garmin Kawaguichi (reporter)
2012-04-02 09:22

@melanie: I compiled OpenSimulator with MS C # 2008 Express and I used Git-gui to commit and Git-bash to generate the patch. For this patch, as in the previous (0005934), I have no means of influencing the structure of the lines.
But indeed I note that this patch is weird and it shows entire files and not only changes to files.
I will redo the job but using a text editor to edit files.
(0021186)
Garmin Kawaguichi (reporter)
2012-04-02 11:22
edited on: 2012-04-02 21:09

A new patch file was added: 0002-terrain-save-tile-only-PNG-extension-should-be-accep.patch
Ignore the previous patch: 0001-terrain save-tile only PNG extension should be accepted.patch

I have not found how to remove the former file.

@melanie: I used a converter Windows(CR LF) to UNIX(LF only).

(0021187)
melanie (administrator)
2012-04-02 12:47

The patch is still ill-formatted.

Patches should only change the lines they pertain to - your patch still replaces an entire file. This is caused by CRLF line endings. You may need to set the "autocrlf" option on your git installation and re-clone the repository. Patches with Windows line endings cannot be applied.

Patches should not change unrelated whitespace, yours does. This is, again, caused by windows line endings.

Patches should not contain TAB (^I) characters, but all tabs must be expanded to spaces. We require 4 spaces per tab. Your patch contains hard tabs.

Patches should provide clean code written to the OpenSim coding standards. Your patch violates the coding standards by using different indentation. This may just have been a typo (one line is indented one space less than it should be).

So this patch still isn't good. Sorry.
(0021190)
Garmin Kawaguichi (reporter)
2012-04-03 15:09

A new patch file was added: 0003-terrain-save-tile-extensions.patch
Ignore the previous patches: 0001-terrain save-tile only PNG extension should be accepted.patch & 0002-terrain-save-tile-only-PNG-extension-should-be-accep.patch
(0021191)
melanie (administrator)
2012-04-03 20:20

9a9923405a95

- Issue History
Date Modified Username Field Change
2012-04-01 19:26 Garmin Kawaguichi New Issue
2012-04-01 19:28 Garmin Kawaguichi Status new => patch included
2012-04-01 19:28 Garmin Kawaguichi Steps to Reproduce Updated View Revisions
2012-04-01 19:28 Garmin Kawaguichi Additional Information Updated View Revisions
2012-04-01 19:32 Garmin Kawaguichi File Added: 0001-terrain save-tile only PNG extension should be accepted.patch
2012-04-01 23:47 kcozens Note Added: 0021181
2012-04-01 23:51 melanie Note Added: 0021182
2012-04-01 23:51 melanie Note Added: 0021183
2012-04-01 23:51 melanie Assigned To => melanie
2012-04-01 23:51 melanie Status patch included => patch feedback
2012-04-02 09:12 Garmin Kawaguichi Note Added: 0021184
2012-04-02 09:22 Garmin Kawaguichi Note Added: 0021185
2012-04-02 11:14 Garmin Kawaguichi Git Revision . => 6e7f13a
2012-04-02 11:14 Garmin Kawaguichi Description Updated View Revisions
2012-04-02 11:16 Garmin Kawaguichi File Added: 0002-terrain-save-tile-only-PNG-extension-should-be-accep.patch
2012-04-02 11:22 Garmin Kawaguichi Note Added: 0021186
2012-04-02 12:47 melanie Note Added: 0021187
2012-04-02 21:09 Garmin Kawaguichi Note Edited: 0021186 View Revisions
2012-04-03 15:06 Garmin Kawaguichi File Added: 0003-terrain-save-tile-extensions.patch
2012-04-03 15:09 Garmin Kawaguichi Note Added: 0021190
2012-04-03 19:05 melanie File Deleted: 0001-terrain save-tile only PNG extension should be accepted.patch
2012-04-03 19:05 melanie File Deleted: 0002-terrain-save-tile-only-PNG-extension-should-be-accep.patch
2012-04-03 20:20 melanie Note Added: 0021191
2012-04-03 20:20 melanie Status patch feedback => resolved
2012-04-03 20:20 melanie Resolution open => fixed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker