Code Monkey home page Code Monkey logo

Comments (11)

Regalis11 avatar Regalis11 commented on September 28, 2024

What kind of errors?

from barotrauma.

alextbw avatar alextbw commented on September 28, 2024

When I just edit tools.xml, for example, I translate only the name and the desc of welding tool, i get this:
Error in fabricable item Welding Tool! Item "fabricableItem" not found!
And it does not spawn the welding tools
btw, can I copy from console?

from barotrauma.

Regalis11 avatar Regalis11 commented on September 28, 2024

That's caused by the fabricators: the welding tool is still included in the config, but the game fails to find such item after you've renamed it. Unfortunately copying text from the console is not possible (yet?), but you could take a screenshot if there's a longer piece of text you want to show.

Also, there seems to be a bug in that specific error message. It should be showing the name of the missing item, so thanks for pointing that out. :)

from barotrauma.

alextbw avatar alextbw commented on September 28, 2024

Ok, so how I can fix it? What should I edit?

from barotrauma.

Regalis11 avatar Regalis11 commented on September 28, 2024

You should open "Content/Items/Fabricators/fabricators.xml" and update the names of all the fabricable items to match the new names you've given to the items.

from barotrauma.

alextbw avatar alextbw commented on September 28, 2024

ok. I'll try and post here about the results
now it don't give me an error, but it still does not spawn inside the sub. Although i see my translated welding tool inside the store.
image
And if I buy them from the store they'll appear with translated name
image
OK, so turns out that if you'll rename an object it'll not spawn with the submarine

from barotrauma.

Regalis11 avatar Regalis11 commented on September 28, 2024

It does not spawn because the sub files work based on the names of the items. The sub file says there should be welding tool there, but there's no such item anymore after you've renamed it. There's a workaround to this though: if an item with a matching name is not found, the game tries to find an item with a matching alias instead. Adding aliases="Welding Tool" to the item config should fix your problem.

And as a heads-up: you'll definitely run into many similar issues when translating the game and some of them may not possible to fix without modifying the code and recompiling the game. There are also some hard-coded texts here and there, and changing those will require you to recompile it. So unless you are able and willing to look into how to compile the game and do changes to the C# code (or willing to settle for translating only some parts of the game), it might be a good idea to wait for official translation support.

from barotrauma.

alextbw avatar alextbw commented on September 28, 2024

So item config should look like
< Item
name="Паяльная Лампа"
category="Equipment"
Tags="smallitem"
aliases="Welding Tool"
price="100"
description="One of most important tools on board of a sub. Also works underwater." >?

I have very basic skills about compiling and changing code in games, but I think I will try

from barotrauma.

Regalis11 avatar Regalis11 commented on September 28, 2024

That looks otherwise correct but it should be aliases instead of alias. And if you need to configure more than one alias (e.g. due to some items already having an alias), you can separate them with a comma.

from barotrauma.

alextbw avatar alextbw commented on September 28, 2024

I dunno why, but it doesn't work even if I define an alias. But if I change only the description it'll work fine. Ok, so I'll continue to work later.
Actually, I have an idea. First translation may be transliteration to exclude the encoding bugs.
And if the item name will be like "Welding Tool (паяльная лампа)", will the submarine code spawn the welding tool?

from barotrauma.

Regalis11 avatar Regalis11 commented on September 28, 2024

That won't work unfortunately, the name has to match exactly.

from barotrauma.

Related Issues (20)

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.