[{"data":1,"prerenderedAt":432},["ShallowReactive",2],{"doc-global_essentials\u002Fdungeons\u002Fgoogle_docs_integration":3},{"id":4,"title":5,"body":6,"description":416,"extension":422,"meta":423,"navigation":427,"path":428,"seo":429,"stem":430,"__hash__":431},"docs\u002Fdocs\u002Fglobal_essentials\u002Fdungeons\u002Fgoogle_docs_integration.md","Google Docs Integration",{"type":7,"value":8,"toc":415},"minimark",[9,13,30,33,43,46,51,54,65,72,78,84,87,89,93,98,115,125,134,140,146,154,168,174,187,193,202,208,218,224,240,246,256,269,283,289,307,313,315,319,332,338,347,357,359,362,365,372,381,387,399,405,407],[10,11,5],"h1",{"id":12},"google-docs-integration",[14,15,16],"blockquote",{},[17,18,19,29],"p",{},[20,21,22,23,28],"strong",{},"Most authors should start with the ",[24,25,27],"a",{"href":26},"\u002Fdocs\u002Fglobal_essentials\u002Fdungeons\u002Fvisual_editor","Visual Editor","."," The Google Docs integration below is for collaborative writing, Docs-native features (comments, suggestions, revision history), or teams already working in Docs.",[17,31,32],{},"Write your dungeon content in Google Docs and import it directly into your game. Great for collaborative writing and working in a familiar editor.",[17,34,35,36,39,40,28],{},"To start, go to ",[20,37,38],{},"Dungeons → Config"," in the editor and click ",[20,41,42],{},"Google Documents Integration",[44,45],"hr",{},[47,48,50],"h2",{"id":49},"option-a-use-an-existing-token","Option A: Use an Existing Token",[17,52,53],{},"If you already have a token, or you're collaborating with someone who shared theirs:",[55,56,57],"ol",{},[58,59,60,61,64],"li",{},"Copy the token into the ",[20,62,63],{},"Google Document Integration"," form (Dungeons → Config tab)",[17,66,67],{},[68,69],"img",{"alt":70,"src":71},"0","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F0.png",[55,73,75],{"start":74},2,[58,76,77],{},"If you see an error about missing permissions, follow the link in the error message to enable the Google Docs API.",[17,79,80,81,28],{},"If the token works, skip ahead to ",[20,82,83],{},"Stage 3: Import Your Document",[17,85,86],{},"Otherwise, continue with Stage 1 and 2 below.",[44,88],{},[47,90,92],{"id":91},"stage-1-set-up-a-google-project","Stage 1: Set Up a Google Project",[14,94,95],{},[17,96,97],{},"Your credentials are saved locally on your PC only.",[55,99,100,109],{},[58,101,102,103],{},"Go to ",[24,104,108],{"href":105,"rel":106},"https:\u002F\u002Fconsole.cloud.google.com\u002F",[107],"nofollow","Google Cloud Console",[58,110,111,112],{},"Create a new project: click the button next to the Google Cloud logo, then click ",[20,113,114],{},"New Project",[17,116,117,121],{},[68,118],{"alt":119,"src":120},"1","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F1.png",[68,122],{"alt":123,"src":124},"2","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F2.png",[55,126,128],{"start":127},3,[58,129,130,131],{},"Enter any project name, skip Location, and click ",[20,132,133],{},"Create",[17,135,136],{},[68,137],{"alt":138,"src":139},"3","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F3.png",[55,141,143],{"start":142},4,[58,144,145],{},"Select your new project by clicking the button next to the Google Cloud logo",[17,147,148,150],{},[68,149],{"alt":119,"src":120},[68,151],{"alt":152,"src":153},"4","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F4.png",[55,155,157],{"start":156},5,[58,158,102,159,164,165],{},[24,160,163],{"href":161,"rel":162},"https:\u002F\u002Fconsole.cloud.google.com\u002Fapis\u002Fapi\u002Fdocs.googleapis.com",[107],"Google Docs API"," and click ",[20,166,167],{},"Enable",[17,169,170],{},[68,171],{"alt":172,"src":173},"8b","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F8b.png",[55,175,177],{"start":176},6,[58,178,102,179,164,184],{},[24,180,183],{"href":181,"rel":182},"https:\u002F\u002Fconsole.cloud.google.com\u002Fauth\u002F",[107],"Google Auth Platform",[20,185,186],{},"Get Started",[17,188,189],{},[68,190],{"alt":191,"src":192},"9","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F9.png",[55,194,196],{"start":195},7,[58,197,198,199],{},"Fill in the form (App name can be anything). In step 2, choose ",[20,200,201],{},"External",[17,203,204],{},[68,205],{"alt":206,"src":207},"10","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F10.png",[55,209,211],{"start":210},8,[58,212,213,214,217],{},"Click ",[20,215,216],{},"OAuth client"," to create one",[17,219,220],{},[68,221],{"alt":222,"src":223},"11","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F11.png",[55,225,227],{"start":226},9,[58,228,229,230,233,234,236,237],{},"Choose ",[20,231,232],{},"Desktop app"," as the Application Type. Name can be anything. Click ",[20,235,133],{},", then ",[20,238,239],{},"Ok",[17,241,242],{},[68,243],{"alt":244,"src":245},"12","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F12.png",[55,247,249],{"start":248},10,[58,250,251,252],{},"After creating, download the OAuth client by clicking 'Download JSON' button.\n",[68,253],{"alt":254,"src":255},"fix1","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002Ffix1.png",[17,257,258,259,264,265],{},"Note: The token is available only once during its creation.\nIf you forgot to download it, go to ",[24,260,263],{"href":261,"rel":262},"https:\u002F\u002Fconsole.cloud.google.com\u002Fauth\u002Fclients",[107],"Your Auth Clients",", choose your client and add a new Client Secret, then download it.\n",[68,266],{"alt":267,"src":268},"fix2","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002Ffix2.png",[55,270,272],{"start":271},11,[58,273,102,274,164,279,282],{},[24,275,278],{"href":276,"rel":277},"https:\u002F\u002Fconsole.cloud.google.com\u002Fauth\u002Faudience",[107],"Auth Audience",[20,280,281],{},"Add users",". Add the Google account you use for Google Docs (can be the same email you registered with). Ignore any warnings about the user not being added.",[17,284,285],{},[68,286],{"alt":287,"src":288},"15","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F15.png",[55,290,292],{"start":291},12,[58,293,294,295,298,299,303,304],{},"Back in the game editor, go to ",[20,296,297],{},"Dungeons → Config → Google Document Integration → OAuth Apps",". Open the ",[300,301,302],"code",{},"client_secret"," file you downloaded in step 10, copy its contents into the form, and click ",[20,305,306],{},"Save OAuth App Configuration",[17,308,309],{},[68,310],{"alt":311,"src":312},"16","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F16.png",[44,314],{},[47,316,318],{"id":317},"stage-2-create-a-token","Stage 2: Create a Token",[55,320,321],{},[58,322,323,324,327,328,331],{},"Open the ",[20,325,326],{},"Create New Token"," tab and click ",[20,329,330],{},"Start Authentication with Google",". A browser window will open.",[17,333,334],{},[68,335],{"alt":336,"src":337},"17","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F17.png",[55,339,340],{"start":74},[58,341,342,343,346],{},"Choose your Google account and click ",[20,344,345],{},"Continue"," through the permission screens. Make sure the checkbox to access your Google Docs is enabled.",[17,348,349,353],{},[68,350],{"alt":351,"src":352},"22","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F22.png",[68,354],{"alt":355,"src":356},"selected","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002Fselected.png",[44,358],{},[47,360,83],{"id":361},"stage-3-import-your-document",[17,363,364],{},"You're ready to fetch Google Docs directly into your game!",[17,366,367,368,371],{},"Make sure you have the correct token selected in ",[20,369,370],{},"Google Document Integration → User Tokens",". You can have multiple tokens for different Google accounts (useful for collaboration).",[55,373,374],{},[58,375,376,377,380],{},"Enter the Google Document link or ID in the ",[300,378,379],{},"gdoc_id"," config field",[17,382,383],{},[68,384],{"alt":385,"src":386},"24","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F24.png",[55,388,389],{"start":74},[58,390,213,391,394,395,398],{},[20,392,393],{},"Fetch Google Document",". The content will be imported into the ",[300,396,397],{},"dungeon_content"," field.",[17,400,401],{},[68,402],{"alt":403,"src":404},"25","\u002Fplay\u002Fassets\u002Fengine_files\u002Fplugins\u002Fglobal_essentials\u002Fdocs\u002Fen\u002Fimages\u002Fgdoc\u002F25.png",[44,406],{},[14,408,409],{},[17,410,411,414],{},[20,412,413],{},"Note:"," You only need to set up your token once (Stages 1 & 2). After that, you can use it for all your games.",{"title":416,"searchDepth":74,"depth":74,"links":417},"",[418,419,420,421],{"id":49,"depth":74,"text":50},{"id":91,"depth":74,"text":92},{"id":317,"depth":74,"text":318},{"id":361,"depth":74,"text":83},"md",{"plugin":424,"category":425,"page":426},"global_essentials","dungeons","google_docs_integration",true,"\u002Fdocs\u002Fglobal_essentials\u002Fdungeons\u002Fgoogle_docs_integration",{"title":5,"description":416},"docs\u002Fglobal_essentials\u002Fdungeons\u002Fgoogle_docs_integration","TTsNEpnam29cMR_N_UVa3xYoRx8W2VKEZK-27_zmXoE",1779582260945]