User Tag List

Results 1 to 10 of 10

Thread: Question about .ini files

  1. #1
    0

    Question about .ini files

    I just had a question .. is it possible to make an .ini file with setting like metalcost=10, metalbuycount=1 and metalsell=20, metalsellcount=2 and then use those values in a blue print under
    Item quantity = metalbuycount
    base crafting resource requirements -> base resource requirement VALUE = metalcost?
    for example: This item would cost 10 (metalcost)Gold Pearls "this is the currency I created, gold pearls" and buy you 1(metalbuycount)
    Last edited by Davetiger; 09-05-2015 at 10:33 PM.

  2. #2
    0
    You can't create an .ini file but you can add to the "GameUserSettings.ini" file. I wrote a tutorial how to do it here: https://forums.unrealengine.com/show...nitiation-File
    Richard Rude
    Environment Artist
    Portfolio: www.richardrude.com
    Artstation: www.artstation.com/artist/richardrude

  3. #3
    0
    but how do I apply that data to something? for example I want to pull data from the ini and set it to a blueprints quantity field

  4. #4
    0
    Ok still not getting help with this after a few days I need to find a way to set a blueprint property (item quantity) to the value stored in a variable .. I read the part on how to get variables from the gameusersettings.ini but now I need to take that value and use it on a blueprint properties value
    Last edited by Davetiger; 09-10-2015 at 05:23 AM.

  5. #5
    0
    Infiltrator
    Join Date
    Aug 2015
    Posts
    13
    Quote Originally Posted by Davetiger View Post
    Ok still not getting help with this after a few days I need to find a way to set a blueprint property (item quantity) to the value stored in a variable .. I read the part on how to get variables from the gameusersettings.ini but now I need to take that value and use it on a blueprint properties value
    Yeah, I've got roughly the same issue. Here's what I have so far:

    I'm trying to alter the crafting requirements at startup based on the GameUserSettings.ini settings. For example, if I have a variable in the file like "CustomItemCosts=2.0000" I want to multiply all of CustomItem's crafting costs by 2.

    Here's the blueprint that I've starting setting up on the PrimalItemStructure blueprint, but I can't figure out what event would start this blueprint. Any ideas?

    Attachment 105202

  6. #6
    0
    I am working on something similar. From what I found out, you can't read data from ini on a resource blueprint.
    So I have an idea which am trying to do but don't have the know-how yet.
    the idea:
    read the ini file from the ShopTable blueprint. then save the data in variables. then use the data from the variables on the resource blueprint.

    am still learning here, I am not sure how to save the variables and make them public so other blueprint can use them.
    if someone can share an example, it will be great.

    thank you

  7. #7
    0
    Hey - I am trying to implement this idea (reading the INI file) to an item I created (think TORCH) - I want the user to be able to change the CONSUME TIME to allow them to burn faster or slower. Unfortunately, I can not figure out which Blueprint to implement this in. I know it's not the main BP, as that doesn't have the consume timer info in it, and the one that does (the place able item itself) can not access any of the before mentioned routines at all. What am I missing here?

  8. #8
    0
    Veteran
    Join Date
    Jul 2015
    Posts
    387
    Quote Originally Posted by CFrankie View Post
    Hey - I am trying to implement this idea (reading the INI file) to an item I created (think TORCH) - I want the user to be able to change the CONSUME TIME to allow them to burn faster or slower. Unfortunately, I can not figure out which Blueprint to implement this in. I know it's not the main BP, as that doesn't have the consume timer info in it, and the one that does (the place able item itself) can not access any of the before mentioned routines at all. What am I missing here?
    On the standing torch BP there is this:

    Name:  e475ba827bec4befb1f0ef1604629f4b.png
Views: 17
Size:  6.3 KB

    You should be able to change it through .ini from begin play with this:

    Name:  04cf95c045e32bb8c5e73ecbbdaee8ce.png
Views: 17
Size:  14.1 KB


    My Mods | P0k3r's Workshop

  9. #9
    0
    Begin Play doesn't appear in the list, and I know what I want to change, it's just not available - and if I follow anything from this post it gives me the : "Eternal Loop Found" error.
    I will continue to hammer on this and let everyone know if I find anything out. (the editor being 1tb now is getting a little silly on the load times. HAHA!

    Oh , and I've checked to make sure it's local and not local in the check box... to make sure -- but something about place able items is different so far.
    Last edited by CFrankie; 02-17-2017 at 05:44 PM.

  10. #10
    0
    Veteran
    Join Date
    Jul 2015
    Posts
    387
    If you don't have a begin play, then your doing it on the wrong bp. You want the bp that contains the actual structure with the mesh. It should have a preview of the item and a blue line on the bottom.

    Correct:


    Incorrect:

    Attached Images Attached Images   
    Last edited by P0k3r; 02-17-2017 at 10:32 PM.


    My Mods | P0k3r's Workshop

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •