Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 8:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Script Function not found
PostPosted: December 20th, 2007, 11:52 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
for some unknown reason, none of my publications with scripts which call a DLL will run. I get ""Script blah, blah : Function Not Found : Check spelling and capitalisation""
Some have worked reliably for months. I have reinstalled Opus..reset the registry. Has anyone seen this before???

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2007, 2:01 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Well a couple of hours later and I have tried everything, but Opus has died big style. and none of my applications will run reliably. No application with a DLL call will function, then trying that seems to cause other applications to crash. If I re-install/reset registry--I can get some applications running, but then if I try an application with a DLL call---and it crashes, then the first one I ran will no longer function. I can't see a pattern to it.


As usual with computers---this has happened when there was something really important to do.
I'm completely baffled by the problem.....in which case--it's almost certainly something stupid I've done and am missing the obvious. I'll set up Opus on another PC and see what happens there.

:-)

I just tried Opus 5.5 --it still has a host of applications in the objects list and they all run fine, so the problem seems to be limited to V6, unfortunately I need the DLL support otherwise I would be back to 5.5...much more stable for me.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2007, 5:22 am 
Can you do a System Restore to a point before the trouble started?

That usually solves weird issues for me,


Top
   
 
 Post subject:
PostPosted: December 21st, 2007, 9:51 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Thanks Ray


I stopped using system restore, because I had problems with it, but in this case it might have helped.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2007, 11:29 am 
Sandy

Are you using XP SP2? I had problems with System Restore before I installed SP2.


Top
   
 
 Post subject:
PostPosted: December 21st, 2007, 11:36 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I have XP fully updated, so I might try enabling system restore again---if it cured my current problems it would be worth it.

I have isolated the problem to calling a function in the DLL I use. I have re-installed everything, DLL, Opus, reset registry, but still does not see the function in the DLL.
I installed Opus on another PC to try, but I got an error message and the PC crashed :-) I think I'm having a bad PC day.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2007, 11:44 am 
Try leaving it until after Christmas -- maybe the Christmas elves will fix it for you :D


Top
   
 
 Post subject:
PostPosted: December 21st, 2007, 12:35 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
ha ha ha!! :-)

I had already added it to my Santa letter...Dear Santa, Please fix my Opus problem!!.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2007, 2:59 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Have you tried the sample DLL pub DW provides?

I empathize with your PC woes. Such catastrophes have a way of making us look like cats chasing our tails. Then there the obvious furball to follow.

I've just gone thru some 'buggy' things. Ctrl+Alt on launch didn't cure anything. So I went into Program FIles >>> Opus v6 >>> and manually deleted some of the .dat files and thumbnails.___ Also cleaned up resources folder for a problem pub. Lastly, deleted a particular page I suspect got corrupted. Just now seeing what's working.

L

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: December 21st, 2007, 11:52 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
thanks

I tried the sample and it worked fine. It seems to be linked to a DLL call which has worked fine since I started using V6. So far, I can't figure out what's gone wrong. It's a wee bit frustrating and ultra tedious since I have to reload Opus to fix the problem when it occurs, so faultfinding is very slow........hold on while I pull out the few remaining strands of hair on my head!!


I have always had a suspicion that copy and paste in scripts causes problems for me----never any positive proof, but I always seemed to get strange things happening after doing that. Normally I avoid it, but I had a 400 line script and I needed to use it in a new application......I cut and paste the text of the script to the new application and shortly after, things started going wrong. but I also installed ASP.net SDK earlier in the day, so it could be something there as well.

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 22nd, 2007, 4:18 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
You peaked my curiosity, so I jumped-in to learn a bit about DLLs here.

Here's what I found.
* DW sample pub, Demo DLL works like a charm.
* Copy that Button into my pub and check to add Vars and same-named obj's.
* Didn't work.

What did work after that.
1) check the SYS...PUBL...DIRECTORY var
it was diff of course for sample vs my own
2) copied 3 files from DW Sample folder into my PUB Directory
** still didn't work, but got a different error message now
3) changed the DW provided script: added the term 'var' in front of 'PickedColour' (in this specific case)

Test, and it worked.
Now I just need to understand 'why' and the implications.

I've included a JPG pic screenshot. Shows script in the middle area, the Opus editor work (Text box to check <VARS> ) background above, and the 3 files I copied over.

Your mileage may vary.

[Edit] Did not need to copy 3 files. Just the one Test____.DLL was needed.

_________________
_good things come to those who wait(0)_


Last edited by Lar_123 on December 22nd, 2007, 4:41 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: December 22nd, 2007, 4:28 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
2nd attempt to attach JPG file.
again,
3rd time... now zipped


You do not have the required permissions to view the files attached to this post.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: December 22nd, 2007, 8:44 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Thanks very much Lar.......what error message were you getting??

For me, The DLL always seems to load OK, but when it is called I get the error.


I uninstalled V6, cleaned the windows registry of all left over references, then did a clean install of V6 and started with a reset--loaded the DW sample DLL application and it would not run----error message "Function not found--check spelling and capitilisation"
I now have a publication which is reduced to the absolute minimum, uses one DLL call from the sample pub and a create clock script which also sometimes fails ..but not always. I'll hack away at that for a few days to see if I can find where the problem lies. I am getting more convinced it's something really stupid I'm overlooking.

Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: December 22nd, 2007, 10:34 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Sandy,

Wow. "What error messages?" you asked. I'd better learn Arrays first, then I can answer.

Actually, what DLL play I did... sometimes just failed to do anything. Otherwise, I changed so many things around that my science skills of observation were lacking.

But... I just did get the same error you had. Mine when testing the change-fill-colour scripts. Bottomline... I was referencing a Vector obj when the code wanted a Polygon reference.

Solved it with the following added in.
Quote:
var mychild1 = whateverVectorObject_Iwanttouse.GetChild(0) ;
mychild1.SetFillColour("red" )
// instead of "red", can use a VALID color value.
// Here too the scripting is "picky"... needs to be a number/value or RGB combination, or ____
// [Edit] not a 'number'... better said it is a colour value.


Good luck.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: December 23rd, 2007, 11:43 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
continuing...

I found another way I caused the error msg in my playing. [ function not found, ck spelling caps etc ]

When I passed an object name as a parameter to the function, and later used it or a variation of it as the IdentifiedObject.Opusfunction(newcolor);

solved by doing the 'eval thing'. Example
Quote:
eval(whichPolygon +"."+ "SetFillColour( someColorValue )" ); // assumes tthis code is in a Script Object with a function that receives the name of the Vector/Polygon


Who needs games. These things are entertaining puzzles for sure. 8)

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 43 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group