• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Welcome Help & Support Tutorials & Tools Community Activity Guides Tutorial: Google Translate and Super Setmsg

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Pages (2): « Previous 1 2
Tutorial: Google Translate and Super Setmsg
Offline Champ
07-12-2020, 11:46 PM,
#11
Member
Posts: 1,499
Threads: 152
Joined: Dec 2009

Macros are not allowed and are considered cheating for things like strafe boxing, for example.

While obviously we don't have problems with this implementation for translation, AHK is a common program that people will use to do inappropriate things as above.

Use of such a program is at your own risk, and if we can't trust / don't believe / reasonably doubt your excuse that it was for this purpose, which we almost certainly will, you will not be excused and can expect some ships to be deleted.

Unfortunately this is an English server so if you don't have a bilingual friend to translate or the English necessary to get the gist yet, you might have a hard time using a translator in real time with the game - but I can't imagine a scenario in which you are sanctioned for failing to respond 'verbally' to something.

Also I know some of you forget given how often you post in there, but forums outside of flood are for non-flood content.

[Image: Champ17.gif]
Reply  
Offline Dom!no
07-13-2020, 10:08 PM, (This post was last modified: 07-13-2020, 10:09 PM by Dom!no.)
#12
Member
Posts: 17
Threads: 3
Joined: Jul 2020

Quote:Also I made thing which copies six last phrases from chat. Which you can insert immediately into Google Translate! Without opening log file. Resolves problem of not having ability to copy from chat
[+]Copying and Pasting last six phrases from log file
Code:
Extractor()
{
Array := Array()
    Loop, read, C:\Users\User\Documents\My Games\Freelancer\DSAce.log
    {
        last_line := A_LoopReadLine

        numberWhere := RegExMatch(last_line, "^.*\d{2}\].(?!(Death:))(?!(Tip:))[^\s]+.: .*$")
        if (numberWhere > 0)
        {    
            Array.InsertAt(0,last_line)
            RemovedValue := Array.RemoveAt(6)
        }
    }
    
    Counter:=5
    While(Counter >= 0)
    {
        Temp := Array[Counter]
        SendInput, %Temp%`r
        Counter--
    }
    return
}    

#IfWinNotActive Freelancer
!v::
  Extractor()
  return    

:*:.log::
  Extractor()
  return
It's activated by pressing Alt+V or by writing .log
to work correctly this C:\Users\User\Documents\My Games\Freelancer\DSAce.log address should be leading to your log file, correct it if it's wrong.

How to make this thing work, it doesn't work as it should. Instead of the text that it should pull from the log, it outputs:

Code:
C:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\Temp
Reply  
Offline darkwind
08-04-2020, 07:27 PM,
#13
Frontier Sheriff
Posts: 1,142
Threads: 138
Joined: Oct 2019
Staff roles:
Coding Developer

(07-13-2020, 10:08 PM)Dom!no Wrote:
Quote:Also I made thing which copies six last phrases from chat. Which you can insert immediately into Google Translate! Without opening log file. Resolves problem of not having ability to copy from chat
[+]Copying and Pasting last six phrases from log file
Code:
Extractor()
{
Array := Array()
    Loop, read, C:\Users\User\Documents\My Games\Freelancer\DSAce.log
    {
        last_line := A_LoopReadLine

        numberWhere := RegExMatch(last_line, "^.*\d{2}\].(?!(Death:))(?!(Tip:))[^\s]+.: .*$")
        if (numberWhere > 0)
        {    
            Array.InsertAt(0,last_line)
            RemovedValue := Array.RemoveAt(6)
        }
    }
    
    Counter:=5
    While(Counter >= 0)
    {
        Temp := Array[Counter]
        SendInput, %Temp%`r
        Counter--
    }
    return
}    

#IfWinNotActive Freelancer
!v::
  Extractor()
  return    

:*:.log::
  Extractor()
  return
It's activated by pressing Alt+V or by writing .log
to work correctly this C:\Users\User\Documents\My Games\Freelancer\DSAce.log address should be leading to your log file, correct it if it's wrong.

How to make this thing work, it doesn't work as it should. Instead of the text that it should pull from the log, it outputs:

Code:
C:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\TempC:\Users\NeWa\AppData\Local\Temp

Fixed.
[+]Copying and Pasting last six phrases from log file
Code:
Extractor()
{
Array := Array()
    Loop, read, %A_MyDocuments%\My Games\Freelancer\DSAce.log
    {
        last_line := A_LoopReadLine

        numberWhere := RegExMatch(last_line, "^.*\d{2}\].(?!(Death:))(?!(Tip:))[^\s]+.: .*$")
        if (numberWhere > 0)
        {    
            Array.InsertAt(0,last_line)
            RemovedValue := Array.RemoveAt(6)
        }
    }
    
    Counter:=5
    While(Counter >= 0)
    {
        Temp := Array[Counter]
        SendInput, %Temp%`r
        Counter--
    }
    return
}    

#IfWinNotActive Freelancer
!v::
  Extractor()
  return    

:*:.log::
  Extractor()
  return
New version is not requiring for you to make any extra steps to copy phrases from Freelancer chat to outside evironment.
relative address, %A_MyDocuments%\My Games\Freelancer\DSAce.log should be good enough to find proper file on its own.


Interstellar Autogit Ctrl-V Encryptor Discovery At Linux
Dark Tools DarkBot DarkLint DarkStat DarkMap
Reply  
Pages (2): « Previous 1 2


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2025 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode