Is this laggy?
lightwriter
04 Oct 2015, 01:21I can't tell if it's Quest or maybe something in my code that's lagging this really bad for me.
EDIT: Please try again, I uploaded the wrong file the first time.
I'm also using Pixie's Scope Library
Second Inventory: viewtopic.php?f=18&t=3789
EDIT: Please try again, I uploaded the wrong file the first time.
I'm also using Pixie's Scope Library
Second Inventory: viewtopic.php?f=18&t=3789
HaganeSteel
04 Oct 2015, 06:06It isn't laggy for me at all, but I did get this error:
Error running script: Error compiling expression 'object.quantity > 1': Unknown object or variable 'object'
Error running script: Error compiling expression 'object.quantity > 1': Unknown object or variable 'object'

Forgewright
04 Oct 2015, 08:23Same Error, running over and over.

Pertex
04 Oct 2015, 14:31Sure, there is a strange timer named stack_inventory. Remove it and it will work.
Is it really necessary to import all this base functions into your game?
Is it really necessary to import all this base functions into your game?
lightwriter
04 Oct 2015, 14:37Yes because I created something similar to the Stackable library so I had to edit certain things like the Give and Take commands
lightwriter
04 Oct 2015, 14:45OOps, I just realized I uploaded the wrong file! Here is the actual file I want tested

Pertex
04 Oct 2015, 14:54you should post your used libraries, too
lightwriter
04 Oct 2015, 15:03Done and done 

The Pixie
04 Oct 2015, 15:07Did not lag for me, but I do not have main.js, so it might be different.
I did notice you have a timer called volume_quantity, that is iterating through every room and object in the game, every second. That is likely to have an impact, especially if you put your game on-line. When will item.unitvolume or item.quantity actually change? Could you not just set the value for one item when that happens (use a change script perhaps).
Try setting volume_quantity so it does not start, and see if the game still lags. Might be worth stoppng the other timers too to see what happens.
I did notice you have a timer called volume_quantity, that is iterating through every room and object in the game, every second. That is likely to have an impact, especially if you put your game on-line. When will item.unitvolume or item.quantity actually change? Could you not just set the value for one item when that happens (use a change script perhaps).
Try setting volume_quantity so it does not start, and see if the game still lags. Might be worth stoppng the other timers too to see what happens.
lightwriter
04 Oct 2015, 15:28I got rid of a timer that was running faster than 1 second per a tick (using Javascript) and it seems to have gotten rid of the lag.
This game won't be directed for online play anyhow since it's going to be a big project.
This game won't be directed for online play anyhow since it's going to be a big project.