Fhechene Posted August 12, 2019 Report Posted August 12, 2019 So, there are planes that absolutely don't go along with moving [Chief] carriers (that actually should be able to take-off with out issue), like the Avenger. Now, this has nothing to do with DCG. but with the game itself. Knowing that, what kind of wourkarounds in DCG are there for that? For example, in a Kyushu map, there are the moving carriers and there is Townsville airfield. My first idea is to assign Avengers to Townsville airfield, but that would defeat the purpose of having carries in the first place. Other workaround would be assign Avengers to Townsville airfield and place a static carrer, but then, why have chief carriers in the first place then. What other workarounds would you thing would be good? Would adding something like [number_Chief] NORMFLY 189432.94 166343.06 300.00 300.00 NORMFLY 189842.50 167100.62 600.00 300.00 or [Carrier_name] or [Carrier_class] (like Ships.HMSIllustriousCV, for example) to airfields.dcg work? Quote
Lowengrin Posted August 13, 2019 Report Posted August 13, 2019 Are you using wind? I haven't seen too many issues with Avengers off fleet carriers (escort carriers, yes) in good weather. In storms, almost every takeoff will have planes crashing no matter what type they are. Quote
Fhechene Posted August 13, 2019 Author Report Posted August 13, 2019 Yes, I'm using wind. I'm trying to make them take-off British Illustrious carriers. Check thishttp://www.mission4today.com/index.php?name=ForumsPro&file=viewtopic&t=24149 Corsairs, Seafires and Hellcats take-off without issue Quote
Lowengrin Posted August 15, 2019 Report Posted August 15, 2019 Using wind, probably you have to have the Illustrious sailing into the wind (and my code doesn't consider wind...though it probably should). Quote
Fhechene Posted August 16, 2019 Author Report Posted August 16, 2019 On 8/15/2019 at 12:16 AM, Lowengrin said: Using wind, probably you have to have the Illustrious sailing into the wind (and my code doesn't consider wind...though it probably should). That would be REALLY bothersome to implement, I guess. Because basically, you'll have to check carrier/airplane combinations that make planes accident prone* and, if there are, place the first two waypoints of ALL the taskforce in a way that the movement is parallel to the wind. AND it should check if they are in the patrol box specified in the prd file. Maybe those two waypoints should be the vertices of the patrol box that are more apart? *Maybe a file for that? Something like carrier_plane.dcg. If user places a plane/carrier combination, DCG modifies waypoints, or whatever, so modders can add their own plane/carrier combo. **Or maybe, don't check and always place the two waypoints so velocity is parallel to wind speed. Quote
Lowengrin Posted August 16, 2019 Report Posted August 16, 2019 Yeah, I have been pondering how to do it best without taking the "dynamic" out of it. Quote
Fhechene Posted August 17, 2019 Author Report Posted August 17, 2019 You could take the unitary vectors that define every side of the payrol box and point multiply with the unitary vector of the wind. The first waypoint should be on the side in which the product of vectors is less. The second waypoint should be on the side that gives the most distance to the first waypoint. Edit: I don't know what I was thinking. Just calculate the max lentgh formed by a segment paralell to the wind, inside the patrol box. Get the equation of the segment and evaluate points from the easternmost point of the patrol box. Quote
Fhechene Posted August 18, 2019 Author Report Posted August 18, 2019 Would it be possible to share how will you do it? Because I thought about different solution algorithms and I want to know which one will you use Quote
Lowengrin Posted August 18, 2019 Report Posted August 18, 2019 I haven't decided yet and probably won't until I review the existing code. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.