Jump to content
The Dark Mod Forums

Script to find duplicate entities


Recommended Posts

That happened to me once at lest, something similar happens when a entity lacks a material defined has well, but in this case they also get translucent. 

Btw not that is any useful today, with shaders and such but that could be a "poor mans way" to create a highlight effect, just hide the duplicate and unhide it when you frob the item, that is exactly how idSoftware created the (not used) item highlight but they do the duplicate dynamically in the c++ code. ;)

Link to comment
Share on other sites

1 hour ago, peter_spy said:

I'm not saying that it isn't useful, but doesn't DR automatically move the cloned entity one grid unit in two directions by default?

It does, but I'm really only talking about having 6 duplicates out of the 1200 entities in my map so far, and 1-5 duplicates in each of the large released missions I tested it on.  That means 99.5% of the time I didn't screw up (and others are 99.9%+) 😁, but if you scatter enough junk around your map you're bound to make this mistake somewhere.  You might be more likely to create a duplicate when you're making a straight line of repeated objects, you accidentally have something else selected when you duplicate/move another entity, and/or the DR autosave butts in while you're in the middle of moving something.

 

 

  • Like 1
Link to comment
Share on other sites

8 hours ago, peter_spy said:

I'm not saying that it isn't useful, but doesn't DR automatically move the cloned entity one grid unit in two directions by default? I don't think I even had this problem, thanks to this feature. Can't speak for others though, obviously.

It's possible to disable that automatic clone offset (I think it's in the top toolbar). Not sure how many people use that option, but it's there.

Link to comment
Share on other sites

You can actually disable the offset behaviour on an individual basis by doing the clone while you're in 'R'otate mode. I actually almost always clone like this because I want to move the clone in a different direction and sometimes only on one axis.

As Jonri says, most of the time cloning works without problems, but it's a definitely a boon to be able to track down the cases where it goes wrong.

Link to comment
Share on other sites

In rotate mode it makes sense to stay in the same place, similar to what modeling apps do. In translate mode, not so much. It's kinda like with this toggleable option to turn off rotating an object using its pivot/origin. There's no point in having it off, as pivot point placement is a deliberate part of modeling, whether we're talking snapping modular meshes, deco props etc.

Link to comment
Share on other sites

30.  I expected some, but yipes!  

I think near all of them were caused by my twitchy fingers and forgetting to check if "rotate" is active.    The bulk of them were from before I figured out that cloneselection works but doesn't offset when "rotate" active.  At first I just figured it didn't work at all...  

Anyway thanks jonri, greebo and all the TDM superstars for making the most fun games tool I've ever played with.  

  • Like 2
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

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...