1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
Dependences
For the properly functionality of the web-interface
the next program or modules requred:
* CGI supported webserver (for example apache)
* Perl interpretator
* Perl modules
1. [HTML::Template];
2. [CGI::Simple];
3. [IPC::Open2];
4. [Sys::CPU];
5. [POSIX]
Installation
1. Unpack the archine.
2. Complile the console simulator program.
1. Go to subdir csim
2. If you are using Linux or Unix then execute command make
for_linux (gcc and GNU make requred). If you're using Windows
then execute command make for_windows
(mingw32 and GNU make requred).
Note: There are already compiled binary executable files for
the Windows and the Linux in the archive. If you're installing
the sim on any web hosting you can use those files and skip
step 2.
3. Create the directory where the site will locate and configure
your webserver for executing the CGI-scripts in this directory.
4. Copy the index.cgi, and as well as subdirectories css, img, template
and CGI with their content to the site directory. Copy csim/units.conf
to the site directory. And you can copy binary executable file (the
calculation module). But in common case this file can be placed in
any dirictory.
5. Edit file index.cgi to set configuration parameters.
The main parameters are:
1. path to the file units.conf (my $units_conf='csim/units.conf';);
2. path to the simulator (my $simulator='./csim/csim';);
3. read the comments to the other parameters and change it
if neccessary.
6. Try to open the the page with the web brouser and fix some problems
if they appears (for example there is no access to some file due the
permitions). And you should make sure that CGI-script can start the
simulator (there are must shown the CGI-script version number and
csim version number in the window header).
Localization
For the sim localization you need:
1. copy csim/langs/TEMPLATE_FOR_NEW_LANGS file to LANG file.
2. replace english terms in it by terms from your local game
interface (menu Technology)
For the interface localisation you need:
1. copy template/lang/NEW_LANGUAGE_TEMPLATE.pot file to LANG.po file;
2. translate all english strings in it (fill msgstr fields);
3. put in the file header translators info.
send me your localization (your LANG.po and LANG files)
to intergrate it in the basic version.
|