I have no idea what this error is going on about. I am not some super experienced modder, however I have been able to fix all errors up to now. However, this one is more code issued. I am adding some "op": "add" functions, however if I don't but them all into one block it gives me an error of "only one top-level array or object is allowed in a JSON document" So what do I do? I just put it all into one block, but now as the log states it's telling me I need a - " - where the bracket is. Code: [17:56:06.368] [Info] Root: Preparing Root... [17:56:06.372] [Info] Root: Done preparing Root. [17:56:06.372] [Info] Client Version 1.1.1 (windows x86_64) Source ID: 82604f6097b124f2ed38ee58a7ae18c51e916dd8 Protocol: 724 [17:56:06.372] [Info] Root: Scanning for asset sources in directory '..\assets\' [17:56:06.373] [Info] Root: Skipping hidden '_unpacked' in asset directory [17:56:08.231] [Info] Root: Scanning for asset sources in directory '..\mods\' [17:56:08.349] [Warn] Root: Unrecognized file in asset directory 'mods_go_here', skipping [17:56:08.349] [Info] Root: Detected asset source named 'base' at '..\assets\packed.pak' [17:56:08.349] [Info] Root: Detected asset source named 'chocolatemod' at '..\mods\ChocoMod' [17:56:08.349] [Info] Root: Detected asset source named 'Weapon Stats' at '..\mods\contents.pak' [17:56:08.349] [Info] Root: Detected unnamed asset source at '..\assets\user' [17:56:08.349] [Info] Loading assets from: '..\assets\packed.pak' [17:56:10.049] [Info] Loading assets from: '..\mods\ChocoMod' [17:56:10.135] [Info] Loading assets from: '..\mods\contents.pak' [17:56:10.137] [Info] Loading assets from: '..\assets\user' [17:56:13.185] [Info] Assets digest is c34885a14dbfcd098d21a35db55109133a9f4d91a8e28455ddb4392a91648a7c [17:56:13.185] [Info] Root: Loaded Assets in 6.81313 seconds [17:56:13.224] [Info] Application: Initializing SDL Video [17:56:13.284] [Info] Application: Initializing SDL Joystick [17:56:14.071] [Info] Application: Initializing SDL Sound [17:56:14.388] [Info] Failed to initialize Steam platform services [17:56:14.388] [Info] Application: No platform services available [17:56:14.388] [Info] Application: Creating SDL Window [17:56:15.243] [Info] Application: Enabling VSync with late swap tearing [17:56:15.367] [Info] Application: Opened default audio device with 44.1khz / 16 bit stereo audio, 2048 sample size buffer [17:56:15.380] [Info] OpenGL version: '4.5.14008 Compatibility Profile Context 21.19.137.1' vendor: 'ATI Technologies Inc.' renderer: 'AMD Radeon R9 200 Series' shader: '4.50' [17:56:15.384] [Info] Application: initialization... [17:56:15.388] [Info] Root: Loaded Configuration in 0.00395288 seconds [17:56:15.404] [Info] Application: renderer initialization... [17:56:15.418] [Info] Root: Loaded ImageMetadataDatabase in 2.62416e-05 seconds [17:56:15.504] [Info] Application: main update loop... [17:56:15.567] [Info] Root: Loaded NameGenerator in 0.0149603 seconds [17:56:15.624] [Error] OpenGL errors this frame: GL_INVALID_VALUE [17:56:16.019] [Info] Root: Loaded PlantDatabase in 0.451494 seconds [17:56:17.965] [Info] Root: Loaded ObjectDatabase in 2.40728 seconds [17:56:18.858] [Info] Root: Loaded ProjectileDatabase in 2.8396 seconds [17:56:19.018] [Info] Root: Loaded MonsterDatabase in 1.05263 seconds [17:56:19.025] [Info] Root: Writing runtime configuration to '..\storage\starbound.config' [17:56:19.028] [Info] Root: Loaded StagehandDatabase in 0.00956153 seconds [17:56:19.055] [Info] Root: Loaded VehicleDatabase in 0.0270775 seconds [17:56:19.076] [Info] Root: Loaded PlayerFactory in 0.0209977 seconds [17:56:19.169] [Info] Root: Loaded NpcDatabase in 0.310607 seconds [17:56:19.172] [Info] Root: Loaded VersioningDatabase in 0.00279953 seconds [17:56:19.172] [Info] Root: Loaded EntityFactory in 0.0957407 seconds [17:56:19.678] [Info] Root: Loaded ParticleDatabase in 0.505959 seconds [17:56:21.818] [Info] Root: Loaded MaterialDatabase in 2.64584 seconds [17:56:21.931] [Info] Root: Loaded TerrainDatabase in 0.0732351 seconds [17:56:22.419] [Info] Root: Loaded BiomeDatabase in 0.487939 seconds [17:56:22.425] [Info] Root: Loaded LiquidsDatabase in 0.00597348 seconds [17:56:22.564] [Info] Root: Loaded StatusEffectDatabase in 0.138191 seconds [17:56:23.669] [Info] Root: Loaded DamageDatabase in 1.10487 seconds [17:56:23.697] [Info] Root: Loaded EffectSourceDatabase in 0.0286097 seconds [17:56:23.729] [Info] Root: Loaded FunctionDatabase in 0.0315552 seconds [17:56:23.924] [Info] Root: Loaded TreasureDatabase in 0.195055 seconds [17:56:25.657] [Info] Root: Loaded DungeonDefinitions in 1.73266 seconds [17:56:25.658] [Info] Root: Loaded TilesetDatabase in 0.000114567 seconds [17:56:25.706] [Info] Root: Loaded StatisticsDatabase in 0.0483427 seconds [17:56:25.706] [Info] Root: Loaded EmoteProcessor in 0.000192011 seconds [17:56:25.744] [Info] Root: Loaded SpeciesDatabase in 0.0370499 seconds [17:56:25.874] [Info] Root: Loaded QuestTemplateDatabase in 0.129922 seconds [17:56:25.880] [Info] Root: Loaded AiDatabase in 0.00549217 seconds [17:56:25.885] [Info] Root: Loaded TechDatabase in 0.00561761 seconds [17:56:26.039] [Info] Root: Loaded CodexDatabase in 0.153997 seconds [17:56:27.252] [Info] Root: Loaded BehaviorDatabase in 1.21208 seconds [17:56:27.265] [Info] Root: Loaded DanceDatabase in 0.0136341 seconds [17:56:27.336] [Info] Root: Loaded SpawnTypeDatabase in 0.0709258 seconds [17:56:27.347] [Info] Root: Loaded RadioMessageDatabase in 0.010423 seconds [17:56:40.766] [Info] Root: Loaded ItemDatabase in 21.5969 seconds [17:56:42.294] [Info] Root: Loaded CollectionDatabase in 14.9463 seconds [17:56:44.508] [Error] Exception caught loading asset: /celestial.config, (AssetException) Could not read JSON asset /celestial.config [0] 7ff7e6373223 Star::captureStack [1] 7ff7e6371fae Star::StarException::StarException [2] 7ff7e6372098 Star::StarException::StarException [3] 7ff7e6382990 Star::AssetException::AssetException [4] 7ff7e6befbe1 `<lambda_80e152f0e8987fd28e54fe8e75d4e933>::operator()'::`1'::catch$25 [5] 7ffbcefdc220 _C_specific_handler [6] 7ffbcefd29b2 _FrameUnwindFilter [7] 7ffbde21a193 RtlCaptureContext [8] 7ff7e6384d8d <lambda_80e152f0e8987fd28e54fe8e75d4e933>::operator() [9] 7ff7e637c38f std::_Invoker_functor::_Call<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [10] 7ff7e637fdf6 std::invoke<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [11] 7ff7e637da20 std::_Invoke_ret<std::shared_ptr<Star::Assets::AssetData>,<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [12] 7ff7e6386326 std::_Func_impl<<lambda_80e152f0e8987fd28e54fe8e75d4e933>,std::allocator<int>,std::shared_ptr<Star::Assets::AssetData> >::_Do_call [13] 7ff7e66d7b17 std::_Func_class<std::shared_ptr<Star::TilesetDatabase> >::operator() [14] 7ff7e638ec18 Star::Assets::processAssetData [15] 7ff7e638cbb8 Star::Assets::loadJson [16] 7ff7e638be23 Star::Assets::loadAsset [17] 7ff7e6389b1f Star::Assets::doLoad [18] 7ff7e638b09b Star::Assets::getAsset [19] 7ff7e638bb3a Star::Assets::json [20] 7ff7e63ec30f Star::CelestialMasterDatabase::CelestialMasterDatabase [21] 7ff7e67fe49d Star::VersioningDatabase::updateVersionedJson [22] 7ff7e67fdc52 Star::VersioningDatabase::loadVersionedJson [23] 7ff7e6488433 Star::EntityFactory::loadVersionedJson [24] 7ff7e666fdee Star::PlayerStorage::PlayerStorage [25] 7ff7e62ae860 std::make_shared<Star::PlayerStorage,Star::String> [26] 7ff7e62b5a7c Star::ClientApplication::changeState [27] 7ff7e62bc114 Star::ClientApplication::update [28] 7ff7e69fcd41 Star::SdlPlatform::run [29] 7ff7e69fcefd Star::runMainApplication [30] 7ff7e62bf246 WinMain [31] 7ff7e6bdde13 __scrt_common_main_seh [32] 7ffbdc528364 BaseThreadInitThunk [33] 7ffbde1d70d1 RtlUserThreadStart Caused by: (JsonParsingException) Cannot parse json file: /celestial.config [0] 7ff7e6373223 Star::captureStack [1] 7ff7e6371fae Star::StarException::StarException [2] 7ff7e6372098 Star::StarException::StarException [3] 7ff7e6383770 Star::JsonParsingException::JsonParsingException [4] 7ff7e6bf1048 `Star::Assets::readJson'::`1'::catch$264 [5] 7ffbcefdc220 _C_specific_handler [6] 7ffbcefd29b2 _FrameUnwindFilter [7] 7ffbde21a193 RtlCaptureContext [8] 7ff7e638f2a6 Star::Assets::readJson [9] 7ff7e6384d8d <lambda_80e152f0e8987fd28e54fe8e75d4e933>::operator() [10] 7ff7e637c38f std::_Invoker_functor::_Call<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [11] 7ff7e637fdf6 std::invoke<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [12] 7ff7e637da20 std::_Invoke_ret<std::shared_ptr<Star::Assets::AssetData>,<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [13] 7ff7e6386326 std::_Func_impl<<lambda_80e152f0e8987fd28e54fe8e75d4e933>,std::allocator<int>,std::shared_ptr<Star::Assets::AssetData> >::_Do_call [14] 7ff7e66d7b17 std::_Func_class<std::shared_ptr<Star::TilesetDatabase> >::operator() [15] 7ff7e638ec18 Star::Assets::processAssetData [16] 7ff7e638cbb8 Star::Assets::loadJson [17] 7ff7e638be23 Star::Assets::loadAsset [18] 7ff7e6389b1f Star::Assets::doLoad [19] 7ff7e638b09b Star::Assets::getAsset [20] 7ff7e638bb3a Star::Assets::json [21] 7ff7e63ec30f Star::CelestialMasterDatabase::CelestialMasterDatabase [22] 7ff7e67fe49d Star::VersioningDatabase::updateVersionedJson [23] 7ff7e67fdc52 Star::VersioningDatabase::loadVersionedJson [24] 7ff7e6488433 Star::EntityFactory::loadVersionedJson [25] 7ff7e666fdee Star::PlayerStorage::PlayerStorage [26] 7ff7e62ae860 std::make_shared<Star::PlayerStorage,Star::String> [27] 7ff7e62b5a7c Star::ClientApplication::changeState [28] 7ff7e62bc114 Star::ClientApplication::update [29] 7ff7e69fcd41 Star::SdlPlatform::run [30] 7ff7e69fcefd Star::runMainApplication [31] 7ff7e62bf246 WinMain [32] 7ff7e6bdde13 __scrt_common_main_seh [33] 7ffbdc528364 BaseThreadInitThunk [34] 7ffbde1d70d1 RtlUserThreadStart Caused by: (JsonParsingException) Error parsing json: bad string, should be '"' at 11:3 [0] 7ff7e6373223 Star::captureStack [1] 7ff7e6371fae Star::StarException::StarException [2] 7ff7e637fc0c Star::inputUtf8Json<char * __ptr64> [3] 7ff7e638f2a6 Star::Assets::readJson [4] 7ff7e6384d8d <lambda_80e152f0e8987fd28e54fe8e75d4e933>::operator() [5] 7ff7e637c38f std::_Invoker_functor::_Call<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [6] 7ff7e637fdf6 std::invoke<<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [7] 7ff7e637da20 std::_Invoke_ret<std::shared_ptr<Star::Assets::AssetData>,<lambda_80e152f0e8987fd28e54fe8e75d4e933> & __ptr64> [8] 7ff7e6386326 std::_Func_impl<<lambda_80e152f0e8987fd28e54fe8e75d4e933>,std::allocator<int>,std::shared_ptr<Star::Assets::AssetData> >::_Do_call [9] 7ff7e66d7b17 std::_Func_class<std::shared_ptr<Star::TilesetDatabase> >::operator() [10] 7ff7e638ec18 Star::Assets::processAssetData [11] 7ff7e638cbb8 Star::Assets::loadJson [12] 7ff7e638be23 Star::Assets::loadAsset [13] 7ff7e6389b1f Star::Assets::doLoad [14] 7ff7e638b09b Star::Assets::getAsset [15] 7ff7e638bb3a Star::Assets::json [16] 7ff7e63ec30f Star::CelestialMasterDatabase::CelestialMasterDatabase [17] 7ff7e67fe49d Star::VersioningDatabase::updateVersionedJson [18] 7ff7e67fdc52 Star::VersioningDatabase::loadVersionedJson [19] 7ff7e6488433 Star::EntityFactory::loadVersionedJson [20] 7ff7e666fdee Star::PlayerStorage::PlayerStorage [21] 7ff7e62ae860 std::make_shared<Star::PlayerStorage,Star::String> [22] 7ff7e62b5a7c Star::ClientApplication::changeState [23] 7ff7e62bc114 Star::ClientApplication::update [24] 7ff7e69fcd41 Star::SdlPlatform::run [25] 7ff7e69fcefd Star::runMainApplication [26] 7ff7e62bf246 WinMain [27] 7ff7e6bdde13 __scrt_common_main_seh [28] 7ffbdc528364 BaseThreadInitThunk [29] 7ffbde1d70d1 RtlUserThreadStart [17:56:44.546] [Error] Error loading player file, ignoring! ..\storage\player\fdcab98f553dfa2028375a48e83e5c5c.player : (AssetException) Error loading asset /celestial.config [17:56:45.344] [Error] Application: exception thrown, shutting down: (AssetException) Error loading asset /celestial.config [0] 7ff7e6373223 Star::captureStack [1] 7ff7e6371fae Star::StarException::StarException [2] 7ff7e637f20a Star::AssetException::format<Star::AssetPath> [3] 7ff7e638b14b Star::Assets::getAsset [4] 7ff7e638bb3a Star::Assets::json [5] 7ff7e63ec30f Star::CelestialMasterDatabase::CelestialMasterDatabase [6] 7ff7e6b25822 std::make_shared<Star::CelestialMasterDatabase> [7] 7ff7e6b25f5c Star::TitleScreen::TitleScreen [8] 7ff7e62a9c11 std::_Ref_count_obj<Star::TitleScreen>::_Ref_count_obj<Star::TitleScreen><std::shared_ptr<Star::PlayerStorage> & __ptr64,std::shared_ptr<Star::Mixer> > [9] 7ff7e62ae9c0 std::make_shared<Star::TitleScreen,std::shared_ptr<Star::PlayerStorage> & __ptr64,std::shared_ptr<Star::Mixer> > [10] 7ff7e62b5c9a Star::ClientApplication::changeState [11] 7ff7e62bc114 Star::ClientApplication::update [12] 7ff7e69fcd41 Star::SdlPlatform::run [13] 7ff7e69fcefd Star::runMainApplication [14] 7ff7e62bf246 WinMain [15] 7ff7e6bdde13 __scrt_common_main_seh [16] 7ffbdc528364 BaseThreadInitThunk [17] 7ffbde1d70d1 RtlUserThreadStart [17:56:45.344] [Info] Application: shutdown... [17:56:45.493] [Info] Root: Shutting down Root [17:56:46.660] [Info] Application: Destroying SDL Window [17:56:46.709] [Info] Application: stopped gracefully As for the .patch file Code: { "op": "add", "path": "/terrestrialHorizonGraphics/chocolatebiome", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/chocolatebiome_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [ 1, 25 ], "maskPerPlanetRange": [ 3, 3 ] }, { "op": "add", "path": "/terrestrialGraphics/chocolatebiome", "value": { "baseImages": "/celestial/system/terrestrial/biomes/chocolatebiome/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [ 1, 25 ] } }, { "op": "add", "path": "/planetaryTypes/Tier2/baseParameters/terrestrialType/-", "value": "chocolatebiome" }, { "op": "add", "path": "/satelliteTypes/Tier2/baseParameters/terrestrialType/-", "value": "chocolatebiome" } }
Alright went to a few sites, and most of them are saying Code: Error: Parse error on line 9: ...ange": [3, 3] }, { "op": "add", " --------------------^ Expecting 'STRING', got '{ I might be blind, but I don't see an issue there. What do you make of it? They all are expecting strings where the brackets are.
After testing a bit, both chucks are valid, however they can't be separate because of the whole only one top item. However when I combine them like I did it still errors, which from what I read it is because it thinks it's still two parts. Read something about "wrapping" However, I have no idea how to put those two together in a valid way.
ok, 2 issues. 1. The opening and closing brackets of a patch file should be square brackets. 2. You are missing brackets. If you break your patch down to just the brackets, you can see it clearly. Code: {},{}},{},{}} Here is what it should look. Code: [ { "op": "add", "path": "/terrestrialHorizonGraphics/chocolatebiome", "value": { "baseImages": "/celestial/system/terrestrial/horizon/textures/chocolatebiome_<selector>.png", "maskTextures": "/celestial/system/terrestrial/horizon/masks/temperate/<mask>_<selector>.png", "maskRange": [1, 25], "maskPerPlanetRange": [3, 3] } }, { "op": "add", "path": "/terrestrialGraphics/chocolatebiome", "value": { "baseImages": "/celestial/system/terrestrial/biomes/chocolatebiome/maskie<num>.png", "dynamicsImages": "/celestial/system/terrestrial/dynamics/temperate/<num>.png", "dynamicsRange": [1, 25] } }, { "op": "add", "path": "/planetaryTypes/Tier2/baseParameters/terrestrialType/-", "value": "chocolatebiome" }, { "op": "add", "path": "/satelliteTypes/Tier2/baseParameters/terrestrialType/-", "value": "chocolatebiome" } ]
*edit* that's what I get for not refreshing, I did it the exact way you did, however I learned from it. So glad either way. Got it fixed, after some methods. Thanks @lazarus78 You were of course right like usual! syntax is a deadly foe, one issue and it all crumbles. Just in case anyone wants to see how I did it. Code: [ {"op" : "add", "path" : "/terrestrialHorizonGraphics/chocolatebiome", "value" : { "baseImages" : "/celestial/system/terrestrial/horizon/textures/chocolatebiome_<selector>.png", "maskTextures" : "/celestial/system/terrestrial/horizon/masks/chocolatebiome/<mask>_<selector>.png", "maskRange" : [1, 25], "maskPerPlanetRange" : [3, 3] }}, {"op" : "add", "path" : "/terrestrialHorizonGraphics/chocolatebiom", "value" : { "baseImages" : "/celestial/system/terrestrial/horizon/textures/chocolatebiom_<selector>.png", "maskTextures" : "/celestial/system/terrestrial/horizon/masks/chocolatebiom/<mask>_<selector>.png", "maskRange" : [1, 25], "maskPerPlanetRange" : [3, 3] }} ]