Giter VIP home page Giter VIP logo

Comments (14)

xwerswoodx avatar xwerswoodx commented on August 19, 2024 1

Hmm, okay I see the issue I will take a look now

from source-x.

Jhobean avatar Jhobean commented on August 19, 2024

I added this piece of code recently but it was working.
eef10d8

from source-x.

AtillaG1 avatar AtillaG1 commented on August 19, 2024

mmm the one you posted isnt in core right now actually. 🤔

from source-x.

AtillaG1 avatar AtillaG1 commented on August 19, 2024

Update, connection to the problem is flag listed below. If both activated, its bugging the taming. If I disable this one, its fine.

// EF_FollowerList 000080 // Save the followers to the list and enable CURFOLLOWER.n.UID, CURFOLLOWER.ADD/DEL and CURFOLLOWER.CLEAR commands.

from source-x.

Jhobean avatar Jhobean commented on August 19, 2024

These flag is a new feature.seem s bug was added

from source-x.

AtillaG1 avatar AtillaG1 commented on August 19, 2024

Updated first post, with connections I found.

from source-x.

AtillaG1 avatar AtillaG1 commented on August 19, 2024

Also with both flags activated, the followerslots property doesnt work. Its always = 1.

from source-x.

xwerswoodx avatar xwerswoodx commented on August 19, 2024

If I understand you clearly, it's not a bug. Because EF_FollowerList is a new flag to add option to create list automatically for your followers. I meant FollowerSlots only working without this flag activated, because old system only keeping the number of followers while new system keeps list of followers. If you want to add npc manually to someone's follower list with EF flag active, you need to use

<PLAYER>.CURFOLLOWER.ADD <FOLLOWER.UID>

or

<PLAYER>.CURFOLLOWER.DELETE <FOLLOWER.UID>

to remove.

<PLAYER>.CURFOLLOWER.CLEAR

clears the list.

IF you activate EF_FollowerList you tell the Sphere, that you gonna use new system, so you need to use ADD command to add something manually to the list, CURFOLLOWER += 1 or anything similar to this not working with new system.

from source-x.

AtillaG1 avatar AtillaG1 commented on August 19, 2024

Ok and what about the Taming not working at all?

"If I activate this sphere.ini setting, set followerslots on NPC to 1, and have on char MAXFOLLOWERS=5 and try to tame the creature, it will immediately fall into this part."
"it also add curfollowers to my status, but the creature is not tamed and doesnt act like it is"

from source-x.

cbnolok avatar cbnolok commented on August 19, 2024

Just to have it clear myself: is every pet "worth" 1 slot if using EF_FollowerList? How do you set an upper limit, by tweaking the trigger or is there some default/fixed value?

from source-x.

AtillaG1 avatar AtillaG1 commented on August 19, 2024

solved on dev branch, thank you!

from source-x.

DavideRei avatar DavideRei commented on August 19, 2024

I have a question about the new system, if a follower have FollowerSlots > 1, isn't curfollower returning the wrong number?
CHC_CURFOLLOWER return m_followers.size() as followers number but that is the followers number not the followers total slots.
For example if i have 2 followers, the first 1 with FollowerSlots = 1 and the second one with FollowerSlots = 2, CURFOLLOWER return 2 instead of 3.

from source-x.

AtillaG1 avatar AtillaG1 commented on August 19, 2024

Yea because apparently this new system (EF_FollowerList) was made as new thing and is not using the followerslots. ( you would need to script your own ) with the new trigger.

from source-x.

DavideRei avatar DavideRei commented on August 19, 2024

The fact is the function seems to use FollowerSlot but even if you change it using the @FollowersUpdate trigger they don't get updated, because CURFOLLOWER read only the follower array dimension, so you can't customize it.
That would require a two-dimension array where for each follower you can save also the FollowerSlots.

@xwerswoodx

CScriptTriggerArgs Args;
        Args.m_iN1 = (iFollowerSlots >= 0) ? 0 : 1;
        Args.m_iN2 = abs(iFollowerSlots);
        if (OnTrigger(CTRIG_FollowersUpdate, pChar, &Args) == TRIGRET_RET_TRUE)
            return false;

        if (Args.m_iN1 == 1)
        {
            iFollowerSlots = -(short)(Args.m_iN2);
        }
        else
        {
            iFollowerSlots = (short)(Args.m_iN2);
        }

from source-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.