Aller au contenu

Photo

Some GDA file format questions.


  • Veuillez vous connecter pour répondre
32 réponses à ce sujet

#26
0x30A88

0x30A88
  • Members
  • 1 081 messages
There is something wrong, though I can not see what. It seems to think my rows structs as colms (the Toolset's GFF viewer). Can you see what's wrong here? The struct IDs (0x2712, etc) match the ones generated by your tool GDApp.

(Hex dump omitted)
(The .gda file with the problem omitted)

EDIT: The wrong string prefixes weren't the sinners here. Though Encoding.Unicode.GetBytes(string) - 5 seems an odd way to get the character count (despite it being 40 bytes instead of 25, though the same array printed the correct amount of unicode characters as you can see.), despite it giving the correct one.

EDIT2: The type specified behind GFF_G2DA_ROW_LIST was wrongly set to int8, when uint16 (aka short) was correct. Exports working 2DAs now. Now only bool and resouce support remain before I can post what I have.

EDIT3: I had relied too much on some padding. GDApp .gdas were loaded quite badly. I know how I can fix my code to do so, however.

Modifié par Gisle Aune, 08 août 2011 - 07:21 .


#27
0x30A88

0x30A88
  • Members
  • 1 081 messages
I have put it up for download. My coding style might not be perfect, but at least it's consitent and I try my best to follow the common practices. Also, I use heavy zooming as I am visually impained, that explains the early word wrapping in large comments.

http://social.biowar...m/project/4953/

I shall test it properly tomorrow and do changes if need be. I also encourage you -- if you have time -- to test it and post any bugs or features that you see as lacking.

Modifié par Gisle Aune, 08 août 2011 - 11:05 .


#28
ChewyGumball

ChewyGumball
  • Members
  • 282 messages
The only thing I can see is that you assume gda's only have 3 structs. This might be true in most cases, but there is no technical reason why that is, and while working on the light mapper I have found some weird, probably old, files which don't follow the rest in struct count or order. Its probably nothing to worry about, but it might be something to think about if you want to do more with GFFs in the future.

#29
0x30A88

0x30A88
  • Members
  • 1 081 messages
Are they G2DA V0.2? I've seen GDApp bug reports and those were concluded that the GDAs in question weren't of version 0.2.

Edit: fixed a bug (stream not closing) and optimized file size by reusing strings rather than having two exactly similiar ones.

Modifié par Gisle Aune, 09 août 2011 - 08:32 .


#30
Elvhen Veluthil

Elvhen Veluthil
  • Members
  • 353 messages
File isn't available from the project page, fix the permissions so we can download it please.

#31
0x30A88

0x30A88
  • Members
  • 1 081 messages
It's on the front page. Silly uploader didn't like .txt, .cs and .dat.

#32
Elvhen Veluthil

Elvhen Veluthil
  • Members
  • 353 messages
True. Not that it'll make a difference at anything, but you can zip/rar them and then upload.

#33
0x30A88

0x30A88
  • Members
  • 1 081 messages
Yeah, that worked, though little difference it makes.

EDIT: Forgot to set it to be available for everyone, now it is.

Modifié par Gisle Aune, 10 août 2011 - 10:53 .