- Joined
- Feb 2, 2006
- Messages
- 1,631
I am creating a small system which stores information about units over time. However, it seems that one struct after creating multiple instances will produce 0 instances.
I have attached the code and the map.
When walking around with the hero it produces the output of the following code lines:
TimeFrameImpl.create() produces 0 instances after like 80 instances. I have tried to increase the space by adding a limit to the interface TimeFrame:
but it did not help. Any ideas why it produces 0 instances? The debug mode doesnt work in the reforged editor for me. Maybe, it would produce more helpful information.
I have attached the code and the map.
When walking around with the hero it produces the output of the following code lines:
Code:
set timeFrame = TimeFrameImpl.create()
// TODO sometimes it is 0?! When having like 80?!!?!!?!?
call PrintMsg("Adding time frame " + I2S(timeFrame) + " for object: " + this.timeObject.getName() + " at delta " + I2S(timeDeltaFromStartFrame))
if (timeFrame != 0) then
call SaveInteger(thistype.timeFrames, this, timeDeltaFromStartFrame, timeFrame)
endif
call PrintMsg("Time frame is now " + I2S(this.getTimeFrame(timeDeltaFromStartFrame)) + " for object: " + this.timeObject.getName())
TimeFrameImpl.create() produces 0 instances after like 80 instances. I have tried to increase the space by adding a limit to the interface TimeFrame:
Code:
interface TimeFrame[10000]
but it did not help. Any ideas why it produces 0 instances? The debug mode doesnt work in the reforged editor for me. Maybe, it would produce more helpful information.