[Warzone2100-project] [Warzone 2100 Trac] #3426: Templates NEED a
unique templateID in templates.txt
From: Warzone 2. T. <in...@de...> - 2012-04-26 20:45:05
|
#3426: Templates NEED a unique templateID in templates.txt -------------------------+------------------------------------------------- Reporter: | Type: patch (an actual patch, not a Shadow Wolf TJC | request for one) Status: new | Priority: normal Milestone: | Component: Data: Stats unspecified | Keywords: Version: 3.1 | Blocking: and master | Blocked By: | Operating System: All | /Non-Specific | -------------------------+------------------------------------------------- While working on a new mod on 3.1 beta 7, I encountered a glitch in which, when I tried to produce a certain unit (such as a new Cyborg template), either from a factory or through the debug menu, it was producing a different unit. I realized that the problem was caused by the Cyborg templates sharing the same templateID, and quickly fixed it. While correcting the problem, I noticed that the Super Transport currently shares templateID 746 with SK-Retre-VTOL-Plasmite, which I assume is used by skirmish AI scripts to build Retribution Plasmite Bomb VTOLs. I fear that, whenever any AI tries to build a Retribution Plasmite Bomber, it would instead build a Super Transport. I've provided a simple patch to fix this problem, though in addition to applying this patch, we'll need to update http://developer.wz2100.net/wiki/TxtEditing so that people will know that, in templates.txt, each template would indeed need a unique templateID. -- Ticket URL: <http://developer.wz2100.net/ticket/3426> Warzone 2100 Trac <http://developer.wz2100.net/> The Warzone 2100 Project |