The Daily Click ::. Forums ::. Klik Coding Help ::. shared data object is biting me in the ass!!!!
 

Post Reply  Post Oekaki 
 

Posted By Message

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
31st May, 2005 at 18:44:36 -

Is there a limit to how many shared vlaues/strings a shared data object can store? I'm doing this:

Upon pressing SPACE
- (add 1) to (value 57 of shared data object)
Always
- (set counter) to (value 57 of shared data object)

For some odd reason, the counter ALWAYS stays at 0. So I try this:

If value 57 of shared data object = 0
- play sample "beep.wav"

But the wav doesn't play. This has led me to assume that value 57 isn't avalible. But I tried to same thing with value 18 and that doesn't work either. What the hell is going on?!?!?!

 
n/a

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
1st June, 2005 at 03:53:29 -

Hmmm, I copied your events and I tried it myself, and the counter does change in my case. And comparing the value of the shared data object works too. You sure you didn't make a mistake?


 
This space is for rent

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
1st June, 2005 at 04:14:00 -

The limits of the shared data object is 4096 values, 32 strings and the maximum lenght of the string is 1048 or 1024 cant remeber.

 
Visit www.crobasoft.com or you're a Noob.

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
1st June, 2005 at 10:32:49 -

That would probably be 1024 (a power of 2 ).

To answer your question, try to set the value of the object to current value + 1 instead of add 1 to it. It's a workaround, but it might work.
Also, make sure your values don't get loaded from a file all the time, that would kind of restore the values back to their original ones.

 
Old member (~2004-2007).

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd June, 2005 at 21:00:32 -

are you trying to do too many things in the same line?

i rememebr a problem with ini loading, you cant load too much at once because there isnt time in one line.
it may have the same principal.

 
.
   

Post Reply



 



Advertisement

Worth A Click