Comments (11)
What kind of errors?
from barotrauma.
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.
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.
Ok, so how I can fix it? What should I edit?
from barotrauma.
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.
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.
And if I buy them from the store they'll appear with translated name
OK, so turns out that if you'll rename an object it'll not spawn with the submarine
from barotrauma.
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.
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.
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.
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.
That won't work unfortunately, the name has to match exactly.
from barotrauma.
Related Issues (20)
- Statuseffect inside Salvage target sends error message HOT 1
- Death from disconnecting counts as a normal death HOT 1
- Requested Items can be sold by the merchant NPC HOT 2
- Drop a melee weapon while it is hitting will not unregister its collision detection HOT 1
- Loading an autosave does not correctly load layers HOT 1
- Colored text does not work in speech bubble HOT 1
- Ending sequence issues: batteries running out and submarine cannot progress without drone HOT 3
- Circuit box xml sometimes has incorrect usedresource for components HOT 2
- Circuit box loses values/clamp/etc when game is saved while circuit box is in inventory
- [Localization Problem] Incorrect Chinese Item Description HOT 1
- Item description of Magnetic Suspension Crate is misleading HOT 1
- No interval in applying buffs causes massive medical skill gain (foods and drinks) HOT 1
- Over one CharacterAbilityModifyResistance will make resistance negative HOT 1
- Soundfile that plays on "OnUse" doesn't seem to work on Multiplayer, but works in Singleplayer. HOT 1
- Possible new server crash exploit (ddos) HOT 3
- In a network game, Bots clean up a stack of items marked as untouchable. HOT 1
- Cannot damage same-sub external walls while inside with standard guns
- Pirate mission doesn't support Character, Statuseffects
- variables not accessible for xml conditionals HOT 3
- [Unstable] Separatist medic uniforms have swapped inventory icons HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barotrauma.