Lively Kernel canvas
// this script is evaluated on world load
0.16057.421711223148634-1.8928947446200486
ProjectcreationwithLivelyWiki304
UseraccountThefollowingfewpagesdemonstratehowyoucancreateownprojectsandhowyoucanaddbehaviortothem.Ifyouhavenolivelykernel.sunlabs.comaccountitisrecommendtocreateonehere.Withanuseraccountyouwillbeabletocreateandeditxhtmlprojectpages(worlds).AuthenticationCreatinganewworldcanbedonefromeverywhere.However,youmustbeloggedintodoso.Openaworldmenu(alt+clickinthebluebackground)andchoose'authenticateforwriteaccess'.Aloginwindowwillappearinwhichyoucanenteryourusernameandpassword.CreateanewworldWhenyouareloggedin,createanewworldbyopeningtheworldmenuandchoose'publishworldas...'.Youwillbeabletoenteranewnamefortheworld.Noticethatthereareafewnameswhichyoucannotuse.Everythingbeginningwith'lively'or'non-'aswellas'index.xhtml'and'example.xhtml'areinvalidnames.14
nullAsyouplayaroundwiththeLivelyWikiyoumightnoticeseveralbugs.Ifyouencounteronepleasereportthebug!Thankyou!OneproblemwhichoccursoftenisthatsavingworldswithspecificMorphsliketheSystemBrowsercanleadtoerrorswhenloadingthatworldagain.Alsootherchangesmaydestroyaworldwhenitissaved.WhentheerrorpreventyoufromrevertingthechangeswiththeWikiNavigator(thethinginthetopleftcorner)youcanevaluatethefollowingscriptafterlogginginfromanyotherLivelyWikiworld(justchangethevalueoffile).file='myBrokenWorld.xhtml';//enteryourfilenamehereurl=URL.source.getDirectory();dir=newFileDirectory(url);res=newSVNResource(url.toString(),Record.newPlainInstance({URL:url+file,Metadata:null,HeadRevision:null}));res.fetchMetadata(true,null);timestamps=res.getMetadata();revs=timestamps.collect(function(ea){returnea.toString().match(/.*Revision(.*)/)[1]});secondNewestRev=revs[1];oldContent=dir.fileContent(file,secondNewestRev);dir.writeFileNamed(file,oldContent);truetruefalse7truefalse
false1truefalsetruefalse
nullfalsenullfalse
Inthecaseofanemergency...nullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
Next22null16