Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » [Patch/Mod] Alternate IMP creation
[Patch/Mod] Alternate IMP creation[message #263053] Mon, 20 September 2010 00:48 Go to next message
mgl is currently offline mgl

 
Messages:255
Registered:December 2007
Location: France
Edit 2010-09-29 after bbun's report:
There are now 2 separate diff files:
"alternate_IMP_creation.diff.zip" with everything and the English language file.
"alternate_IMP_creation-non_eng_lang.diff.gz" with all the other (untranslated) language files.
They are here.


If you play the game in English, you just have to unzip it at your stracciatella root folder and type:
patch --verbose -p0 < alternate_IMP_creation.diff


If you play in any other language, you have to run "patch" the same way on the other diff file too. The text I added is untranslated, even in my native French language, but it is required to make the alternate IMP creation patch work.

Build the executable.



"alternate_IMP_creation.diff" updates the following files:
Build/Laptop/CharProfile.h
Build/Laptop/CharProfile.cc
Build/Laptop/IMP_Compile_Character.cc
Build/Laptop/IMP_Personality_Finish.cc
Build/Laptop/IMP_Personality_Quiz.h
Build/Laptop/IMPVideoObjects.cc
Build/Laptop/IMP_Attribute_Selection.cc
Build/Laptop/IMP_Text_System.cc
Build/Laptop/IMP_Personality_Quiz.cc
Build/Laptop/IMP_HomePage.cc
Build/Laptop/IMP_Confirm.cc
Build/Utils/Text.h
Build/Utils/_EnglishText.cc


"alternate_IMP_creation-non_eng_lang.diff" updates all the other language files:
Build/Utils/_DutchText.cc
Build/Utils/_FrenchText.cc
Build/Utils/_GermanText.cc
Build/Utils/_ItalianText.cc
Build/Utils/_PolishText.cc
Build/Utils/_RussianText.cc



--------
Original message:

I updated my old "New IMP quiz" patch today, which I released two years ago on this forum.
I renamed it "Alternate IMP creation" because it has never been a quiz.

It uses the offsets of the 640x480 resolution, not Mythrell's 800x600 ones.

In the IMP screen, the quiz is replaced by questions where you select your personality, attitude (the ones with no effect on the game are not available), skin, hair, vest and pants colour, traits, need for sleep through check boxes.

The attributes are not limited to 85 max and you have no bonus points to spend. You set them as you wish.

You can create several IMPs, but you have to take care yourself that you don't use the same voice id twice, or your game will probably go supernova.

Screenshots here.


The only changes I did compared to the version I released two years ago is prevent the creation of a camouflaged expert IMP and fix a problem with the slider bar in the attributes selection: when you clicked on the left or on the right of the current value inside the bar (not on the arrow buttons at the edges), it didn't work as expected. Can someone tell if the original slider bar (clicking, not sliding) works ?


You can revert the patch later (keep the diff file) if you don't like it by typing exactly the same or
patch -R --verbose -p0 < alternate_IMP_creation.diff

[Updated on: Thu, 30 September 2010 00:21] by Moderator

Report message to a moderator

Master Sergeant
Re: [Patch/Mod] Alternate IMP creation[message #263621] Sun, 26 September 2010 12:55 Go to previous messageGo to next message
bbun is currently offline bbun

 
Messages:74
Registered:April 2004
Location: Amsterdam
Sounds great, but the patch doesn't work for me.
I applied it on a clean 7072, and get the following error once I try to build:

Build/Laptop/IMP_Personality_Quiz.cc: In function 

Report message to a moderator

Corporal
Re: [Patch/Mod] Alternate IMP creation[message #263670] Sun, 26 September 2010 23:05 Go to previous messageGo to next message
mgl is currently offline mgl

 
Messages:255
Registered:December 2007
Location: France
"IMP_QUIZ_QA" is in "Build/Utils/_EnglishText.cc" only, not in the other translation files. It's the text of the check boxes. I didn't add it (untranslated) to all the available languages files.

If you don't play in english, you will have to add it to your language translation file, like "Build/Utils/_DutchText.cc".

You can probably find the chunk about "IMP_QUIZ_QA" in the diff file, replace the lines with "Build/Utils/_EnglishText.cc" by "Build/Utils/_DutchText.cc", save the chunk and run "patch" on it.

Index: Build/Utils/_EnglishText.cc
===================================================================
--- Build/Utils/_EnglishText.cc	(revision 7072)
+++ Build/Utils/_EnglishText.cc	(working copy)
@@ -3613,4 +3613,104 @@
 const wchar_t str_stat_explosive[]    = L"Explosives";
 const wchar_t str_stat_medical[]      = L"Medical";
 
+/* mgl: Alternate IMP creation
+ * mgl: Questions and answers.
+ */
+const wchar_t* const IMP_Quiz_QA[] = {
+	/* Attitude question */
+	L"Attitude",
+	/* Attitude answers */
+	L"Normal",
+	L"Optimist",
+	L"Pessimist",
+	L"Aggressive",
+	L"Coward",
...


Maybe I should have added it to all the language files, but I think it's not worth its disk space because I believe that there would be more translation files than users of this patch. I could have done a separate, easier to modify diff file too.

Report message to a moderator

Master Sergeant
Re: [Patch/Mod] Alternate IMP creation[message #263876] Wed, 29 September 2010 02:03 Go to previous messageGo to next message
bbun is currently offline bbun

 
Messages:74
Registered:April 2004
Location: Amsterdam
That would make perfect sense... but I simply play in English Smile

Report message to a moderator

Corporal
Re: [Patch/Mod] Alternate IMP creation[message #263899] Wed, 29 September 2010 10:05 Go to previous messageGo to next message
mgl is currently offline mgl

 
Messages:255
Registered:December 2007
Location: France
Then it must be that "Text.h" is not included. Instant illumination: now that I am looking at the list of files that the patch updates, I see that "Text.h" is missing. It's the header file which exports "IMP_Quiz_QA". I probably forgot to add my identification text "/* mgl: Alternate IMP creation" in this file and it wasn't seen as part of the patch when I did the diff file.

You probably know how to fix it. I will add it to the diff file later.
I hope it will work now.

Edit: "Build/Utils/Text.h" has been added to the diff file.
Build/Utils/Text.h
Index: Build/Utils/Text.h:
===================================================================
--- Build/Utils/Text.h	(revision 7072)
+++ Build/Utils/Text.h	(working copy)
@@ -1371,4 +1371,9 @@
 extern const wchar_t str_stat_explosive[];
 extern const wchar_t str_stat_medical[];
 
+/* mgl: Alternate IMP creation
+ * mgl: Questions and answers
+ */
+extern const wchar_t* const IMP_Quiz_QA[];
+
 #endif


I have done 2 separate diff files (links in the first post):
"alternate_IMP_creation.diff.zip" with everything and the English language file.
"alternate_IMP_creation-non_eng_lang.diff.gz" with all the other (untranslated) language files.

If you play the game in English, you just have to run uncompress the first diff file and run the "patch" program on it.
If you play in any other language, you have to run "patch" with the other diff file too.

[Updated on: Wed, 29 September 2010 23:58] by Moderator

Report message to a moderator

Master Sergeant
Re: [Patch/Mod] Alternate IMP creation[message #263999] Thu, 30 September 2010 11:18 Go to previous messageGo to next message
bbun is currently offline bbun

 
Messages:74
Registered:April 2004
Location: Amsterdam
Great. I've just tested it and confirm it works perfect now.

Love the quiz now, although it requires a real RPG mind to not overdo your character Smile

Report message to a moderator

Corporal
Re: [Patch/Mod] Alternate IMP creation[message #264048] Fri, 01 October 2010 00:22 Go to previous message
mgl is currently offline mgl

 
Messages:255
Registered:December 2007
Location: France
Thank you for your help.

Report message to a moderator

Master Sergeant
Previous Topic: Re: Bug in tactical real time
Next Topic: Ubuntu packages
Goto Forum:
  


Current Time: Sat Jan 25 08:23:20 GMT+2 2025

Total time taken to generate the page: 0.00874 seconds