Community

SCI Programming => SCI Syntax Help => Topic started by: WD-40 on July 25, 2015, 12:44:20 AM

Title: SCI0 DPath Heap Trouble
Post by: WD-40 on July 25, 2015, 12:44:20 AM
I'm using DPath to move my actors around the room like so:

(prisoner1: setMotion(DPath 79 139 77 67 0 67))

Everything works great until I move the ego to another room. In the new room when I check the heap size it's almost completely used up. Something about DPath is preventing objects from disposing and is eating all my heap. I'm positive DPath is the culprit because when I comment out all the DPath motions then my heap size is fresh in the next room. Also, using a series of MoveTo's doesn't cause this problem either, but it's pretty ugly in comparison.

Anyone ever had this problem? kinda frustrating because this is like my last problem to solve before I can really get developing my game :)

Thanks
Title: Re: SCI0 DPath Heap Trouble
Post by: troflip on July 25, 2015, 01:14:09 AM
What happens if you add DPATH_SCRIPT to the DisposeLoad call in startRoom in main.sc?

Some more info here:
http://sierrahelp.com/SCI/Tutorials/Tutorial3/Chapter07.html
Title: Re: SCI0 DPath Heap Trouble
Post by: WD-40 on July 25, 2015, 02:14:37 AM
What happens if you add DPATH_SCRIPT to the DisposeLoad call in startRoom in main.sc?

Some more info here:
http://sierrahelp.com/SCI/Tutorials/Tutorial3/Chapter07.html

That fixed it, thanks!

Nice tutorial too
Title: Re: SCI0 DPath Heap Trouble
Post by: troflip on July 25, 2015, 02:29:41 AM
Good to know. I'll add this to the SCI0 template game.