What does EXPRESSION in ESR_si_lbonew error mean?

Post » Tue Mar 30, 2010 10:22 pm

When using the mod Useful Summoned Creatures by ElderScroller, "Script error: EXPRESSION in ESR_si_lbonew" popped up when an npc summoned a bonewalker, immediately followed by a "Left eval" message. The first time this happened, I didn't get an error message, just a ctd. I can just disable this mod to get rid of this, but... It's a useful mod. Anywhos, just wondering what was up and if I can somehow fix it.
User avatar
Alex [AK]
 
Posts: 3436
Joined: Fri Jun 15, 2007 10:01 pm

Post » Tue Mar 30, 2010 5:38 pm

When using the mod Useful Summoned Creatures by ElderScroller, "Script error: EXPRESSION in ESR_si_lbonew" popped up when an npc summoned a bonewalker, immediately followed by a "Left eval" message. The first time this happened, I didn't get an error message, just a ctd. I can just disable this mod to get rid of this, but... It's a useful mod. Anywhos, just wondering what was up and if I can somehow fix it.



maybe, there is a local variable called but not declared.

I can't fint the mod anywhere. I could have a look at it.
User avatar
Brad Johnson
 
Posts: 3361
Joined: Thu May 24, 2007 7:19 pm

Post » Wed Mar 31, 2010 5:27 am

maybe, there is a local variable called but not declared.

I can't fint the mod anywhere. I could have a look at it.

Well. It seems as if he's disappeared. I downloaded it from pes, but I just checked and... It's just gone. Him, his mod, everything. I could put it up on mediafire if you really wanted to check it out.
User avatar
Cheryl Rice
 
Posts: 3412
Joined: Sat Aug 11, 2007 7:44 am

Post » Wed Mar 31, 2010 6:08 am

Well. It seems as if he's disappeared. I downloaded it from pes, but I just checked and... It's just gone. Him, his mod, everything. I could put it up on mediafire if you really wanted to check it out.


it's ok for me.
User avatar
emma sweeney
 
Posts: 3396
Joined: Fri Sep 22, 2006 7:02 pm

Post » Tue Mar 30, 2010 5:05 pm

it's ok for me.

EDIT: Took down the link.
User avatar
Alan Whiston
 
Posts: 3358
Joined: Sun May 06, 2007 4:07 pm

Post » Wed Mar 31, 2010 5:24 am

Morrowind scripting for dummies 9.0 says that a left eval is most likely from a script not having a space before or after parenthesis's in a script. like

If ("player"->GetItemCount "Something" > 0)
should be
If ( "player"->GetItemCount "Something" > 0 )
User avatar
jason worrell
 
Posts: 3345
Joined: Sat May 19, 2007 12:26 am

Post » Wed Mar 31, 2010 7:09 am

Morrowind scripting for dummies 9.0 says that a left eval is most likely from a script not having a space before or after parenthesis's in a script. like

If ("player"->GetItemCount "Something" > 0)
should be
If ( "player"->GetItemCount "Something" > 0 )

So this should just be a basic mess up of the author and not a conflict of mods, right? Hm... Now I just hafta find this script.
User avatar
tiffany Royal
 
Posts: 3340
Joined: Mon Dec 25, 2006 1:48 pm

Post » Wed Mar 31, 2010 4:03 am

ESR_si_lbonew should be the script. it's now just figuring out the mod that it's in
User avatar
Je suis
 
Posts: 3350
Joined: Sat Mar 17, 2007 7:44 pm

Post » Tue Mar 30, 2010 5:28 pm

"Script error: EXPRESSION in ESR_si_lbonew"



from what I see, there are 3 local variables, called in that script, and all of them have been declared. However, there is a DD_GlobalInitiative.state that refers to a variable called "state" in the script "DD_GlobalInitiative". This script, is included in the other esp file (that should require MWSE) included in the download, and this other esp should be loaded before the other one. How is your load order?

Does it happen only to the bonewalker? or also for other creatures? This script is referred in the script of all the summoned creatures, so you should get the same error for all.
User avatar
lexy
 
Posts: 3439
Joined: Tue Jul 11, 2006 6:37 pm

Post » Tue Mar 30, 2010 9:49 pm

from what I see, there are 3 local variables, called in that script, and all of them have been declared. However, there is a DD_GlobalInitiative.state that refers to a variable called "state" in the script "DD_GlobalInitiative". This script, is included in the other esp file (that should require MWSE) included in the download, and this other esp should be loaded before the other one. How is your load order?

Does it happen only to the bonewalker? or also for other creatures? This script is referred in the script of all the summoned creatures, so you should get the same error for all.

Firstly let me say, I made sure the load order was correct, with CI_Global.esp first and Useful Summoned Creatures.esp second, and I have MWSE running.

Now that that's out of the way, AHA! With a bit of testing I discovered the issue. The reason why I had never noticed this problem before was because, and this is just a guess, no other npc that summoned a creature (even a bonewalker) had a script on them. The specific npc that caused this error was the target of a quest, specifically the mages guild one where you have to get the guild dues from some chick in a cave.

This was the test: First I attacked multiple npcs who summoned a creature without a problem. Then I made the npc that gave me an error attack me on another save, and no message popped up. Then, I started the quest that involved her and THEN attacked her. Voila, error message. So I assume when I started the quest some sort of script started on her which interfered with the mod.

Now that that's out of the way, how do I fix it? But anyways, I'm content even if there isn't a fix, just that I know what the problem is and that it isn't a big deal.
User avatar
Nicholas
 
Posts: 3454
Joined: Wed Jul 04, 2007 12:05 am

Post » Tue Mar 30, 2010 9:50 pm

From MWSD 9

"LeftEval"
This error seems to come up when you have accidentally declared a Function as a variable.
The following lines e.g. would produce this error:
short ScriptRunning
if (ScriptRunning "MyScript" == 1 )
Both of the above can also be caused by not having spaces at the proper places. Always leave
a space between parentheses and function calls, variables etc.
If ( OnActivate == 1 ), not if (OnActivate==1). This only causes errors very rarely, but it
sometimes does, trust me.


so it could be prior i was pointing out the later.
User avatar
Syaza Ramali
 
Posts: 3466
Joined: Wed Jan 24, 2007 10:46 am

Post » Tue Mar 30, 2010 11:15 pm

I removed Useful Summoned Creatures from Planet Elder Scrolls and would appreciate it if people didn't redistribute it.

The original poster's problem is an example of the reason why I deleted it. I originally wrote the mod with the simplest approach in mind and attached a script to each of the summonable creatures to help govern their behavior. However, this has the obvious downside of sometimes conflicting with other mods. Additionally, it can also sometimes crash the game. I'm not exactly sure why, but I believe it has to do with attaching a script that may conflict with the behavior hardcoded into the respective sEffectSummonCreatureX spell effects.

Since I no longer believe the mod is completely stable and friendly to the larger Morrowind mod ecosystem, removing it was the only responsible thing to do.

I am currently working on another mod that includes similar functionality but is based on a completely different fundamental design. While not as simple, it seems to be what I should have been doing in the first place. Ah well...live and learn I guess. I'll make a WIP thread for it in the next few days.
User avatar
Isaiah Burdeau
 
Posts: 3431
Joined: Mon Nov 26, 2007 9:58 am

Post » Tue Mar 30, 2010 11:26 pm

I removed Useful Summoned Creatures from Planet Elder Scrolls and would appreciate it if people didn't redistribute it.

The original poster's problem is an example of the reason why I deleted it. I originally wrote the mod with the simplest approach in mind and attached a script to each of the summonable creatures to help govern their behavior. However, this has the obvious downside of sometimes conflicting with other mods. Additionally, it can also sometimes crash the game. I'm not exactly sure why, but I believe it has to do with attaching a script that may conflict with the behavior hardcoded into the respective sEffectSummonCreatureX spell effects.

Since I no longer believe the mod is completely stable and friendly to the larger Morrowind mod ecosystem, removing it was the only responsible thing to do.

I am currently working on another mod that includes similar functionality but is based on a completely different fundamental design. While not as simple, it seems to be what I should have been doing in the first place. Ah well...live and learn I guess. I'll make a WIP thread for it in the next few days.

Sorry about that, ElderScroller. Good work, nevertheless, and good luck on future projects.
User avatar
Kayleigh Williams
 
Posts: 3397
Joined: Wed Aug 23, 2006 10:41 am


Return to III - Morrowind