View Single Post
Old 10-21-12, 06:43 AM   #2166
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by gap View Post
Okay, the point was making refitting units and locations to change during the same campaign, so if we played the same objective at different time-frames, different refuelling options would have been available.
the only way I can see this being done is to make the refuel units within a layer that gets loaded on patrol.
This is how the missions work - when you click "request mission" in the brief room - a new layer is loaded into the campagn that can do anything - missions/refuel/triggers etc. This is how I made the refuel attack work in MG.

The downside of this is it is a lot of work for one off happenings. So a workaround would be to make a template mission with dated named refuel and paste this info into every mission script for the campaign in question.



Quote:
yes, I think I see your point: by linking any ship to an hidden base (wich gives us full control on dates through the start/end settings in its cfg file), we can get the illusion to be refitting from the ship, while we are actually resupplied at base. Is this correct?


Quote:
As noted by you, there are two problems though:

1 - bases cannot move: we can only set different hidden bases to spawn at different dates/locations but, unlike ships spawned with your 2nd method, those locations wouldn't be "random" within a given range, but linked to nodes' positions.


Quote:
2 - what is worst, the refitting would be available even if the linked ship is sunk, as long as the hidden base is still there
but there can be a threat zone used to prevent an attack

Quote:
Peraphs I got a better idea, though I am not sure that it would work:

you stated that using the 2nd method we can restrict the type of supply units to be used for it... well, then we could clone an existing ship, give it the appropriate start/end dates in its roster cfg file, and assign it to any set refitting. The question is: how would react the game, if it tried to spawn a supply unit outside its start/end range? Would it spawn her anyway, would it crush to desktop ...or as desired, it would not spawn her at all, and generate instead a refitting failed event?
Yes - you can clone any ship type and use that to be a named ship from a date you would want.
The supply commands are calling the ships by UnitClass, so you cold clone any or as many ships as you want and give then a new class name. Only these ships would then be called as a supply ship

When you clone the ship - you must also give it a group type. Here is where it could get pulled into traffic with the normal traffic systems.
Im not sure if we can make new ones - it would be good to have a new section for sully ships etc

Code:
 
;Warships
Type0=Patrol Craft
Type1=Corvette
Type2=Frigate
Type3=Destroyer Escort
Type4=Destroyer
Type5=Minesweeper
Type6=Light Cruiser
Type7=Heavy Cruiser
Type8=Escort Carrier
Type9=Fleet Carrier
Type10=Battlecruiser
Type11=Battleship
Type12=Minelayer
Type13=Auxiliary Cruiser
Type14=Special OPS Boat
Type15=Landing Craft
Type16=Elite Patrol Craft
Type17=Elite Destroyer escort
Type18=Elite Escort Carrier
Type19=Super Fleet carrier
Type20=Super Battleship
;Merchant ships
Type100=Replenishment
Type101=Tanker
Type102=Cargo
Type103=Troop Transport
Type104=Coastal Vessel
Type105=Life Raft
Type106=Survivor
Type107=Z ships
Type108=Rare Cargo ship
Type109=Rare Troop Transport
Type110=Environmental
;Submarine
Type200=Submarine
Type201=Replenishment Submarine
Type202=Missile Submarine
Type203=Environmental
;Air
Type300=Fighter
Type301=Bomber
Type302=Dive Bomber
Type303=Torpedo Bomber
Type304=Patrol
Type305=Helicopter
Type306=Environmental
Type307=Elite Patrol Aircraft
Type308=Elite Naval Aircraft
;Land
Type400=Vehicle
Type401=Tank
Type402=Armored Personnel Carrier
Type403=Artillery
Type404=Anti-aircraft
Type405=Missile
Type406=Airbase
Type407=Naval Base
Type408=Environmental
;Ordnance
Type500=Minefield
Type501=AntiSub Net
Quote:
Those clone units would be used solely for any refitting location/date range group, as seen on the map I've posted yesterday. So we need a minimum of 5, maybe 10 if we wanted to add further variety, ad hoc ships.
But cloning ship definitions got no secret anyway, and can be done using just notepad.

What do you think?



Quote:
I was aware of it

...but we are missing this kind of objective/side mission in the Atlantic. I think it would be nice having to look for/sail together with our merchant raiders or blockade runners and having to defend them from enemy attacks. If you like the idea I can look for historical information on it
I could add these as missions I like working in the missions sytle of the campaign - it adds a challenge
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote