#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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project