The Daily Click ::. Forums ::. Klik Coding Help ::. Array flavours
 

Post Reply  Post Oekaki 
 

Posted By Message

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
1st November, 2007 at 21:37:56 -

There's so many out there. Which would be the best for saving a 1 dimensional array? I've tried the Associative Array but it's just not saving any data, and the Dyamic Array seems to not save when using loops (does work if you manually tell it to save a specific value).

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Deleted User
1st November, 2007 at 21:53:48 -

In my experience, the AssArray or Jam's Array object are the best ones to work with. Although the Assarray is very powerful, sometimes you'll find one or two bugs, so I don't know if that was a good reccommendation.

 

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
1st November, 2007 at 21:59:41 -

I think I've got it all working with GlobalStoreX or something like that. Only problems with this is the manual arraysize and lack of encryption of any sort. But it'll do for now. I'll have to try Jams Array next time!

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
2nd November, 2007 at 06:48:17 -

Not that you would, but I've had big problems in the past using two arrays in the same game before. Somehow MMF always confused the values between the two. Just a warning to help!

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
2nd November, 2007 at 07:47:28 -

If you use values from 0 to 255 you should use my ByteArray.
It's a raw array format so it will make the smallest file without compression. (You can compress it with Zlib using the binary object though, creating a super small file!)

 
Service Unavailable

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
2nd November, 2007 at 10:48:50 -

ive only ever had headaches using arrays. maybe im incompetent....or maybe not. Nowadays i just stick to INI. encryption is the only problem there but i think that if somone wants to mess with it let them.

What ive started doing is putting in some code on random screens, checking wether or not the INI numbers make sense ie. if the player has a character lvl of 100 and has only passed through 10 mins of game play then the player has to put up with a giant "CHEATER" on the screen. That'll teach em....

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
2nd November, 2007 at 11:40:34 -


What ive started doing is putting in some code on random screens, checking wether or not the INI numbers make sense ie. if the player has a character lvl of 100 and has only passed through 10 mins of game play then the player has to put up with a giant "CHEATER" on the screen. That'll teach em....



Awesome, I've thought of a similar idea where a few parts of the array were dedicated "dummy" slots filled with some ridiculous value. If when the player loaded his game up and these dummy slots were something else, it would know he was a cheater and give him like 3 max HP for a punishment

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
2nd November, 2007 at 11:53:05 -


Originally Posted by Del Duio

What ive started doing is putting in some code on random screens, checking wether or not the INI numbers make sense ie. if the player has a character lvl of 100 and has only passed through 10 mins of game play then the player has to put up with a giant "CHEATER" on the screen. That'll teach em....



Awesome, I've thought of a similar idea where a few parts of the array were dedicated "dummy" slots filled with some ridiculous value. If when the player loaded his game up and these dummy slots were something else, it would know he was a cheater and give him like 3 max HP for a punishment



Haha. Hahahahaha!

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

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!
2nd November, 2007 at 17:57:20 -

You can cheat your way through arrays...

I use that byte thingy object to create a file that's as big as it needs to be, and no bigger. It's not very easy to work with though, I'd rather use something that automates this, like LIJI's Byte Array object, if I could.

 
Old member (~2004-2007).

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
2nd November, 2007 at 18:07:26 -

Byte thingy object? The Binary Object?

 
Service Unavailable

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!
2nd November, 2007 at 19:59:42 -

Yeah, that.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click