Any information on .ABINARY file extension, how to convert it to a usable format? - binary

So i'm attempting to modify a game from the early 2000's, and the game's animations and art appears to be locked behind this .abinary file extension that i've never seen before. I'm not sure if this is some ancient forgotten voodoo, or just something i'm overlooking. Google shows nothing relavent.
I tried using a conversion software that handles .BIN files, but rather obviously they're not the same and i'm kind of stuck how to proceed if it's even possible.

Related

Need help downloading and reading a zipped CSV file in memory with Clojure

I have an external site from which I want to download a zipped CSV file. Currently, I'm downloading it unzipped, saving it to disk, then unzipping it, saving the unzipped file to disk, then reading the unzipped file with the CSV reader. Lots of useless steps in the process can be trimmed out, and I went on my way to do so.
This amazing answer helped me to get myself going. I tried to use the first option linked there (GZIPInputStream), but I get a "Not GZIP format" error, so I suppose I have to go to the second option.
This is my current code, and it does what I want it to do:
(defn download-zipped-stream!
(:body (clj-http.client/get "www.example.com" {:as :stream})))
(with-open
[stream (ZipInputStream. download-zipped-stream!)]
(.getNextEntry stream)
(doall (clojure.data.csv/read-csv (clojure.java.io/reader stream) :separator \;)))
I literally got to this by trial and error. There are mainly three things I'd like to change / understand about this code.
Ideally, I would want to break my code in two parts: one to download and unzip the content, returning a stream - the reason being that I want to decide later whether I want to read it as a csv directly, or write to disk (I don't want to lose this option, because, during development, it is much easier to read a pre-downloaded csv file than downloading the big content every single time). Turns out that, if I try to access the stream outside of the with-open call, I get a "stream closed" error (which, from what I understand, makes total sense).
On the above code, I have to call this .getNextEntry, or I get an empty list. As someone who is striving to write functional code, this bothers me, because, from what I can understand, I'm dealing with states here - my stream object looks mutable, which is something I really don't want. Isn't there a way to work around this step and straight-up not have it there?
I tried to call the read-csv method directly on the stream object, but the read-csv doesn't really know how to handle ZipInputStreams, apparently. Seeing this, I simply and hopefully throwed an io/reader call in between, and it worked. I don't know if this is the best approach, though. Is it correct?
I'm quite new to Clojure, and I'm completely clueless about Java in general, so, as you can see, my knowledge about those stream objects is pretty limited. I tried to read something about it in Java, but I quitted because I was not sure about how much of it could be useful for someone learning Clojure, so any pointers are also appreciated.
I think you are on the right approach. Suggestions to consider:
Consider using wget to manually download the *.csv.gz file to your local disk. Then, just open that local file instead of using clj-http.client/get.
I haven't played much with ZipInputStream, but if using .getNextEntry() seems to be required, just go with it.
The examples for read-csv show using a Reader to give access to the input file, so this is the expected behavior.
This template project shows how I like to organize a Clojure project & source code. Be sure to peruse the list of documentation provided.
Don't forget to utilize cljdoc.org for looking up Clojure library API docs. For example, see the API docs for data.csv.
Update
You may also want to review this answer.
Use https://github.com/techascent/tech.ml.dataset optionally with https://scicloj.github.io/tablecloth/index.html (a dplyr like api for TMD)
Also has advantage of being extremely fast and able to handle datasets that can't fit in memory, talks SQL, Arrow, et. al. Join conversation about it here:
https://clojurians.zulipchat.com/#narrow/stream/151924-data-science/topic/tech.2Eml.2Edataset

Make a single exe cefsharp application - embedding libcef.dll - costura.fody

I have tried many things before I found costura.fody and I were hoping that would be the solution to create a single file exe of a cefsharp application that I'm doing.
So the help file says set copy local to true of the file you want to embed in the solution explorer.
Done that.
So the exe got a little bit bigger when I did that but I notice that the size was not even close to cover libcef.dll so I suspected that this file was not embedded.
I tested this by renaming the dll in the output folder and yes I couldn't run the application.
I would really love for this to work but I'm kind of giving up.
I was struggling with AppDomain.CurrentDomain.AssemblyResolve to tap into that event but it was never called. Even when defining it in the static constructor to make sure it is started before anything else.
Can anyone please help me with this?
Kind regards
andla

.json to .csv "big" file

I recently downloaded my location history from Google. From 2014 to present.
The resulting .json file was 997,000 lines, plus a few.
All of the online converters would freeze and lock up unless I did it in really small slices which isn't an option. (Time constraints)
I've gotten a manual process down between Sublime Text and Libre Office to get my information transferred, but I know there's an easier way somewhere.
I even tried the fastFedora plug-in which I couldn't get to work.
Even though I'm halfway done, and will likely finish up using my process, is there an easier way?
I can play with Java though I'm no pro. Any other languages that play well with .json?
A solution that supports nesting without flattening the file. Location data is nested and needs to remain nested (or the like) to make sense. At least grouped.

Compiling structure of .as back in swf

I am having a problem related to flash/as3 files.,
I decompiled an .swf file (shop in a open source game) wich, its in chinese. i want to translate some chinese pushstrings in "text" to english text.
I can decompile it simply, as wells after decompiling, editing it.
My main problem is (after spending 3 days in the Internet searching a method 2 do it), i can't just publish a new version of the .swf , with the .as translates back. It just gives an 1kb swf with no .as on it.
Btw: the .swf files consists of no animations, since its a sub part of a main one.
The structure of .swf after decompiling looks like this:
tinypic.com(safe) - .swf structure
I'm using Flash builder + Flash CS6 to edit. -- in case link broken -- http://tinypic.com/view.php?pic=2ldzy4o&s=8#.U6UVI_ldWSo
Any help would be apreciated. Thank you community ;)
De-compiling a Flash (SWF) file in order to recompile it will very, very rarely work.
It could be as simple as you having one error, but you'll find that all variable names are using standard names and without knowing the structure of the application, it wouldn't be easy to work out where the problems are.
You should begin by making sure that CS6 has the correct document class set up. Once you've got that, you'll start seeing the errors. With that amount of classes, though, I would expect there to be a lot of errors.
I've searched the Internet for about 5 days or something to make a method work, like u said barely worked. My main interest was to convert .as3 with Traditional Chinese Lang, to English. I found a program with a little slow method: JPEXS Free Flash Decompiler.
I can open a .swf file and edit it without decompiling, and edit the text(hard work with /Google translator) but, hey, it works (don't know how but somehow he compiles the traits of the text in the .as3). And I had to be cautious editing it, one little error or a " missing bugged the whole file.
Thanks anyway for your response :)

decompile/extract microsoft agent?

I'm looking for a way to decompress or decompile a microsoft agent.
for example the merlin agent
I'd like to extract the animations/images. best way i've found so far is. recording my screen with a pink background. and splitting the video... but this isn't really good practice...
any tips?
Years ago, I authored an MSAgent Character Data Specification, which documents the complete ACS, ACF, and ACA file formats.
I have used that knowledge to write my own MSAgent decompiler that can fully decompile an ACS file into its constituent image and audio files, and create a complete ACD file that can be opened in the MSAgent Editor.
You can download the decompiler from my website, under
"Products | Applications | MSAgent Decompiler".
As for extracting the animations from the ACS file, which is the file for the MS Agent Character, it cannot be done with any known software. Over the years, I have searched for methods to extract the files from the ACS file, have found nothing even as of today (May 6, 2017).
You might be able to get somewhere using resourcehacker. At the least, separate out the useless parts from the useful.
I'm not sure what format they would have used for that, which makes this more difficult. Either way you need to first break open the container first.