Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th March 2003, 08:39   #1
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,203
Bug?



I get this when I run my logging program.

It happens after the 'Medic Heals' count, which makes you assume that it is the 'Medic Heals' count function, or maybe the next count function that is causing this error.

BUT

If I blank out the Calls for all functions accept the first function (for getting the 'kills' count,) then instead I get this error appearing from that function instead!

Is this some bug being caused by the compiler?

opcode, I assumed the IntOp, but that looks fine:

code:

IntOp $3 $3 + 1



Another problem I have:
I have a Custom Page MainPage in my script, and then I have a InstFiles page. However, the Next > button on the Custom Page doesn't go to the InstFiles page, but instead does nothing.

I have included the whole script below.
Attached Files
File Type: txt ddaylog.txt (8.9 KB, 74 views)

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 29th March 2003, 12:52   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Can you please pin point the exact command that causes this message?

The next button that does nothing was caused because you had only that custom page defined and no other page. When using Page you have to define all of the pages that your installer is using.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 29th March 2003, 14:35   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,203
Quote:
Originally posted by kichik
Can you please pin point the exact command that causes this message?

The next button that does nothing was caused because you had only that custom page defined and no other page. When using Page you have to define all of the pages that your installer is using.
I have narrowed it down to the SpecialKillsCount, because clearing the whole of that function fixes it.
I'm now going to remove parts of the function until it stops happening.

-Stuart

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 29th March 2003, 14:41   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
You can also add DetailPrint before each command until you see one DetailPrint that isn't printed and then you'll know the command before it is the one.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 29th March 2003, 15:01   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,203
Here is what I removed, and that fixed it. I can't see anything visually wrong though! Can you?

code:

Push $1
Push "${NAME}'s handgrenade"
Call StrStr
Pop $2

# Add to count
StrCmp $2 "" +3
IntOp $7 $7 + 1



OMG wait...
I haven't changed the +3 to a +2!!!
ACK
It works now.

-Stuart

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 29th March 2003, 17:11   #6
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
That's right Invalid jumps cause this error.
Joost Verburg is offline   Reply With Quote
Old 29th March 2003, 17:16   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
That's actually Exch not having anything to Exch with because that wrong jump skipped a Push.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump