Git Product home page Git Product logo

ags-speechskip-tool's Introduction

AGS SpeechSkip Tool

This program allows you to change a way speech lines in AGS games can be skipped.

Are you tired of not being able to read subtitles in time or, perhaps, you don't want to keep pressing buttons to get to the next speech line? Maybe you hate skipping dialogs accidentally as your cat jumps on the keyboard out of nowhere? Well, worry no more! Or do. Either way, this program might help you. Or it might not.

Compilation

You will need .NET Framework 3.5 or above and Microsoft Visual Studio 2010 or above. Open a solution (.sln) file and it should be able to build.

Supported versions

Well... We're dealing with AGS, alright? It will break. When it does feel free to open an issue.

Tested AGS versions

  • 3.4.1 P4
  • 3.4.0
  • 3.3.4
  • 3.3.3
  • 3.3.0
  • 3.2.1

Note on saves

Value of speech skip type variable is stored in savefile, so this program will only have effect on a fresh new game start.

Since save file format is "great" and writing a parser for it is not a ridiculous task on people's lists, it's much easier to load a savefile, modify value using a debugger and resave it than searching for 1 byte in a middle of dozens of zeroes.

If you really need to use your savefile then copy a search pattern for SetSkipSpeech function from "Patcher/SpeechSkipPatcher.cs" and scan for it in game executable or acwin. Once you've found it, look for instruction that moves register value into a memory pointed to by a constant pointer into data segment (e.g. mov dword ptr ds:[5CF610],eax). That pointer (in this case to 0x5CF610) should point to a variable you have to change. Set it to whatever you need and in case it works just make a new save and there you go. Sometimes this instruction can be located inside of inner functions, so in that case jump through call instructions.

How it works

Adventure Game Studio has different ways to skip speech lines built-in (and, yeah, it's also bugged). The idea is to change default value set by the game developer to the one we need. This value sits inside of DTA (game data) file that is (always?) located in game executable.

The trick is that engine has a function (SetSkipSpeech) that can change that value at runtime exposed to script API, which renders our "solution" useless if that function is used by the game (e.g. Blackwell Unbound). So we just patch that function to return immediately and as a result it cannot change values anymore. In theory it can break some games that rely on this function (or value) heavily, but realistically speaking not sure if it's even possible.

ags-speechskip-tool's People

Contributors

adm244 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ags-speechskip-tool's Issues

Add AGS 3.5x support

Since CLIB file format has changed in AGS 3.5, we need to add support for it.

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.