Plugin error while starting SketchUp

Hello,

I have a problem trying to install an extension. I get this error:

Error Loading File C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/main.rb
Error: C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:88: invalid multibyte char (UTF-8)
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:88: syntax error, unexpected tIDENTIFIER, expecting keyword_end
“BĂ©zier (Cubic)”
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:88: syntax error, unexpected tSTRING_BEG, expecting keyword_end
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:89: syntax error, unexpected tIDENTIFIER, expecting keyword_end
when “arc”
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:90: syntax error, unexpected tCONSTANT, expecting keyword_end
“Arc”
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:92: syntax error, unexpected ‘(’, expecting keyword_end
text += " (Right click to change)"
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:92: syntax error, unexpected ‘)’, expecting keyword_end
text += " (Right click to change)"
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:97: syntax error, unexpected tCONSTANT, expecting keyword_end
view.drawing_color = Sketchup::Color.new(“Black”)
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:102: syntax error, unexpected tCONSTANT, expecting keyword_end
view.drawing_color = Sketchup::Color.new(“Red”)
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:104: syntax error, unexpected tCONSTANT, expecting keyword_end
@tooltip = "Can’t draw an arc. Try BĂ©zier cu

^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:104: invalid multibyte char (UTF-8)
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:104: syntax error, unexpected tIDENTIFIER, expecting keyword_end

 “Can’t draw an arc. Try BĂ©zier curve instead”#NOTE: make te


 ^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:125: syntax error, unexpected tIDENTIFIER, expecting keyword_end

, 2, Sketchup::Color.new(“white”)

 ^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:157: syntax error, unexpected tCONSTANT, expecting keyword_end
@t.model.start_operation “Track Position”
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:188: syntax error, unexpected tIDENTIFIER, expecting keyword_end
if picked && picked.attribute_dictionary(“ene_railroad”)
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:201: syntax error, unexpected tIDENTIFIER, expecting keyword_end
if picked && picked.attribute_dictionary(“ene_railroad”)
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:206: syntax error, unexpected tCONSTANT, expecting keyword_end
@tooltip = “Connect To Track”
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:283: syntax error, unexpected tIDENTIFIER, expecting keyword_end

ribute_dictionary(“ene_railroad”)

 ^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:361: syntax error, unexpected tCONSTANT, expecting keyword_end
menu.add_item("Set Control Points And Vectors

^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:364: syntax error, unexpected tIDENTIFIER, expecting keyword_end
[“hard_corner”, “Sharp Corner”],
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:364: syntax error, unexpected tCONSTANT, expecting keyword_end
[“hard_corner”, “Sharp Corner”],
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:365: syntax error, unexpected tIDENTIFIER, expecting keyword_end
[“c_bezier”, “BĂ©zier (Cubic)”],
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:365: invalid multibyte char (UTF-8)
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/track_position_tool.rb:365: syntax error, unexpected end-of-input, expecting keyword_end
[“c_bezier”, “BĂ©zier (Cubic)”],
^
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/main.rb:16:in load' C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/main.rb:16:in module:Ene_Railroad’
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad/main.rb:4:in <top (required)>' C:/Program Files/SketchUp/SketchUp 2016/Tools/extensions.rb:197:in require’
C:/Program Files/SketchUp/SketchUp 2016/Tools/extensions.rb:197:in load' C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad.rb:95:in register_extension’
C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad.rb:95:in <module:Ene_Railroad>' C:/Users/admin/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ene_railroad.rb:86:in <top (required)>’

Can someone help me solve this? I really don’t know how to get it work.
I have Windows 10 and using SketchUp 2016.

Hopefully someone can help me with this one!

Regards,

Koen

1 Like

Have you got the very latest version ? [v0.1.21]

A ‘UTF-8’ error usually means the RB file is not compatible with the newer version of Ruby used by the newer versions of SketchUp.
If you have edited any of the RB files this might have changed its encoding if saved ?
All of the RB files in my version seem to be encoded correctly [UTF-8 [without BOM]]
Use Notepad++ and make sure the encoding is correctly set.
Also the error you give at line #88 bears no resemblance to my files, so perhaps you have an out of date copy ?
Although line #96 does oddly says “Bézier” when perhaps “BĂ©zier” would be better ?