Wednesday, April 30, 2008

Multiple instance of torque on 1 pc

My dancing game doesn't work well in multiplayer mode, part of the reason is i only have 1 development pc. to overcome that i hacked torque engine to make it run multiple instance (it's disable by default).

on scripting side, finction initCanvas(%windowName, %effectName) initiate the the checking. this srcipt calls torque engine createCanvas or createEffectCanvas (this is new to me, it is for transition effect when setContent is called, should test this out later). and on engine side, this function Platform::excludeOtherInstances("TorqueTest") is checking multiple instances. but this is only call under release mode! so basically i don't need to hack any engine code to make it run multiple instances. haha wasting time again, but at lest i discovered a new canvas class

No comments: