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

Cleanup assets and jar META-INF #351

Closed
metc opened this issue Dec 28, 2015 · 3 comments
Closed

Cleanup assets and jar META-INF #351

metc opened this issue Dec 28, 2015 · 3 comments
Assignees
Milestone

Comments

@metc
Copy link
Member

metc commented Dec 28, 2015

I made this issue regarding the commit ebba414 from @lambdaShade. The asset folder included in the mod realase jar maybe need some cleanup. IMO, it looks ok now.

I think the size of the release jar file is not a really big issue... The assets/eln folder contains 619 files (~ 4Mo). Currently, every models are included in the release file, event if they are not used in the game.

I check the asset folder content. here are some open questions:

  1. Is the model\_Common needed ?
  2. Is the file https://github.com/Dolu1990/ElectricalAge/blob/1.7.10-MNA/src/main/resources/assets/eln/model/ElectricalSensor/myTex%20-%20Copie.png need ?
  3. Some files are mixed between relay800 and RelayBig
  4. Is the file replicator/replicator.tcn used ?
  5. Which Blender files are required for the stoneCache model ?
  6. Is the file TemperatureSensor/myTex - Copie.png needed ?
  7. Is the file VoltageSensor/myTex - Copie.png needed ?
  8. Files export_block.png, export_cable.png and export_sixNodeWall.png should not be included in the release jar, correct ?
    1. Are the files items/miaou.png and items/tiningot.png needed ?

As proposed by @cm0x4D, I will setup a new filter for the asset folder. Only .png, obj, mtl, txt files must be included for the models, ogg for the sounds, lang for languages and png for all textures and sprites.

@metc metc self-assigned this Dec 28, 2015
@metc
Copy link
Member Author

metc commented Dec 28, 2015

The manifest file of the release Jar must also be updated in order to publish the mode to Maven Central.

@cm0x4D
Copy link
Member

cm0x4D commented Dec 28, 2015

We should first define a folder layout and then rearrange the files to that scheme and after that we can create a useful inclusion filter. The gradle script should not just copy folders into the jar, we could define different rules for different kinds of files and for example move all models into the same target folder.

Another thing that bothers me is that we have to list each model to load in Eln.java. If we have an intelligent data scheme, we could just load all models from a folder at startup. Would be much easier IMHO.

@lambdaShade
Copy link
Member

I think we have to discuss of this point all together in a meeting...

@lambdaShade lambdaShade added this to the Release r51 milestone Dec 29, 2015
metc added a commit that referenced this issue Dec 29, 2015
Prepare to publish on jCenter.
Related to #351
metc added a commit that referenced this issue Dec 29, 2015
…lease jar.

Ignore files not used in Minecraft to reduce the release jar size.
Related to #351
@metc metc mentioned this issue Dec 29, 2015
@metc metc assigned metc and unassigned metc Dec 29, 2015
metc added a commit that referenced this issue Jan 4, 2016
Prepare to publish on jCenter.
Related to #351
metc added a commit that referenced this issue Jan 4, 2016
…lease jar.

Ignore files not used in Minecraft to reduce the release jar size.
Related to #351
@metc metc closed this as completed Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants