Need help with NPC Structure

Results 1 to 6 of 6
  1. #1
    Enthusiast Havo is offline
    MemberRank
    Apr 2021 Join Date
    FRLocation
    32Posts

    Need help with NPC Structure

    Hello, do you know there is a way to increase npc structures (m_nStructure=SRT_WEAPON;)
    in defineNeuz.h there is #define MAX_STRUCTURE 20 but when I increase it and go over 20 the added structures don't read correctly so I wonder if there is a way to increase it source side?


  2. #2
    127.0.0.1 Groxy101 is offline
    MemberRank
    Apr 2010 Join Date
    416Posts
    The source uses defineNeuz.h to define MAX_STRUCTURE in Project.h

    Did you add the new SRT_* to etc.inc & etc.txt.txt?

    In etc.inc it has to be in:

    Code:
    structure
    {
    ....
    }

  3. #3
    Enthusiast Havo is offline
    MemberRank
    Apr 2021 Join Date
    FRLocation
    32Posts
    yes I have already looked in project.h but I did not find a value to change.
    To create a new structure we must necessarily go to etc.inc/txt but when I exceed 20 the etc.inc file does not read correctly (it mixes the structures)

  4. #4
    Enthusiast ryuzakinara is offline
    MemberRank
    Apr 2014 Join Date
    FRLocation
    32Posts
    Add the __CHARACTER_TAG system which will be very clear and simple for you to use

  5. #5
    RE:ℓσα∂є∂ Fenris is offline
    MemberRank
    Sep 2011 Join Date
    RE:ℓσα∂Location
    588Posts
    It depends on what your specific issue is.

    1. Are you setting the npc's m_nStructure variable in character inc.
    2. Did you add the structure itself in etc?
    3. Did you increase MAX_STRUCTURE to be one higher than your last strcture entry?

    If thats all done, then you're issue is probably.

    4. did you update the navobj textures and/or inc read.

  6. #6
    Enthusiast Havo is offline
    MemberRank
    Apr 2021 Join Date
    FRLocation
    32Posts
    yes I think my concern comes from option number 4. But ryuzakinara gave me very good advice.
    I think we can close the help request.
    Thank you all!



Advertisement