Skip to content

"TEXT" folder missing? #3

Open
Open

Description

@AntonShalgachev

Hi! I'm trying to run COAS with the modified scripts from this repo, but I've stumbled on a script compilation issue:

COMPILE ERROR in characters\LSC_Q2Utilite.c(1): can't load file: TEXT\characters\LSC_Q2Utilite.h

I don't see the "TEXT" folder in the repo (or in the original game folder), so it looks like this file isn't added to the repository. I've found a bunch of .c files referencing .h files from this "TEXT" folder, so perhaps the whole folder wasn't added to the repo?

Or perhaps I've overlooked something?

Activity

  1. Hammie commented on Nov 7, 2023

    @Hammie
    Member

    This repository only contains the files that are changed compared to the original game.

    That includes the TEXT folder.

  2. AntonShalgachev commented on Nov 7, 2023

    @AntonShalgachev
    Author

    Interesting, this folder seems to be missing in my installation of the game. The base game itself runs fine though. I have the version from GOG, I just got it yesterday

    The original version of LSC_Q2Utilite.c that I have has all the localization strings embedded in the code and doesn't include LSC_Q2Utilite.h:
    LSC_Q2Utilite.c.txt (changed the extension to allow GitHub to upload the file)
    Which probably explains why I don't have this "TEXT" folder (which I guess should just contain files defining DLG_TEXT with the localized text)

    Could it be that GOG has an older version of the scripts that doesn't have all localized strings moved out to the TEXT folder? GOG says the version of the game is 1.3, but the game itself reports the version as 1.2.12. The game language is Russian. Anything else I can try doing?

  3. AntonShalgachev commented on Nov 7, 2023

    @AntonShalgachev
    Author

    I think I figured it out. Apparently Russian and English versions are a bit different in the scripts structure: in the Russian version everything is hardcoded in the .c files, whereas the English version has this TEXT folder with all the localized strings. Applying the files in this repo on the English version of the game works for me 🎉 Perhaps this is worth a note in the README

    I think I'll also prepare a similar patch for the Russian version of game at some point for me (but I can also create a PR with that if there's a need for that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions