Results 1 to 15 of 15

Thread: OnBuildingKilled() and future for Online Compaigns

  1. #1
    Ace Cassius's Avatar
    Join Date
    Dec 2011
    Posts
    2,659
    Post Thanks / Like
    Total Downloaded
    424.49 MB

    OnBuildingKilled() and future for Online Compaigns

    .
    Last edited by Cassius; Sep-24-2020 at 14:43.

  2. #2
    Ace No.401_Wolverine's Avatar
    Join Date
    Jan 2012
    Posts
    767
    Post Thanks / Like
    Total Downloaded
    974.2 KB

    Re: OnBuildingKilled() and future for Online Compaigns

    I am also very interested in the answer to this.

    I suspect the main problem with this code working in multiplayer is synchronising the data across systems. Ie., the map reference that gets called when an object/building is destroyed is referenced by the local system and not transmitted. This is why in a multiplayer mission, the system hosting the code will respond to this script function, but any other system will not. If you host and play in a mission that you let others connect to, the script will let you destroy and track destroyed buildings but it doesn't work for anyone else. This includes if the system is hosted on a dedicated server - no connecting client triggers the script since the map instance is not local (it's only local on the dedicated server and the server obviously isn't doing any bombing of it's own).

    The other troublesome part of this involves clients connecting to a map after damage has been done to the map. Imagine the situation where a map has had 30 players in heavy bombers destroy hundreds or thousands of objects on the map. This data has to be stored and then transmitted to any connecting player so that their map is then updated with the map objects destroyed and also so that they cannot 'redo' the destruction (blowing up a fuel tank after it has already been blown up by a player already connected). If this could be done with a reasonable amount of delay added to joining missions, I think it would worth it. I'd gladly add 30 seconds or even a minute or two to loading into a server if this script functioned in MP. I think it's that important.

    You can tell I have spent a lot of time thinking about this particular bit of code which I think would completely revitalize CloD for many mission designers.... The code works great for Single Player and could potentially make for some amazing single player campaign style missions - except for the woeful AI at all layers preventing such a thing from being enjoyable.

    I don't think that TF will be able to address the above problems, though.
    Last edited by No.401_Wolverine; Mar-20-2019 at 16:36.

  3. Likes TWC_Fatal_Error, Cassius liked this post
  4. #3
    TF Leadership RAF74_Buzzsaw's Avatar
    Join Date
    Oct 2012
    Posts
    11,773
    Post Thanks / Like
    Total Downloaded
    320.64 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    We have ATAG_Oskar looking at this and there is likely a fix.

  5. #4
    Team Fusion TWC_Fatal_Error's Avatar
    Join Date
    Dec 2013
    Location
    Florida
    Posts
    678
    Post Thanks / Like
    Total Downloaded
    226.63 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    I also would like to see this operation working for obvious reasons. We added static objects in the area of each target that are destroyable Jerrycans to be specific. Each carries a point value to a total for each target. None are placed inside the Target since we have found them sometimes bomb proof when so located. Each uses the trigger of ground destroyed within that target zone of 66% out of the 100 that are in that area. Populating the map with what amounts to hundreds of objects that would be better served as different objects or even more available targets. This also lets us keep a dictionary of what has and has not been destroyed for players logging in or playing at different times.
    i7 2700 ,32 gigs, 4 ssd's ,1 7200rpm 2terabyte,1 samsung 55 display,2 mfd's,EDTRACKER,Warthog ,X55 stick, 7inch liliput monitor in mfd's 21 I-inc secondary display for instruments using virtual cockpit
    [*]iustus facere unus[*] JUST MAKE ONE ( FATAL ERROR) Commander TWC http://twcpilots.com

  6. #5
    Ace No.401_Wolverine's Avatar
    Join Date
    Jan 2012
    Posts
    767
    Post Thanks / Like
    Total Downloaded
    974.2 KB

    Re: OnBuildingKilled() and future for Online Compaigns

    More importantly from a gameplay perspective, if this script functioned attack missions would not be restricted to where a mission designer has pre-destined an attack. A player or squadron would simply be able to define their missions organically. The defending players would also not have the benefit of already knowing where an attack has to be directed to score points.

    If my team wants to hit train stations, then we can hit train stations. Fuel? Civilian targets? BANKS? Whatever. Everything comes up. All the mission designer need do is define in their mission script what types of targets they want to give points to and how. The OnBuildingKilled() will pass the specific object identifier. A designer could create statistics that would track every object a player ever destroyed.

    If I wanted to be the master destroyer of phone booths, or tractors, or lamp posts,..., I could and it could be tracked.

  7. Likes Cassius liked this post
  8. #6
    ATAG Member ATAG_Oskar's Avatar
    Join Date
    Nov 2017
    Location
    Canada
    Posts
    986
    Post Thanks / Like
    Total Downloaded
    908.31 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    Quote Originally Posted by No.401_Wolverine View Post
    More importantly from a gameplay perspective, if this script functioned attack missions would not be restricted to where a mission designer has pre-destined an attack. A player or squadron would simply be able to define their missions organically. The defending players would also not have the benefit of already knowing where an attack has to be directed to score points.

    If my team wants to hit train stations, then we can hit train stations. Fuel? Civilian targets? BANKS? Whatever. Everything comes up. All the mission designer need do is define in their mission script what types of targets they want to give points to and how. The OnBuildingKilled() will pass the specific object identifier. A designer could create statistics that would track every object a player ever destroyed.

    If I wanted to be the master destroyer of phone booths, or tractors, or lamp posts,..., I could and it could be tracked.
    I've written a few SP missions that use this. I have a file of values for various buildings and stationaries and code that adds up all the objects within a given radius of a location. Then when they are knocked out you can get a damage percentage. This way the AI bombers will do realistic damage and players can get in and score by bombing buildings, shooting up vehicles, etc.

    I didn't realize that this does not work in MP. Fix should be in next beta test.

  9. #7
    Ace Cassius's Avatar
    Join Date
    Dec 2011
    Posts
    2,659
    Post Thanks / Like
    Total Downloaded
    424.49 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    .
    Last edited by Cassius; Sep-24-2020 at 14:43.

  10. #8
    TF Leadership RAF74_Buzzsaw's Avatar
    Join Date
    Oct 2012
    Posts
    11,773
    Post Thanks / Like
    Total Downloaded
    320.64 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    Quote Originally Posted by Cassius View Post
    Thanks to everyone who looked into this thread, and especially to those on whom the solution to this problem depends.
    Sounds like good!


    That is great!
    Unfortunately, no matter how good Team Fusion Bugtracker is, in terms of feedback from the community, some very important issues remain seems still invisible to TFS...
    Our already small community will not survive the absence of changes in the multiplayer... We are practically gone.
    Maybe this will be the last breath... Last chance...
    But you need to use it.

    We understand this... this is one of the reasons why we are not rushing to complete the game.

    We want it to work as it should when released.

  11. Likes farley, ATAG_Ribbs, ATAG_Soldat liked this post
  12. #9
    Ace No.401_Wolverine's Avatar
    Join Date
    Jan 2012
    Posts
    767
    Post Thanks / Like
    Total Downloaded
    974.2 KB

    Re: OnBuildingKilled() and future for Online Compaigns

    Quote Originally Posted by ATAG_Oskar View Post
    I didn't realize that this does not work in MP. Fix should be in next beta test.
    Yup, people have been trying to use this for a long while: FEB 26, 2016 https://theairtacticalassaultgroup.c...ad.php?t=21392

    I've always assumed that this fix was simply too hard to make, not that the request was just ignored.

    Quote Originally Posted by Nephilim
    Apr 13, 2017

    I have not much needs apart from this:

    Fix Pleas:

    OnBuildingKilled(string title, maddox.GP.Point3d pos, maddox.game.world.AiDamageInitiator initiator, int eventArgInt)
    Quote Originally Posted by Mysticpuma
    Mar 22, 2017 (then, a member of TF)

    Re: OnBuildingKilled
    I have asked our guys to look into this. No promises, I have asked though. Cheers, MP
    If you're saying this is something you can simply throw into the next build, then I'm flabbergasted. All credit to you if those who came before didn't have the skills to fix it, of course. I suppose that's possible. Not sure when you joined the team.

    Anyway...THANK YOU.
    Last edited by No.401_Wolverine; Mar-22-2019 at 00:05.

  13. Likes TWC_Fatal_Error liked this post
  14. #10
    ATAG Member ATAG_Oskar's Avatar
    Join Date
    Nov 2017
    Location
    Canada
    Posts
    986
    Post Thanks / Like
    Total Downloaded
    908.31 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    I should have said that I forgot about that bug. I read every bug report and feature request.

    I just got access to the code a few weeks ago and it takes a little time to understand how it works. And it's huge.

  15. Likes Little Bill, Rostic, ATAG_Ribbs liked this post
  16. #11
    ATAG Member ATAG_Ribbs's Avatar
    Join Date
    Jan 2012
    Posts
    1,943
    Post Thanks / Like
    Total Downloaded
    4.11 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    That would definitely be a " game changer" for campaign and mission makers. Not having to place static objects would save so much time. Not to mention open up so may possibilities!
    Cheers
    Ribbs

    INTEL I5 4670 /16 MB DDR3/ MSI Z97 PCMATE MB
    MSI GTX 1060 3 GIG
    WIN 7 64
    MS Sidewinder 2 precision pro Saitek x52 throttle quadrant


    By ATAG_Lewis

  17. #12
    Ace No.401_Wolverine's Avatar
    Join Date
    Jan 2012
    Posts
    767
    Post Thanks / Like
    Total Downloaded
    974.2 KB

    Re: OnBuildingKilled() and future for Online Compaigns

    Any word on if this has been fixed for the next mod version?

  18. #13
    ATAG Member ATAG_Oskar's Avatar
    Join Date
    Nov 2017
    Location
    Canada
    Posts
    986
    Post Thanks / Like
    Total Downloaded
    908.31 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    Quote Originally Posted by No.401_Wolverine View Post
    Any word on if this has been fixed for the next mod version?
    Yes, this is planned for the next update.
    Last edited by ATAG_Oskar; Jun-17-2019 at 14:06.

  19. #14
    Ace No.401_Wolverine's Avatar
    Join Date
    Jan 2012
    Posts
    767
    Post Thanks / Like
    Total Downloaded
    974.2 KB

    Re: OnBuildingKilled() and future for Online Compaigns

    Checking in on this one again because, you know, plans change.

    Is this fix still included? Have tests been performed on a possible fix in any build? These sorts of issues don't get as much fanfare as new screens of Spitfires and 109s so I want to make sure it's not forgotten.

  20. Likes Rostic liked this post
  21. #15
    ATAG Member ATAG_Oskar's Avatar
    Join Date
    Nov 2017
    Location
    Canada
    Posts
    986
    Post Thanks / Like
    Total Downloaded
    908.31 MB

    Re: OnBuildingKilled() and future for Online Compaigns

    Quote Originally Posted by No.401_Wolverine View Post
    Checking in on this one again because, you know, plans change.

    Is this fix still included? Have tests been performed on a possible fix in any build? These sorts of issues don't get as much fanfare as new screens of Spitfires and 109s so I want to make sure it's not forgotten.
    It's still the plan.

  22. Likes farley, Stix liked this post

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •