Jump to content
  • 0

How can I change Max Array size in rAthena?


grobyczen

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/07/13
  • Last Seen:  

As the title says,

 

Is it posible to increase the maximum number of elements in an array?

 

It says on the wiki:

 

Array Variables

...

In Athena, it has a limitation of 128 possible values held by a single array, and a single dimension (mostly because strings can use a full index regardless of the length of the string it references to).

 Can I change that limit?

 

thanks in advance.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Try : trunk/src/map/script.c

/// Maximum amount of elements in script arrays
#define SCRIPT_MAX_ARRAYSIZE 128
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/07/13
  • Last Seen:  

Thanks OOP.

 

One last question:

 

Is there any problem if I change that max number? Should I have any considerations when doing that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   345
  • Joined:  02/26/12
  • Last Seen:  

Thanks OOP.

 

One last question:

 

Is there any problem if I change that max number? Should I have any considerations when doing that?

 

sorry for necroposting.

But yes, this take more resources if you increase your array.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...