1. Please be advised of a few specific rules and guidelines for this section.

RELEASED Longer Ship Travel Time [Deleted]

Discussion in 'Mechanics' started by Iroaseta, Dec 11, 2016.

Thread Status:
Not open for further replies.
  1. Iroaseta

    Iroaseta Guest

    The thing is there's no log errors at all. That's what made me very confused. The standard way is one of the method that I tried as well, and it just rendered the whole patch broken without producing any errors. I'm also pretty sure it exists, or else the replace wouldn't work as well.

    What do you mean by batches though? All the samples I saw are like, fulls of commas in the end except the last one without any other special kind of format. :cry:
    Edit : Ah I get it now, I was on my mobile so it wasn't apparent. I'll try the [ and ] method.

    Edit 2 : Nope, nothing seems to work. Only replace does. :(
     
    Last edited by a moderator: Dec 17, 2016
  2. bk3k

    bk3k Oxygen Tank


    Code:
    [
      [
        {
          "op": "test",
          "path": "/hyperspaceAudio",
          "inverse": false
        },
        {
          "op": "remove",
          "path": "/hyperspaceAudio"
        }
      ],
      [
        { "op": "replace", "path": "/speedupTimer", "value": 60.0 },
        { "op": "replace", "path": "/flyingTimer", "value": 600.0 },
        { "op": "replace", "path": "/slowdownTimer", "value": 60.0 },
        { "op": "replace", "path": "/disembarkPath/0/time", "value": 30 },
        { "op": "replace", "path": "/arrivalPath/0/time", "value": 30 },
        { "op": "replace", "path": "/stars/hyperlist/0", "value": "/sky/stars/inviwarp1.png" },
        { "op": "replace", "path": "/stars/hyperlist/1", "value": "/sky/stars/inviwarp2.png" },
        { "op": "replace", "path": "/stars/hyperlist/2", "value": "/sky/stars/whitewarp3.png" },
        { "op": "replace", "path": "/stars/hyperlist/3", "value": "/sky/stars/whitewarp4.png" },
        { "op": "replace", "path": "/stars/hyperlist/4", "value": "/sky/stars/inviwarp5.png" }
      ]
    ]
    That is divided into two. The first batch failing will only stop the remainder of the first batch. And the first batch would of course apply first.

    And here's an example pulls from one of my mods. A more common example of how I use this.

    Code:
    [
      [
        {
          "op" : "add",
          "path" : "/statusControllerSettings/primaryScriptSources/-",
          "value" : "/scripts/bk3k/bk3k_shipDamage.lua"
        }
      ],
    
      [
        {
          "op" : "test",
          "path" : "/modEnvironment",
          "inverse" : true
        },
        {
          "op" : "add",
          "path" : "/modEnvironment",
          "value" : {}
        }
      ],
    
      [
        {
          "op" : "test",
          "path" : "/modEnvironment/on_shipDamage",
          "inverse" : true
        },
        {
          "op" : "add",
          "path" : "/modEnvironment/on_shipDamage",
          "value" : true
        }
      ]
    ]
    
    and a 3rd example
    Code:
    [
      [
        {
          "op" : "test",
          "path" : "/modTech",
          "inverse" : true
        },
        {
          "op" : "add",
          "path" : "/modTech",
          "value" : []
        }
      ],
      [
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_dash"
        },
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_doubleDash"
        },
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_insaneDash"
        },
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_ftlboost"
        },
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_multijump"
        },
        {
          "op" : "add",
          "path" : "/scripts/-",
          "value" : "/interface/scripted/techupgrade/bk3k_addTechs.lua"
        }
      ]
    ]
    The resilience of that means I don't need to know in advance if a path exists. So another mod could have added the paths ahead of me, or maybe they didn't and the patch will work either way.

     
    Last edited: Dec 17, 2016
  3. Iroaseta

    Iroaseta Guest

    And now it shows this instead if I'm to use the first batch you exampled.
    [​IMG]

    That's what made me very confused. Why does replace works but not remove?
    I also noticed that the other two examples you used consist of adding only, but not a mix of adding and removing or adding and replacing. This is why it led me to believe that there can be only add, remove or replace in one patch at the same time.

    Actually...let me create two different patch and see if it works.

    Edit : Same error pops up like the image above. Now I'm wondering if it's just impossible to remove hyperspaceAudio now...:wtf:
     
    Last edited by a moderator: Dec 17, 2016
  4. bk3k

    bk3k Oxygen Tank

    I think they must require that path because of how some code somewhere is crafted(probably on the C++ side).

    Try replacing with a null value? Otherwise you're stuck with replacing it with another file.
     
  5. Iroaseta

    Iroaseta Guest

    Tried null value as well my friend. Perhaps it's a hard-coded one then.
    Ah well, I'm just glad replace works. :3
     
  6. Iroaseta

    Iroaseta Guest

    Iroaseta updated Longer Ship Travel Time with a new update entry:

    Added a FTL sound effect!

    Read the rest of this update entry...
     
  7. Iroaseta

    Iroaseta Guest

  8. bk3k

    bk3k Oxygen Tank

    As far as making an object to tell you remaining time... a small snag. I was going to rely on world.warpPhase() and world.flyingType() with the assumption that there would be some difference in jumping between systems and simply between planets in the same system. But for these functions, there is not. And there is a difference in warp time, so that's a problem.

    So I'll have to be more creative. The only other thing beyond that is making an object with each digit being its own part... and I forgot I was going to make something like that for another reason too.
     
  9. Iroaseta

    Iroaseta Guest

    @bk3k That sounds complicated. I've no idea if we're going to communicate at this rate. :badpokerface:
    Good luck on your part though. :notworthy:
     
  10. Maethendias

    Maethendias Subatomic Cosmonaut

    does it "break " my game when i uninstall the mod again?
     
  11. lazarus78

    lazarus78 The Waste of Time

    It should not. Should cleanly uninstall.
     
    Maethendias likes this.
  12. Maethendias

    Maethendias Subatomic Cosmonaut

  13. Crossroads Wanderer

    Crossroads Wanderer Scruffy Nerf-Herder

    Hey, I wanted to let you know that the download link seems to have broken. It takes me to mega, but it says the file is no longer available.
     
  14. lazarus78

    lazarus78 The Waste of Time

    You can use the steam version.

    http://steamcommunity.com/sharedfiles/filedetails/?id=816488288

    If you don't like the workshop, like myself, you can subscribe to it and let the game download it, then copy it out of its download folder, unsubscribe, then manually put the files in your mods folder.
     
  15. Crossroads Wanderer

    Crossroads Wanderer Scruffy Nerf-Herder

    I'm modding a GOG install, but I do have the game on steam and didn't know about copying from the download folder. Thanks for the info!
     
  16. Gugads21

    Gugads21 Void-Bound Voyager

    I am still new and wanted very much this mod ... any good soul or the author could provide me with a link that works ??? Please. :3
     
  17. lazarus78

    lazarus78 The Waste of Time

    I literally posted a link 2 posts up from you...
     
  18. BlindeKillen

    BlindeKillen Aquatic Astronaut

    Could some friendly person post a download link for us that don't have the game on steam. :/
     
  19. Rookas

    Rookas Void-Bound Voyager

    No idea if this is about the latest update, but this mod no longer works for me.
     
  20. Iroaseta

    Iroaseta Guest

    This mod has been removed and is no longer available for download.
     
Thread Status:
Not open for further replies.

Share This Page