Open SampeyFS opened 1 year ago
Are all the animals set to always active = yes?
yes
I'm not getting any errors, but they aren't doing anything now. They just sit there.
I'm not getting any errors, but they aren't doing anything now. They just sit there.
Same here . .No anims nothing, just statues
I wrote the darn thing! 🤦♂️
Used to work fine so something in MAX has changed along the way.
Right so someone has altered the script since I wrote it, my line that used IntersectAll has been commented out and instead it now uses IntersectStaticPerformant.
I have no idea what that function is but it is always returning 'nil' so they cannot move.
They are animating for me though, just running the idle animation all the time.
Undoing that change makes them work again:
Thanks friend
@davetgc Maybe rename this issue to IntersectStaticPerformant (whatever that is) not worky?
(or rename the function IntersectStaticPerformNot)
I tried it, in fact, they still block, the writing also comes out with this that you put in the zip
an update is out now what has been changed?
I'm not getting that script error so haven't a clue what is causing that.
Maybe the skunk is an animal because he's caught stuck and the others go
put lots of rabbits, skunks and foxes and see what it does
They all seem to work fine except the brown sewer rat, that one is broken for some reason.
ah that's what it is then
Not getting any Lua errors though.
ask small he had helped me on this mistake maybe he remembers what it was
Well it's working fine for me so not sure what to ask him! (at least the version in the zip file I posted is working fine)
No that writing comes out
I'm not getting any writing!
What mice?
The black sewer rat works fine but the brown one has issues, think the animations might be dodgy.
Anyhow: https://vimeo.com/814040749
Hello
No it still seemed to go instead it crashed as you see in the video
Notice that after the error showed up you still have a rabbit running around?
That indicates that you have multiple versions of the script present, make sure any old versions are deleted and only the single working script is present in the scriptbank/animals folder (both in the Steam MAX folders and in your Documents area).
mammal_generic.zip This doesn't crash had smalling helped me but I don't know what it did try see the lua if you can understand yourself
Also make sure all mammals are set always active, by default they aren't for some reason (they are also set as enemies by default, don't know why)
The reason smallg's version doesn't crash is because it avoids the problem that is caused when you don't have them always active!
But if they are not set always active then they won't be properly initialised anyhow.
where do I have to change can you show me thanks
To set the always active flag select the critter and:
So in summary: 1) The IntersectStaticPerformant Lua function doesn't appear to be working in MAX for some reason. 2) The critters fpe settings are wrong. They should be defaulted to always active=yes(*) and probably to be neutral rather than enemies(**). 3) The brown rat model has something wrong with it, i.e. it doesn't work whereas the brown rat does!
(*) This is so when the player looks down into their plush valley full of wildlife they are not all just stood around like statues, and more importantly so when they are moving they don't suddenly just freeze when an arbitrary distance from the player (but still well within view distance!), especially important in the case of birds. (**) Otherwise they are going to all show up on radar/map displays by default, probably only wanted by users in special cases rather than as by default because critters don't ever attack the player!
See next post but one for new script
oh got it
@davetgc
Aha, IntersectStaticPerformant may actually be working but it doesn't pass back 0 reliably, in most cases it is returning nil, I seem to recall the other Intersect function used to have this problem in GG.
So here is yet another version that allows for the nil return (and assumes the function actually works). If anyone finds that with this critters run through walls or whatever then we will know why.
okay thanks
now it works well hopefully thanks it is better to update the program to put this that works
Thanks for all the information.
@AmenMoses New script working perfectly! Thanks for the help :) , added for the next update.
The animals as you can see in the photo are all still like statues @plemsoft
@SampeyFS Yes i see fixed for the next update :)
it still crashes nothing is fixed @plemsoft
@SampeyFS - Just looking at the map/radar in your level. How many characters/objectives do you have active at one time? I'm wondering if this is part of the reason for many of your crashes.
Are they characters or animals?
@plemsoft Right now they only work for me on flat terrain \ blank Level
animals are
why animals and people are placed as allies does the same see them as enemies?
@synchromesh62 @SampeyFS This has been fixed and will be in the next EXP update :)
putting the animals comes out this script error of foxes, rabbits