Wednesday, 29 November 2017

Decompiler rewrite progress

A move of PCs meant that I stupidly lost a chunk of the work I did on the decompiler a couple of years back so I'm having to rewrite it.

Progress is going well and I've covered most of the 'easier' decompilation now which means that 2/3 of the binary scripts decompile to source and then recompile to the same binary as extracted from the game.

Here's an example of how the decompiled source looks atm.

Compared to the debug source files extracted from the xbox version this obviously doesn't have any of the comments or helpfully named variables.
I'm using the c# Roslyn compiler functionality as the source syntax is near enough c# which should mean I can work out some better variable names once everything decompiles correctly.

I am finding bugs in the binary code which atm I'm working around and recreating in the new source
so that I can get a baseline match. Also there are some scripts only on the PC version and differences  from the xbox code which makes things harder but I can deal with those later.

I've switch from Eclipse as a script platform to visual studio code which I'll put details up about later.

10 comments:

  1. Hello my friend! I wish to say that this article is awesome, nice written and include almost all important infos. I would like to see more posts like this.
    UX design is meeting your expectations

    ReplyDelete
  2. If you were to engage your target audience, you should look for Media One. The agency would offer you the best website design to help you rank higher on popular search engine results. They would also help you make a stronger online presence.

    ReplyDelete
  3. An attention-grabbing dialogue is value comment. I feel that you must write extra on this matter, it might not be a taboo subject but generally persons are not sufficient to speak on such topics. To the next. certified trainer

    ReplyDelete
  4. I'm interested to discover what blog framework you are utilizing? I'm having some minor security issues with my most recent site and I might want to discover something more defended. Do you have any recommendations? Nickel Sheet

    ReplyDelete
  5. I appreciate, cause I found exactly what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a great day. 5 room hdb interior design ideas

    ReplyDelete
  6. hi!,I like your writing very much! share we communicate more about your post on AOL? I require a specialist on this area to solve my problem. May be that's you! Looking forward to see you. on site event management

    ReplyDelete
  7. I'm very enjoyed for this blog. Its an educational topic. It help me quite definitely to solve some problems. Its opportunity are very fantastic and working style so speedy. pre-planning funeral

    ReplyDelete
  8. When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four e-mails with the same comment. Is there any way you can remove people from that service? Thanks! mri scan singapore

    ReplyDelete
  9. Very well written article. It will be useful to anybody who utilizes it, including myself. Keep doing what you are doing - for sure i will check out more posts. divorce Singapore cost

    ReplyDelete