Register for your free account! | Forgot your password?

You last visited: Today at 01:22

  • Please register to post and access all features, it's quick, easy and FREE!


Server sided chat translation

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 30
Server sided chat translation

This will be for Redux V2 for now, its a extremely simple version of it so you can modify it easily.

Download the Service References attachment and place into the redux folder



after that go to your References and add System.ServiceModel



then open your app.config



and remove everything inside it and add this.

PHP Code:
  </configSections>
  <
applicationSettings>
        <
Redux.Properties.Settings>
            <
setting name="Setting" serializeAs="String">
                <
value>D:\</value>
            </
setting>
        </
Redux.Properties.Settings>
    </
applicationSettings>
<
system.serviceModel>
  <
bindings>
    <
basicHttpBinding>
      <
binding name="BasicHttpBinding_LanguageService" closeTimeout="00:01:00"
          
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
          
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
          
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          
useDefaultWebProxy="true">
        <
readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
            
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
        <
security mode="None">
          <
transport clientCredentialType="None" proxyCredentialType="None"
              
realm="" />
          <
message clientCredentialType="UserName" algorithmSuite="Default" />
          
        </
security>
      </
binding>
    </
basicHttpBinding>
  </
bindings>
  <
client>
    <
endpoint address="http://api.microsofttranslator.com/V1/Soap.svc"
        
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_LanguageService"
        
contract="TranslatorService.LanguageService" name="BasicHttpBinding_LanguageService" />
  </
client>
</
system.serviceModel>
</
configuration
should look like this now.



Then go to your GameServer.cs under network and add this

PHP Code:
using Bing_Translator.TranslatorService
then search for

PHP Code:
#region TalkPacket
        
public static void Process_TalkPacket(Player clientTalkPacket packet
and add this code like below

PHP Code:
            var clienttotrans = new LanguageServiceClient();
            var 
untrans packet.Words;
            
string strTranslatedText clienttotrans.Translate("6CE9C85A41571C050C379F60DA173D286384E0F2"untrans"""en"); 


if there is anything i have left out let me know besides one portion in the code did that so people can figure it out.
Attached Files
File Type: rar Service References.rar (7.2 KB, 32 views)



Epic-Chaos is offline  
Thanks
4 Users
Old 01/05/2014, 20:17   #2
 
elite*gold: 0
Join Date: Dec 2010
Posts: 103
Received Thanks: 13
I bet I know what you left out


Smallxmac is offline  
Old 01/05/2014, 21:28   #3
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,293
Received Thanks: 919
Quote:
Originally Posted by Smallxmac View Post
I bet I know what you left out
Well it is pretty obvious what he left out.
Kiyono is offline  
Old 01/05/2014, 21:54   #4
 
elite*gold: 0
Join Date: Jul 2008
Posts: 864
Received Thanks: 226
let me guess
may be.


Nice Job.


abdoumatrix is offline  
Old 01/05/2014, 23:08   #5
 
elite*gold: 0
Join Date: Dec 2010
Posts: 103
Received Thanks: 13
Aww you jerks lol of course it should be simple to know what is missing,lol it surely was a joke @Kiyono -.-
Smallxmac is offline  
Thanks
1 User
Old 01/06/2014, 05:37   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 30
Quote:
Originally Posted by abdoumatrix View Post
let me guess
may be.


Nice Job.

well lets see here its to hard to figure out if thats correct or not!
Epic-Chaos is offline  
Old 01/06/2014, 09:06   #7
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,124
Received Thanks: 2,503
This is fairly useless as is, it assumes that everyone speaks English which makes it fairly redundant. This should be enabled via a command and then should use geo-ip to determine which language to translate to.

Otherwise 2 people who speak arabic are going to have a hard time having a conversation.
Korvacs is offline  
Old 01/06/2014, 09:20   #8
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 30
Quote:
Originally Posted by Korvacs View Post
This is fairly useless as is, it assumes that everyone speaks English which makes it fairly redundant. This should be enabled via a command and then should use geo-ip to determine which language to translate to.

Otherwise 2 people who speak arabic are going to have a hard time having a conversation.
wasn't meant as a fully completed project was just a simple release lol i can do that no problem if thats what people want.
Epic-Chaos is offline  
Old 01/06/2014, 11:24   #9
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,124
Received Thanks: 2,503
Was merely pointing out some of the obvious issues with it so that if people do intend to implement this they will know what they need to change/add.
Korvacs is offline  
Old 01/06/2014, 18:04   #10
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 30
Fair enough another reason is leaving it simple so its easy to implement into other sources as well but geo-ip is also redundant if you add a command to select what language you want see.
Epic-Chaos is offline  
Old 01/06/2014, 19:51   #11
 
elite*gold: 0
Join Date: Dec 2010
Posts: 103
Received Thanks: 13
I would not have wanted the release to be more than what it is now, it would be way over used. But like I did with my system is it uses GEO-IP to locate and you can have an overwrite command to change the language
Smallxmac is offline  
Old 01/17/2014, 00:00   #12
 
elite*gold: 0
Join Date: Jun 2007
Posts: 10
Received Thanks: 1
can i put it in a Client not a Soucre?
1xxxx is offline  
Old 01/17/2014, 00:02   #13
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,076
Received Thanks: 3,396
Quote:
Originally Posted by 1xxxx View Post
can i put it in a Client not a Soucre?
Yes, it's possible to have the client connect to some client sided proxy which acts as a translator. Putting it directly in the client is also somewhat possible using hooks. I believe there are a few memory based bots you can study from if you're interested in that approach.
Spirited is offline  
Old 01/17/2014, 05:40   #14
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 30
Quote:
Originally Posted by 1xxxx View Post
can i put it in a Client not a Soucre?
Would you want a client sided example?


Epic-Chaos is offline  
Closed Thread



« [Content Replacement] V5803 Game Packets | Fix the Damage in Equipment classic in Suorce [c#] »

Similar Threads
server sided. how to?
10/10/2010 - CO2 Main - Discussions / Questions - 8 Replies
hey all thnks vodka for the fast respont on my last post. ok i got bored playing white my (clinet) sided things and i want to know wich progream i can play white server sided stings... if possible . how can i find the ip , i tird to look on the web but very very little info is found on counqer online. i have idea of some kind , log on ofline to conuqer it can be nice. but the problem is if the sestem will save it when it go online,,, thnks for help
Are the weekdays client sided or server sided?
08/30/2010 - Mabinogi - 8 Replies
It is really irritating to have to play on certain days to do certain rp dungeons and missions. Is the day (Baltane, Samhain and the other stupid days) on the server side of mabinogi, or client? I believe it is probably server-sided, but it would be nice to know. If it is client sided, would anyone know how i could change the day? So that i could finish Generation quests without waiting for tuesday? Thanks in advance.
Is Analyze server-sided or client-sided?
08/18/2010 - Atlantica Online - 0 Replies
Because we are given 5 blank cards and we are shown the results after we choose them; if they are client sided, can we some how figure out which will give the best result? this would be a nice feature o_O
12 Sky 2- Server Sided
01/17/2010 - 12Sky2 - 2 Replies
Trying 2 find a way 2 get hacks 2 work server sided, money,HP,Chi,EXP, ETC. Any 1 that could help please reply. Thanx 4 ur time.
client sided vs server sided
07/04/2009 - 12Sky2 - 2 Replies
well i was just wondering if anyone can compile a list of what is client sided and what is server sided im pretty much a noob at CE but im kinda getting the hang of it by just trying things out...im not in any way asking for addresses or anything like that but im just trying to save some time by finding out what i can change and what i shouldnt waste my time on so far i know that u can change movement speed, attack speed......yeah im noob lol if anyone can help me out i would realy...



All times are GMT +1. The time now is 01:22.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.