Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Khaztr
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Khaztr

    @Khaztr

    2
    Posts
    1263
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Khaztr Follow

    Posts made by Khaztr

    • Simple solution for single sourcing and backing up scripts

      I'm just getting into Screeps and thought I'd post my setup to see A) if it helps anyone, 😎 if anyone has any suggestions for a better solution and C) future reference for myself, LOL.

      After getting to RCL 6, I thought it would be nice to have a test environment before I start trying to attack my neighbors (for the record, they started it). Also, now that I have a much better idea of what I'm doing, I'd like to start my test environment with the goal of full-automation from RCL 1 and up. I realized this meant that out of the box I'd have to copy and paste my scripts back and forth between environments. I'm also worried about my hard drive going out on me, and figured it wouldn't hurt if I had these scripts backed up locally (I know, the server versions of the scripts should be sufficient, but you never know...).

      So my solution was to create symbolic links from the default script locations of both environments pointing to the backed up and now single-sourced location. It's been working great so far. Here's the command I used in PowerShell (5.0?), but of course this would vary depending on your OS and shell of preference:

      new-item -type SymbolicLink -Path C:\Users\admin.home\AppData\Local\Screeps\scripts\screeps.com\default -Target \\server01\Vault\Documents\Screeps

      Before running that, you'd of course need to copy that "default" folder over to your SAN or whatever location you want to single source from. Then run this command for each environment you want to point to that source, replacing the "screeps.com" folder with whatever folder that environment uses.

      I hope that helps. Anyone know of any other ways to do this? Is there a way to point the scripts directory in Screeps to a custom path, for example?

      posted in General Discussion
      Khaztr
    • RE: Insufficient Data on novice/respawn areas to effectively run fully automated code

      @stevetrov said in Insufficient Data on novice/respawn areas to effectively run fully automated code:

      I realise these are workarounds and in the ideal world this information would be available in the API in a well formatted way. But we dont live in an ideal world!

      Ugh, you could have left that last sentence out. With that mindset, why improve anything as long as there's some sort of workaround? At least it's not a mindset a developer (of said world) should have -hopefully you aren't one 😉

      posted in General Discussion
      Khaztr