Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Call To Power II > CtP2-Source Code Project > PROJECT: Altered source files
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread   
Pages (17): [ 1   2   3   4   5   6     >> ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 21-12-2003 03:45
Edit/Delete Message Reply w/Quote
#61 Report this post to a moderator
Support Apolyton or Terrorists Win

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 is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 22-12-2003 04:56 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#62 Report this post to a moderator
Inflate your Upload Space

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 is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 22-12-2003 05:04 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#63 Report this post to a moderator
Avatar Enlargement: We've got the solution

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 is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 22-12-2003 05:05 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#64 Report this post to a moderator
Remove this text

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 is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 22-12-2003 05:08 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#65 Report this post to a moderator
Increase the size of your Attachments

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

Solver is offline Solver
Apolyton Duke Of Something
Latvia, Riga
Sep 2000
time: 07:31
  Old Post 22-12-2003 05:11 Visit Solver<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#66 Report this post to a moderator
Help yourself to an AD-FREE life

Very, very impressive work by Fromafar .

Keygen is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 22-12-2003 05:12 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#67 Report this post to a moderator
Support Apolyton buy from Amazon

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 is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 23-12-2003 05:53 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#68 Report this post to a moderator
Tired of ads?

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

4thmoon is offline 4thmoon
Settler

Dec 2003
time: 05:31
  Old Post 23-12-2003 11:22
Edit/Delete Message Reply w/Quote
#69 Report this post to a moderator
Support Apolyton buy from Amazon

Is there any japanese?
i fixed some codes to treat japanese edition ctp2_data correctly.
i think these codes work well.

you should find originals and replace them.
add japanese.h to the project.
if you meet sudden death, try re-build please.

i thank all of this project and apolyton

> Martin

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.

the path information is as follows.

\ctp2source\ctp2_code\gs\utility\japanese.h
\ctp2source\ctp2_code\ui\aui_common\aui_bitmapfon
t.h
\ctp2source\ctp2_code\ui\aui_common\aui_bitmapfon
t.cpp
\ctp2source\ctp2_code\ui\interface\greatlibrary.cpp
\ctp2source\ctp2_code\gs\utility\stringutils.cpp
\ctp2source\ctp2_code\gs\fileio\Token.cpp

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



now i finished the work and replace the zip file.
i tested this codes only with the original codes, but the altered codes.
hence i understood that i need modfied data files written in japanese to do it.
i have not much time and hope help of some other japanese...

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?

:::attachment is deleted. see my new post.:::

Last edited by 4thmoon on 03-01-2004 at 13:59

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 24-12-2003 01:27 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#70 Report this post to a moderator
Browse Apolyton AD-FREE

4thmoon I have two problems with the files you provided one thing is that I have no idea where I should add the japanese.h into the file structure and second you used an older version of greatlibary.cpp so I would need some time to add all your changes myself to the latest version of that file and my time is limited, so if the changes should be incorporated fast then I am afraid you have to do it on your own. It would also help if you add the to the path information, so that I don't have to search the destination of the files myself. Well and there should then also some japanese text files that have to be modified. To match the files with the current progress.

-Martin

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:31
  Old Post 24-12-2003 03:38
Edit/Delete Message Reply w/Quote
#71 Report this post to a moderator
Translation Support Apolyton, buy Galactic Civilizations

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

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 24-12-2003 04:01 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#72 Report this post to a moderator
Re: Translation Support Apolyton, buy Galactic Civilizations: Deluxe Edition

quote:
Originally posted by Tamerlin
Sorry for the delay but as we say... better late than never. (though a :guilty: smiley would be more appropriate)...


Well sounds familiar.

quote:
Originally posted by Tamerlin
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...


Well you did not understand it quite correctly. Actual to provide the people with a pacth we need text files in their language, of course no one need to translate the whole text files just the part that was added. So the instructions I gave were for you but not for translation but for doing the translation. So execute the instructions and you have the text files I wanted some weeks ago. For example I don't have a French ldl_str.txt so I couldn't even add strings in English to it.

quote:
Originally posted by Tamerlin
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"...


Fortunatly I can't verify it as I don't speak any French.

I am going to set up a thread for translation purposes anyway.

-Martin

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 24-12-2003 04:08 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#73 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

martin it is clear to me that it does something

but as I am reading drunk it is almost but to what that is the question

T?HE Big MC NEEDS A New beeeer

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 24-12-2003 04:13 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#74 Report this post to a moderator
Get a bigger avatar today!

quote:
Originally posted by The Big Mc
martin it is clear to me that it does something


Well, what does something? Anyway here is some new stuff:

..\ctp2_data\default\gamedata\Colors00.txt
..\ctp2_code\gfx\gfx_utils\colorset.h

Color set expansion by Martin Gühmann: Up to 33 players are now supported with their own color.

I hope you enjoy my new color palette.

..\ctp2_code\gs\database\profileDB.h

Modified assert by Martin Gühmann to avoid an assersation falure when you set num players higher the 17.


..\ctp2_code\ui\interface\spnewgameplayersscreen.cpp
..\ctp2_code\ui\interface\spnewgameplayersscreen.h
..\ctp2_code\ui\interface\dipwizard.cpp
..\ctp2_code\ui\interface\dipwizard.h

Here I fixed something in the comments of the files to match the information more adequadly.

-Martin

Attachment: colors.zip
This has been downloaded 14 time(s).

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 24-12-2003 04:15 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#75 Report this post to a moderator
Avatar Enlargement: We've got the solution

very wrong but here it goes


quote:
5) It is a matter now to add chains (strings) to files text.

In the catalog "C:...\ctp2_code\ctp", open the file "userkeymap.txt" and add the line "^mMusic" at the end of the list.

In the catalog of the GAME "C:...\Call To Power 2\ctp2_data\french\gamedata", and no in the catalog of the code source, open the file "Add_str.txt" and add the line "Str_ldl_MusicHotKey "Ctl+m"" after the line "str_ldl_SoundHotKey "Ctrl+v"".

Open now the file "ldl_str.txt" and in the entitled section "# Options Menu Strings", add the line "str_ldl_music "Musique"".

In this same file, look for the lines "str_ldl_SOUND "HIS"" and "str_ldl_SOUND_OPTIONS "HIS"" and add after these the lines "str_ldl_MUSIC "Music"" and "str_ldl_MUSIC_OPTIONS "Musique"". Note: do not put the text in quotes in capital letter, it is a matter of the text that will appear to the screen.

In the catalog "C:...\Call To Power 2\ctp2_data\default\uidata", open the file "keymap.txt" and add the line "^m MUSIC_OPTIONS" at the end of this one.

**** It is important to note that the game will not work (there will be a crash) if the names of the chains (strings) figuring in the files text do not correspond to the list of the chain names (strings) in the functions. That means that a chain (string) named "ldl_str_MUSIC" in the files. txt will provoke a crash if the name of the chain (string) is "ldl_str_Music" in the function.

To add the "Wonder" and "Pollution" rankings:

You must modify the files "add_str.txt" and "ldl_str.txt". Open the file "ldl_str.txt" that is located in the catalog "C:...\Call To Power 2\ctp2_data\french\gamedata", find the following lines:

# Ranking Tab str_ldl_RANKING_MILITARY "military Officer" str_ldl_RANKING_ECONOMIC "Economique"
str_ldl_RANKING_SCIENTIFIC "Scientific" str_ldl_RANKING_OVERALL "General" str_ldl_INFO_RANKING_TAB
"Classification" str_ldl_RANKING_RANK "Row:" str_ldl_LINE_BUTTON "Bends" str_ldl_ZEROSUM_BUTTON "Total"

and add the lines:

str_ldl_RANKING_POLLUTION "Pollution" str_ldl_WONDER "Wonders"

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 24-12-2003 04:20 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#76 Report this post to a moderator
Avatar Enlargement: We've got the solution

quote:
Originally posted by The Big Mc
very wrong but here it goes


Well that was a translation question but I think I shouldn't go now into the details. I think it is better to discuss it with clearer heads tomorrow.

-Martin

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:31
  Old Post 24-12-2003 04:42
Edit/Delete Message Reply w/Quote
#77 Report this post to a moderator
Inflate your Upload Space



As I foresaw it I did not understood it adequately... You are right, it is better to create a new thread. Though I could send you the french CtP2 files I think it would be better to work differently... more details in the appropriate thread.

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 30-12-2003 21:52
Edit/Delete Message Reply w/Quote
#78 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

NM

Last edited by MrBaggins on 31-12-2003 at 02:04

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 31-12-2003 01:28 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#79 Report this post to a moderator
Lose 30 kilos (of popups)

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

4thmoon is offline 4thmoon
Settler

Dec 2003
time: 05:31
  Old Post 01-01-2004 22:22
Edit/Delete Message Reply w/Quote
#80 Report this post to a moderator
Support Apolyton, buy Call to Power 2

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?

