View Issue Details

IDProjectCategoryView StatusLast Update
0002579The Dark ModSEEDpublic27.10.2011 05:16
Reportertels Assigned Totels  
Status closedResolutionfixed 
Product VersionTDM 1.03 
Target VersionTDM 1.04Fixed in VersionTDM 1.04 
Summary0002579: SEED: Clone important spawnargs
DescriptionWhen the SEED clone some entities (f.i. atdm:valve2_small), it does not set a few spawnargs on the newly spawned entities, f.i. "rotate". This results in the clone not working properly.
Additional InformationWe possible need to find all spawnargs automatically, because maintaining a list of "important" spawnargs is tedious and error prone.

A first step would be include all spawnargs that are set via "editor_setKeyValue name" "value".
TagsNo tags attached.


related to 0002575 assigned SEED: Handling of entities with attachments 
related to 0002576 assigned SEED: Handling of entities with bound children 




02.02.2011 05:41

administrator   ~0003535

Aren't editor_* spawnargs wiped out already? =)


02.02.2011 10:10

developer   ~0003538

Hm, yes, true.

But my current idea is first parse the map file and see which spawnargs are set in the map file. This includes every spawnarg set in DR manually, as all spawnargs set via editor_setKeyValue (as these get just inserted when the entity is inserte into the map by DR). It also gets only the spawnargs that were actually used, e.g. if the mapper deletes something, it gets not stored.

This would thus not rely on any editor_ spawnargs being present.

The shop code already parses the map file and caches it, so this might actually work. However, had no time to look into this yet.


05.02.2011 19:35

developer   ~0003566

Resolved with checkins 0004560 and 0004561. The spawnargs are now parsed from the map file and stored with the entity class. Upon entity spawn they are restored before setting classname, model etc.

Allows successfully spawning random smoke emitters now :)

Issue History

Date Modified Username Field Change
24.01.2011 14:56 tels New Issue
24.01.2011 14:56 tels Status new => assigned
24.01.2011 14:56 tels Assigned To => tels
24.01.2011 14:57 tels Additional Information Updated View Revisions
24.01.2011 15:42 tels Description Updated View Revisions
24.01.2011 15:43 tels Additional Information Updated View Revisions
24.01.2011 15:43 tels Relationship added related to 0002575
24.01.2011 15:43 tels Relationship added related to 0002576
24.01.2011 15:48 tels Summary SEED: Clone important spanwargs => SEED: Clone important spawnargs
29.01.2011 13:07 tels Category Coding => SEED
02.02.2011 05:41 stgatilov Note Added: 0003535
02.02.2011 10:10 tels Note Added: 0003538
05.02.2011 19:20 tels Target Version => TDM 1.04
05.02.2011 19:35 tels Note Added: 0003566
05.02.2011 19:35 tels Status assigned => resolved
05.02.2011 19:35 tels Fixed in Version => TDM 1.04
05.02.2011 19:35 tels Resolution open => fixed
27.10.2011 05:16 greebo Status resolved => closed