Author Topic: SCI0 DPath Heap Trouble  (Read 2242 times)

0 Members and 1 Guest are viewing this topic.

Offline WD-40

SCI0 DPath Heap Trouble
« 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



Offline troflip

Re: SCI0 DPath Heap Trouble
« Reply #1 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
« Last Edit: July 25, 2015, 01:28:45 AM by troflip »
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline WD-40

Re: SCI0 DPath Heap Trouble
« Reply #2 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

Offline troflip

Re: SCI0 DPath Heap Trouble
« Reply #3 on: July 25, 2015, 02:29:41 AM »
Good to know. I'll add this to the SCI0 template game.
Check out my website: http://icefallgames.com
Groundhog Day Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.118 seconds with 23 queries.