SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Napseeker on January 04, 2019, 01:16:43 PM

Title: Units are sliding instead of walking
Post by: Napseeker on January 04, 2019, 01:16:43 PM

I've recently had some free time to resume modding SWBF1 and encountered a familiar problem:  in some cases the units (and myself) will start to slide around on the floor instead of doing the usual animated walk/run. 

This is a problem that I vaguely recall being reported in the past with other mods, but I've not had this issue until trying to create this particular mod. Does anyone remember what is needed to fix the issue?  In my LUA, I thought that increasing the soldier memory might help but it doesn't seem to change much:

    SetMemoryPoolSize ("EntitySoldier",300)

Would appreciate any suggestions!  thanks  :tu:


Title: Re: Units are sliding instead of walking
Post by: Led on January 04, 2019, 02:41:48 PM
I've seen it happen when the unit speed is too high as compared to stock. 

At one time I wanted to try a possible fix...if you are interested I can see if I can remember what I wanted to try.   :cheers:
Title: Re: Units are sliding instead of walking
Post by: Giftheck on January 04, 2019, 11:32:56 PM
Quote from: Napseeker on January 04, 2019, 01:16:43 PM
I've recently had some free time to resume modding SWBF1 and encountered a familiar problem:  in some cases the units (and myself) will start to slide around on the floor instead of doing the usual animated walk/run. 

This is a problem that I vaguely recall being reported in the past with other mods, but I've not had this issue until trying to create this particular mod. Does anyone remember what is needed to fix the issue?  In my LUA, I thought that increasing the soldier memory might help but it doesn't seem to change much:

    SetMemoryPoolSize ("EntitySoldier",300)

Would appreciate any suggestions!  thanks  :tu:

First off, welcome back!

Are you using Sleepkiller's Model Edit tool during munge? That's the only time I can think of where it produces this issue as I've never encountered it myself. The only other thing thing I can think of is too many units at once. How many units are called in your LUA?
Title: Re: Units are sliding instead of walking
Post by: Napseeker on January 05, 2019, 07:06:44 PM
@Led:  that's an excellent point, I also remember (back when I was modding those Jedi units) that making the soldiers run too fast would cause them to slide in the game. However in this case, I know I'm using only the typical speed and acceleration settings for my custom units, and the sliding still happens even for the standard/shipped X-Wing pilot whenever I'm playing as him.

@Giftheck:  I'm still just using the same modding setup from 10+ years ago, so definitely not using Sleepkiller's Model Edit tool.  I don't have the LUA in front of me, but I'm fairly certain that I'm only calling up the usual 25 units per team.  There are also 2 local teams that probably average out to about 25 each (so that's a total of 100 units on the map).  I've had more than this in my previous mods e.g. Geonosis Arena, without any sliding issues.  It could be that this time I've got a ton of starfighters added to the map as well.  This feels like something I should be able to solve if I allocate more memory resources in the right place, but am at a loss as to what they would be other than the EntitySoldier that I already tried.

Title: Re: Units are sliding instead of walking
Post by: Giftheck on January 07, 2019, 03:26:49 AM
Hmm... I'm at a loss myself, then. It might be worth asking Sereja - he does really complex, detailed maps with custom sides, so he might have encountered this issue at some point himself.
Title: Re: Units are sliding instead of walking
Post by: Unit 33 on January 07, 2019, 06:47:27 AM
That is weird that it only 'sometimes' happens as you mentioned in the OP.

If it was a typo somewhere in the .odfs... or as Led suggested, the unit speed being set too high, it would just be happening all the time.
But as you've said it's happening conditionally, it sounds more memory based.

As gg above said, wait on Sereja... or have a mundane time stripping things away until it stops doing it.

p.s. welcome back!
Title: Re: Units are sliding instead of walking
Post by: Red04SWBF on January 07, 2019, 10:18:53 AM
This issue happened to me long ago, I think because I boosted the speed from a ODF trooper too much. But I still don't understand why slide when it's tweaked by that way. Hopefully we could find an answer... ::)
Title: Re: Units are sliding instead of walking
Post by: Giftheck on January 17, 2019, 05:08:26 AM
Is there a memory pool for soldier animations in SWBF that can be altered through the LUA?
Title: Re: Units are sliding instead of walking
Post by: Napseeker on January 17, 2019, 04:59:20 PM
That's what I had thought "EntitySoldier" would've included, is expanding the memory for their animations... but perhaps not. I should try some much higher number like 500 just to see if it improves things any more.
EhPortal 1.34 © 2024, WebDev