GithubHelp home page GithubHelp logo

item naming structure about tfc2 HOT 2 OPEN

deadrik avatar deadrik commented on August 24, 2024
item naming structure

from tfc2.

Comments (2)

emris avatar emris commented on August 24, 2024

Can you give an example, not really sure what you mean.

from tfc2.

aliceingame avatar aliceingame commented on August 24, 2024

Yes,

for point 1
in the .lang file, you have all the stone type set at "global." and not "tile."
For example : global.granite=Granite

Then the block themself are "tile." entry
For example : tile.rubble.name=Rubble

Then on the naming of the item/block ingame, there is two lines.

The item is effectively named "Rubble" or "Stone" or whatever stone item it is, but it does not state the type of stone. The type of stone if displayed on the second line, like this
image
(if that does not work, in game search for 1 wood type or stone type and you will see how the name of the item is on the two lines, in contrast with vanilla that only put the item name on a single line).

I think that this naming technique is called in this file (or I may totally be wrong, I do not really understand where the item name or localization line is set in the files) : TFC2/src/Common/com/bioxx/tfc2/items/itemblocks/ItemStone.java

The same idea could be applied to other items that have many variations. The item name would be more generic, and the material it is made of would be on the second line in grey.

For point 2

if you look at the sapling localization string, there is two lines, as there is two blocks to cover all the saplings, sapling and sapling2. Both have to be localized in order to have all the sapling with the right name in game.

from tfc2.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.