storm-devs / coas

compatible COAS scripts
2 stars 2 forks source link

"TEXT" folder missing? #3

Open AntonShalgachev opened 11 months ago

AntonShalgachev commented 11 months ago

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?

Hammie commented 11 months ago

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

That includes the TEXT folder.

AntonShalgachev commented 11 months ago

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?

AntonShalgachev commented 11 months ago

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)