Editing of built in items instead of cloning?
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting. You may
to help finance the hosting costs of this forum.
Please read the Forum rules and policies before posting. You may

- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Editing of built in items instead of cloning?
I know, I know...
But I'll ask anyway. Is there any way to modify key parameters of standard objects without cloning?
In looking at creating a 'hi-res update' to DM, I'd like to give items their own unique hit sounds for example. To do this, I'd have to clone *every* item in the game then search and replace all the old items with the cloned ones. It's a lot of work!
Would there be a way of at least allowing some key parameters of standard objects to be edited?
But I'll ask anyway. Is there any way to modify key parameters of standard objects without cloning?
In looking at creating a 'hi-res update' to DM, I'd like to give items their own unique hit sounds for example. To do this, I'd have to clone *every* item in the game then search and replace all the old items with the cloned ones. It's a lot of work!
Would there be a way of at least allowing some key parameters of standard objects to be edited?
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Nope -- you can't assign a 'boulder dropping' sound to a boulder or a 'arrow clattering' sound to an arrow this way. You need to clone for these attributes to become editable. If you want to add unique sounds to lots of items, you'd have to clone pretty much the entire dungeon. Same for monsters and well, everything.George Gilbert wrote:You can replace sounds and bitmaps already (i.e. directly replacing the resources). Wouldn't this give you exactly what you want?
Yup, I realise that, but my argument is for not having to!beowuuf wrote:Actually, it's not as much work as it sounds since you can use the'find/replace all' of word or notepad to alter sword to 'sword_new'. Make sure it's using exact match, and it's one button click to replace things with cloned alternatives
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
Oh I see.Gambit37 wrote:Nope -- you can't assign a 'boulder dropping' sound to a boulder or a 'arrow clattering' sound to an arrow this way. You need to clone for these attributes to become editable. If you want to add unique sounds to lots of items, you'd have to clone pretty much the entire dungeon. Same for monsters and well, everything.George Gilbert wrote:You can replace sounds and bitmaps already (i.e. directly replacing the resources). Wouldn't this give you exactly what you want?
My understanding then is that currently you have to do this:
Code: Select all
[New - Sounds]
ADD SOUND_NEW FILE=(xxx) etc etc
[New - Objects]
ADD MISC_BOULDER_NEW CLONES=(MISC_BOULDER) SOUNDS=(SOUND_NEW) etc etc
[Items]
xxx MISC_BOULDER_NEW
Code: Select all
[New - Sounds]
ADD SOUND_NEW FILE=(xxx) etc etc
[New - Objects]
REPLACE MISC_BOULDER SOUNDS=(SOUND_NEW) etc etc
[Items]
xxx MISC_BOULDER
If so, then there's only a few characters difference between the two (swapping ADD for REPLACE, removing the CLONES=(xxx) and the _NEW bit from the items section) and I think that Beowuufs suggestion of using find-and-replace in notepad seems a pretty good idea!
I think the point was if he can edit items, then he could edit the sound of each item through the editor like it was cloned (so in the editor he could press 'edit' instead of clone and assign the sound like you assign the sound of the cloned item).
If you do it my way he creates a clone, for not much extra work compared to an edit, but then does have to alter tons of items in notepad...but I can do that! especially if each clone is names with a _N tag or soemhting for ease (MISC_BUOLDER -> MISC_BOULDER_N)
If you do it my way he creates a clone, for not much extra work compared to an edit, but then does have to alter tons of items in notepad...but I can do that! especially if each clone is names with a _N tag or soemhting for ease (MISC_BUOLDER -> MISC_BOULDER_N)
- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Exactly. I still don't understand why I would have to clone all these items just to modify a couple of parameters.beowuuf wrote:I think the point was if he can edit items, then he could edit the sound of each item through the editor like it was cloned (so in the editor he could press 'edit' instead of clone and assign the sound like you assign the sound of the cloned item).
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
And I still don't understand why you need this feature!Gambit37 wrote:I still don't understand why I would have to clone all these items just to modify a couple of parameters.
It would be about the same number of mouse clicks in the editor to change an existing item to cloning one, so that can't be it. It wouldn't give any saving in terms of memory usage or performance,so that's not it either.
Is your objection then purely semantic - i.e. why *clone* something that's nearly the same rather than just edit it? (BTW, the answer is because it *is* different; that's what cloning generally is - taking a copy of something that exists!)
The only possible argument for this feature that I can see is that it would save you a few minutes in notepad doing find-and-replaces (and even then Beowuuf has offered to do this for you, so actually its *no* time saving for you) against a cost of several days for me to code up the feature (and then innevitably a few weeks more fixing the bugs Sophia finds in it). If you can produce a convincing argument for it then I'll happily do it - but I havn't seen one yet

- Gambit37
- Should eat more pies
- Posts: 13773
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
OK, when you put it like that, then there's not much for me to argue against. However:
I guess I just see it as wasted effort to have to duplicate everything in a dungeon that already exists!Gambit37 wrote:If you want to add unique sounds to lots of items, you'd have to clone pretty much the entire dungeon. Same for monsters and well, everything.