Author Topic: Changing up the Duplicator "Blockland's Fastest Duplicator"  (Read 3105 times)

Hello.

Within the duplicator's script there's a part that ghosts all the bricks and does all that fancy nice polished up stuff... Well I noticed that when I use the duplicator on larger builds and more complex things for example the logic gates. It lags my server for a good 1 to 5 minutes before it's done doing it's thing.

Can anyone help me figure out how to take out all the unnecessary things within the script to just make it do the most SIMPLE duplication. No rendering ghost bricks, or making the selected ones glow and deglow. Just a simple duplication with a single ghost brick.
« Last Edit: September 23, 2013, 07:08:56 AM by Aduioa »

I think the old duplicator still works? That's the one that just has the glowing effect and stuff.

The thing is, how many bricks are you trying to duplicate? I remember trying to duplicate something like 5k bricks in my lounge (we had a huge pool that we needed to mode). And we had to sit for a few minutes before the server could actually do it. When we placed it, it actually crashed all the clients and we had to rejoin.
If the builds you're duping are this big, the highlighting probably isnt the problem but the searching through the bricks it (the duplicator does a sort of recursive search, checking all bricks above and below every brick it encounters so that it can travel up and down zigzags and find EVER brick). Once it gets all the bricks, it's not too intensive to highlight all of them. The duplicator has a mechanism to not ghost large amounts of bricks.

If you need a special searching algorithm (one that doesn't do as much searching, but definitely isn't as flexible), I could delete some code or show you what to do?

Nevermind. I just got my hands on the old duplicator. It's nearly instant when I duplicate anything now.

Old > New

Alright... So I like the old duplicator. It is much faster at duplicating stuff now. But it's not so efficient placing down a duplication. The new duplicator seemed to have developed a very fast method of doing this. I have been searching the new one's code for this and trying to figure out what I could do to maybe mix both of the duplicator's methods together to make "Blockland's Fastest Duplicator"

I can't program in TorqueScript. I don't have the experience needed to do this. But do not think of me as someone who doesn't know anything about programming though. I do program, but more with networking.
So if someone can maybe lend a helping hand to create "Blockland's Fastest Duplicator" that would be wonderful.

Alright... So I like the old duplicator. It is much faster at duplicating stuff now. But it's not so efficient placing down a duplication. The new duplicator seemed to have developed a very fast method of doing this. I have been searching the new one's code for this and trying to figure out what I could do to maybe mix both of the duplicator's methods together to make "Blockland's Fastest Duplicator"

I can't program in TorqueScript. I don't have the experience needed to do this. But do not think of me as someone who doesn't know anything about programming though. I do program, but more with networking.
So if someone can maybe lend a helping hand to create "Blockland's Fastest Duplicator" that would be wonderful.
Just use the new Duplorcator and set the Max Ghost Bricks, RTB pref to 1.

There are preferences for everything that causes lag with the duplicator. There is really no need to edit the script...

Just use the new Duplorcator and set the Max Ghost Bricks, RTB pref to 1.

I like the old one better.

I like the old one better.
It lagged less (which I like), but it doesn't have some of the nice features that are in the 'new' one.

It lagged less (which I like), but it doesn't have some of the nice features that are in the 'new' one.
I don't know what you guys are on about. I personally supervised Plornt's reimplementation of the duplicator, and the code is significantly more efficient. Any lag produced over the old duplicator is a product of you using the new, fancy features such as the build preview. Setting every feature to mimic the old duplicator will result in faster speeds than the old one.


I don't know what you guys are on about. I personally supervised Plornt's reimplementation of the duplicator, and the code is significantly more efficient. Any lag produced over the old duplicator is a product of you using the new, fancy features such as the build preview. Setting every feature to mimic the old duplicator will result in faster speeds than the old one.
plus it's safer without the game crippling bugs

Problem is that the old one duped player spawns (Slayer hates the old one) and water weirdly.  Just use the new one and set the maximum ghost bricks to 1, so you have just the brick that you hit shown.  It should be in RTB prefs.