CidQu Posted September 30, 2021 Posted September 30, 2021 Hi, I have a custom file named .decl, I want to parse data from it but couldn't do it. Can anyone help? I'm leaving the files below. colt_after_kills.decl
Moderators Melba23 Posted September 30, 2021 Moderators Posted September 30, 2021 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 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
CidQu Posted September 30, 2021 Author Posted September 30, 2021 24 minutes ago, 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 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.
AlessandroAvolio Posted September 30, 2021 Posted September 30, 2021 I don't know if it could help but you can rename it appending .txt at the end and so read some text inside
CidQu Posted September 30, 2021 Author Posted September 30, 2021 Just now, 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 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.
AlessandroAvolio Posted September 30, 2021 Posted September 30, 2021 19 minutes ago, CidQu said: 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. You will need: _FileListToArray https://www.autoitscript.com/autoit3/docs/libfunctions/_FileListToArray.htm
CidQu Posted September 30, 2021 Author Posted September 30, 2021 6 minutes ago, AlessandroAvolio said: You will need: _FileListToArray https://www.autoitscript.com/autoit3/docs/libfunctions/_FileListToArray.htm I think this is just listing all the files in one place. I already have all files listed, I want the data inside of that. Example 800Files with 2400 Text on it. I need to open all files by my hand, copy 3 sentences each. I want a script for it.
AlessandroAvolio Posted September 30, 2021 Posted September 30, 2021 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 Melba23 Posted September 30, 2021 Moderators Posted September 30, 2021 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 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
AlessandroAvolio Posted September 30, 2021 Posted September 30, 2021 8 minutes ago, 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 I guessed it wasn't against the rules, thanks for the warning!
Moderators Melba23 Posted September 30, 2021 Moderators Posted September 30, 2021 AlessandroAvolio, No problem. M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
CidQu Posted September 30, 2021 Author Posted September 30, 2021 5 hours ago, 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 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 Melba23 Posted September 30, 2021 Moderators Posted September 30, 2021 CidQu, Quote I think parsing data from games is not allowed due to licensing. That's kinda fair In which case...<click> (c) Jos M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts