 |
|
Fromafar
|
|
Bug fix: more memory leaks repaired.
This file contains an update on the GameFile.cpp file from an earlier post. To prevent unzip order problems, I have removed the old link, and have included all files in the following.
[Edit: link removed, included in 2003-12-23 source]
Last edited by Fromafar on 31-01-2004 at 03:33
|
|
|  |
 |
|
Keygen
|
|
Athens, Hellas
Jan 2000 time: 07:31
|
|
All past changes
+
- Added MAX_MATCH_LIST_CYCLES flag in the const.txt in the Magnificent Samurai scenario [by Fromafar].
- Great library starts with the current research project of the player [by Fromafar].
- Corrected a number of SLIC functions that used calls with inappropriate arguments [by Fromafar].
- Clear the great library data between players for hotseat games [by Fromafar].
- Added option to show info for tile improvements that are too expensive and made it modifiable in-game [by Fromafar].
- Added text strings in the English and German version of ldl_str.txt [by Fromafar].
ctp2sc1.2_2003.12.21.zip
|
|
|  |
 |
|
Keygen
|
|
Athens, Hellas
Jan 2000 time: 07:31
|
|
All past changes
+
- Added MAX_MATCH_LIST_CYCLES flag in the const.txt in the Magnificent Samurai scenario [by Fromafar].
- Great library starts with the current research project of the player [by Fromafar].
- Corrected a number of SLIC functions that used calls with inappropriate arguments [by Fromafar].
- Clear the great library data between players for hotseat games [by Fromafar].
- Added option to show info for tile improvements that are too expensive and made it modifiable in-game [by Fromafar].
- Added text strings in the English and German version of ldl_str.txt [by Fromafar].
+
- Fixed some memory leaks related to the load/save file window [by Fromafar].
- Fixed some memory leaks related to the City window, and cleaned up some list handling [by Fromafar].
ctp2sc1.2_2003.12.21_Leaks.zip
|
|
|  |
 |
|
Keygen
|
|
Athens, Hellas
Jan 2000 time: 07:31
|
|
All past changes
+
- Added MAX_MATCH_LIST_CYCLES flag in the const.txt in the Magnificent Samurai scenario [by Fromafar].
- Great library starts with the current research project of the player [by Fromafar].
- Corrected a number of SLIC functions that used calls with inappropriate arguments [by Fromafar].
- Clear the great library data between players for hotseat games [by Fromafar].
- Added option to show info for tile improvements that are too expensive and made it modifiable in-game [by Fromafar].
- Added text strings in the English and German version of ldl_str.txt [by Fromafar].
+
- cpuinf32.dll is no longer used to examine the CPU, to prevent crashes on some machines [by Fromafar].
ctp2sc1.2_2003.12.21_NoCpu.zip
|
|
|  |
 |
|
Keygen
|
|
Athens, Hellas
Jan 2000 time: 07:31
|
|
All past changes
+
- Added MAX_MATCH_LIST_CYCLES flag in the const.txt in the Magnificent Samurai scenario [by Fromafar].
- Great library starts with the current research project of the player [by Fromafar].
- Corrected a number of SLIC functions that used calls with inappropriate arguments [by Fromafar].
- Clear the great library data between players for hotseat games [by Fromafar].
- Added option to show info for tile improvements that are too expensive and made it modifiable in-game [by Fromafar].
- Added text strings in the English and German version of ldl_str.txt [by Fromafar].
+
- Fixed some memory leaks related to the load/save file window [by Fromafar].
- Fixed some memory leaks related to the City window, and cleaned up some list handling [by Fromafar].
+
- cpuinf32.dll is no longer used to examine the CPU, to prevent crashes on some machines [by Fromafar].
ctp2sc1.2_2003.12.21_All.zip
|
|
|  |
 |
|  |
 |
|
Keygen
|
|
Athens, Hellas
Jan 2000 time: 07:31
|
|
I extracted all files included in the zipped files that Fromafar posted during the past week in the respected folders over the previous update (2003-12-14) Kaan had posted, overwriting some files. I created new folders when they did not exist in the previous update (2003-12-14). Let me know if the files already included in the last update (2003-12-14) that where altered again contained the previous changes or not. Someone should examine the archives I posted for verification.
BTW, I splitted the changes in so many files because there is an ongoing discussion on both memory leak changes and cpuinf32.dll issue whether they should be included or not. By the next update it will be clear.
|
|
|  |
 |
|
Martin Gühmann
|
 |
Berlin, Germany
Mar 2001 time: 06:31
|
|
Finally I managed to compile everything into the first post. Well this is not quite correct unfortunatly I hit the limit of characters I can put into one post so I used my second post in that thread to give all the information.
As base I used Keygen's all in one pack and I added all the text files you can find in the patch and some other additions here is the last part of the stuff I indended to put into the first post:
..\ctp2_code\ui\interface\dipwirzard.cpp
..\ctp2_code\ui\interface\dipwirzard.h
..\ctp2_data\XXXXXX\uidata\layouts\dipwizard.ldl
Bug fix by Martin Gühmann: Added missing diplomacy photos to the diplomanager.
..\ctp2_code\ui\interface\spnewgameplayersscreen.cpp
..\ctp2_code\ui\interface\spnewgameplayersscreen.h
..\ctp2_data\XXXXXX\uidata\layouts\spnewgamepopups.ldl
Where XXXXXX stands for english, french, german, italian or spanish.
Interface Improvement by Martin Gühmann: Redesigned the sp new game player screen, so that a new game can be now started with more then 8 players. 31 players is the maximum number of players that can be now used, don't expect that your computer runs smoth with so many players. There is now also the possibilty to set the maximum number of players that can occur in a game for instance through revolts, maximum is also here 31 players. Another option is there to select the player index that determines in the end the player's color, unfortunatly this doesn't work, yet but this can be fixed when something else is fixed from the 1.1/1.11 patch list.
Note that if you play with MaxPlayer higher than NumPlayers and you use a version of Diplomod like in ApolytonPack then the game crashes if a new player is added and the total number of players is higher then you originally started with.
..\ctp2_data\XXXXXX\uidata\layouts\spnewgame.ldl
Where XXXXXX stands for english, french, german, italian or spanish.
Added disclaimers in text to the initial screen by Klaus Kaan.
Improved by Martin Gühmann to make it possible to localize all the strings on that screen.
This file replaces the image drawn by Locutus and therefore this image is not anymore part of the *.zip file. Well it is big enough.
..\ctp2_data\XXXXXX\gamedata\ldl_str.txt
Where XXXXXX stands for english or german.
Added new strings for disclaimers, version and the new sp new game players, to allow easy localization of all the stuff.
Note that for other language versions we still need tranlators to create a French, Italian and a Spanish version of that file.
.. \Scenarios\MagnificentSamurai\scen0000\default\gam
edata\scenario.slc
Fix by Martin Gühmann: When you return to Shichinen via the Star Road a fort should be created in Shichinen. Unfortunatly they give to the event the wrong argument the fort has the index 8 not 7. Using the TerrainImprovementDB functions avoids the need to fix this again if the indices are shifted again.
I packed a *.zip file with the altered files in the fashion of the mods. So if you just unzip it it into your default CTP2 folder and you installed the ctp2_code in the default CTP2 folder it overwrites the original source files. So if you altered some of these files already I recommend to back up them before and add your alteration to these files. Or alternativly you could unzip them to somewhere else, and alter the files from this *.zip. I recommend it anyway so you can use this file structure to add your own files and provide such *.zip's, too.
Edit: The the following pages what the file here contains else.
[Edit: See first post for the lastest version of that file pack.]
-Martin
Last edited by Martin Gühmann on 06-06-2004 at 02:03
|
|
|  |
 |
|  |
 |
|
Tamerlin
|
 |
Toulouse (South-western France)
Apr 2002 time: 06:31
|
|
Sorry for the delay but as we say... better late than never. (though a :guilty: smiley would be more appropriate)...
If I have understood it clearly, and that remains to be demonstrated, the translation needed until now is related to the process needed in order to add music options and about new informations in the Ranking Screen... 
French translation
5) Il s'agit maintenant d'ajouter des chaînes (strings) à des fichiers texte.
Dans le répertoire "C:...\ctp2_code\ctp", ouvrez le fichier "userkeymap.txt" et ajoutez la ligne "^mMusic" à la fin de la liste.
Dans le répertoire du JEU "C:...\Call To Power 2\ctp2_data\french\gamedata", et non dans le répertoire du code source, ouvrez le fichier "Add_str.txt" et ajoutez la ligne "Str_ldl_MusicHotKey "Ctl+m"" après la ligne "str_ldl_SoundHotKey "Ctrl+v"".
Ouvrez maintenant le fichier "ldl_str.txt" et dans la section intitulée "# Options Menu Strings", ajoutez la ligne "str_ldl_music "Musique"".
Dans ce même fichier, recherchez les lignes "str_ldl_SOUND "SON"" et "str_ldl_SOUND_OPTIONS "SON"" et ajoutez après celles-ci les lignes "str_ldl_MUSIC "Musique"" et "str_ldl_MUSIC_OPTIONS "Musique"".
Note : ne mettez pas le texte entre guillemets en majuscule, il s'agit du texte qui va apparaître à l'écran.
Dans le répertoire "C:...\Call To Power 2\ctp2_data\default\uidata", ouvrez le fichier "keymap.txt" et ajoutez la ligne "^m MUSIC_OPTIONS" à la fin de celui-ci.
**** Il est important de noter que le jeu ne fonctionnera pas (il y aura un crash) si les noms des chaînes (strings) figurant dans les fichiers texte ne correspondent pas à la liste des noms de chaîne (strings) dans les fonctions. Cela signifie qu'une chaîne (string) nommée "ldl_str_MUSIC" dans les fichiers .txt provoquera un crash si le nom de la chaîne (string) est "ldl_str_Music" dans la fonction.
To add the "Wonder" and "Pollution" rankings:
Vous devez modifier les fichiers "add_str.txt" et "ldl_str.txt".
Ouvrez le fichier "ldl_str.txt" qui se trouve dans le répertoire "C:...\Call To Power 2\ctp2_data\french\gamedata", trouvez les lignes suivantes :
# Ranking Tab
str_ldl_RANKING_MILITARY "Militaire"
str_ldl_RANKING_ECONOMIC "Economique"
str_ldl_RANKING_SCIENTIFIC "Scientifique"
str_ldl_RANKING_OVERALL "Général"
str_ldl_INFO_RANKING_TAB "Classement"
str_ldl_RANKING_RANK "Rang :"
str_ldl_LINE_BUTTON "Courbe"
str_ldl_ZEROSUM_BUTTON "Total"
et ajoutez les lignes :
str_ldl_RANKING_POLLUTION "Pollution"
str_ldl_WONDER "Merveilles"
End of Translation
Note : as I am not a coder or a computer science graduate I hope I have not made any mistake on technical words like "function"... 
Last edited by Tamerlin on 24-12-2003 at 03:45
|
|
|  |
 |
|  |
 |
|  |
 |
|  |
 |
|
MrBaggins
|
|
NM
Last edited by MrBaggins on 31-12-2003 at 02:04
|
|
|  |
 |
|
Martin Gühmann
|
 |
Berlin, Germany
Mar 2001 time: 06:31
|
|
quote: Originally posted by 4thmoon
now i am trying to make japanese version greatlibary.cpp from lastest english version (2003-12-23All.zip).
and i think the location of japanese.h is not fatal.
it will work in any place if you join it to the project. |
OK, I was just interested in the path to make it a little bit easier for everyone to place the files. I notices that the other files were also modifie except japanese.h.
quote: Originally posted by 4thmoon
i forgot an important notification.
these codes are only for japanese.
most of changes are harmless for other language version, but causes over head.
so i 'm not sure that those should be included to the altered souse package.... |
Overhead? What overhead in particular, is the loading time longer, does it need more memory. If it just needs a little bit longer to be displayed in the interface then it is not a problem the user doesn't notice it. Finally my which is to release a ctp2.exe that can be used for all languages, given of course there are the according text files. So if I understood you correctly the Japanese text files has still to be done? Well no problem once I updated the GreatLibary.txt. Of course you can also start with the other text files earlier. If you want to find other Japaneses here on Apolyton you could check the other fora for instance the Off-Topic forum. Well maybe you shouldn't post there as Settler or expect at least a DL-Dance. 
quote: Originally posted by 4thmoon
by the way,
i lost the new 'advance', if i load auto-save-file which was created just after getting it. have you already fixed this bug? |
So far there is no fix to that problem, at least I am aware in comparision to others probably of this bug. My idea to solve it is to save the game after the AdvaceScreen poped up.
And by the way if you replace the attachment, please post at least a notification post in the according thread so that everyone can notice it easily, for instance I noticed it by accident that you edited your post. What you added qualifies even as new post. 
-Martin
|
|
|  |
 |
|  |
 |
|
Martin Gühmann
|
 |
Berlin, Germany
Mar 2001 time: 06:31
|
|
quote: Originally posted by 4thmoon
i tested my codes with altered package and it seems good.
i used original \ctp2source\ctp2_data\english\gamedata and didn't meet error, it causes only blank field in new options.
to update data files is not seems to be difficult if i know the keys to add. is there some list of them? |
NOt yet and it will need some time until I can do it, or anyone else can do it.
quote: Originally posted by 4thmoon
i cant execute english version binary, so i dont know the overhead is remarkable or not. |
Actual the source code generates a binary that is for English, German, Frensh or whatever language as long as there are the according text files. But in fact the original CTP2 binary was made on a computer with English language.
quote: Originally posted by 4thmoon
all language binary is attractive, if you really want to include japanese, i try to fix the probrem. but to use compiler switch to make japanese specialized executable is another solution. i want to know the overhead is acceptable or not. |
Unfortunatly I wasn't able to test it, as I had and still have some other things to do, but actual I prefer a binary for all languages. At least it should go into the same code base, so at least you should use the precompiler options. This way you don't need to modify your files again whenever we modify the according files of our version of the source code. Maybe you should wait until I was able to test it or someone else was able to test.
-Martin
|
|
|  |
 |
|
4thmoon
|
|
sorry my mistake.
i cant delete this post and i dont know why.
Last edited by 4thmoon on 03-01-2004 at 14:37
|
|
|  |
 |
|
4thmoon
|
|
i renewed my attachment.
it includes source codes and data.
there still remain some sentence in data file written in english.
to use this, you need original source codes supplied by applyton, directX codes, altered package (2003-12-23All.zip posted by martin) and japanese edition data which attached this post.
firstly, you should prepare to compile original source codes, (i copied directX under lib folder).
and overwrite by altered package,
copy japanese data folders, and rewrite by this package again.
open project civctp_j.dsw, REBUILD 'CTP2 : DEBUG_BROWSE'.
if you meet some trouble, you should use original project and add compiling key '_JAPANESE'.
if the key '_JAPANESE', is not defined, it produces english ( or european langeuage in other words ) editoin. at least i intended to so.
now i am testing...
an error occurred in DipWizard: ipWizard
Attachment: ctp_japanese.zip
This has been downloaded 6 time(s).
Last edited by 4thmoon on 03-01-2004 at 21:09
|
|
|  |
 |
|
Protra3211
|
|
Hi Martin Guhmann
Do I understand right that you have diplomacy photos working in the game now?
Downloaded the main files, looking over them now.
Alot of changes in a short time. Dont want to break the fourm in here -a simlpe yes or is ok.
|
|
|  |
 |
|
Fromafar
|
|
Some small changes:
1. Bug fix: Exclusions.cpp, some cut & paste errors repaired.
2. Compatibility: Crater.cpp, removed unnecessary call to sqrt, making .NET compilation of the file succeed.
3. Bug fix: dipwizard.ldl, replaced a reference to a non-existing file updf01.tga (after consultation of Martin - included here to save him some work).
4. Intended functionality implementation: Alexander scenario.slc, replaced the code in the "doesn't work, grrrr..." function with something that seems to do the job.
[Edit: link removed, included in 2004-01-31 source]
Last edited by Fromafar on 01-02-2004 at 20:20
|
|
|  |
 |
|
Fromafar
|
|
Bug fix or design improvement (take your pick ): the memory of most single player new game setup screens will be released before starting the game.
The scenario and editor buttons have not been changed. The other buttons do not cause any memory leaks anymore. If you immediately quit after launch, you should no longer get assert popups in the debug version, and have a much faster exit (smaller CTP_LEAKS_99999.TXT).
[Edit: link removed, included in 2004-01-31 source]
Last edited by Fromafar on 01-02-2004 at 20:22
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:31. Apolyton Time is 00:31. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|