Jump to content

Recommended Posts

  • Moderators
Posted

CidQu,

Welcome to the AutoIt forum.

Google tells me that this type of file is a Doom data file - why are you trying to read data from it? 

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted
  On 9/30/2021 at 6:07 AM, Melba23 said:

CidQu,

Welcome to the AutoIt forum.

Google tells me that this type of file is a Doom data file - why are you trying to read data from it? 

M23

Expand  

Thank for the reply,

This file is from DEATHLOOP. Doom and Deathloop are made from the same game engine so they may be similar. Yes, I want to read the data then translate it to my original language then compile it again.

Posted
  On 9/30/2021 at 6:36 AM, AlessandroAvolio said:

I don't know if it could help but you can rename it appending .txt at the end and so read some text inside

Expand  

I can read the text without converting it to .txt, The problem is there are 800 files like this. I need to make a script to extract all of this, I'm trying to find a way with youtube tutorials but couldn't make anything.

Posted

You need a little knowledge of the language to be able to do what you say. Create a new text file that will host the contents of all files. In AutoIT, form an array with the paths of all files to read. With a for loop go through the array. Inside the loop you read the binary content of each file in the array. Progressively write and add binary data to the file created at the beginning.

_FileListToArray
FileRead in binary mode
FileOpen in Write mode (append to end of file)
FileWrite
FileClose

  • Moderators
Posted

CidQu,,

Despite the fact that these are "game files", I see this as merely a file manipulation problem and so I am happy to leave the thread open.

AlessandroAvolio,

Could I gently point you towards this announcement. I normally make it crystal clear when this is the case, but I was working from a spare tablet this morning and did not have my normal Mod tools suite available. No harm done in this case, but please take note for the future. Thanks in advance for your cooperation.

M23

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted
  On 9/30/2021 at 9:40 AM, Melba23 said:

CidQu,,

Despite the fact that these are "game files", I see this as merely a file manipulation problem and so I am happy to leave the thread open.

AlessandroAvolio,

Could I gently point you towards this announcement. I normally make it crystal clear when this is the case, but I was working from a spare tablet this morning and did not have my normal Mod tools suite available. No harm done in this case, but please take note for the future. Thanks in advance for your cooperation.

M23

 

Expand  

I guessed it wasn't against the rules, thanks for the warning!

  • Moderators
Posted

AlessandroAvolio,

No problem.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted
  On 9/30/2021 at 9:40 AM, Melba23 said:

CidQu,,

Despite the fact that these are "game files", I see this as merely a file manipulation problem and so I am happy to leave the thread open.

AlessandroAvolio,

Could I gently point you towards this announcement. I normally make it crystal clear when this is the case, but I was working from a spare tablet this morning and did not have my normal Mod tools suite available. No harm done in this case, but please take note for the future. Thanks in advance for your cooperation.

M23

 

Expand  

Sorry about it. I think parsing data from games is not allowed due to licensing. That's kinda fair 😕 I just wanted to translate this game to my native language, sorry if I just made any problems. You can check the data they are only text files, but anyway thanks for helping me out!

  • Moderators
Posted

CidQu,

  Quote

I think parsing data from games is not allowed due to licensing. That's kinda fair

Expand  

In which case...<click> (c) Jos

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...