How do I Edit Dictionary object?

Not favoritedFavorited Favorited 0 favourites
  • 8 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I have a project where I need to edit the values in a Dictionary object, but there seems to be no way to edit the values. I tried a method sugested to me where I create a JSON/Dictionary file, but theres still no option to edit the object itself.

  • You can edit Dict just through the behaivour of the Dict. And if you mean the "real local file" maybe you should use javascript to do the job.(But I think Consutc3's Dict beviour could benefit your needs.Only if you want to create a game with meta element.)

  • The dictionary is empty by default. If it contains any values, this means you have a code in the project that puts these values in it, or maybe loads them from a file.

    You can of course modify the values in the dictionary using actions Set Key or Add Key.

  • that's the problem, this is a dictionary that came with a template I bought, so it does have values. I just need to know how to access said values. I can see the values in debug mode, but I cant permanently edit or save it.

  • I literally just want a step by step guide on how to edit these type of files

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ok so upon further research, the Dictionary object I'm trying to edit does not populate until the game is running ( that's how its programed) which explains why I can only see it in debug mode.

    Is there a way that I can download the information in Debug mode??

  • Like I said, you can't just manually edit dictionary values. It's only done with the code. Right-click the dictionary in the list of objects and select "Find all references" to find all events where it can be populated.

    It's possible that the game loads the values from a file. Check the Files folder in the project.

    Is there a way that I can download the information in Debug mode?

    It's not possible. But you can add an event that exports the dictionary, for example:

    Keyboard On "D" key pressed : Dictionary Download
    
  • ok, that makes more sense. I appreciate your patience. This plugin seems very unintuitive (not your fault obviously) but this will progress things further

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)