Coder Social home page Coder Social logo

fnmwolf / anaconda Goto Github PK

View Code? Open in Web Editor NEW
91.0 91.0 19.0 166.96 MB

Anaconda - Clickteam Fusion 2.5 decompiler by fnmwolf, pete7201, ClickNinYT, 1987Kostya, Blue Nova, and Mathias Kærlev

License: GNU General Public License v3.0

C++ 42.60% C 32.11% Python 20.56% Makefile 0.76% M4 0.01% Batchfile 0.01% GLSL 0.10% CMake 0.15% HTML 0.95% JavaScript 0.07% CSS 0.06% Shell 0.01% TeX 0.17% VBScript 0.01% Perl 0.02% PostScript 0.15% Inno Setup 0.01% Cython 2.28%

anaconda's Introduction

  • 👋 Hi, I’m @fnmwolf
  • 👀 I’m interested in ... C++, C#, Python
  • 🌱 I’m currently learning ... how to crack CTF 2.5+ games
  • 💞️ I’m looking to collaborate on ... nothing
  • 📫 How to reach me ... message me on Discord pete7201#8127 or on Telegram @fnmwolf

anaconda's People

Contributors

fnmwolf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anaconda's Issues

All currently known issues regarding MFAs

Settings, window, runtime, etc. options are all default and aren't changed after decompiling. (Found in All Games)

Event Editor isn't organized like CTFAK is. (Found in All Games)

Text alignment isn't decompiled. (Found in All Games)

Some blocks of code are missing a line, very rare, no way to tell why it happens. (Found in FNaF World)

None of the blocks of code are in the correct order like CTFAK is, causing for certain rare issues. (Found in FNaF World)

All backdrops stay at Full Opacity. (Found in FNaF World)

Anti-Aliasing ticks seem to only work 2% of the time? Unconfirmed. (Found in FNaF World)

All objects lack thumbnails. (Found in All Games)

The lives object does not decompile it's type. (Found in Fury's Rage)

Videos for Active Direct Show objects are decompiled but not set. (Found in Jolly 3 Chapter 1)

The XOR effect does not decompile. (Found in Jolly 3 Chapter 1)

Seems like for certain objects the Alpha Channel isn't saved. (Found in Jolly 3 Chapter 1)

Some objects that are meant to have been deleted to be created by Create objects are present in the Event Editor (Found in Jolly 3 Chapter 1)

struct.error: 1 bytes required

Traceback (most recent call last):
File "C:\Users\User\Desktop\Anaconda\x64\tools\bimbam.py", line 83, in
main()
File "C:\Users\User\Desktop\Anaconda\x64\tools\bimbam.py", line 48, in main
newExe = ExecutableData(fp, loadImages=True)
File "mmfparser\loader.pyx", line 20, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:936)
File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
File "mmfparser\loader.pyx", line 49, in mmfparser.loader.DataLoader.read (./mmfparser/loader.cpp:1714)
File "..\mmfparser\data\exe.py", line 34, in read
firstShort = reader.readShort()
File "mmfparser\bytereader.pyx", line 259, in mmfparser.bytereader.ByteReader.readShort (./mmfparser/bytereader.cpp:3823)
File "mmfparser\bytereader.pyx", line 262, in mmfparser.bytereader.ByteReader.readShort (./mmfparser/bytereader.cpp:3682)
File "mmfparser\bytereader.pyx", line 178, in mmfparser.bytereader.ByteReader._read (./mmfparser/bytereader.cpp:2720)

Chowdren won't run, IndexError: chunktype 'FrameItems' not found

Hi all,

I've been trying to use this to run chowdren on my own game. To check that it works, I created a test executable containing only frame with one active object. To setup, I ran build.sh and then python -m chowdren.run game.exe game. I made four versions of this test executable in total:

  • Built with Fusion R293.10
  • Built with Fusion R284.10
  • Built with Fusion R293.10 with all optimisations and image/sound filters disabled
  • Built with Fusion R284.10 with all optimisations and image/sound filters disabled

After some testing, I found that the mmfparser library will only build and run with gcc/g++<8 and using cython > 0.19 and < 0.25. I also tested on Windows using the provided python, the only thing I changed was installing Pillow. If I try and run chowdren on the game executable, I get the following results, regardless of OS:

With R293.10 with all the stuff disabled, I get the following:

(unknown chunk 8774)
(unknown chunk 8785)
creating new data transform
(unknown chunk 8797)
(unknown chunk 8783)
(unknown chunk 8796)
(unknown chunk 8787)
(unknown chunk 8788)
(unknown chunk 8789)
(unknown chunk 8790)
(unknown chunk 8791)
(unknown chunk 8781)
Traceback (most recent call last):
  File "/home/rob/anaconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/rob/anaconda2/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/rob/Anaconda/Anaconda/Chowdren/chowdren/run.py", line 40, in <module>
    main()
  File "/home/rob/Anaconda/Anaconda/Chowdren/chowdren/run.py", line 37, in main
    Converter(args)
  File "chowdren/converter.py", line 594, in __init__
    exe = ExecutableData(ByteReader(fp), loadFrames = False)
  File "mmfparser\loader.pyx", line 20, in mmfparser.loader.DataLoader.__init__ (./mmfparser/loader.cpp:936)
  File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
  File "mmfparser\loader.pyx", line 49, in mmfparser.loader.DataLoader.read (./mmfparser/loader.cpp:1714)
  File "../mmfparser/data/exe.py", line 55, in read
    self.gameData = self.new(GameData, reader)
  File "mmfparser\loader.pyx", line 37, in mmfparser.loader.DataLoader.new (./mmfparser/loader.cpp:1245)
  File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
  File "mmfparser\loader.pyx", line 49, in mmfparser.loader.DataLoader.read (./mmfparser/loader.cpp:1714)
  File "../mmfparser/data/gamedata.py", line 254, in read
    self.frameItems = chunks.popChunk(FrameItems)
  File "mmfparser/data/chunk.pyx", line 234, in mmfparser.data.chunk.ChunkList.popChunk (./mmfparser/data/chunk.cpp:5544)
IndexError: chunktype 'FrameItems' not found

With all the default build settings, I get this

(unknown chunk 8774)
(unknown chunk 8785)
creating new data transform
(unknown chunk 8797)
(unknown chunk 8783)
(unknown chunk 8796)
(unknown chunk 8787)
(unknown chunk 8788)
(unknown chunk 8789)
(unknown chunk 8790)
(unknown chunk 8791)
(unknown chunk 8781)
  File "/home/rob/anaconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/rob/anaconda2/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/rob/Anaconda/Anaconda/Chowdren/chowdren/run.py", line 40, in <module>
    main()
  File "/home/rob/Anaconda/Anaconda/Chowdren/chowdren/run.py", line 37, in main
    Converter(args)
  File "chowdren/converter.py", line 594, in __init__
    exe = ExecutableData(ByteReader(fp), loadFrames = False)
  File "../mmfparser/data/exe.py", line 55, in read
    self.gameData = self.new(GameData, reader)
  File "../mmfparser/data/gamedata.py", line 102, in read
    chunks = self.new(ChunkList, reader)
Traceback (most recent call last):
  File "/home/rob/anaconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/rob/anaconda2/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/rob/Anaconda/Anaconda/Chowdren/chowdren/run.py", line 40, in <module>
    main()
  File "/home/rob/Anaconda/Anaconda/Chowdren/chowdren/run.py", line 37, in main
    Converter(args)
  File "chowdren/converter.py", line 594, in __init__
    exe = ExecutableData(ByteReader(fp), loadFrames = False)
  File "mmfparser\loader.pyx", line 20, in mmfparser.loader.DataLoader.__init__ (./mmfparser/loader.cpp:936)
  File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
  File "mmfparser\loader.pyx", line 49, in mmfparser.loader.DataLoader.read (./mmfparser/loader.cpp:1714)
  File "../mmfparser/data/exe.py", line 55, in read
    self.gameData = self.new(GameData, reader)
  File "mmfparser\loader.pyx", line 37, in mmfparser.loader.DataLoader.new (./mmfparser/loader.cpp:1245)
  File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
  File "mmfparser\loader.pyx", line 49, in mmfparser.loader.DataLoader.read (./mmfparser/loader.cpp:1714)
  File "../mmfparser/data/gamedata.py", line 102, in read
    chunks = self.new(ChunkList, reader)
  File "mmfparser\loader.pyx", line 37, in mmfparser.loader.DataLoader.new (./mmfparser/loader.cpp:1245)
  File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
  File "mmfparser/data/chunk.pyx", line 172, in mmfparser.data.chunk.ChunkList.read (./mmfparser/data/chunk.cpp:4553)
  File "mmfparser\loader.pyx", line 37, in mmfparser.loader.DataLoader.new (./mmfparser/loader.cpp:1245)
  File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
  File "mmfparser/data/chunk.pyx", line 86, in mmfparser.data.chunk.Chunk.read (./mmfparser/data/chunk.cpp:2650)
  File "mmfparser\loader.pyx", line 37, in mmfparser.loader.DataLoader.new (./mmfparser/loader.cpp:1245)
  File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
  File "mmfparser/data/chunkloaders/imagebank.pyx", line 574, in mmfparser.data.chunkloaders.imagebank.ImageBank.read (./mmfparser/data/chunkloaders/imagebank.cpp:11836)
  File "mmfparser\loader.pyx", line 37, in mmfparser.loader.DataLoader.new (./mmfparser/loader.cpp:1245)
  File "mmfparser\loader.pyx", line 31, in mmfparser.loader.DataLoader.init (./mmfparser/loader.cpp:1051)
  File "mmfparser/data/chunkloaders/imagebank.pyx", line 367, in mmfparser.data.chunkloaders.imagebank.ImageItem.read (./mmfparser/data/chunkloaders/imagebank.cpp:5134)
  File "mmfparser\bytereader.pyx", line 282, in mmfparser.bytereader.ByteReader.readInt (./mmfparser/bytereader.cpp:4070)
  File "mmfparser\bytereader.pyx", line 190, in mmfparser.bytereader.ByteReader._read (./mmfparser/bytereader.cpp:2761)
  File "mmfparser\bytereader.pyx", line 50, in mmfparser.bytereader.check_available (./mmfparser/bytereader.cpp:1186)
struct.error: 1 bytes required

With the R284 I get the same error with both executables, which is:

Could not import all platforms
(unknown chunk 8774)
(unknown chunk 8783)
(unknown chunk 8781)
Traceback (most recent call last):
  File "/home/rob/anaconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/rob/anaconda2/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/rob/Anaconda/Anaconda/Chowdren/chowdren/run.py", line 40, in <module>
    main()
  File "/home/rob/Anaconda/Anaconda/Chowdren/chowdren/run.py", line 37, in main
    Converter(args)
  File "chowdren/converter.py", line 709, in __init__
    self.create_assets(cache)
  File "chowdren/converter.py", line 1111, in create_assets
    image.height), image.getImageData())
  File "mmfparser/data/chunkloaders/imagebank.pyx", line 480, in mmfparser.data.chunkloaders.imagebank.ImageItem.getImageData (./mmfparser/data/chunkloaders/imagebank.cpp:7574)
  File "mmfparser/data/chunkloaders/imagebank.pyx", line 75, in mmfparser.data.chunkloaders.imagebank.getImageData (./mmfparser/data/chunkloaders/imagebank.cpp:2147)
TypeError: expected string or Unicode object, NoneType found

As far as I can tell, it's the variable chunk.data that's empty. But I can't tell you much more than that, I don't know how the object is constructed or why it would end up that way. I know this repo is mostly for the decompiler, but this seems like a decompiler issue to me? I have quite a lot of C++ and Python experience, so I'm happy to put more work into this and try and fix it (or at least document what I've learned so far) but I don't really understand the nature of the error right now. Please let me know if you have any ideas.

Thanks

Rob

Question

Can this decompiler work with the exes that was made with "Click and Create", "The Game Factory", and fusion 1.5 those apps was from ClickTeam. The exes were made in 1996 to 1999. over 20 year old.

IndexError

When trying to decompile the game to MFA, I get this error:
image

Doesn't correctly convert japanese text

Describe the bug
Decompiling a japanese game doesn't extract and convert correctly the text and result in incomprehensible text. From the dialogue to the variable, events name etc, all it's incomprehensible.

To Reproduce
Steps to reproduce the behavior:
After I run the decompiler of the japanese game "Princess Obscene - Elven Princess Falleth To Lust", I open the .mfa (select japanese as application program), look at the dialogue text to translate it but it's incomprehensible

Screenshots
Example of a text dialogue
This one is from the original game which read "エステリア城地下通路" -> "Esteria Castle Underground Passage":
immagine

This one is from the decompiled version run from clickteam program which read "繧ィ繧ケ繝・Μ繧「蝓・蝨ー荳矩�夊キッ" -> garbage text:
immagine

Desktop (please complete the following information):

  • Windows 10 (x64)
  • Main branch version (downloaded today 23/05/22)

Additional context
I even tried changing the language of the OS ("language for non-unicode programs") from the control panel to japanese before decompiling, but the result is the same

no file

Describe the bug
no mfa filewhen i press decompile

To Reproduce
Steps to reproduce the behavior:
1.press decompile
2.wait a bit
3.check da folder
4.no file

Expected behavior
i expected my mfa

Screenshots
image

Desktop (please complete the following information):

  • OS: windows 10
  • Browser chrome
  • Version 21h1

Smartphone (please complete the following information):

  • Device: iphone 11
  • OS: [e.g. iOS8.1]
  • Browser chrome
  • Version idk didnt check

Additional context
tried the console thing too
got an WindowsError: [Error 2] The system cannot find the file specified error even though my file was there

decompiler not outputting a mfa file

Describe the bug
Whenever I Click Decompile, It say's Done! but when i go to the output folder, there is nothing

To Reproduce
Steps to reproduce the behavior:

  1. Click on 'Decompile'
  2. See error

Expected behavior
A Decompiled Game

Screenshots
Screenshot 2024-04-06 223710

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [Chrome]
  • Version [22]
  • winver screenshot
    Screenshot 2024-04-06 224237

Smartphone (please complete the following information):

  • Device: [Samsung Galaxy S23 +]
  • OS: [Android 13]
  • Browser [Chrome]
  • Version [22]

Additional context
I have Python 2.17.18, VC for Python 2.17, & Cython installed.
The Game is Made in Normal Clickteam Fusion 2.5
I have Clickteam Fusion 2.5 Plus Installed
The Game is Not Outputting
a .mfa File

Anaconda not working with wine

When I try opening anaconda with wine, this error pops up:

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Uri' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.UriParser' threw an exception. ---> System.MissingMethodException: Method not found: bool System.Runtime.Versioning.BinaryCompatibility.get_TargetsAtLeast_Desktop_V4_5()
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at System.Uri..cctor () [0x00117] in :0
--- End of inner exception stack trace ---
at System.Windows.Navigation.BaseUriHelper..cctor () [0x00000] in <31c27960b3944cf5ac22b64c6d7fa247>:0
--- End of inner exception stack trace ---
at System.Windows.Application.ApplicationInit () [0x0000a] in <28df16e13dde49b7bc6df4407bb01bc0>:0
at System.Windows.Application..cctor () [0x0002e] in <28df16e13dde49b7bc6df4407bb01bc0>:0
--- End of inner exception stack trace ---
at Anaconda.App..ctor () [0x00000] in :0
at Anaconda.App.Main () [0x00001] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Uri' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.UriParser' threw an exception. ---> System.MissingMethodException: Method not found: bool System.Runtime.Versioning.BinaryCompatibility.get_TargetsAtLeast_Desktop_V4_5()
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at System.Uri..cctor () [0x00117] in :0
--- End of inner exception stack trace ---
at System.Windows.Navigation.BaseUriHelper..cctor () [0x00000] in <31c27960b3944cf5ac22b64c6d7fa247>:0
--- End of inner exception stack trace ---
at System.Windows.Application.ApplicationInit () [0x0000a] in <28df16e13dde49b7bc6df4407bb01bc0>:0
at System.Windows.Application..cctor () [0x0002e] in <28df16e13dde49b7bc6df4407bb01bc0>:0
--- End of inner exception stack trace ---
at Anaconda.App..ctor () [0x00000] in :0

I have the proper Python version installed on wine, but it doesn't seem to work.
I'm using Wine with Linux mint 21.1, wine in mode Windows 10

Windows Defender detects as Malware

The title is fairly self explanatory.
When you have Anaconda open, Windows Defender pesters you every 5 seconds.
This occurred on the latest release on GitHub.

tripped my windows defender?

while i was downloading and extracting this, it tripped my windows defender, why is this happening?
edit: i may be stupid
Screenshot 2023-11-09 114650

Is this actually safe?

VirusTotal detects this as a virus. So I’m wondering if this actually is safe.

I think I will run this in an enclosed vm

i dose not work AT ALL

ive have downloaded the zip and extracted it run the exe as administrator selected the game and output file i click decompile and i says done! i go to the file and there is nothing there

Conversion Issues with MMF2 Game

Heyo, I have a game here that has some minor animation issues, and doesn't build at all.
However if I delete the Launcher frame, it Builds on my Windows 10 desktop but with animation issues and missing .dll errors
This is the game in question, its from around 2012-2013 if I recall
I had to use the CTF-Developer-2.5 Extension Manager to use the newer version of the waterSurface.mfx to open it properly
The same issues appear to occur in MMF2-Developer as well

The original filepaths in the .mfa are:

C:\Hra\Temno\Temno.mfa
C:\Hra\Temno\TEMNO.exe
C:\Hra\Temno\Data\Backgrounds\launcher.png
C:\Hra\Temno\Data\Objects\blurrtree1.png
C:\Hra\Temno\Data\Objects\blurrtree2.png
C:\Hra\Temno\Data\Backgrounds\Chapter1\01.png
C:\Hra\Temno\Data\Backgrounds\Chapter1\01_22.png
C:\Hra\Temno\Data\Objects\Cutscenes\01.wmv
C:\Hra\Temno\Data\Objects\Cutscenes\02.wmv
C:\Hra\Temno\Data\Objects\Cutscenes\03.wmv

Syntax Error

I keep getting this error when I try to run Anaconda

line 17
    print 'Anaconda Decompiler'
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

What's happening? Why is it doing this?

anothere error

when trying to decompile i get this error: ImportError: DLL load failed: %1 is not a valid Win32 application.

someone help

no output

doesn't actually decompile anything, because the call to start "decompile.bat" isn't actually how you'd call to open a batch file using os.system(), so it just fails

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.