• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-1751
Back
13

Wrong compilation code

ServerClient
13

State

Assigned
Issue key
DZG-1751
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
kgb
Created
Oct 21, 2026
Views
66
Platform
PC Steam
What happened?

incorrect compilation of scripts after 1.30

if in the client BSP there was code wrapped in #ifdef SERVER to use functions that are definitely present in another BSP of the same class, for example, it will not work, citing a missing function.

It has been noticed that the problem may occur depending on the order in which the mods are loaded.

Reproduction steps

Use code in client-side pbo:

Class TestClass_1
{
    void Precedure_1()
    {
        #ifdef SERVER
            Precedure_2();
        #endif
    }
}

then, use it at server side pbo

modded class TestClass_1
{
    void Precedure_2()
    {

    }
}


after server start - u can view compilation error -

Undefined function 'TestClass_1.Precedure_2' in client-side pbo
Exact build version (optional)
—
Where did it happen?
Official
Is it modded?
Yes
Expected result

the server starts, compiles the script correctly, finding the function wherever it is among the server mods.


before patch 1.30 everything worked correctly

Section
Mod list

-

Load order / launch params
—
Reactions

Activity

    about 20 hours ago
  • kgb
    created issueabout 20 hours ago
  • kgbcommented
    about 20 hours ago
    kgbcommented
    about 20 hours ago

    @l909 i think, problem like this - https://report.bistudio.com/issues/DZG-1145, but already connected with the division #ifdef / #ifndef

  • l909
    Moderator
    commented
    about 18 hours ago
    l909
    Moderator
    commented
    about 18 hours ago

    is it okay to close the ticket as a duplicate then?

  • kgbreplied to a comment(edited)
    about 14 hours ago
    kgbreplied to a comment(edited)
    about 14 hours ago

    I think this is related to the visibility of methods/variables under #ifdef / #ifndef, it's not exactly a duplicate

  • about 4 hours ago
  • l909
    changed state to
    ASSIGNED
    about 4 hours ago

You are not signed in. Please sign in to see more details and to reply.

State

Assigned
Issue key
DZG-1751
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
kgb
Created
Oct 21, 2026
Views
66