Coh3n
2012-12-20 14:13:54
Well, this is going to be the first SPS update in a very long time, and I'm hoping it'll be a big success. A big thanks to J J and Ollybest for the code that made it possible for SPS to work at any compass angle! Also, thanks to everyone who tested the new versions and provided feedback. :)
What's new?
- A significant speed increase. I'm not sure why, but SPS_GetMyPos was being called twice for no reason. Since the function is already slow, calling it unnecessarily just made it worse. If you use SPS_BlindWalk, it's still being called once unnecessarily. This can't be avoided without causing a compiling error. I'm planning on resolving this whenever SPS is converted to Lape. So basically, if you want SPS to work slightly faster, use SPS_WalkPath rather than SPS_BlindWalk.
- The user/scripter will now be warned if SPS_Setup wasn't called, or was called incorrectly.
- Will now work at any compass angle. This is completely optional. By default, SPS will work like it always has - at north. If you want it to work at any compass angle, set SPS_AnyAngle to true in your script:
SPS_AnyAngle := true;
Keep in mind that it's likely you will lose some accuracy using it this way. But from what I tested, it still worked really well. :)
For scripters:
- The new world map is a slightly different size than the old one. This was required to fix a few bugs in the map, and to make room for new areas. Because of this, you may need to pick new path points. The offset for new points is very small, so it's possible your old points will still work. I do recommend, however, that you pick new points to maximize accuracy.
- I have updated the Official SPS Thread to include a section on Scripting Hints/Tips that you may find helpful. So please, give it a read. Don't be afraid to suggest something to add as well. ;)
You can download the new SPS from here. Simply replace your SPS folder with this one. I will add the new version to the updater later today if there aren't any issues. E: Added to the updater. If your MSI updates automatically, you'll have the latest version. :)
Cheers,
Coh3n