Giter Site home page Giter Site logo

Comments (13)

Kinematics avatar Kinematics commented on July 25, 2024

Hmm.

I can change all instances of set construction using spell.english to spell.name. That will mean item 1 will use the Japanese name if you use set_language. This isn't actually what you're asking for, though, so I'll put that on hold.

For item 2, I'd need a full translation of all the items in Mote-Mappings.lua. If that can be provided, then all spell maps would work as well, and be set relative to the language selected. However if you want it to always use English rather than the set language, I can leave it alone for now.

For item 3, unfortunately spell.type is hard-coded into the resources. The resources would need to be updated before that would be changeable.

On the other hand, for item 4, spell.skill is language-dependent, so I can't make it not show up in Japanese if set_language has been used. The intent a while back was to make the same conversion for spell.type as was done for spell.skill. Still, fixing item 4 for your request, to put it in English, is doable. It will be transparent, regardless of how the user wants to use it.

For item 5, buff names are pulled from resources, so again they will be specific to the language chosen. Fixing item 5 will be more awkward. I can only provide one or the other.

In the case of resource names, reverse lookups for buffs are difficult. I'd have to get the buff id based on the buff name, and that's not guaranteed to be unique (for example, there are two or three separate buff IDs for Haste). Skills, on the other hand, I can ensure lookup the English name.

I'll put some more thought into this, and perhaps add a flag to distinguish between full Japanese and equipment-only Japanese.

from gearswap-jobs.

nekonok avatar nekonok commented on July 25, 2024

I see.
Now not only Mote-libs, but also GearSwap doesn't work properly in Japanese, for example:

  1. gs equip sets.midcast["強化魔法"] will not work
  2. have to re-define elements, skillchain_elements and areas in Mote-Mappings (I did it User-Globals.lua)
  3. cancel_conflicting_buffs, refine_waltz and custom_aftermath_timers_precast will not work

and so on.

Are resources languages depends on client? If not, to avoid a lot of problems, how about translate Japanese equipment name to English in the time loading user file and treat the other in English?
I really thank you to your considering for JP users, but translating all to Japanese is not useful because windower does not treat Japanese properly. (but translating thousands of item names JP to EN is painful...umm)

from gearswap-jobs.

Kinematics avatar Kinematics commented on July 25, 2024

language is a variable set to 'english' by default, but can be changed to 'japanese'. It's only explicitly used for outputting certain text strings, because the code page needs to be adjusted for the string to be properly formed for the client's language/font.

It's implicitly used in many other locations. Pretty much everything that refers to any resources (all the stuff in the Windower\Res directory) gets adjusted to match the current language setting. This includes item names, spells, buffs, elements, etc. So in order for GearSwap to use Japanese item names for gear, it has to have the language set to 'japanese'. Most of the other problems are because of hard-coding issues within my libraries.

Is it acceptable to make everything Japanese? Or is it important that there be a separation between gear names and all other named values?

On item 1 of your new list, I'll have to look into that to see how to fix it.

from gearswap-jobs.

nekonok avatar nekonok commented on July 25, 2024

Making names Japanese is ok if gs equip sets.midcast["強化魔法"] works properly.
I don't stick to language, but I want making all the names either Japanese or English.

from gearswap-jobs.

z16 avatar z16 commented on July 25, 2024

gs equip sets.midcast["強化魔法"] will never work and that's not a GearSwap issue at all, it's a Windower issue. Try using ' instead of ", then it should work. If it doesn't, that means it's a GearSwap issue then.

from gearswap-jobs.

nekonok avatar nekonok commented on July 25, 2024

result:

  • gs equip sets.midcast["強化魔法"] does not work.
  • gs equip sets.midcast['強化魔法'] does not work.
  • gs equip sets.midcast.強化魔法 does not work.
  • gs equip sets.midcast["Cure"] does not work.
  • gs equip sets.midcast['Cure'] works properly.
  • gs equip sets.midcast.Cure works properly.

from gearswap-jobs.

z16 avatar z16 commented on July 25, 2024

Did you enter those into the console? Can you try entering them into the chatlog (with // prepended) please?

from gearswap-jobs.

z16 avatar z16 commented on July 25, 2024

To be clear, I mean this one only:

gs equip sets.midcast['強化魔法']

Because that command should work.

from gearswap-jobs.

nekonok avatar nekonok commented on July 25, 2024

I tried it from chatlog. Full input was //gs equip sets.midcast['強化魔法'], it did not work.

from gearswap-jobs.

z16 avatar z16 commented on July 25, 2024

Ok, can you with the console then? If one works and the other doesn't, it's an encoding issue and we can fix that in LuaCore. If not... I'm not sure. But it will be a start to know that.

from gearswap-jobs.

nekonok avatar nekonok commented on July 25, 2024

I don't know the way to input Japanese in console. It seems to can not enter or display multi-bytes.
Are there some settings?

from gearswap-jobs.

z16 avatar z16 commented on July 25, 2024

No, you're right, I forgot it wasn't that simple... I'll have to experiment with this a bit, but I have some other issues queued up I'm working on right now, I'll try to get this done tonight.

from gearswap-jobs.

amatsuno avatar amatsuno commented on July 25, 2024

gearswap received from FF11 client, 強化魔法 is SHIFT-JIS.
but gearswap expected UTF-8. so this command dose not work.
Ithink addon command equip 2nd parameter (in gearswap.lua nearby line 160..)
splitup[2] should be translated from SHIFT-JIS to UTF-8.

for example

if splitup[2] then
    splitup[2] = windower.from_shift_jis(splitup[2])
end

from gearswap-jobs.

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.