Pages: [1]
|
|
|
Author
|
Topic: Questions: Dialog and the source code (Read 1767 times)
|
waywardoctagon
*Many bubbles*
Offline
Gender:
Posts: 142
More information...
|
I'm going to be fiddling with the dialog a bit(for, basically, personal amusement :D ), and I've worked out what I need to do with the racec.c files, the strings.h files, and the content/comm/race/race.txt files, but I've run into something:
What are the content/comm/race/race.ts files for? How do they fit with the others? Also, what are the numbers at the ends of some of the lines? All I can see is that the number of numbers for a dialog bit seems to be the number of lines in the bit, minus one. (And are there any other dialog-related files I'd need to edit, aside from those four?) I found these two files about the dialog but they don't mention the .ts files.
Also... which bits determine whether you're at a homeworld or not and change the dialog options? Like, if you go to the Pkunk homeworld as opposed to encountering them in space, there's a completely different set of options. I want to make sure that if I make a new option it ends up in the right place. I'm not very familiar with C and I'm having a little trouble finding this.
Lastly... I haven't gotten this far yet, but as long as I'm asking questions: Will I actually need to compile and link all the thousands of files individually, or is there a shortcut?
|
|
|
Logged
|
|
|
|
meep-eep
Forum Admin
Enlightened
Offline
Posts: 2847
|
What are the content/comm/race/race.ts files for? How do they fit with the others? Also, what are the numbers at the ends of some of the lines? All I can see is that the number of numbers for a dialog bit seems to be the number of lines in the bit, minus one. They are timestamps. They determine when each line is shown, so that they are synchronised with the voices. In the tools module in CVS there's a tool which can be used to (interactively) generate these.
(And are there any other dialog-related files I'd need to edit, aside from those four?) I think that's it.
Also... which bits determine whether you're at a homeworld or not and change the dialog options? Like, if you go to the Pkunk homeworld as opposed to encountering them in space, there's a completely different set of options. I want to make sure that if I make a new option it ends up in the right place. I'm not very familiar with C and I'm having a little trouble finding this. For this the game state some bits of the variable 'GLOBAL_FLAGS_AND_DATA' is used. They are set in src/sc2code/planets/gen* with SET_GAME_STATE, and they are queried in the comm files with GET_GAME_STATE. A bit more info can be found in src/sc2code/globdata.h. We haven't really had a reason to mess with these, so this information is incomplete.
Lastly... I haven't gotten this far yet, but as long as I'm asking questions: Will I actually need to compile and link all the thousands of files individually, or is there a shortcut?
There is a build script for building on *nix systems and on MinGW, and there is a project file for MSVC. See the files INSTALL, INSTALL.msvc (recent CVS only), INSTALL.mingw, and/or doc/users/unixinstall.
|
|
|
Logged
|
“When Juffo-Wup is complete when at last there is no Void, no Non when the Creators return then we can finally rest.”
|
|
|
waywardoctagon
*Many bubbles*
Offline
Gender:
Posts: 142
More information...
|
Aha! Thank you very much! :D
|
|
|
Logged
|
|
|
|
Pages: [1]
|
|
|
|
|