|
Novus
Enlightened
    
Offline
Gender: 
Posts: 1938

Fot or not?
|
Right now, the simplest solution available for editing ships in UQM is to edit the source code and recompile, so I'll briefly explain how to do that step by step, with links to the relevant information. [*]Install a CVS client, such as WinCVS. [*]Check out (download) the UQM source code from the UQM CVS repository. The module you want is "sc2". [*]Edit the ship definitions in sc2/sc2/src/sc2code/ships/[ship]/[ship].c (where [ship] is the name of the ship to edit). The lines you want to edit are at the top of the file and look like this:
#define MAX_CREW 20 #define MAX_ENERGY 24 #define ENERGY_REGENERATION 1 #define WEAPON_ENERGY_COST 3 #define SPECIAL_ENERGY_COST 2 #define ENERGY_WAIT 8 #define MAX_THRUST 24 #define THRUST_INCREMENT 3 #define TURN_WAIT 4 #define THRUST_WAIT 0 #define WEAPON_WAIT 0 #define SPECIAL_WAIT 0
#define SHIP_MASS 6
Just change the numbers to suit your needs. [*]Follow the instructions in sc2/INSTALL.mingw to install MinGW and MSYS and the required libraries and compile. [/list]To perform further changes, edit the values as described above and repeat the "./build.sh uqm" step from the compilation instructions.
|
|
|
Logged
|
|
|
|
|
|
|
Novus
Enlightened
    
Offline
Gender: 
Posts: 1938

Fot or not?
|
The OpenAL SDK seems to have been recently moved; it is now here.
The whole point of downloading a CVS client in your case is to use it to download the latest source tree (and keep it up to date easily), not just the source file you want to change. You can't recompile a single file and link it back into the executable, if that was what you were thinking.
BTW, thanks for the TortoiseCVS link, 0xDEC0DE. I'll be looking into it further.
|
|
|
Logged
|
|
|
|
|
|
Novus
Enlightened
    
Offline
Gender: 
Posts: 1938

Fot or not?
|
OpenAL is used to produce the sound in UQM, while CVS is used to keep the source code up to date when different people make changes. They have practically nothing to do with each other.
You should be able to compile UQM without OpenAL, although this will probably disable some sound-related features. UQM contains an alternative system called MixSDL which seems to work fine, though.
The download link works fine for me in Mozilla (suite and Firefox). Try using "Save link target as..." or the equivalent command in the right-click pop-up menu for your browser.
|
|
|
Logged
|
|
|
|
Novus
Enlightened
    
Offline
Gender: 
Posts: 1938

Fot or not?
|
One more thing: if you get error messages about conflicting definitions of ssize_t while compiling UQM, just remove the offending definition ("typedef int ssize_t;") from the UQM source code (the error message includes information on where the problem lies; I got this error twice).
|
|
|
Logged
|
|
|
|
|
|
Novus
Enlightened
    
Offline
Gender: 
Posts: 1938

Fot or not?
|
Header files have the extension .h.
|
|
|
Logged
|
|
|
|
|
|