builder icon indicating copy to clipboard operation
builder copied to clipboard

Builder download gamet.ts contains syntax errors preventing deployment

Open cfravel opened this issue 3 years ago • 1 comments

This is a bug report.

The Builder download zip file's game.ts contains syntax errors. These errors do not keep the SDK Preview from running (nor the Builder preview or publish) However, they do prevent dcl deploy. Here is an example:

// // Original version as exported by the Builder // script1.init(options) // script2.init(options) // script1.spawn(videoFilePlayer, {"vidUrl":"https://decentralive.tv/video/e81b64c7841251e549698987178d6813.mp4","loop":true,"hoverText":"Open UI"}, createChannel(channelId, videoFilePlayer, channelBus)) // script2.spawn(nftPictureFrame, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame, channelBus)) // script2.spawn(nftPictureFrame2, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame2, channelBus)) // script2.spawn(nftPictureFrame3, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame3, channelBus)) // script2.spawn(nftPictureFrame4, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame4, channelBus)) // script2.spawn(nftPictureFrame5, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame5, channelBus)) // script2.spawn(nftPictureFrame6, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame6, channelBus)) // script2.spawn(nftPictureFrame7, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame7, channelBus)) // script2.spawn(nftPictureFrame8, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame8, channelBus)) // script2.spawn(nftPictureFrame9, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame9, channelBus)) // script2.spawn(nftPictureFrame10, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true}, createChannel(channelId, nftPictureFrame10, channelBus))

// CF modified version to eliminate the syntax errors script1.init() script2.init() script1.spawn(videoFilePlayer, {"vidUrl":"https://decentralive.tv/video/e81b64c7841251e549698987178d6813.mp4","loop":true,"hoverText":"Open UI","extUrl":"", "uiText":""}, createChannel(channelId, videoFilePlayer, channelBus)) script2.spawn(nftPictureFrame, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame, channelBus)) script2.spawn(nftPictureFrame2, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame2, channelBus)) script2.spawn(nftPictureFrame3, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame3, channelBus)) script2.spawn(nftPictureFrame4, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame4, channelBus)) script2.spawn(nftPictureFrame5, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame5, channelBus)) script2.spawn(nftPictureFrame6, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame6, channelBus)) script2.spawn(nftPictureFrame7, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame7, channelBus)) script2.spawn(nftPictureFrame8, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame8, channelBus)) script2.spawn(nftPictureFrame9, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame9, channelBus)) script2.spawn(nftPictureFrame10, {"id":"558536","contract":"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d","style":"Classic","color":"#FFFFFF","ui":true, "uiText":""}, createChannel(channelId, nftPictureFrame10, channelBus))

cfravel avatar Apr 04 '22 03:04 cfravel

Hello @cfravel, what is the syntax error you are getting? (do you have a screenshot of the code editor or the error in the console?)

cazala avatar Apr 05 '22 14:04 cazala