Jump to content

Emulator error


Ah!

Recommended Posts

I am attempting to write my first cartridge using Earwigo.  I am now getting a message  when I try to start the cartridge in the emulator.  I do not know what this means.

ERROR
cartridge.lua:1473: '=' expected near 'Wherigo'

Any help would be greatly appreciated.

 

Cheers  Ah!

Link to comment

I just tried with one of my cartridges and there was no error message. By "the emulator" , you meant Webwigo, didn't you?

 

It's not easy to guess what could be wrong with your cartridge. Did you write some "author code"? What is your cartridge made of? (Zones, characters, etc.) Did you try to get advantage of some Earwigo's features? (Strings obfuscation, etc.)

 

Maybe you could try to locate the bug by narrowing the code. Perhaps by creating a smaller cartridge used to test only one thing at a time.

Link to comment

Thank you for your reply.

Yes, Webwigo.

I have found what is causing the problem, however I do not know what is wrong.

I had introduced a Lua statement - which I had used before without any error message. I'm not at all well versed with Lua.

My cartridge consists of Zones, Variables, Media, Items, Inputs, Functions, Expressions and Messages.

Here is the bits of code causing the problem - I think

Author code:

function tom()
  var_vMax = var_vy - var_vx

  end

One of my functions:

 

Statements  
 cb_unchecked-12px.png trans-12px.png bluedown-12px.png greenplus-12px.png blackslashes-12px.png trans-12px.png redx-12px.png  Lua statement tom
 cb_unchecked-12px.png blueup-12px.png bluedown-12px.png greenplus-12px.png blackslashes-12px.png trans-12px.png redx-12px.png  Display dialog or message Message:mcorrect
 cb_unchecked-12px.png blueup-12px.png trans-12px.png greenplus-12px.png blackslashes-12px.png trans-12px.png redx-12px.png  Set value Zone:x:Active => true
 cb_unchecked-12px.png blackredraw-12px.png trans-12px.png greenplus-12px.png trans-12px.png trans-12px.png trans-12px.png 

 

 

 

While writing this reply I have spotted my error - no () after tom.

Sorry to waste your time with my stupidity.

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...