quote:
Originally posted by Martin Gu"hmann

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.



i find that my codes can not treat non-english data (ex. french) correctly.
if you want to know the cause of overhead, you should see aui_bitmapfont.h. ( i updated the attachment because i forgot to escape some changes by macro switch. )
i cant execute english version binary, so i dont know the overhead is remarkable or not.

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.

quote:
Originally posted by Martin Gu"hmann


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.

-Martin


it seems a good solution. 

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 01-01-2004 22:42 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#81 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

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 is offline 4thmoon
Settler

Dec 2003
time: 05:31
  Old Post 03-01-2004 14:27
Edit/Delete Message Reply w/Quote
#82 Report this post to a moderator
Lose 30 kilos (of popups)

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 is offline 4thmoon
Settler

Dec 2003
time: 05:31
  Old Post 03-01-2004 14:29
Edit/Delete Message Reply w/Quote
#83 Report this post to a moderator
japanese edition Support Apolyton, buy Alpha Centauri

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 is offline Protra3211
Warlord

Jun 2003
time: 05:31
  Old Post 03-01-2004 19:40
Edit/Delete Message Reply w/Quote
#84 Report this post to a moderator
Put an end to popups!

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.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 04-01-2004 03:29 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#85 Report this post to a moderator
Avatar Enlargement: We've got the solution

quote:
Originally posted by Protra3211
Do I understand right that you have diplomacy photos working in the game now?


Provided you can make an *.exe out of the files in this thread and the source files they are in otherwise you have to wait until someone else does it for your.

Well for the diplomacy photos, I must say they are disappointing, at least better then nothing, and well we have to redesign the diplomanager finally. See this thread.

-Martin

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 07-01-2004 03:43
Edit/Delete Message Reply w/Quote
#86 Report this post to a moderator
Re: japanese edition Increase the size of your Attachments

quote:
Originally posted by 4thmoon
an error occurred in DipWizard:: DipWizard


You may have to uncomment the Picture block in dipwizard.ldl. Martin has activated this block in the new versions for the European languages.

Some other small improvement suggestions for your code:

- CivApp:: PostLoadQuickSaveAction still contains an active statement leaderName[6] = '\0'.

- If you modify the file civpaths.txt, and change english to japanese, you may put your changes in separate japanese directories. This could prevent accidental overwriting of 'real' english files when unzipping your files.

- If you generate the Win32 - Release version and set Prophylaxis=No in userprofile.txt, you may generate a non-debug version that does not require the CD. Modifying c3files.cpp is not necessary.

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 09-01-2004 04:30
Edit/Delete Message Reply w/Quote
#87 Report this post to a moderator
Inflate your Upload Space

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 is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 11-01-2004 00:00
Edit/Delete Message Reply w/Quote
#88 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

A set of syntax corrections for compilation on other compilers than MS VC++. These files do not contain any functional changes.

Compilation with MS VC++ 6.0 is still possible - and has been tested.

This set is incomplete, and will not enable you to generate the main CTP executable without making additional changes yourself.

[Edit: link removed, included in 2004-01-31 source]

Last edited by Fromafar on 01-02-2004 at 20:21

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 14-01-2004 23:50
Edit/Delete Message Reply w/Quote
#89 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

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

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 18-01-2004 22:53 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#90 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by Fromafar
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).


I don't call removing asserts design improvements, asserts are thrown when something happens that should not happen, therefore removing memory leaks is bug fixing.

Well for the smaller CTP_LEAKS_99999.TXT I just played some turns and it took hours to exit the game.

..\ctp2_code\gs\slic\slic.y
..\ctp2_code\gs\slic\y.tab.c
..\ctp2_code\gs\slic\y.tab.h
..\ctp2_code\gs\slic\slicif.h
..\ctp2_code\gs\slic\slicif.cpp
..\ctp2_code\gs\slic\SlicFrame.cpp
..\ctp2_code\gs\slic\SlicDBConduit.h

Implemented feature of CTP2 v1.1: Slic Database Access and Slic Database Size Determination.
Slicers can now like in the CTP2 v.1.1 access the database and also access it like it is promissed by the slic documentaion, if a flag is not in the database you get now an error message instead of an crash. There is now also a way to access the size of an database.

-Martin

Attachment: slicdbaccess.zip
This has been downloaded 7 time(s).

 
Pages (17): [ 1   2   3   4   5   6     >> ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:31.
Apolyton Time is 00:31.
    top of page
Rate This Thread:
Forum Jump:
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
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0738 seconds (93.43% PHP - 6.57% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net