Modding Help StarException: An error occured during loading: VariantException [Solved]

Discussion in 'Starbound Modding' started by Reversal, Jun 11, 2014.

  1. Reversal

    Reversal Void-Bound Voyager

    Was trying to put together a mod for an animated object and this error popped up. Would appreciate any advice/help I can get.

    Here's the info from the log file:
    Code:
    Info: Preparing Star::Root...
    Info: Loading Star::Configuration from '..\starbound.config'
    Info: Done preparing Star::Root.
    Info: Client version 'Beta v. Enraged Koala - Update 8' Protocol: 643
    Info: Running from : C:\Program Files (x86)\Steam\steamapps\common\Starbound\win32\starbound.exe
    Info: Starting from the title screen
    Info: Initialized SDL
    Info: Initialized SDL Video
    Info: Initialized SDL Joystick
    Info: Initialized SDL Sound
    Info: Opened default audio device with 44khz / 16 bit stereo audio, 2048 sample size buffer
    Info: Loading Star::Root...
    Info: Initializing SDL Window
    Info: Loading Star::Configuration from '..\starbound.config'
    Info: Created initial window 1000x600
    Info: Initializing SDL Window
    Info: Re-created window 1366x746
    Error: Could not load /player.config asset, attempting to use default.
    AssetException: Could not read variant asset /player.config
    caused by: JsonParsingException: Cannot parse json file: /player.config
    caused by: JsonParsingException: Error parsing json: unexpected character parsing word at 1:107
      Variant inputUtf8Json<char*>(char*, char*, bool)
      Assets::mergeVariant(Variant, String)
      Assets::readVariant(String)
      _Function_handler<shared_ptr<Assets::AssetData> (), Assets::loadVariant(String)::{lambda()#1}>::(_Any_data)
      Assets::processAssetData(function<shared_ptr<Assets::AssetData> ()>)
      Assets::loadVariant(String)
      Assets::loadAsset(Assets::AssetId)
      Assets::doLoad(Assets::AssetId)
      Assets::getAsset(Assets::AssetId)
      Assets::variant(String)
      PlayerFactory::load()
      Root::reload()
      _Function_handler<void (), _Bind<ClientApplication::preSplashInitialization()::{lambda()#1} ()> >::(_Any_data)
      ThreadImpl::runThread(void*)
      BaseThreadInitThunk
      RtlInitializeExceptionChain
      RtlInitializeExceptionChain
    
    Info: Writing Star::Configuration to '..\starbound.config'
    Error: Exception raised during Root finishInitialization: VariantException: Improper conversion to VariantMap from null
      Variant::mapPtr()
      Variant::toMap()
      PlayerFactory::load()
      Root::reload()
      _Function_handler<void (), _Bind<ClientApplication::preSplashInitialization()::{lambda()#1} ()> >::(_Any_data)
      ThreadImpl::runThread(void*)
      BaseThreadInitThunk
      RtlInitializeExceptionChain
      RtlInitializeExceptionChain
    
    Info: Shutting down Star::Root
    Error: StarException: An error occurred during loading: VariantException: Improper conversion to VariantMap from null
      Variant::mapPtr()
      Variant::toMap()
      PlayerFactory::load()
      Root::reload()
      _Function_handler<void (), _Bind<ClientApplication::preSplashInitialization()::{lambda()#1} ()> >::(_Any_data)
      ThreadImpl::runThread(void*)
      BaseThreadInitThunk
      RtlInitializeExceptionChain
      RtlInitializeExceptionChain
    
      ClientApplication::postSplashInitialization()
      ClientApplication::update()
      StarApplicationBase::run()
      _SDL_main
      _console_main
    
    the error that came up is attached below
     

    Attached Files:

  2. prodamn

    prodamn Jackpot!

    AssetException: Could not read variant asset /player.config
    caused by: JsonParsingException: Cannot parse json file: /player.config
    caused by: JsonParsingException: Error parsing json: unexpected character parsing word at 1:107
    Variant inputUtf8Json<char*>(char*, char*, bool)


    remove/replace that character in the player.config and you're good.

    the file already tells you what the frick is going on, you just have to look for the right thing, you can't really miss it though.
     
    Last edited: Jun 11, 2014
  3. Reversal

    Reversal Void-Bound Voyager

    I've got it figured out now, much appreciated
     
  4. MACKAULE

    MACKAULE Intergalactic Tourist

    Guys, could you help me? I can't fix this.
     
  5. The | Suit

    The | Suit Agent S. Forum Moderator

    His issue and your issue would be different.
    Post a new thread with your starbound.log
     
  6. JhudielTheOne

    JhudielTheOne Void-Bound Voyager

    Of Course. But Recently Im Getting The Same Error As Mine
     

Share This Page