Maximum number of resources in a Blorb file

What is the maximum number of resources allowed in a Blorb file? I can’t seem to find a reference to a maximum number of resources allowable in the Z-machine, Glulx, or Blorb standards. The best I can come up with is 999 judging from sample Blurb files.

1 Like

There’s no hardcoded max. But address offsets can only be 32 bit numbers, and each resource description is 12 bytes. Seeing as multiple resources can refer to the same chunk, technically you could have just under 358 million resources (2^32 / 12). If you wanted unique Data resources of at least 4 bytes of data, then you could have just under 179 million of them (2^32 / 24).

2 Likes

Sounds right.

Sounds good.

Blorbs for Infocom’s V6 games containing EGA graphics should be available soon. I’m still having trouble with properly reading the CGA graphic files.

2 Likes