Skip to content
Snippets Groups Projects
Add_scroll_to_unity.md 1.33 KiB
Newer Older
  • Learn to ignore specific revisions
  • Paul-Walcher's avatar
    Paul-Walcher committed
    ---------------------------
    |Add Scroll to Unity Guide|
    ---------------------------
    
    
    mariuskern's avatar
    mariuskern committed
    In archives:
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    1. Create and build Scroll in "archives\MathHub\FrameIT\frameworld\source\Scrolls" folder.
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    2. In "archives\MathHub\FrameIT\frameworld\source\DefaultSituationSpace.mmt" include your scroll
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    3. Build "DefaultSituationSpace.mmt"
    
    mariuskern's avatar
    mariuskern committed
    
    
    mariuskern's avatar
    mariuskern committed
    In uframeit 
    
    mariuskern's avatar
    mariuskern committed
    1. add your scroll to "UFrameIT\Assets\Scripts\MMTServer\CommunicationProtocoll\MMTConstants.cs"\
    
    mariuskern's avatar
    mariuskern committed
    if Class "GlobalBehaviour" ("UFrameIT\Assets\Scripts\GlobalBehaviour.cs") Method "GetScrollsfromServer()" loads scrolls from "UFrameIT\Assets\StreamingAssets\scrolls.json":
    
    mariuskern's avatar
    mariuskern committed
    2. Open: "http://localhost:8085/scroll/list" and copy all the text.
    
    Paul-Walcher's avatar
    Paul-Walcher committed
    3. Now paste this into: "UFrameIT\Assets\StreamingAssets\scrolls.json" and start the game.
    
    Additional:
    If you want to create a new theory you have to include it in the "theory FrameWorldMeta" in:    \archives\MathHub\FrameIT\frameworld\source\MetaTheories.mmt,
    which is at the bottom of the file.
    This ensures your theory is is in the global namespace.
    Then if you want to create a theory with a specific type:
    you have to specify this at the top:
    
    namespace http://mathhub.info/FrameIT/frameworld ❚
    fixmeta ur:?LF ❚
    
    
    and in you theory do:
    
    include ?FrameITBasics ❙
    at the start
    
    
    
    ## If something fails, restart vscode and try building again. This fixes a lot of errors