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

Convert assignweapons and templates to ini files #4005

Closed
wzdev-ci opened this issue Apr 25, 2013 · 14 comments
Closed

Convert assignweapons and templates to ini files #4005

wzdev-ci opened this issue Apr 25, 2013 · 14 comments

Comments

@wzdev-ci
Copy link
Contributor

keyword_stats resolution_fixed type_patch (an actual patch, not a request for one) | by Duha


Hi

Merged variant is attach.

[Cyb-Hvy-A-T]
templateID = 621
compBody = Cyb-Hvybod-A-T
compBrain = ZNULLBRAIN
compConstruct = ZNULLCONSTRUCT
compECM = ZNULLECM
available = 1
compPropulsion = CyborgLegs
compRepair = ZNULLREPAIR
type = CYBORG_SUPER
compSensor = ZNULLSENSOR
numWeapons = 1
weapons = Cyb-Hvywpn-A-T,NULL,NULL,5

What player field in assignweapons do?
It is possible to add it as separate field for template.
in that case we will have.

[Cyb-Hvy-A-T]
templateID = 621
compBody = Cyb-Hvybod-A-T
compBrain = ZNULLBRAIN
compConstruct = ZNULLCONSTRUCT
compECM = ZNULLECM
available = 1
compPropulsion = CyborgLegs
compRepair = ZNULLREPAIR
type = CYBORG_SUPER
compSensor = ZNULLSENSOR
numWeapons = 1
weapons = Cyb-Hvywpn-A-T
player=5

Should I remove all entries with ZNULL*

[Cyb-Hvy-A-T]
templateID = 621
compBody = Cyb-Hvybod-A-T
available = 1
compPropulsion = CyborgLegs
type = CYBORG_SUPER
numWeapons = 1
weapons = Cyb-Hvywpn-A-T,NULL,NULL,5

Should I check something?
templateID is unuque
template has body and weaport or module?


Issue migrated from trac:4005 at 2022-04-16 10:57:15 -0700

@wzdev-ci
Copy link
Contributor Author

Duha uploaded file base_templates.ini (47.4 KiB)

@wzdev-ci
Copy link
Contributor Author

Duha uploaded file templates.ini (105.4 KiB)

mp/stats/template.ini

@wzdev-ci
Copy link
Contributor Author

Per changed blocking which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Per changed blockedby which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Per commented


The player field in assignweapons is unused. You can remove it. The NULL entries in that list can also be removed.

The key = ZNULL lines can be omitted, as we can assume something is ZNULL when the line is missing.

@wzdev-ci
Copy link
Contributor Author

Duha uploaded file templates_mp.ini (52.0 KiB)

@wzdev-ci
Copy link
Contributor Author

Duha uploaded file templates_base.ini (23.8 KiB)

@wzdev-ci
Copy link
Contributor Author

Duha commented


remove player and null from weapons
remove numWeapons
remove ZNULL*

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 5, 2013

Per commented


I cleaned out a lot of junk from templates.txt and assignweapons.txt just recently. Could you please rerun your script?

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 9, 2013

per <per@...> changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 9, 2013

per <per@...> changed owner from `` to per <per@wz2100.net>

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 9, 2013

per <per@...> changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 9, 2013

per <per@...> committed [678]


In Warzone2100/warzone2100@678e281:

#CommitTicketReference repository="" revision="678e281b509adfb9c652613f1e46fff8cc57ae84"
Convert templates to ini file format. Thanks to Duha for file conversions.
This closes #4005.

@wzdev-ci wzdev-ci closed this as completed May 9, 2013
@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented May 9, 2013

Per commented


Now, if you have time, please convert features.txt :)

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