The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2020, 09:00:26 am
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  General UQM Discussion (Moderator: Death 999)
| | |-+  Questions: Dialog and the source code
« previous next »
Pages: [1] Print
Author Topic: Questions: Dialog and the source code  (Read 1328 times)
waywardoctagon
*Many bubbles*
***
Offline Offline

Gender: Female
Posts: 142


More information...


View Profile
Questions: Dialog and the source code
« on: November 30, 2006, 06:14:41 pm »

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 Offline

Posts: 2847



View Profile
Re: Questions: Dialog and the source code
« Reply #1 on: November 30, 2006, 06:47:38 pm »

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.

Quote
(And are there any other dialog-related files I'd need to edit, aside from those four?)
I think that's it.

Quote
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.

Quote
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 Offline

Gender: Female
Posts: 142


More information...


View Profile
Re: Questions: Dialog and the source code
« Reply #2 on: November 30, 2006, 06:50:48 pm »

Aha!  Thank you very much! :D
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!