View Single Post
Old 04-16-15, 11:24 PM   #5572
kevinsue
Der Einzelgänger
 
kevinsue's Avatar
 
Join Date: Apr 2013
Location: Cairns, Australia
Posts: 583
Downloads: 363
Uploads: 3
Default

Quote:
Originally Posted by vdr1981 View Post
Trev, I think I've found more elegant solution how to give a player one required value point without changing any existing Iscompleted =true/false parameters in campaign cfg file.

The solution is to add one short invisible mission/objective which will be set on Is Completed-true from the start.
Something like this...
Code:
[Campaign.CampObj.MacroObj 7] ;***************************
ObjectiveID=MN_First_Deployment
Name=First_Deployment
MapZone=
ValuePointsProvided=1
FurtherInfo=First_Deployment
StartDate=19410301
EndDate=19410302
IsCompleted=true
IsFailed=false
GenAchiev=
AssocMissionsActive=
AssocMissionsCompleted=
ObjActivationAchievements=

[Campaign.CampObj.MacroObj 7.PersObj 1]
PersObjType=0
Name=First_Deployment
Description=First_Deployment
RelatedMapLocations=
IsCompleted=true

[Campaign.CampObj.MacroObj 7.PersObj 1.Amount]
IsTonnage=false
Tonnage=0
NumOfShips=0

[Campaign.CampObj.MacroObj 7.PersObj 1.CrtAmount]
IsTonnage=false
Tonnage=0
NumOfShips=0
This works great except one small issue, I cant name the mission as I like, First Deployment for example...



Any advice?
Hey vdr.....Just a suggestion that I have not tried but it appears that the Campaign.tsr has the names of the missions. Maybe worth a try. As these files are in the main campaign directory, you would probably have to work from there and let the game engine rebuild the SH5 files in My Documents to see any results.....fingers crossed!!

Quote:
[Text]
Campaign.CampObj.MacroObj 3.FurtherInfo=Axis airpower based in Sicily is constantly bombing Malta, looking to eliminate it as a British base of operations. The campaign has taken a heavy toll on the island's defenders, particularly since our expert fighters have joined the fight. Our U-boats must ensure this advantage is maintained by sinking resupplying ships.
Campaign.CampObj.MacroObj 5.PersObj 1.Description=Patrol the Malta Alexandria Supply Route
Campaign.Title=MARE NOSTRUM
Campaign.CampObj.MacroObj 1.Name=10TH FLOTILLA
Campaign.CampObj.MacroObj 2.Name=SIEGE OF TOBRUK
Campaign.CampObj.MacroObj 3.Name=DELIVERIES FOR MALTA
Campaign.CampObj.MacroObj 4.Name=MIDDLE EAST SUPPLIES

Campaign.CampObj.MacroObj 4.FurtherInfo=In order to sustain the war effort in North Africa the British need supplies from other parts of the Empire. The poor road infrastructure and long distances makes them depend on ships routed either individually or in convoys. Of particular importance is the Eastern Mediterranean area with Alexandria, Port Said, Haifa and Beirut as major origin points.
Campaign.CampObj.MacroObj 5.Name=EAST MEDITERRANEAN CONVOYS
Campaign.CampObj.MacroObj 6.Name=BREAKTHROUGH GIBRALTAR

Campaign.CampObj.MacroObj 7.Name=FIRST DEPLOYMENT
Campaign.CampObj.MacroObj 4.PersObj 1.Description=Patrol the Middle East Traffic area of operations
Campaign.CampObj.MacroObj 1.FurtherInfo=Our operations in North Africa depend on the sea supply route from Italy, passing right under the nose of British held island of Malta. From this base operates British 10th Submarine Foltila. Expertly led and very aggressive, they are constantly attacking our convoys and interdicting axis shipping. They must be stopped.
Campaign.CampObj.MacroObj 3.PersObj 1.Description=Patrol the Gibraltar Malta Supply Route
Campaign.CampObj.MacroObj 5.FurtherInfo=The Mediterranean Fleet has defended the British Empire's vital link to the Indies for close to 300 years. Traditionally it has always been one of the most powerful and esteemed squadrons in the Royal Navy. Recently the fleet has moved base to Alexandria in order to avoid the threat of air attack from Italian mainland. This must not prevent us attacking their convoys supplying Haifa, Beirut, Post Said, Torbruk and Alexandria.
Campaign.CampObj.MacroObj 2.FurtherInfo=General Rommel's offensive in North Africa has pushed the enemy far back, but Tobruk stands surrounded and will not submit. The British are supplying their garrison by sea now, bringing fresh supplies of troops, ammunitions, food and fuel. Stopping those supplies and capturing Tobruk is vital for the Axis war effort, as it is the only major port on the African coast besides Benghazi. Sending ships directly to Tobruk would shorten our difficult land supply route by close to 400km and thus greatly enhance our position.
Campaign.CampObj.MacroObj 2.PersObj 1.Description=Attack supplies reinforcing Tobruk in North Africa
Campaign.Description=Italian fascist dictator, Benito Mussolini, wants to re-establish the greatness of the Roman Empire and boasts that Italy is the most powerful of the Mediterranean nations. His dream is to create the Greater Italy and make the Mediterranean Sea an Italian lake or Mare Nostrum. However, his aspirations clash with the needs of the British Empire. Reinforcements to the Royal Navy in the area have created an even match and the Italian Fleet is now in need of help from their allies. Despite the advice of Admiral Dönitz, Hitler has requested that a small number of submarines must be sent to assist the Italian Navy, Regia Marina.
Campaign.CampObj.MacroObj 6.PersObj 1.Description=Patrol the Gibraltar area
Campaign.CampObj.MacroObj 6.FurtherInfo=Gibraltar serves a vital role in both the Atlantic Theatre and the Mediterranean Theatre, controlling virtually all naval traffic into and out of the Mediterranean Sea from the Atlantic Ocean. In addition to its commanding position, Gibraltar provides a strongly-defended harbor from which ships operate in both the Atlantic and the Mediterranean. Force H is based in Gibraltar and has the task of maintaining naval superiority and providing a strong escort for convoys to and from the besieged island of Malta. Use stealth and cunning to attack shipping in this area.
Campaign.CampObj.Name=
Campaign.CampObj.MacroObj 1.PersObj 1.Description=Attack submarines from the 10th Flotilla
__________________
Best Regards....Kev*

"The finest Captain I ever crossed swords and set sail with"
kevinsue is offline   Reply With Quote