Dragon Age: Inquisition Modding Tools

All about modding tools for Dragon Age: Inquisition
It is currently Sat Jun 24, 2017 5:14 am

All times are UTC



Welcome
Welcome to the Dragon Age Modding tools forum

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Update Rev 89: added xml sanitizing to talk tables
PostPosted: Thu Jan 29, 2015 6:18 pm 
Offline
Site Admin

Joined: Fri Dec 05, 2014 12:05 pm
Posts: 179
Has thanked: 35 time
Have thanks: 212 time
with help of Ada I found a bug with XML generating (talktable strings can contain XML tags too), so I added sanitizing, because it would be too slow to type all changes out, I put my new code here:

Code:
public static string[] repList = { "<", "&lt;", ">", "&gt;", "\n", "[/n]", "\r", "[/r]" };

public static string toXML(string input)
        {
            string s = input;
            for (int i = 0; i < repList.Length / 2; i++)
                s = s.Replace(repList[i * 2], repList[i * 2 + 1]);
            return s;
        }

public static string fromXML(string input)
        {
            string s = input;
            for (int i = 0; i < repList.Length / 2; i++)
                s = s.Replace(repList[i * 2 + 1], repList[i * 2]);
            return s;
        }


greetz WV

_________________
Always backup your files!
WarrantyVoider has been thanked by:


Top
 Profile  
 
 
 Post subject: Re: Update Rev 89: added xml sanitizing to talk tables
PostPosted: Sat Jan 31, 2015 7:12 am 
Offline
Site Admin
User avatar

Joined: Fri Dec 05, 2014 3:43 am
Posts: 629
Has thanked: 14 time
Have thanks: 751 time
Okay so I have done some ingame testing. With some modifications to the Talktable save and load code, modifying the global english talktable now works fine (Originally only worked on small talktables):

Image

But unicode doesn't work at all. I tried adding some chinese symbols and running ingame, and all text was completely out of order.

Image

Appears there may be an unknown size or offset still. Investigating.
Ehamloptiran has been thanked by:


Top
 Profile  
 
 Post subject: Re: Update Rev 89: added xml sanitizing to talk tables
PostPosted: Sat Jan 31, 2015 8:41 am 
Offline
Site Admin

Joined: Fri Dec 05, 2014 12:05 pm
Posts: 179
Has thanked: 35 time
Have thanks: 212 time
welllllllllllllllllllllllllllllllllllllll.... it could be aswell utf-8 encoding, which is variable bit size too, but is encoded different... are there any languages in the game that use unicode/utf-8 already, so I could check?

greetz WV

_________________
Always backup your files!


Top
 Profile  
 
 Post subject: Re: Update Rev 89: added xml sanitizing to talk tables
PostPosted: Sat Jan 31, 2015 2:37 pm 
Offline
User avatar

Joined: Mon Jan 19, 2015 5:36 am
Posts: 16
Has thanked: 12 time
Have thanks: 8 time
could it be a font problem?


Top
 Profile  
 
 Post subject: Re: Update Rev 89: added xml sanitizing to talk tables
PostPosted: Sat Jan 31, 2015 4:28 pm 
Offline

Joined: Sun Dec 14, 2014 11:17 am
Posts: 38
Has thanked: 1 time
Have thanks: 4 time
Ehamloptiran wrote:
Okay so I have done some ingame testing. With some modifications to the Talktable save and load code, modifying the global english talktable now works fine (Originally only worked on small talktables):

Image

But unicode doesn't work at all. I tried adding some chinese symbols and running ingame, and all text was completely out of order.

Image

Appears there may be an unknown size or offset still. Investigating.



Nice.. cannot wait to test it myself..


Top
 Profile  
 
 Post subject: Re: Update Rev 89: added xml sanitizing to talk tables
PostPosted: Thu Feb 05, 2015 8:17 pm 
Offline

Joined: Fri Dec 05, 2014 7:51 pm
Posts: 6
Has thanked: 3 time
Have thanks: 1 time
According to the main website (https://www.origin.com/en-us/store/buy/dragon-age-inquisition/pc-download/base-game/standard-edition#details), it doesn't support any languages that would require a larger than 8-bit character encoding (such as Chinese, Japanese, Korean). The closest is Cyrillic, but there are 8-bit encodings for that. So it's possible the game doesn't support Unicode or any multi-byte encodings at all.


Top
 Profile  
 
 Post subject: Re: Update Rev 89: added xml sanitizing to talk tables
PostPosted: Sun Feb 08, 2015 5:30 pm 
Offline
User avatar

Joined: Mon Jan 19, 2015 5:36 am
Posts: 16
Has thanked: 12 time
Have thanks: 8 time
well,that's a strange problem.
As I know, this game has been cracked by china hackers and be translated already.(I just use the translate patch they made, and the quality is awful.)
So, it could be work with Chinese, maybe we just need to change the font?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred