|
ilyarin Beginner
Joined: 29 Aug 2008 Posts: 10
|
Posted: Wed Sep 03, 2008 7:59 pm
[2.36] Argument Still on Stack |
My copy of cMUD is crashing on me a lot at the moment, and I can't seem to work out very clearly why. However, I am getting a lot of 'ERROR: argument still on stack's, and a lot of 'ERROR: Operand CONCAT requires two parameters' or similar, and they seem to come moments before a large number of the crashes. What kind of things might cause these errors, because I'm having trouble tracking them down as the errors are very generic. :(
[Edit: Weird stuff like this...]
Code: |
ERROR: argument still on stack: blacklung
blacklung
25145
23517
29690
29678
10
6617
7940
4179
3318
10148
8400
0
A dizzying beam of energy strikes you as your attack rebounds off of a radiant defender of life's shield.
0
00
ung
argument still on stack: blacklung
|
|
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Wed Sep 03, 2008 10:44 pm |
It looks like you need to use #send {blacklung} in a function instead of just having it in your list of commands.
So I would do a search of your packages for the word blacklung and try replacing it with the above. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Sep 03, 2008 11:02 pm |
Sounds like you have a bad script or trigger somewhere. Try turning on the Script Debugger window and enable the "Show All Scripts (n)" Message. This should show you what scripts and triggers are being executed when you get the error.
Once you determine which trigger or script is causing the problem, then you can post the details here for us to look at. Just right-click on the setting in the tree view on the left side of the package editor and select Copy and then paste the text within [CODE] [/CODE] tags here in the forum.
Quote: |
It looks like you need to use #send {blacklung} in a function instead of just having it in your list of commands. |
You don't need #send in that case, so I don't think that's the problem. You can put a MUD command on it's own line just fine. It's when you do this in a function that it's the problem, but without seeing the original poster's scripts, I'm not sure he is using a function. |
|
|
|
ilyarin Beginner
Joined: 29 Aug 2008 Posts: 10
|
Posted: Thu Sep 04, 2008 9:07 pm |
I'll do the best I can with these weird bugs, but the majority of them are either too random to set up and catch, or end up causing cmud to crash and close, so I can't save the debug messages. This one, as far as I can tell, caused the database variable 'mechanics' to be emptied. If you need more info to decipher this please let me know. *hope*
Code: |
10:00:32.185p | f Lusterni |Alarm: 1.5
10:00:32.188p | c Lusterni |exec : Alarm "resetStandBalance" : #addkey mechanics standBalance 1
10:00:32.264p | f Lusterni |Alarm: 11
10:00:32.266p | c Lusterni |exec : Alarm "domothAlarm" : #echo %null alert {Domoth defenders...
10:00:32.267p | a Lusterni |10512h, 3932m, 6617e, 10p, 31205en, 22642w elrxkdb<>-
10:00:32.275p | a Lusterni |[Cerberus]: Domoth defenders in 4 seconds.
10:00:33.101p | a Lusterni #Telnet 200: Char.Vitals<LF>NL:0/100 H:10512/10512 M:3910/4179 E:6617/6617 P:10/10 N:31205/31205 W:22642/25145
10:00:33.103p | f Lusterni |Telnet: Char.Vitals\12NL:(\d+)/100 H:(\d+)/(\d+) M:(\d+)/(\d+) E:... : (%1=0, %2=10512, %3=10512, %4=3910, %5=4179, %6=6617, %7=6617, %8=10, %9=31205, %10=31205, %11=22642, %12=25145)
10:00:33.105p | c Lusterni |exec : Telnet "Char.Vitals\12NL:(\d+)/100 H:(\d+)/(\d+) M:(\d+)/...
10:00:33.772p | f Lusterni |Alarm: 1.5
10:00:33.773p | c Lusterni |exec : Alarm "resetStandBalance" : #addkey mechanics standBalance 1
10:00:34.575p | a Lusterni #Telnet 200: Char.Vitals<LF>NL:0/100 H:10512/10512 M:3910/4179 E:6617/6617 P:10/10 N:31205/31205 W:22638/25145
10:00:34.575p | f Lusterni |Telnet: Char.Vitals\12NL:(\d+)/100 H:(\d+)/(\d+) M:(\d+)/(\d+) E:... : (%1=0, %2=10512, %3=10512, %4=3910, %5=4179, %6=6617, %7=6617, %8=10, %9=31205, %10=31205, %11=22638, %12=25145)
10:00:34.576p | c Lusterni |exec : Telnet "Char.Vitals\12NL:(\d+)/100 H:(\d+)/(\d+) M:(\d+)/...
10:00:34.578p | a Lusterni |
10:00:34.581p | a Lusterni |You begin to tell Malicia of the chakras of mind, body and spirit, and how, by invoking the essence of colour, each might be opened.
10:00:34.584p | a Lusterni ]10512h, 3910m, 6617e, 10p, 31205en, 22638w elrxkdb<>-
10:00:34.584p | f Lusterni |Pattern: %s(%w){-|<>-}$ : (%1="elrxkdb")
10:00:34.585p | c Lusterni |exec : Pattern "%s(%w){-|<>-}$" : #var oldPrompt @prompt #var pr...
10:00:34.586p | c Lusterni |exec : @afflictions.deaf
10:00:34.587p | c Lusterni |exec : @afflictions.deaf
10:00:34.587p | c Lusterni |exec : @afflictions.aeon
10:00:34.588p | c Lusterni |exec : @afflictions.dead
10:00:34.588p | g Lusterni =[32m10512h,[32m 3910m,[32m 6617e,[32m 10p,[32m 31205en,[32m 22638w[51m elrxkdb<>-[0m
|
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Sep 04, 2008 10:21 pm |
But I don't see any "argument still on stack" error (or any other errors) in that one. That's what we are trying to catch.
If you are getting CMUD crashes that cause it to close (where you can't just click on Continue Application), then there is something seriously messed up or corrupted in your installation. If you have used a lot of old beta versions then it might be time for a clean install. If you can click Continue Application then you should be able to copy/paste the text from the script debugger window.
You might also try cleaning your settings file by going into the Package Editor and select File/Export to save your scripts to an XML file. Then exit CMUD, rename your PKG file for that session and then open the session offline to let CMUD create a blank package. Then go back into the Package Editor and use File/Import to import the XML file that you previously saved.
Also, if you have ported your script from zMUD, be sure to run the File/Compatibility Report in the settings editor to make sure that all of your scripts are compiling properly. |
|
|
|
ilyarin Beginner
Joined: 29 Aug 2008 Posts: 10
|
Posted: Sat Sep 06, 2008 2:26 pm |
Hum humm. I missed the debug report this time, so I don't know if this will be any help. But I was just bashing normally and suddenly cMUD flooded me with a list of all my triggers, then some errors.
Code: |
8391h, 4290m, 6268e, 4p, 33800en, 4312w elxkdb<>-
A robed obesefessor opens his book and a column of red fire shoots out and engulfs you.
[Cerberus]: Enabled affliction - burning.
A robed obesefessor opens his book and a column of red fire shoots out and engulfs you.
Eyes glowing red, a robed obesefessor bellows and a shield of protection flickers into view around his form.
Throwing back his head, a robed obesefessor spews forth a mass of maggots that bore into your flesh.
A robed obesefessor opens his book and a column of red fire shoots out and engulfs you.
7136h, 4290m, 6268e, 5p, 33800en, 4312w elxkdb<>-
You bathe in the glory of the holy light that surrounds you.
The raging fire about your skin goes out.
7693h, 4290m, 6268e, 5p, 33800en, 4312w elxkdb<>-Triggers:
[lots and lots and lots...]
ERROR: argument still on stack: 92
You take a drink from a garnet vial.
ERROR: Operator binaryint requires two arguments
7693h, 4290m, 6268e, 5p, 33800en, 4312w elxkdb<>-
ERROR: Operator CONCATSWAP requires two arguments
A robed obesefessor whacks you across the skull with his heavy tome.
ERROR: Operator binaryint requires two arguments
7478h, 4290m, 6268e, 5p, 33800en, 4312w elxkdb<>-You have recovered balance on your right arm.
7478h, 4290m, 6268e, 5p, 33800en, 4312w elrxkdb<>-
You may drink another health, mana, or bromide potion.
|
And then something else weird is this: the 'elxkdb<>-' bit of my prompt normally has colours attached to it. (it would be high,green). However, the prompt after the final ERROR: ... is the last one to have colour. When I noticed this I thought hmm and just typed '#co 12' into cMUD's command prompt to see if colouring was working properly. Anyway all it's doing now is colouring that line, even now that I'm a lot further on. Probably isn't helpful without debug so I'll make sure to keep it up all the time. Is there any way to have debugging automatically be saved into a text file as it goes along? |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sun Sep 07, 2008 5:10 pm |
Quote: |
Is there any way to have debugging automatically be saved into a text file as it goes along? |
No, but I'll try to add that sometime in the future.
Quote: |
Probably isn't helpful without debug so I'll make sure to keep it up all the time. |
Correct...without the debug there is no way for me to see what it is doing. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|