Issue information

Issue ID
#6032
Status
Fixed
Severity
High
Started
Hercules Elf Bot
Jun 15, 2012 14:20
Last Post
Hercules Elf Bot
Aug 2, 2012 2:04
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Jun 15, 2012 14:20

Originally posted by [b]wend[/b]
revision 16303

[CODE]
for (.@i = 0; .@i < 20; .@i++) {
[/CODE]

warning:
[CODE][Warning]: Unexpected type for argument 2. Expected label.
[Debug]: Data: number value=1
[Warning]: Found more arguments than necessary.
[Debug]: Function: jump_zero
[Debug]: Source (NPC): Test#1 at prontera (109,94)
[Error]: script: jump_zero: not label !
[Debug]: Source (NPC): Test#1 at prontera (109,94)[/CODE]

Hercules Elf Bot - Jun 15, 2012 14:28

Originally posted by [b]malufett[/b]
AFAIK ".@i++" is not supported..only 'set .@i, .@i+1' or '.@i = .@i+1'

Hercules Elf Bot - Jun 15, 2012 15:08

Originally posted by [b]wend[/b]
[CODE]for (.@i = 0; .@i < 10; .@i = .@i + 1) {[/CODE]
same warning

Hercules Elf Bot - Jun 15, 2012 15:09

Originally posted by [b]Euphy[/b]
According to [url="http://rathena.org/board/topic/62395-r15982-script-engine-update/"]Epoque's post[/url], though, .@i++ should be working.

Hercules Elf Bot - Jun 15, 2012 15:48

Originally posted by [b]malufett[/b]
Thanks for the info Euphy...

ok now I found out the cause its not the incremental operator...

[quote][b].@i = 0; [/b]then use in a condition like [b].@i<1[/b] [/quote] this set the warning...lets wait for Epoque to fix it or maybe I'll try to understand its implementation and do the fix...

This post has been edited by malufett on Jun 16, 2012 3:32

Hercules Elf Bot - Jun 22, 2012 15:32

Originally posted by [b]wend[/b]
Everyone forgot about it? Many scripts does not work..

Hercules Elf Bot - Jun 22, 2012 18:39

Originally posted by [b]Xantara[/b]
Might be related to [bug:5740] ( just posting for further info... if it helps ><;; )

This post has been edited by Xantara on Jun 22, 2012 18:39

Hercules Elf Bot - Jun 22, 2012 21:34

Originally posted by [b]GreenBox[/b]
The VM was not pushing back a reference to the modified variable on unary operators and assignment operations, now pushing the reference the stack is getting corrupted :S

Hercules Elf Bot - Jun 27, 2012 15:11

Originally posted by [b]Cookie[/b]
Just a FYI,

I received the same error. Here's an example -
[code]
@mapname$ = strcharinfo(3);
if (@mapname$ == "izlude")
{
dothis;
}
[/code]
Boom! jump_zero nonsense.

Point of the code above is that, it really didn't like mixing set's with the new engine. Even though, as Epoque's post says, they should be all in the same family as @i = 0; is the same as set @i, 0; if I'm not mistaken.

This post has been edited by Cookie on Jun 27, 2012 15:13

Hercules Elf Bot - Jul 19, 2012 14:04

Originally posted by [b]Jelly[/b]
Started at : 15 June 2012
Can you damn fix this?
We can't recompile server without fix /ok

Why sometimes rA ppl fix something and crush another things?

This post has been edited by Jelly on Jul 19, 2012 14:08

Hercules Elf Bot - Jul 19, 2012 16:00

Originally posted by [b]Euphy[/b]
Jelly, are you serious? This is an open-source emulator, nobody is getting paid for their work. Relax, somebody will get to this when they have time.

Hercules Elf Bot - Jul 20, 2012 8:58

Originally posted by [b]Jelly[/b]
Ton of scripts can not work without this fix.
And ofc we can't recompile server (for new revision) cauze all stuff can't work.

Hercules Elf Bot - Jul 20, 2012 16:03

Originally posted by [b]Euphy[/b]
There are a grand total of 0 scripts in our SVN that use this...

Hercules Elf Bot - Jul 20, 2012 16:39

Originally posted by [b]Ind[/b]
jelly should you troll any bug reports further and i'll have your arse banned, this is your first and final warning. i do not tolerate this.

Hercules Elf Bot - Jul 20, 2012 22:57

Originally posted by [b]Mysterious[/b]
[s]Jelly, the staff have tons and TONS of other Bug Fixes, Projects, and other necessary things that need to be really done. As mentioned throughout rAthena this is a Free-OPEN SOURCE project and not paid. Every single Administrator and Developer here are doing work for [b]FREE[/b]. =/

Now, as Euphy said, I personally have no scripts in my SVN that use any such code that relates to this. So I don't experience anything like this. Following this, your SVN was severely outdated at the time. Try updating it and take out useless NPCs that aren't coded properly =/.[/s]

I should mind my own 2-sense. Sorry.

This post has been edited by Mysterious on Jul 21, 2012 1:19

Hercules Elf Bot - Aug 2, 2012 2:04

Originally posted by [b]Ind[/b]
should be fixed in [rev=16555]