Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]   Go Down

Author Topic: PlMisAir for 4.15m  (Read 1027 times)

0 Members and 3 Guests are viewing this topic.

Ghostil

  • member
  • Offline Offline
  • Posts: 22
Re: PlMisAir for 4.15m
« Reply #24 on: January 27, 2025, 11:19:23 AM »

Alright.

Code: [Select]
String var59 = var49.next((String)null);
String count = var59;
if (var59 != null && var59.startsWith("F")) {
  var59 = var59.substring(1);
  count = var49.next((String)null);
}
if (count != null && count.startsWith("C")) {
  count = count.substring(1);
}
...becomes...
Code: [Select]
boolean hasFormation = false;
boolean hasAttackCount = false;
String var59 = var49.next((String)null);
String count = var59;
if (var59 != null && var59.startsWith("F")) {
  hasFormation = true;
  var59 = var59.substring(1);
  count = var49.next((String)null);
}
if (count != null && count.startsWith("C")) {
  hasAttackCount = true;
  count = count.substring(1);
}

...and...
Code: [Select]
if (var59 != null) {
  var43.formation = Integer.parseInt(var59);
}
if (count != null) {
  var43.gattackcounter = Integer.parseInt(count);
}
...becomes...
Code: [Select]
if (hasFormation) {
  var43.formation = Integer.parseInt(var59);
}
if (hasAttackCount) {
  var43.gattackcounter = Integer.parseInt(count);
}

]cheers[
Mike

 String string_10_ = numbertokenizer.next((String) null);
      
       if (string_10_ != null && string_10_.startsWith("F")) {
      String string_11_ = string_10_.substring(1);
      waypoint.formation = Integer.parseInt(string_11_);
       }
      
       if (string_10_ != null && string_10_.startsWith("C")) {
      String string_11_ = string_10_.substring(1);
      waypoint.gattackcounter = Integer.parseInt(string_11_);
       }

Do you need to share here too? Although there is no error.
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24030
  • Taking a timeout
    • STFU
Re: PlMisAir for 4.15m
« Reply #25 on: January 27, 2025, 11:29:46 AM »

Do you need to share here too? Although there is no error.
Looks good as it is.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

Ghostil

  • member
  • Offline Offline
  • Posts: 22
Re: PlMisAir for 4.15m
« Reply #26 on: January 27, 2025, 12:38:29 PM »

I found a mistake in the classroom. I accidentally deleted the code 3 type and the game simply deleted everything when I set up a standard attack.
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24030
  • Taking a timeout
    • STFU
Re: PlMisAir for 4.15m
« Reply #27 on: January 27, 2025, 01:57:57 PM »

I have no idea what you are talking about though.
Logged
Don't split your mentality without thinking twice.

Frankiek

  • SAS Team
  • member
  • Online Online
  • Posts: 3149
Re: PlMisAir for 4.15m
« Reply #28 on: January 27, 2025, 05:18:08 PM »

I suppose he inadvertently deleted the line of code that  was assigning 3 to the "normal" Attack so the new code will execute only MyAttack 4 and nothing else
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24030
  • Taking a timeout
    • STFU
Re: PlMisAir for 4.15m
« Reply #29 on: January 27, 2025, 11:42:27 PM »

Kinda "JFYI"... well then, let's wait and see.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

Ghostil

  • member
  • Offline Offline
  • Posts: 22
Re: PlMisAir for 4.15m
« Reply #30 on: January 28, 2025, 11:11:36 PM »

I suppose he inadvertently deleted the line of code that  was assigning 3 to the "normal" Attack so the new code will execute only MyAttack 4 and nothing else
Yes, i delete Case 3 for Action = 3.
Logged

Ghostil

  • member
  • Offline Offline
  • Posts: 22
Re: PlMisAir for 4.15m
« Reply #31 on: January 29, 2025, 09:46:05 AM »

Code: [Select]
GATTACKDIRECTION_802 96472.97 68269.72 500.00 300.00 &0
  TRIGGERS 9999

For simpler work, I can add my sections to () how it is now made in additional settings of standard points.
But this works only if it has additional types of points.
If you add to the standard point, it will be written to the mission file, but the game will be considered as a new type of point and the editor will delete it as an unknown route.
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24030
  • Taking a timeout
    • STFU
Re: PlMisAir for 4.15m
« Reply #32 on: January 29, 2025, 09:56:30 AM »

It's always a good idea to consider backward compatibility, whatever you intend to do.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.
Pages: 1 2 [3]   Go Up
 

Page created in 0.059 seconds with 26 queries.