#138: CaWE: Copy and paste caused duplicate entity name

2 views
Skip to first unread message

Cafu Trac

unread,
Dec 21, 2013, 7:08:41 AM12/21/13
to cafu...@googlegroups.com
#138: CaWE: Copy and paste caused duplicate entity name
---------------------+----------------------
Reporter: Carsten | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: other | Version: svn-head
Keywords: | Platform:
---------------------+----------------------
I took the following steps:
- opened map `BPRockB.cmap` (at cmap version 13) in CaWE,
- copied (Ctrl+C) the `weapon_facehugger` entity,
- pasted (Ctrl+P),
- saved (at cmap version 14).

As expected, there were two `weapon_facehugger` entities in the map, but
the second had the exact same name as the original.

Consequently, any attempt to re-load the map failed with this error:
{{{
Warning: Could not load "Games\DeathMatch\Maps\BPRockB.cent":
Games\DeathMatch\Maps\BPRockB.cent:288: bad argument #1 to 'AddChild'
(child entity already has a parent, use RemoveChild() first)
}}}

It was expected that pasting the entity checked its name, and adjusted it
accordingly to avoid duplicates!

--
Ticket URL: <http://trac.cafu.de/ticket/138>
Cafu 3D Game and Graphics Engine <http://www.cafu.de>
The open-source game engine and graphics engine for multiplayer, cross-platform, real-time 3D action.

Cafu Trac

unread,
Oct 30, 2014, 6:15:19 AM10/30/14
to cafu...@googlegroups.com
#138: CaWE: Copy and paste caused duplicate entity name
-----------------------+----------------------
Reporter: Carsten | Owner:
Type: defect | Status: closed
Priority: normal | Milestone:
Component: other | Version: svn-head
Resolution: outdated | Keywords:
Platform: |
-----------------------+----------------------
Changes (by Carsten):

* status: new => closed
* resolution: => outdated


Comment:

After all the changes introducing the entity component system, this ticket
can no longer been reproduced; the cause for the problem has been fixed in
the course of the introduction of the entity component system.

--
Ticket URL: <http://trac.cafu.de/ticket/138#comment:1>
Reply all
Reply to author
Forward
0 new messages