I added all required ad plugins!

Format :

Error

Code

Question

Windows simulator build date: May 27 2015 @ 18:15:50

Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:6: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:6: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: malformed number near ‘5606ac05fe6e470932000124’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: ‘)’ expected near ‘[’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
Syntax error
c:\users\true\documents\corona projects\tapthe meme\main.lua:7: unexpected symbol near ‘,’
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
WARNING: display.setStatusBarMode() not supported in the simulator for SM-G900S device
Runtime error
c:\users\true\documents\corona projects\tapthe meme\gameOver.lua:4: attempt to index global ‘ads’ (a nil value)
stack traceback:
        [C]: in function ‘error’
        ?: in function ‘gotoScene’
        c:\users\true\documents\corona projects\tapthe meme\game.lua:139: in function ‘_listener’
        ?: in function <?:141>
        ?: in function <?:221>
Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

Copyright © 2009-2015  C o r o n a   L a b s   I n c .
        Version: 3.0.0
        Build: 2015.2646
Platform: SM-G900S / x64 / 6.2 / Intel® HD Graphics / 4.0.0 - Build 10.18.10.4252 / 2015.2646
Loading project from:   c:\users\true\documents\corona projects\tapthe meme
Project sandbox folder: C:\Users\True\AppData\Roaming\Corona Labs\Corona Simulator\Sandbox\tapthe meme-5E907D9CB232B99C0C62B3B96A837C06\Documents
WARNING: display.setStatusBarMode() not supported in the simulator for SM-G900S device
WARNING: The ‘ads’ provider (vungle) is not available on the simulator
Runtime error
c:\users\true\documents\corona projects\tapthe meme\gameOver.lua:4: attempt to index global ‘ads’ (a nil value)
stack traceback:
        [C]: in function ‘error’
        ?: in function ‘gotoScene’
        c:\users\true\documents\corona projects\tapthe meme\game.lua:139: in function ‘_listener’
        ?: in function <?:141>
        ?: in function <?:221>

Build.setting:

-- -- For more information on build.settings see the Corona SDK Build Guide at: -- http://docs.coronalabs.com/guide/distribution/buildSettings/index.html -- settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", } }, plugins = { ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["plugin.google.play.services"] = { publisherId = publisherId = "com.coronalabs", }, }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXX", -- replace XXXXXXXXX with your Facebook appId } } } --]] } }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, }

Lines 1-7 of main.lua:

display.setStatusBar(display.HiddenStatusBar) local composer = require "composer" composer.gotoScene( "menu" ) local ads = require "ads" ads.init("vungle", "have this appId in my actual code but not showing in post" )

line 4 of restart.lua:

ads.show( "interstitial" )

What does this error mean and what do I need to fix?

Thank you.( p.s sorry to Perry Clarke for my ignorance in one of my first posts when I was starting corona .)

Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

says it all.

Look at line 20-ish (around line 20) of build.settings and find the syntax error.  You didn’t need to paste all the rest.  Better to zip the file up and link it.

This line:

["plugin.google.play.services"] = { publisherId = publisherId = "com.coronalabs", },

should be:

["plugin.google.play.services"] = { publisherId = "com.coronalabs", },

Just take your time, read the error output  from start to finish and look at your code slowly… 

Or… walk away and look at it the next day.

I think you’ve got code blindness… It happens to us all.  We see what we expect to see.  Our minds correct the problem we’re seeing and we miss it.

A few days ago that same code blindness led to me accidentally discovering that in PHP that same syntax is perfectly valid:

$storename = $gamename = $theStore;

Took me a while to work out why my gamename variable was incorrect  :slight_smile:

Yeah, unfortunately, Lua doesn’t support cascaded assignments.  That would be nice in some cases.  (I find myself wanting it occasionally to simplify code.)

Syntax error: c:\users\true\documents\corona projects\tapthe meme\build.settings:20: ‘}’ expected near ‘=’

says it all.

Look at line 20-ish (around line 20) of build.settings and find the syntax error.  You didn’t need to paste all the rest.  Better to zip the file up and link it.

This line:

["plugin.google.play.services"] = { publisherId = publisherId = "com.coronalabs", },

should be:

["plugin.google.play.services"] = { publisherId = "com.coronalabs", },

Just take your time, read the error output  from start to finish and look at your code slowly… 

Or… walk away and look at it the next day.

I think you’ve got code blindness… It happens to us all.  We see what we expect to see.  Our minds correct the problem we’re seeing and we miss it.

A few days ago that same code blindness led to me accidentally discovering that in PHP that same syntax is perfectly valid:

$storename = $gamename = $theStore;

Took me a while to work out why my gamename variable was incorrect  :slight_smile:

Yeah, unfortunately, Lua doesn’t support cascaded assignments.  That would be nice in some cases.  (I find myself wanting it occasionally to simplify code.)