The International Simutrans Forum
July 03, 2008, 08:01:04 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Groups Tags Login Register  
Pages: 1 |   Go Down
  Print  
Author Topic: TileCutter 0.3d.1  (Read 6005 times)
0 Members and 1 Guest are viewing this topic.
Timothy
Member
*
*
*
*
*
Offline

Gender: Male
Posts: 2132


pak64 - every pixel counts


WWW
« on: January 23, 2007, 01:05:17 PM »

TileCutter banner, small size

TileCutter v.0.3d.1

For helpful information on using TileCutter, please see its page on the Simutrans Wiki.

Download:
>> TileCutter-v0.3d.zip << - 0.3d Main package
>> TileCutter-v0.3d.1-Binary.zip << - 0.3d.1 Binary

(You need to download both the above things, then replace TileCutter.exe in the 0.3d package with the TileCutter.exe from the 0.3d.1 zip. This is to save you having to re-download a 7meg zip file Thumb up)

This version brings some new features and fixes a couple of bugs I noticed while working on them. Hopefully now the translation system ought to work fairly well (new format for the translation files though, template is attached). The plan is to use SimuTranslator for the translation. This also brings updates pertaining to climates (winter buildings will be in the next release hopefully). There will likely be one more 0.3x series release to finalise translation, add makeobj integration and add winter building support, then I'm going to work on re-coding much of it so I can add all the cool features I want to... That may well take a while, so if you have found any bugs that aren't fixed please tell me so I can fix them before the re-code Thumb up

New in 0.3d.1:
FIX: Bug in cutting routine moving everything down by one pixel
FIX: Monuments/Curiosities improperly handled in dat output (GUI still a little buggy here, but will fix that in the next major release)

New in 0.3d:
ADD: Export dat file only option added to menu
ADD: Can move cutting mask in paksize increments (use "Fine" control to switch back to pixel-increments)
ADD: Support for "needs_ground" flag
ADD: Can define climates building will appear in
FIX: Input/Output goods for factories now saved correctly
FIX: Level info indicator now translatable
CHANGE: Translation now done via more Simutrans-like system, hopefully compatible with SimuTranslator
ADD: Auto-translation string finding script (TileCutterTranslator) to simplify work of maintaining the base translation file
FIX: Disabled Makeobj-related things (for now)

For more information about that this does, see this thread.

Please post bug reports for this version in this thread! I'm sure it's full of bugs, so please do tell me about them so I can fix them!

* TileCutter-v0.3d.zip (7672.09 KB - downloaded 2001 times.)
* tc-xx.tab (4.9 KB - downloaded 215 times.)
* TileCutter-v0.3d.1-Binary.zip (53.02 KB - downloaded 652 times.)
« Last Edit: February 07, 2007, 06:33:43 AM by Timothy » Logged

mobo
Member
*
*
*
*
Offline

Gender: Male
Posts: 489



« Reply #1 on: January 30, 2007, 02:53:55 PM »

Hi Timothy!

I recently downloaded your tilecutter v0.3. I didn't need it before but now that i'm working on some 2x2 parks it would be very handy for me. But i encountered some problems:

png things

1. It cut one line of pixels off at the bottom and aligned the rest 1 px lower (so threre was one line missing at the top). I tried using the offset buttons but i couldn't push the source pic up only down

2. It created some colorful line at the top of the png

dat things

3. it created wrong image paths in the dat: "BackImage[0][0][0][0][0]=..\tc\tilecutter\TileCutter-v0.0.0"

4. the parameter "build_time=x" can only be set for mon but not for cur buildings (should be the other way, there are no out of city monuments i think). In fact this determines whether the pak gets built in a city when population="x" or somewhere outside the city when it's omitted. That's how it used to work, maybe this has changed now that"location=" is available, but setting my park to "location=city" didn't work as one would expect, it still appeared in the countryside.

Number 1 is my actual problem. Hope it's not just a user-fault, but i didn't find out how to avoid/use properly.

Attachments are: dino is source png, dino2tc is the result i got from tilecutter, and dino2 is how it should have looked (selfmade)


* dino.png (10.43 KB, 128x128 - viewed 2241 times.)

* dino2tc.png (12.85 KB, 128x128 - viewed 2204 times.)

* dino2.png (10.87 KB, 128x128 - viewed 2187 times.)
Logged

Life will find a way.
kierongreen
Member
*
*
*
Offline

Gender: Male
Posts: 1535


« Reply #2 on: January 30, 2007, 03:03:13 PM »

Points 1 and 2 sound linked to me - colourful line is most likely random data because there is no source image at this point, due to it being 1 pixel down.
Logged
mobo
Member
*
*
*
*
Offline

Gender: Male
Posts: 489



« Reply #3 on: January 30, 2007, 03:12:08 PM »

Hm, might be. But since the whole workspace is in blue (231,255,255 - transparent color) i would expect that missing parts get filled up with that.

But i don't really know.
Logged

Life will find a way.
Timothy
Member
*
*
*
*
*
Offline

Gender: Male
Posts: 2132


pak64 - every pixel counts


WWW
« Reply #4 on: January 30, 2007, 03:31:55 PM »

Thankyou for your report mobo, I'll look into this, the coloured line is indeed most likely caused by it trying to copy the image from a place it shouldn't be (has been reported before, but is quite a sporadic bug...) The other things shouldn't be too hard to fix, watch this space...
Logged

Timothy
Member
*
*
*
*
*
Offline

Gender: Male
Posts: 2132


pak64 - every pixel counts


WWW
« Reply #5 on: February 03, 2007, 06:06:39 AM »


1. It cut one line of pixels off at the bottom and aligned the rest 1 px lower (so threre was one line missing at the top). I tried using the offset buttons but i couldn't push the source pic up only down


This is now fixed, was caused by a rogue -1 which shouldn't really have been there at all, I'm surprised I didn't spot that before.


2. It created some colorful line at the top of the png


Related to the above bug, shouldn't happen anymore now.


3. it created wrong image paths in the dat: "BackImage[0][0][0][0][0]=..\tc\tilecutter\TileCutter-v0.0.0"

4. the parameter "build_time=x" can only be set for mon but not for cur buildings (should be the other way, there are no out of city monuments i think). In fact this determines whether the pak gets built in a city when population="x" or somewhere outside the city when it's omitted. That's how it used to work, maybe this has changed now that"location=" is available, but setting my park to "location=city" didn't work as one would expect, it still appeared in the countryside.


For the .dat bug, could you give me some more information (where the png and dat were being outputted and the full dat file it outputted).

Only city curiosities should be able to set the build_time flag, but you are right this needs updating. Will also be fixed in the next minor release.
Posted on: February 03, 2007, 11:45:04 AM
New version is up, see the first post!
Logged

mobo
Member
*
*
*
*
Offline

Gender: Male
Posts: 489



« Reply #6 on: February 13, 2007, 02:30:24 PM »



For the .dat bug, could you give me some more information (where the png and dat were being outputted and the full dat file it outputted).


Posted on: February 03, 2007, 11:45:04 AM
New version is up, see the first post!


Well... I got a folder C:\simusources with a subfolder "park" there the dats and pngs were saved. The programme itself is in c:\simusources\tc\+ some subfolder that was created when extracting (you can see it 9in the wrong img line, the folder had a . (dot) in it's name. The last part behind the dot was replaced by the row and coloumn index (so it was treted like the png extension).

Hope this helps
Logged

Life will find a way.
Timothy
Member
*
*
*
*
*
Offline

Gender: Male
Posts: 2132


pak64 - every pixel counts


WWW
« Reply #7 on: February 13, 2007, 04:57:15 PM »

Hmm, probably caused by the routine for finding relative paths between files messing up with a directory that has a "." in it, will be fixed in the forthcoming 0.4 release most likely as I'll be re-writing that (rather shoddy) part of the code to make it easier to port to other platforms.

Incidentally, here's a screenshot of the development thus far... Thumb up


* tilecutter_v0.4_sc1.png (39.14 KB, 700x600 - viewed 363 times.)
Logged

prissi
Member
*
*
*
*
*
*
*
*
Offline

Gender: Male
Posts: 5052



WWW
« Reply #8 on: April 09, 2007, 01:35:29 PM »

It would be great, if there is a button "cut" which just cut the image. I did not suceed in cutting an image Sad
Logged
Timothy
Member
*
*
*
*
*
Offline

Gender: Male
Posts: 2132


pak64 - every pixel counts


WWW
« Reply #9 on: April 09, 2007, 05:01:49 PM »

You need to use the "export" option from the menu to output the cut image, adding a button to do this would definitely be simpler though.
Logged

prissi
Member
*
*
*
*
*
*
*
*
Offline

Gender: Male
Posts: 5052



WWW
« Reply #10 on: April 10, 2007, 05:43:01 AM »

Well, do I need to make a dat too, even if I just want a cut? Because both export stuff did not generate anything respective was greyed out. (There wasn't so much options, that I did not tried them all.)
Logged
mobo
Member
*
*
*
*
Offline

Gender: Male
Posts: 489



« Reply #11 on: April 10, 2007, 05:51:01 AM »

You need to define the export files and paths first, below the image area, then you can export dat and png or only png(cut).

Maybe that's the problem?!
Logged

Life will find a way.
Ozone
Member
*
Offline

Gender: Male
Posts: 23


Who likes my blender-made avatar? PM me!


« Reply #12 on: May 14, 2007, 02:33:33 AM »

huh? I use  Linux exclaim What could I do?
Posted on: May 14, 2007, 09:32:16 AM
Ok, forget it!
I've found it redface
Logged

"Se qualcosa può andar male, lo farà!"
1° legge di Murphy
---------------------------------------------
"If something could go bad, it will!"
1st Murphy's law
Tomas
Member
*
Offline

Gender: Male
Posts: 205



WWW
« Reply #13 on: June 04, 2008, 10:15:20 AM »

Version 0.4 looks good! When you release this version question
Logged

This message can't contain virus, but i using Linux Wink
If you can drink and drive, I can smoke and fly.
Timothy
Member
*
*
*
*
*
Offline

Gender: Male
Posts: 2132


pak64 - every pixel counts


WWW
« Reply #14 on: June 04, 2008, 05:34:24 PM »

Soon, though it's version 5 now, should be ready in a week or two now.
Logged

ayuroom
Member
*
*
Offline

Posts: 81

Hasn't Customized Profile Yet


« Reply #15 on: June 25, 2008, 12:04:57 AM »

Soon, though it's version 5 now, should be ready in a week or two now.

What a long wait...one and a half year!! Huh
Logged
Tags:
Pages: 1 |   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!