PyDAT Problems

Help - Resources - Discussion
Lord_Jeremy
Posts: 8
Joined: Sun May 17, 2009 11:01 pm

PyDAT Problems

Postby Lord_Jeremy » Mon May 18, 2009 2:39 am

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'
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am

Postby poiuy_qwert » Mon May 18, 2009 5:22 am

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).
Lord_Jeremy
Posts: 8
Joined: Sun May 17, 2009 11:01 pm

Postby Lord_Jeremy » Mon May 18, 2009 11:37 am

Here are the files, I had to zip them for it to let me upload them...
Lord_Jeremy
Posts: 8
Joined: Sun May 17, 2009 11:01 pm

Postby Lord_Jeremy » Fri May 22, 2009 11:40 pm

Any luck tracking down the sprites.dat problem?
User avatar
poiuy_qwert
Posts: 548
Joined: Sun Jan 13, 2008 2:14 am

Postby poiuy_qwert » Sat May 23, 2009 6:07 am

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.

Return to “PyMS (poiuy_qwert's complete modding suite)”

Who is online

Users browsing this forum: No registered users and 1 guest