Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Product Lifecycle
  3. Free Tools
  4. Simplify coding replace issue

Simplify coding replace issue

Scheduled Pinned Locked Moved Free Tools
game-devhelp
6 Posts 4 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mininja2131
    wrote on last edited by
    #1

    Ok I have been trying to find a solution to my issue. I have a few configs that I am trying to build. But I have a single string that needs to be replaced OVER AND OVER but with different values. EX:
    {
    "Blueprint": "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_TekRifle.PrimalItem_TekRifle'",
    "Player": {
    "AllowDamage": true,
    "AllowDamageText": true,
    "MaxDistance": -1,
    "DamageMultiplier": 1,
    "MaxDamage": -1
    },
    "TamedDino": {
    "AllowDamage": false,
    "AllowDamageText": true,
    "MaxDistance": -1,
    "DamageMultiplier": 1,
    "MaxDamage": -1
    },
    "WildDino": {
    "AllowDamage": true,
    "AllowDamageText": true,
    "MaxDistance": -1,
    "DamageMultiplier": 1,
    "MaxDamage": -1
    },
    "Structure": {
    "AllowDamage": true,
    "AllowDamageText": true,
    "MaxDistance": 1000,
    "DamageMultiplier": 1,
    "MaxDamage": -1
    }
    },
    But I would like to replace "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_TekRifle.PrimalItem_TekRifle" over and over with multi different strings from a list. I would like to find a way to dump in said list and have it copy that whole code block and replace said value with the first thing in the list and so on till it is finished. I have over 100 entries and copy and paste is starting to cause my eyes to go crossed.I know that I have to be doing it the hard way right now. But I have not found a solution.

    L N 2 Replies Last reply
    0
    • M mininja2131

      Ok I have been trying to find a solution to my issue. I have a few configs that I am trying to build. But I have a single string that needs to be replaced OVER AND OVER but with different values. EX:
      {
      "Blueprint": "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_TekRifle.PrimalItem_TekRifle'",
      "Player": {
      "AllowDamage": true,
      "AllowDamageText": true,
      "MaxDistance": -1,
      "DamageMultiplier": 1,
      "MaxDamage": -1
      },
      "TamedDino": {
      "AllowDamage": false,
      "AllowDamageText": true,
      "MaxDistance": -1,
      "DamageMultiplier": 1,
      "MaxDamage": -1
      },
      "WildDino": {
      "AllowDamage": true,
      "AllowDamageText": true,
      "MaxDistance": -1,
      "DamageMultiplier": 1,
      "MaxDamage": -1
      },
      "Structure": {
      "AllowDamage": true,
      "AllowDamageText": true,
      "MaxDistance": 1000,
      "DamageMultiplier": 1,
      "MaxDamage": -1
      }
      },
      But I would like to replace "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_TekRifle.PrimalItem_TekRifle" over and over with multi different strings from a list. I would like to find a way to dump in said list and have it copy that whole code block and replace said value with the first thing in the list and so on till it is finished. I have over 100 entries and copy and paste is starting to cause my eyes to go crossed.I know that I have to be doing it the hard way right now. But I have not found a solution.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      mininja2131 wrote:

      I have been trying to find a solution

      Then you should post your question in the correct forum. This one is for suggesting free tools, as clearly stated at the top of the page.

      M T 2 Replies Last reply
      0
      • L Lost User

        mininja2131 wrote:

        I have been trying to find a solution

        Then you should post your question in the correct forum. This one is for suggesting free tools, as clearly stated at the top of the page.

        M Offline
        M Offline
        mininja2131
        wrote on last edited by
        #3

        Ok my bad I thought that there might be a free tool to help me with this issue. That is the only reason I picked this forum. What one would you suggest I post this in then? And thank you for your reply.

        L 1 Reply Last reply
        0
        • M mininja2131

          Ok my bad I thought that there might be a free tool to help me with this issue. That is the only reason I picked this forum. What one would you suggest I post this in then? And thank you for your reply.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          mininja2131 wrote:

          What one would you suggest I post this in then?

          Choose the one appropriate to the programming language that you are using, or https://www.codeproject.com/Questions/ask.aspx[^]. But you need to add a bit more detail.

          1 Reply Last reply
          0
          • M mininja2131

            Ok I have been trying to find a solution to my issue. I have a few configs that I am trying to build. But I have a single string that needs to be replaced OVER AND OVER but with different values. EX:
            {
            "Blueprint": "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_TekRifle.PrimalItem_TekRifle'",
            "Player": {
            "AllowDamage": true,
            "AllowDamageText": true,
            "MaxDistance": -1,
            "DamageMultiplier": 1,
            "MaxDamage": -1
            },
            "TamedDino": {
            "AllowDamage": false,
            "AllowDamageText": true,
            "MaxDistance": -1,
            "DamageMultiplier": 1,
            "MaxDamage": -1
            },
            "WildDino": {
            "AllowDamage": true,
            "AllowDamageText": true,
            "MaxDistance": -1,
            "DamageMultiplier": 1,
            "MaxDamage": -1
            },
            "Structure": {
            "AllowDamage": true,
            "AllowDamageText": true,
            "MaxDistance": 1000,
            "DamageMultiplier": 1,
            "MaxDamage": -1
            }
            },
            But I would like to replace "Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_TekRifle.PrimalItem_TekRifle" over and over with multi different strings from a list. I would like to find a way to dump in said list and have it copy that whole code block and replace said value with the first thing in the list and so on till it is finished. I have over 100 entries and copy and paste is starting to cause my eyes to go crossed.I know that I have to be doing it the hard way right now. But I have not found a solution.

            N Offline
            N Offline
            Nelek
            wrote on last edited by
            #5

            Code your own one? :rolleyes: :-D

            M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

            1 Reply Last reply
            0
            • L Lost User

              mininja2131 wrote:

              I have been trying to find a solution

              Then you should post your question in the correct forum. This one is for suggesting free tools, as clearly stated at the top of the page.

              T Offline
              T Offline
              Tony Fleet
              wrote on last edited by
              #6

              https://www.stackit.co.nz/

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups