Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Templates NEED a unique templateID in templates.txt #3426

Closed
wzdev-ci opened this issue Apr 26, 2012 · 8 comments
Closed

Templates NEED a unique templateID in templates.txt #3426

wzdev-ci opened this issue Apr 26, 2012 · 8 comments

Comments

@wzdev-ci
Copy link
Contributor

resolution_fixed type_patch (an actual patch, not a request for one) | by Shadow Wolf TJC


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.


Issue migrated from trac:3426 at 2022-04-16 09:45:45 -0700

@wzdev-ci
Copy link
Contributor Author

Shadow Wolf TJC uploaded file templates.txt (42.5 KiB)

Contains a new templateID for the Super Transport

@wzdev-ci
Copy link
Contributor Author

vexed commented


Thank for the heads up.
I'll correct the typo shortly, and also fix that page.

BTW, that isn't a patch, that is the complete file, so it is impossible to know what was changed just by looking at it.

@wzdev-ci
Copy link
Contributor Author

vexed changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

vexed changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

vexed commented


Fix typo for SuperTransport.

Fixes #3426

  • Changeset: [/changeset/146332aaee331997dd668bf36635fa190ca7ba2b 146332aaee331997dd668bf36635fa190ca7ba2b]
  • URL: [146332]aaee331997dd668bf36635fa190ca7ba2b

@wzdev-ci
Copy link
Contributor Author

vexed commented


Fix typo for SuperTransport.

Fixes #3426

  • Changeset: [/changeset/146332aaee331997dd668bf36635fa190ca7ba2b 146332aaee331997dd668bf36635fa190ca7ba2b]
  • URL: [146332]aaee331997dd668bf36635fa190ca7ba2b

2 similar comments
@wzdev-ci
Copy link
Contributor Author

vexed commented


Fix typo for SuperTransport.

Fixes #3426

  • Changeset: [/changeset/146332aaee331997dd668bf36635fa190ca7ba2b 146332aaee331997dd668bf36635fa190ca7ba2b]
  • URL: [146332]aaee331997dd668bf36635fa190ca7ba2b

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Aug 4, 2012

vexed commented


Fix typo for SuperTransport.

Fixes #3426

  • Changeset: [/changeset/146332aaee331997dd668bf36635fa190ca7ba2b 146332aaee331997dd668bf36635fa190ca7ba2b]
  • URL: [146332]aaee331997dd668bf36635fa190ca7ba2b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant