Page 1 of 1

PyDAT Problems

Posted: Mon May 18, 2009 2:39 am
by Lord_Jeremy
Hey. I'm trying to load the sprites.dat file, but whatever sprites.dat file I open I get the following error:

Code: Select all

Load Error: 'H:/Starcraft Modding/Children of Adun/files/arr/sprites.dat' is an invalid units.dat file (the file size must be 19876, but got a file with size 3229)

This happens whether I use the default file or a file from the starcraft archives.

Also when I try to "save as" the built-in sprites.dat I get the following error:

Code: Select all

Exception in Tkinter callback
Traceback (most recent call last):
  File "Tkinter.pyc", line 1410, in __call__
  File "PyDAT.pyw", line 3503, in saveas
  File "PyDAT.pyw", line 499, in saveas
  File "PyDAT.pyw", line 490, in save
  File "LibsDAT.pyc", line 491, in compile
AttributeError: 'unicode' object has no attribute 'write'

Posted: Mon May 18, 2009 5:22 am
by poiuy_qwert
The first error is odd though I can't fully look into it right now since im not at home. Mind attaching the default+custom sprites.dat you were using?

The second problem is already fixed for the next version (its caused by some systems giving unicode where I didn't expect it).

Posted: Mon May 18, 2009 11:37 am
by Lord_Jeremy
Here are the files, I had to zip them for it to let me upload them...

Posted: Fri May 22, 2009 11:40 pm
by Lord_Jeremy
Any luck tracking down the sprites.dat problem?

Posted: Sat May 23, 2009 6:07 am
by poiuy_qwert
Ah i just realized the problem. You must be on the sprites tab to open a sprites.dat file, you are trying to open it while on the units tab (as you can see the error says "invalid units.dat"). I think i'll change this in the next version to be like DatEdit and allow you to do it, dunno why it wasn't like that in the first place.