Jump to content

Question for build a standalone tool for parts/cfg localization


Recommended Posts

I want to build a standalone application to make the work of localization more comfortable, then I thought about using ConfigNode by add the reference Assembly-Csharp.dll, but when I tried to compile and run, it showed me this:

System.Security.SecurityException' occured Additional Information: ECall methods must be packaged into a system module.
   at UnityEngine.DebugLogHandler.Internal_Log(LogType level, LogOption options, String msg, Object obj)
   at UnityEngine.DebugLogHandler.LogFormat(LogType logType, Object context, String format, Object[] args)
   at UnityEngine.Logger.Log(LogType logType, Object message)
   at UnityEngine.Debug.LogWarning(Object message)
   at ConfigNode.Load(String fileFullName, Boolean bypassLocalization)
   at ConfigNode.Load(String fileFullName)

Then I searched the Internet for this output and I realized that I DONT want my application to be build on the Unity.

So I want some help for getting the value from a CFG file?

The tool I want to build may run like this process:

1. read the CFG (currently I stuck)

2. get the Node ( like PART)

3. get the value Name ( title/description/...)

4. change the value (repalce it like "#xxx_xxxx_xxx")

5. save part file and genereate new localizaition file like en-us.cfg/zh-cn.cfg

Link to comment
Share on other sites

  • 5 weeks later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...