ok im trying to parse a file into key value pairs but the Dictionary says the keys are the same
what im trying to do is parse a file into key value pairs then i have a huge text file i templated and want to store certin values to it before i save the file out.
Visit https://pastebin.com/YXkxVBuA
this file is all one line seprated by // but some of the keys are the same so it wont let me store in the dictunary and this is the file im trying to add some of the files too.
the code showed below is just a sniplet the file is got loads of key value pairs and i want to say open up the other file listed above get the key value pairs and on the code below i want to add the values to this
so like angleError = mydic.key["angleError"] + mydic.value and it prints the value to that line so when i save i have the updated the value of that file to what was in the file i parsed
"elf_cp_bo2_pdw_ads_down" ( "xanim.gdf" )
{
"angleError" "0.05"
"boneStabilizers" ""
"customnote0action" "None"
"customnote0actionparam1" ""
"customnote0actionparam2" ""
"customnote0frame" "1"
"customnote0useexistingnote" ""
"filename" "elfenliedtopfan5_anims\\elf_bo3_pdw\\elf_cp_bo2_pdw_ads_down.xanim_bin"
"fx_customnote0action" "None"
"fx_customnote0actionparam1" ""
"fx_customnote0actionparam2" ""
"fx_customnote0frame" "1"
"fx_customnote0useexistingnote" ""
"fx_shutdownnote0action" "None"
"fx_shutdownnote0actionparam1" ""
"fx_shutdownnote0actionparam2" ""
"fx_startupnote0action" "None"
"fx_startupnote0actionparam1" ""
"fx_startupnote0actionparam2" ""
"ignoreSpineBones" "0"
"leftHandGripIK" "0"
"looping" "0"
"loopsync" "0"
"model" "corpse_party_weapons_bo3\\t6_wpn_smg_pdw57_view\\elf_pdw_animated.xmodel_bin"
"node" ""
"previewAlignChildTag" ""
"previewAlignParentTag" ""
"previewAttachModel" ""
"previewModel" ""
"shutdownnote0action" "None"
"shutdownnote0actionparam1" ""
"shutdownnote0actionparam2" ""
"sound_customnote0action" "None"
"sound_customnote0actionparam1" ""
"sound_customnote0actionparam2" ""
"sound_customnote0frame" "1"
"sound_customnote0useexistingnote" ""
"sound_shutdownnote0action" "None"
"sound_shutdownnote0actionparam1" ""
"sound_shutdownnote0actionparam2" ""
"sound_startupnote0action" "None"
"sound_startupnote0actionparam1" ""
"sound_startupnote0actionparam2" ""
"startupnote0action" "None"
"startupnote0actionparam1" ""
"startupnote0actionparam2" ""
"translationError" "0.025"
"type" "relative"
"useBones" "0"
"useNtExportFile" "0"
}