Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing missiles information #38

Open
Araamarmorth opened this issue Mar 13, 2015 · 5 comments
Open

Missing missiles information #38

Araamarmorth opened this issue Mar 13, 2015 · 5 comments

Comments

@Araamarmorth
Copy link
Contributor

There is currently no way to access missile's cost in mass, energy or build time: this could be accesses from TML, UEF and Seraphim com, nuclear launcher, Yolona Oss and nuke launching boats.

@spooky
Copy link
Collaborator

spooky commented Mar 15, 2015

Indeed, but these numbers are not in the blueprint file, and I didn't find the place where this is available.

@Araamarmorth
Copy link
Contributor Author

This can be found in the Economy section of the projectiles' blueprint.

For instance in projectiles/AIFMissileTactical01/AIFMissileTactical01_proj.bp you can find:

Economy = {
    BuildCostEnergy = 3600,
    BuildCostMass = 180,
    BuildTime = 2400,
},

If you are interested, I could write a script to extract this on a per weapon basis. This could also be useful if one day we want to know which missiles follow their target or what are their acceleration.

@spooky
Copy link
Collaborator

spooky commented Mar 16, 2015

Makes sense, this should probably be a part in the current tools. Queuing up in the pipeline.

@HopeAndWonder
Copy link

Hey spooky i am really new to java script, currently i am programming an android app for the UnitDataBase(i am learning how to programm android apps in general). Could you tell me how to extract the stats from the game so that i get a .json file? Sorry for contacting you in this way. If u dont have time for this, sorry for bothering you.

@spooky
Copy link
Collaborator

spooky commented Mar 21, 2015

HopeAndWonder: In general, you need to extract 3 files (all zip files with different extension): units.scd (supcom:fa install dir), faforever.nxt, units.nx2 (both Faforever\gamedata dir). Then search for .bp files. These are lua files with the unit config.
A simpler way would be just to take the index.json (minified version, removed unused properties) or index.fat.json (full unit extract) from this repo

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

No branches or pull requests

3 participants