The International Simutrans Forum

 

Author Topic: TileCutter 0.5.5 Beta Release  (Read 13632 times)

0 Members and 1 Guest are viewing this topic.

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
TileCutter 0.5.5 Beta Release
« on: March 05, 2010, 06:24:38 PM »
There is a newer release of TileCutter available, see: http://forum.simutrans.com/index.php?topic=6962.0

This is a beta release of the new TileCutter.

If you do encounter any issues while using TileCutter please submit a bug report by posting in reply to this thread with the following information:

1. Circumstances and description of the issue
2. tilecutter.log and TileCutter5.exe.log (if present)
3. Copy of the tc.config file


Changes 0.5.5 (beta):

ADD: Proper selection of path to makeobj via GUI
ADD: Command line scriptability:
Specify path to multiple .tcp files for automatic processing
Override output location of .dat/.png
Specify .pak output if required
Usage: "TileCutter5 -h" will give command line usage info
ADD: Ability to select .dat file output via UI checkbox
FIX: Selecting a file at the root of a drive on Windows leads to wrong path display
ADD: Basic documentation now available on website (via Online Help link in menu)

Known Bugs
- Panel display bug when choosing different languages, workaround is to resize the window, which appears to fix this


What's new
Command Line interface for scripting
Ability to disable .dat file output
Online documentation
UI Improvements

What's still to do
Specific platform source distribution via .zip/.tar.gz file
Lots of testing
Full dat file editor
Smoke editor
Mac distribution
Windows msi installer

Notes

Please see here for TileCutter documentation

All the paths in the main window are relative to the project save location path. This is intended to allow you to put all your work files in one directory, and then to be able to move or zip that directory and send it to someone else while preserving all the links to the images. Also note that the images are not saved with the project file, only links to them are (this may change at some point).

It's also worth pointing out that in order for the one click exporting to work (e.g. makeobj integration) you need to have filled out the correct details in the dat editing window. Currently this is just a text entry box, but this will change in future to a proper dat editing UI. The image array information is automatically generated and appended to whatever you type into this box.

Download
You can download this beta release of TileCutter from the following link:

TileCutter_win_0.5.5-beta.zip (5.4 MB)

You can also download a source distribution:

TileCutter_src_0.5.5-beta.zip (232 KB)

NOTE: The source distribution requires that you have Python 2.6 or better installed already, and depends upon the wxWidgets library.

And you can check out the source for this release from the SVN, using this URL:

svn://entropy.me.uk/timothy/tilecutter/tags/0.5.5/

And the current latest version from this one:

svn://entropy.me.uk/timothy/tilecutter/trunk/

I recommend upgrading to this version over all previous versions of TileCutter, especially the 0.3 branch.
« Last Edit: March 01, 2011, 10:48:04 PM by Timothy »

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: TileCutter 0.5.5 Beta Release
« Reply #1 on: March 05, 2010, 06:26:21 PM »
Is the documentation available offline, let's say in txt, rtf or html format?

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #2 on: March 05, 2010, 06:31:14 PM »
Is the documentation available offline, let's say in txt, rtf or html format?

Sure, right-click, save page as :)

I'll probably include it with the application in a future version though.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2908
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: TileCutter 0.5.5 Beta Release
« Reply #3 on: August 12, 2010, 04:51:48 PM »
Hey Timothy I can't open Tilecutter, It don't even shows anything.
I looked at ProceXP (It's a cool Task Manager) and it runs but is killed at same time
I've tried downloading version 0.5.4 but no results
I'm using Win7 Professional also i've attached the log

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3664
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: TileCutter 0.5.5 Beta Release
« Reply #4 on: August 12, 2010, 11:09:18 PM »
Which version of Python do you have installed? Did you install the wxWidgets?

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #5 on: August 13, 2010, 07:27:02 AM »
Hey Timothy I can't open Tilecutter, It don't even shows anything.
I looked at ProceXP (It's a cool Task Manager) and it runs but is killed at same time
I've tried downloading version 0.5.4 but no results
I'm using Win7 Professional also i've attached the log

Hello An_dz, may I ask what operating system you are using? Also what do you have the language options set to? From the log this looks like an error to do with decoding one of the language files, I'll have to investigate.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2908
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: TileCutter 0.5.5 Beta Release
« Reply #6 on: August 13, 2010, 05:15:34 PM »
Hello An_dz, may I ask what operating system you are using? Also what do you have the language options set to? From the log this looks like an error to do with decoding one of the language files, I'll have to investigate.
I'm using Windows 7 Professional and it's in Brazilian Portuguese language(my OS not TC).
Tilecutter configs are all set as default, I didn't changed it, so I think it's in English US.
In tc.config file there's a line like that: "default_language": "english_translation", if you wanna take a look it's attached!

EDIT:I've tried using it with XP mode but same error happens, the log is also the same, the only difference is that an message box appear saying something like: the initialization of the program failed caused by a incorrect configuration. Reinstalling the program may help.
Also I want to ask if .NET framework or VB files are needed or something like that? Just like Simustarter, I remembered that it requires VB5 files to be run

Which version of Python do you have installed? Did you install the wxWidgets?
I have Python 2.6.5 installed and yes, i've tried installing wxWidgets version 2.8.11.0(course the Python2.6 compatible).
« Last Edit: August 13, 2010, 07:17:00 PM by An_dz »

Offline Milko

  • Devotee
  • *
  • Posts: 829
Re: TileCutter 0.5.5 Beta Release
« Reply #7 on: February 19, 2011, 04:08:29 PM »
Hi

On WinXP executing tilecutter5.exe (last version), ad-aware quarantine the file. Adware tell me that tilecutter5 is infected by FraudTool.Win32.RogueSecurity. The file it's ok?

Giuseppe

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #8 on: February 19, 2011, 05:41:03 PM »
Where did you download it from?

Offline Milko

  • Devotee
  • *
  • Posts: 829
Re: TileCutter 0.5.5 Beta Release
« Reply #9 on: February 19, 2011, 07:22:18 PM »
Hi

I downloaded from http://entropy.me.uk/tilecutter/download/TileCutter_win_0.5.5-beta.zip (your link 5.4Mb...)

Giuseppe

Offline Václav

  • Devotee
  • *
  • Posts: 3272
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: TileCutter 0.5.5 Beta Release
« Reply #10 on: February 19, 2011, 08:01:00 PM »
I don't know why my previous post disappeared, so I repeat it - I have the same problem like An_dz: TileCutter is started but it is ended immidiately after start - without displaying of anything.

In attachment is ready zip file with both files.

WinXP

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #11 on: February 19, 2011, 10:41:40 PM »
Looks like some kind of error decoding one of the language packs. I'll have to look into it.

Hi

I downloaded from http://entropy.me.uk/tilecutter/download/TileCutter_win_0.5.5-beta.zip (your link 5.4Mb...)

Giuseppe

That download doesn't contain any virus. It's either a false alarm or something on your computer which has corrupted the download. Antivirus software can flag up false positives (sometimes quite often).

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2908
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: TileCutter 0.5.5 Beta Release
« Reply #12 on: February 20, 2011, 02:00:26 PM »
On WinXP executing tilecutter5.exe (last version), ad-aware quarantine the file. Adware tell me that tilecutter5 is infected by FraudTool.Win32.RogueSecurity. The file it's ok?
It's false positive, I've tested with Norton and Mcafee and both said it was clean.

Offline IgorEliezer br

  • Devotee
  • Administrator
  • *
  • Posts: 4088
  • Cake recipes are cool... REALLY!
    • Igor Eliezer Architect and Urban Planner/Arquiteto e Urbanista
  • Languages: PT, EN, AutoLISP, Python
Re: TileCutter 0.5.5 Beta Release
« Reply #13 on: February 21, 2011, 02:32:02 PM »
Just saying: the translation package I download from Simutranslator is unsupported by TileCutter.

I'm forced to open the translation package (**.tab), copy the translation lines, then I open tc_**.tab, and paste into there. Partially working, but still works. :/

Offline Václav

  • Devotee
  • *
  • Posts: 3272
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: TileCutter 0.5.5 Beta Release
« Reply #14 on: February 21, 2011, 03:04:45 PM »
Quite confused - tc_(cz by me).tab is clear to me - but which translation packages? One downloaded from SimuTranslator? I have done it - but less result.

So, in attachment is ready tilecutter.exe.log.

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #15 on: February 21, 2011, 03:56:03 PM »
Can you try running the pre-compiled version (TileCutter5.exe) here:

http://entropy.me.uk/tilecutter/download/TileCutter_win_0.5.5-beta.zip

I have a suspicion that this might be a Python issue to do with Unicode handling and want to confirm whether this works using the version which was used to build this executable.

VaclavMacurek - can you show me the tilecutter.log as well?

Offline Václav

  • Devotee
  • *
  • Posts: 3272
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: TileCutter 0.5.5 Beta Release
« Reply #16 on: February 21, 2011, 04:46:20 PM »
Of course. I hope it will be useful.

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #17 on: February 21, 2011, 05:41:56 PM »
Right I think I know the issue, it's a problem with handling of unicode. I'll post up a new version to test soon.

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #18 on: February 21, 2011, 10:09:22 PM »
Just saying: the translation package I download from Simutranslator is unsupported by TileCutter.

I'm forced to open the translation package (**.tab), copy the translation lines, then I open tc_**.tab, and paste into there. Partially working, but still works. :/

For some odd reason the translator website seems to produce duplicate translation files for some languages (e.g. en.tab and tc_en.tab). The former isn't UTF-8 encoded and so won't be accepted by the application. All input files for TileCutter must be UTF-8 encoded so do check this.

Offline Václav

  • Devotee
  • *
  • Posts: 3272
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: TileCutter 0.5.5 Beta Release
« Reply #19 on: February 22, 2011, 02:02:52 PM »
For some odd reason the translator website seems to produce duplicate translation files for some languages (e.g. en.tab and tc_en.tab). The former isn't UTF-8 encoded and so won't be accepted by the application. All input files for TileCutter must be UTF-8 encoded so do check this.
So, I (for special purpose of test) deleted almost all translation files - and let be only tc_cz.tab and tc_en.tab. I looked inside and saw that both are coded as UTF-8. But result is still the same.

But I have found also special file in laguages dir with name tc_en.tab~. I would like purpose of being of this file.

And what is important, in original tc_??.tab files (as they are in downloaded package) translated text is on even lines, not on odd lines - what is different from tab files for Simutrans, itself - and files for TileCutter generated by SimuTranslator.

And of course, I also would like to know purpose of this line
Code: [Select]
#{"name": "Czech", "name_translated": "Česky", "language_code": "cz", "created_by": "SimuTranslator", "created_date": "09-02-2010"}

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #20 on: February 22, 2011, 02:10:00 PM »
This has changed a little in the version I'm about to post up.

And of course, I also would like to know purpose of this line
Code: [Select]
#{"name": "Czech", "name_translated": "Česky", "language_code": "cz", "created_by": "SimuTranslator", "created_date": "09-02-2010"}

In 0.5.5 the first line should contain a JSON-formatted dict with those variables which is read by a pre-processor within TileCutter's language module. This gives information about the translation file.

"tc_en.tab~" is a temporary file, sometimes created by text editors. TileCutter only reads in translations with the .tab extension so that file should be ignored.

Odd verses even lines only comes into effect after the comments have been stripped - it should be key, newline, value, newline etc.


Edit:

New version (0.5.6) now available which should fix these issues. Please test.

Offline Václav

  • Devotee
  • *
  • Posts: 3272
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: TileCutter 0.5.5 Beta Release
« Reply #21 on: February 22, 2011, 02:26:18 PM »
Thanks. So it is irrelevant that translated text is on even line, not odd line - what is different from Simutrans where translated text has to be on odd line.

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: TileCutter 0.5.5 Beta Release
« Reply #22 on: February 22, 2011, 02:28:53 PM »
Well, translated text does have to be on even lines (e.g. line 2, line 4, line 6 etc.) but that only applies once you have stripped all comments (lines starting with #) out.