Jump to content
The Dark Mod Forums

The Parts and Whole: Discussion


Geep

Recommended Posts

This is looking good so far. I've always thought the wiki needs more attention.

  • Like 1

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                                                                                  A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Link to comment
Share on other sites

@greebo, I'm starting a rewrite of the outdated wiki Prefabs article. A few questions so far:

1) Other than file extension, is there any difference in the format, allowed-content, or use case between:

File/Export selected as Map... (with the .map format selected)

File/Export selected as Prefab... (with the .pfb format selected)

2) Other than file extension, is there any difference between:

File/Export selected as Map... (with the .mapx format selected)

File/Export selected as Prefab... (with the .pfbx format selected)

3) I understand that .pfbx retains DR Group info (that would otherwise be in *.darkradiant in a regular FM). Any other difference worth noting from .pfb?

4) Related to (1), "Export Region..." performs automatic map sealing and insertion of a player start. I assume that "Export selected as a Map" does not do that. True?

Thanks for any help

  • Thanks 1
Link to comment
Share on other sites

48 minutes ago, Geep said:

1) Other than file extension, is there any difference in the format, allowed-content, or use case between:

File/Export selected as Map... (with the .map format selected)

File/Export selected as Prefab... (with the .pfb format selected)

As far as the file syntax is concerned, there's no difference between a Doom 3 .map and a Doom 3 .pfb. When DR is saving a .pfb file, no corresponding .darkradiant file is going to be created, i.e. all map meta data like layer and group info is lost.

48 minutes ago, Geep said:

2) Other than file extension, is there any difference between:

File/Export selected as Map... (with the .mapx format selected)

File/Export selected as Prefab... (with the .pfbx format selected)

There's no difference in the XML structure of the mapx or pfbx file contents. No .darkradiant file will be created for neither of them since it's not necessary. Layer and group information is saved in the mapx/pfbx file itself.

48 minutes ago, Geep said:

3) I understand that .pfbx retains DR Group info (that would otherwise be in *.darkradiant in a regular FM). Any other difference worth noting from .pfb?

A .pfb file is using the decl-style syntax of Doom 3 maps, while .pfbx is an XML file. The XML file is taking up more space on disk than the decl-based one, if anybody likes to care about that.

48 minutes ago, Geep said:

4) Related to (1), "Export Region..." performs automatic map sealing and insertion of a player start. I assume that "Export selected as a Map" does not do that. True?

Yes, these two commands are different, as expected: Export selected as Map will create a regular map file without adding any additional stuff like those sealing brushes, or moving player start around, it's just for saving the selected part of the map - it's really just what the name says. The region feature has the goal of making a part (the regioned one) pass beyond the dmap flood fill phase, hence the wall brushes.

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

1 hour ago, Geep said:

This is off-topic regarding prefabs, but is there an expectation that future FMs use mapx instead of map? What's the earliest version of TDM that will solidly support mapx?

Mapx is colloquially known as "portable map format". I think DR-wise nothing speaks against them becoming the default format, but Im not sure whether TDM supports them (fully).

  • Like 1
Link to comment
Share on other sites

4 hours ago, Geep said:

@greebo, if I have a prefab stored as .pfbx, and that has DR Group info stored in it, what should I expect to happen...

a) when "Create Group out of Prefab parts" is checked on import

b) when unchecked?

That checkbox is unrelated to the format the prefabs are stored in. It just groups the imported piece together as a whole, whether there are sub-groups or not.

4 hours ago, Dragofer said:

Mapx is colloquially known as "portable map format". I think DR-wise nothing speaks against them becoming the default format, but Im not sure whether TDM supports them (fully).

No support in TDM, at least not yet.

The portable format has been introduced for two reasons: first to make it easier for other technologies to read the map format, since XML parsers are widely available. Second, to fix the problem with clipboard data losing the group info when copy/pasting stuff in and between DarkRadiant itself - when copying data to the clipboard the mapx format is used (you can easily see that when copying map parts and pasting them into a text editor like Notepad).

Link to comment
Share on other sites

8 minutes ago, greebo said:

That checkbox is unrelated to the format the prefabs are stored in. It just groups the imported piece together as a whole, whether there are sub-groups or not.

OK. So let me ask about an edge case. Suppose the items in the .pfbx were already all in a group when exported.

Then on import, if "Create Group out of Prefab parts" is checked, then is it smart enough to known it doesn't have to group all, or do you end up with two group-alls, outer and inner?

This will affect what guidance to give to the pfbx creator regarding grouping.

Link to comment
Share on other sites

1 hour ago, Geep said:

OK. So let me ask about an edge case. Suppose the items in the .pfbx were already all in a group when exported.

That case is handled, it doesn't create an encompassing group if this outer group already exists.

  • Like 1
Link to comment
Share on other sites

The Prefabs section of the Overview is now posted, along with 2 child articles on their import and export. Anyone who has worked with prefabs a lot is encouraged to review these. I have may have "gotten out beyond my skis" in some cases.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...