Jump to content
Ind

Hercules 1st 2014 MegaPatch

Recommended Posts

Amazing.

The most awaited features are now on Hercules (@at persistent and 4billion array limit.)

Share this post


Link to post
Share on other sites

By the way, I don't know if you guys have realised yet, but this means you won't ever need an external plugin to make a vending database work!

Share this post


Link to post
Share on other sites

Great Hercules!

Great Ind yommy All of you.

 

 

And another things.

 

I have a Chinese RO server, It support autotrade recovery for a long times.

 

I found the developer use many SQL table to remember items. It seemed every Item had a Serial Number themselves. When server restart or Physical server reboot the autotraders will Reopen the vending. And the Process will be displayed in the console interface.

 

But I have not Source code. I just bought the Release version. Did you need to Reference about it? maybe some helpful?

Share this post


Link to post
Share on other sites

great ! no more the ugly 127 index in an array

 

next ->

2 dimensional array !

.array[1][0] <-- like this

 

is this possible ? :P

 

then no more ugly setd/getd stuff like

setd ".party"+ getcharid(1) +"data["+ .@i +"]", value;

 

 

if possible, please make it support at least 3 dimension

I have made a custom utility script that runs on 3 dimensional loop

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

great ! no more the ugly 127 index in an array

 

next ->

2 dimensional array !

.array[1][0] <-- like this

 

is this possible ? :P

 

then no more ugly setd/getd stuff like

setd ".party"+ getcharid(1) +"data["+ .@i +"]", value;

 

 

if possible, please make it support at least 3 dimension

I have made a custom utility script that runs on 3 dimensional loop

already going 3D eh :P

Share this post


Link to post
Share on other sites

 

[*]Magnificent Array Improvement (to all variable types)

[*]Size limit modified from 127 to ...4 billion!

 

In fact it's limited to 2 billion index max : since the script engine use integer (and not unsigned integer) to store variables and numbers.

But still a great improvement :)

Share this post


Link to post
Share on other sites

 

 

[*]Magnificent Array Improvement (to all variable types)

[*]Size limit modified from 127 to ...4 billion!

 

In fact it's limited to 2 billion index max : since the script engine use integer (and not unsigned integer) to store variables and numbers.

But still a great improvement :)

eh?

Where do you see the signed int part?

A bit of searching for "max_arraysize" brought me to script.h

 

#define SCRIPT_MAX_ARRAYSIZE (UINT_MAX - 1)

Looks like an unsigned int to me.

 

script.h imports cbasetypes.h which has

 

#define UINT_MAX 0xffffffff

Which is: 4294967295

Share this post


Link to post
Share on other sites

 

eh?

Where do you see the signed int part?

A bit of searching for "max_arraysize" brought me to script.h

 

#define SCRIPT_MAX_ARRAYSIZE (UINT_MAX - 1)
Looks like an unsigned int to me.

 

script.h imports cbasetypes.h which has

 

#define UINT_MAX 0xffffffff
Which is: 4294967295

 

Basically:

https://github.com/HerculesWS/Hercules/blob/master/src/map/script.c#L1105

https://github.com/HerculesWS/Hercules/blob/master/src/map/script.c#L3011

https://github.com/HerculesWS/Hercules/blob/master/src/map/script.c#L3425

 

Number in script are integer, supported from -2147483647 to 2147483647, else it lead to overflow error.

So if you can't create a number greater than this value, you will never be able to select an index superior than 2147483647 in an array.

Share this post


Link to post
Share on other sites

i'm using lastest GIT Hercules, and in my server, auto login vending online in case of crash map only. If i closed and re-open, its not work. How to make it work pls!

Share this post


Link to post
Share on other sites

 

 

i'm using lastest GIT Hercules, and in my server, auto login vending online in case of crash map only. If i closed and re-open, its not work. How to make it work pls!

http://herc.ws/board/tracker/

What you mean? Is this bug?

If you feel its a bug, please post it there, so developers can see. and the way to reproduce with the emulator version you use(rA emulator bugs should be posted on rathena forum's bug tracker), but if you want to have support , you are free to open topic.

Share this post


Link to post
Share on other sites

Hi to everyone, i'm new to Hercules.

 

Quick Question, Is this patch still working as of today's (feb 4th 2015) Hercules version?

Because in the Hercules wiki (http://herc.ws/wiki/Variables) it sti'll says that Account Variavles doesn't support arrays.

 

Thanks in advance.

 

(PS. Where can I check what version of Hercules i'm currently using?)

Share this post


Link to post
Share on other sites

Hi to everyone, i'm new to Hercules.

 

Quick Question, Is this patch still working as of today's (feb 4th 2015) Hercules version?

Because in the Hercules wiki (http://herc.ws/wiki/Variables) it sti'll says that Account Variavles doesn't support arrays.

 

Thanks in advance.

 

(PS. Where can I check what version of Hercules i'm currently using?)

 

yes it is still working, someone need to update the wiki

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.