Creating a new Tile

Sep 22, 2011 at 5:51 PM

Hi !

I'm having a problem when creating a tile sheet. After clicking apply at the creating popup, my mouse icon changes to "reading" (the blue ball turning on itself) and I can't use or save my tile.

What can be happening ?

 

Hope I've been clear enough !

 

Thanks

Coordinator
Sep 23, 2011 at 9:02 AM

Can you still use the application after it happens, or does it freeze up?

Sep 23, 2011 at 11:45 AM

I can, but the tile is never created. And the program gets extremely slow !

 

Any idea how to fix this ?

 

I'm using Win7 Prof. 32bits !

 

Thank you !

Coordinator
Sep 23, 2011 at 1:14 PM

Could you send over the tile sheet image and map you are using? Perhaps I can replicate the problem and figure out a solution.

Sep 23, 2011 at 2:25 PM

The map is the one in the example (Map01).

http://www.mediafire.com/?jjijjwco7ta2wb7

 

And also, if click auto detect, I get this errors: 

 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at tIDE.Dialogs.TileSheetPropertiesDialog.ComputeLineMean(Single[,] image, Int32 start, Boolean horizontal)
   at tIDE.Dialogs.TileSheetPropertiesDialog.EstimateLinePeriod(Single[,] image, Int32 start, Boolean horizontal)
   at tIDE.Dialogs.TileSheetPropertiesDialog.OnAutoDetect(Object sender, EventArgs eventArgs)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
tIDE
    Assembly Version: 2.0.4.0
    Win32 Version: 2.0.4.0
    CodeBase: file:///C:/Program%20Files/tIDE/tIDE.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
xTile
    Assembly Version: 2.0.4.0
    Win32 Version: 2.0.4.0
    CodeBase: file:///C:/Program%20Files/tIDE/xTile.DLL
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
tIDE.Plugin
    Assembly Version: 2.0.4.0
    Win32 Version: 2.0.4.0
    CodeBase: file:///C:/Program%20Files/tIDE/tIDE.Plugin.DLL
----------------------------------------
lv1yvcu1
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:


    


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 

Thanks for helping me !

Coordinator
Sep 23, 2011 at 3:12 PM

If you're trying to change the source image of one of the tilesheets of an existing map, you need to make sure that the tile size matches exactly and that it contains at least as many tiles as the old sheet. Otherwise, the layers in the map may end up containing tiles (by index) that are not in the new tile sheet.

If you really want to work with the Map01.tide file, I suggest you make a copy of the current tilesheet images and work on those.

 

Also autodetect is still a bit flaky, and I don't think it will work well with the SMW sprite sheet anyway. It is probably better to set up your tile sizes, margins and paddings manually.

Sep 23, 2011 at 7:14 PM
colinvella wrote:

If you're trying to change the source image of one of the tilesheets of an existing map, you need to make sure that the tile size matches exactly and that it contains at least as many tiles as the old sheet. Otherwise, the layers in the map may end up containing tiles (by index) that are not in the new tile sheet.

I didn't get that part "you need to make sure that the tile size matches exactly and that it contains at least as many tiles as the old sheet". What u mean by that ?

"If you really want to work with the Map01.tide file, I suggest you make a copy of the current tilesheet images and work on those." Which images ?? Why should I make a copy ?

 

Thanks and sorry for my misunderstandings.

Sep 28, 2011 at 7:00 PM

Could you help ?

Thanks !

Coordinator
Sep 28, 2011 at 7:35 PM

I think the best way for you to learn how to use the editor is to start from scratch. Start by drawing or getting an image with tiles on it (a tilesheet or tileset image, usually a PNG or BMP). For example like this one., which has 16x16 pixel tiles separated by one pixel (1x1). Create a new empty map, then create a tile sheet and set the image source to point to your image (click Browse and find it). Then set the tile size (e.g. 16x16), padding (e.g. 1x1) and margin (e.g. 0x0). After you create the tile sheet, create a layer and set it's tile size to match (16x16 pixels in the example). Then just place around the tiles.

Good luck! 

Sep 28, 2011 at 9:17 PM

I'll give it a shot !

 

Thanks Colin for the help !