DoM request: support for DATVault dat format

Post bug reports and suggestions for the website, forums and DOM here.
Post Reply
Hiccup
Datter
Posts: 1719
Joined: 09 Oct 2015 11:29

DoM request: support for DATVault dat format

Post by Hiccup »

Code: Select all

<?xml version="1.0"?>
<datafile>
	<header>
		<name>test</name>
		<romvault/>
	</header>
	<dir name="emptydir">
	</dir>
	<dir name="fulldir">
		<rom name="emptyfile" size="0" crc="00000000" sha1="da39a3ee5e6b4b0d3255bfef95601890afd80709" md5="d41d8cd98f00b204e9800998ecf8427e"/>
	</dir>
</datafile>
Could support for this be added? Its basically just some extra types of entries (like dir), for the normal dat format, so it could be added to that. This would streamline adding stuff like empty folders, for "loose file" games that contain those.
User avatar
xuom2
High Council
Posts: 936
Joined: 22 May 2008 18:45

Re: DoM request: support for DATVault dat format

Post by xuom2 »

ok, in the "browse record" page of any archive you should be able to attach files (and emptydirs) in DV format to sources and releases.
please do the tests on the TEST system.
Hiccup
Datter
Posts: 1719
Joined: 09 Oct 2015 11:29

Re: DoM request: support for DATVault dat format

Post by Hiccup »

xuom2 wrote: 27 Aug 2024 15:15 ok, in the "browse record" page of any archive you should be able to attach files (and emptydirs) in DV format to sources and releases.
please do the tests on the TEST system.
Thanks. I've tested it out a bit, and it seems to work, except it seems like you can't create more than one empty directory? Even if they have different names, it treats them as dupes.
User avatar
xuom2
High Council
Posts: 936
Joined: 22 May 2008 18:45

Re: DoM request: support for DATVault dat format

Post by xuom2 »

that should only be a warning.
but, yes, I can imagine that somewhere it could give that problem.
please give me an example. I tried and got no strange messages.
Hiccup
Datter
Posts: 1719
Joined: 09 Oct 2015 11:29

Re: DoM request: support for DATVault dat format

Post by Hiccup »

1. Create archive and source
2. do DV import of:

Code: Select all

<datafile>
	<dir name="emptydir">
	</dir>
</datafile>
it should work fine
3. do DV import of:

Code: Select all

<datafile>
	<dir name="emptydir2">
	</dir>
</datafile>
1.png
2.png
3.png
it treats them as duplicates, despite the fact one of the fields is different (name).

tbh, i wonder if this is an issue for files too. since you might have two files that have the same hash, but other properties are different. so i think the merging thing should be optional/disabled by default?
You do not have the required permissions to view the files attached to this post.
User avatar
xuom2
High Council
Posts: 936
Joined: 22 May 2008 18:45

Re: DoM request: support for DATVault dat format

Post by xuom2 »

late reply, I know :(

it won't give the warning, now
Post Reply