Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 52 53 54 [55] 56 57 58 ... 91   Go Down

Author Topic: Ultrapack bug report thread (all versions)  (Read 98294 times)

0 Members and 11 Guests are viewing this topic.

Frankiek

  • SAS Team
  • member
  • Offline Offline
  • Posts: 2859
Re: Ultrapack bug report thread (all versions)
« Reply #648 on: April 05, 2023, 11:40:18 AM »

Let me explain the situation from a code point of view.

DB3 top gunner pits exchange the fuselage material in the "old fashioned" way, in the "reflectWorldToInstruments" method:
Code: [Select]
  public void reflectWorldToInstruments(float f) {
    HierMesh hierMesh = aircraft().hierMesh();
    Mat mat = hierMesh.material(hierMesh.materialFind("Gloss1D0o"));
    this.mesh.materialReplace("Gloss1D0o", mat);
  }

IL-4 top gunner pit has the modern version of this code.
In that newer code version, the material change happens in a "reflectPlaneMats" method.
But since this method never gets called directly by the base cockpit class, a variable "bNeedSetUp" got introduced, which makes sure that on first update of the cockpit, the material replacement method gets called.
This is the way used for many aircraft, it always works.
To make matters visible, I've added a few log output codes to the IL-4 top gunner pit, see source below:
Code: [Select]
    public void reflectWorldToInstruments(float f)
    {
        if(bNeedSetUp)
        {
            System.out.println("### CockpitIL4_TGunner reflectWorldToInstruments(" + f + "), bNeedSetUp=true");
            prevTime = Time.current() - 1L;
            bNeedSetUp = false;
            System.out.println("### CockpitIL4_TGunner reflectWorldToInstruments(" + f + "), calling reflectPlaneMats(), bNeedSetUp=" + bNeedSetUp);
            reflectPlaneMats();
        }
    }

    protected void reflectPlaneMats()
    {
        HierMesh hiermesh = aircraft().hierMesh();
        Mat mat = hiermesh.material(hiermesh.materialFind("Gloss1D0o"));
        System.out.println("### CockpitIL4_TGunner reflectPlaneMats(), mat=" + (mat==null?"null":""+mat.hashCode()));
        mesh.materialReplace("Gloss1D0o", mat);
    }

    public CockpitIL4_TGunner()
    {
        super("3DO/Cockpit/DB3-TGun/TGunnerIL4.him", "he111_gunner");
        bNeedSetUp = true;
        prevTime = -1L;
        prevA0 = 0.0F;
        hook1 = null;
        System.out.println("### CockpitIL4_TGunner <init>, bNeedSetUp=" + bNeedSetUp);
    }

And this is the result:
Code: [Select]
[2023-02-24 07:36:33.699 UTC +1] dT:    0 ### CockpitIL4_TGunner <init>, bNeedSetUp=true
[2023-02-24 07:36:37.000 UTC +1] dT:   51 ### CockpitIL4_TGunner reflectWorldToInstruments(0.4), bNeedSetUp=true
[2023-02-24 07:36:37.000 UTC +1] dT:    0 ### CockpitIL4_TGunner reflectWorldToInstruments(0.4), calling reflectPlaneMats(), bNeedSetUp=false
[2023-02-24 07:36:37.001 UTC +1] dT:    0 ### CockpitIL4_TGunner reflectPlaneMats(), mat=4734828
As expected, all code works fine and the material gets replaced successfully.
No clue why this doesn't work for those who witness the green fuselage, and even more, why it only fails to work on the IL-4 but not on the hundreds of other aircraft that use the same coding scheme.

]cheers[
Mike

I don't want to bother too much but  as this bug is still active in my system out of curiosity I check it out in UP3RC4 (Panos edition) and wonder what? The bug was already there but not in UP2
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Re: Ultrapack bug report thread (all versions)
« Reply #649 on: April 06, 2023, 05:19:55 AM »

Here is a Full Logs
https://www.mediafire.com/file/da5q18qk8bk9qsn/log.zip/file
Thanks, KT.
I identified a net skin replication error triggered by a user joining the server with an unpatched Ultrapack 3 RC4 version.
In former times this would have caused the player to become invisible and weird things would happen.
Now we get this log entry instead and the base issue is covered.
It's essentially not a bug, but merely a sign of a working mitigation.

FMB, F-84G.
I just noticed the wrong years for F-84G. FMB: 1955 and 1956.
If I'm not mistaken, the correct years are:
1951 - G-1, G-2
1952 - G-3.
Agreed, will fix this in the next update/hotfix.

as this bug is still active in my system
That's the interesting part: How come the bug still appears when the code doesn't leave any room for it?
I'd really be keen to get a class dump of your UP3 instance.
Just run the Selector, enable dump mode, run the game until the issue appears, exit the game, and provide a zip file of your "dump/com" folder.
Thanks.

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

Frankiek

  • SAS Team
  • member
  • Offline Offline
  • Posts: 2859
Re: Ultrapack bug report thread (all versions)
« Reply #650 on: April 06, 2023, 06:42:53 AM »

I finally managed to discover what triggers the bug it is the viewSet=36 in the conf.ini if I change it to 56 or 57 the bug is not showing. You could try to replicate in your system with this setting.

Just in case I am attaching the dump of my Game UP3.4 hotfix17. The only mod I have is WxTech new cockpits for the P-36

https://www.mediafire.com/file/lvk4v3ruxb357uh/dump.7z/file


Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Re: Ultrapack bug report thread (all versions)
« Reply #651 on: April 06, 2023, 07:27:01 AM »

Ah - that makes sense.
So it turns out to be an "auto Autopilot" thing.
Any viewSet setting where "auto Autopilot" is inactive works with modern code style, whereas active "auto Autopilot" triggers the issue.
Thanks, that way we can cover it successfully.

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

Frankiek

  • SAS Team
  • member
  • Offline Offline
  • Posts: 2859
Re: Ultrapack bug report thread (all versions)
« Reply #652 on: April 06, 2023, 07:49:24 AM »

I confirm that is definitely an "auto autopilot " issue. In UP2 the bug is not there while in UP3RC4 when the new version of the IL-4 mod was introduced is present
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Re: Ultrapack bug report thread (all versions)
« Reply #653 on: April 13, 2023, 10:51:54 AM »

Current Hotfix 18 Status:

P-35 propeller animation not working anymore
Fixed.

Some Buildings are Missing.
Pending.

FMB, F-84G.
I just noticed the wrong years for F-84G. FMB: 1955 and 1956.
If I'm not mistaken, the correct years are:
1951 - G-1, G-2
1952 - G-3.
Fixed.

IL-4 auto autopilot bug: Fixed.

"Static Spawn" Trigger net replication issue: Fixed.

New Message Trigger Option added: Message Triggers can optionally apply only to the player who "triggered" the trigger now, i.e. all players get individual messages from such a message trigger.
This comes in handy e.g. when you want to warn players not to exceed certain altitudes, stay out of certain areas, give hints about waypoints etc.
An "activated by current player only" trigger can optionally be triggered multiple times (default: Just once). There is, however, no choice like "can be trigger <n> times" with "n>1" - either the trigger can be triggered once, or any time repeatedly.

Last but not least, a bug causing trigger messages to be shown off to the left in case of multi-line messages has been fixed, too; alongside with this, the logic of displaying texts from multiple activated triggered has been changed too, they now show up all at once, each with their own centered position and timeout, and each separated by a blank line.

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

Shermy

  • member
  • Offline Offline
  • Posts: 15
Re: Ultrapack bug report thread (all versions)
« Reply #654 on: April 13, 2023, 12:01:35 PM »

Happy Thursday! This Saturday I'm hosting a 100ish person event with Ultrapack but unfortunately I can't seem to increase the number of players for the server beyond 32? Is there anyway around this?



Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Re: Ultrapack bug report thread (all versions)
« Reply #655 on: April 13, 2023, 12:05:43 PM »

I'm afraid that's not feasible.
Client hosted games are limited as they have to power both the client side of the game (for yourself) and the server part (for all others)simultaneously.
You will need a dedicated server for that event.

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

Shermy

  • member
  • Offline Offline
  • Posts: 15
Re: Ultrapack bug report thread (all versions)
« Reply #656 on: April 13, 2023, 12:23:01 PM »

I'm afraid that's not feasible.
Client hosted games are limited as they have to power both the client side of the game (for yourself) and the server part (for all others)simultaneously.
You will need a dedicated server for that event.

]cheers[
Mike
Would you happen to have documentation or links to how we could go about getting a dedi operational?
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Logged
Don't split your mentality without thinking twice.

Shermy

  • member
  • Offline Offline
  • Posts: 15
Re: Ultrapack bug report thread (all versions)
« Reply #658 on: April 13, 2023, 03:21:08 PM »

https://www.sas1946.com/main/index.php/topic,69834.0.html
Thanks Mike. We've got it all sorted out. I know this next question doesn't pertain to bug reporting and I apologize if I'm being annoying but is there anywhere we might be able to advertise our event on these forums? I would enjoy giving the people of SAS a chance to fly some pvpve again.  :)
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23878
  • Taking a timeout
    • STFU
Re: Ultrapack bug report thread (all versions)
« Reply #659 on: April 13, 2023, 11:09:41 PM »

Sure thing.
You can always post your event in the Lounge: https://www.sas1946.com/main/index.php/board,1.0.html

Alternatively, the "Ultrapack Discussion & Support" board would fit, but I think it won't reach as many people there: https://www.sas1946.com/main/index.php/board,186.0.html

The more the merrier 8)

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.
Pages: 1 ... 52 53 54 [55] 56 57 58 ... 91   Go Up
 

Page created in 0.036 seconds with 24 queries.