Modding Help Mod Crash nightly (new to modding)

Discussion in 'Starbound Modding' started by douras, Oct 19, 2014.

  1. douras

    douras Aquatic Astronaut

    Hello,
    I am creating my first mod, using functionnality of the nightly builds.

    I have created a spawn profil where no mobs can spawn an assigned it to moon and asteroids biomes (airless so no mobs please!).

    When I launch Starbound it crashes, saying :
    An error occurred during loading: (VariantException) No such key in Variant::get("name")

    Code:
    Info: Preparing Star::Root...
    Info: Detected mod 'antimob' at '../mods\antimob\.'
    Info: Loading Configuration with config file: 'starbound.config'
    Info: Loading Star::Configuration from '..\starbound.config'
    Info: Pre-loading Star::Root with 3 assets sources
    Info: Loading Star::Assets from: '../assets/packed.pak'
    Info: Loading Star::Assets from: '../assets/user'
    Info: Loading Star::Assets from: '../mods\antimob\.'
    Info: Done preparing Star::Root.
    Info: Client version 'Beta v. Rampaging Koala - Update 1' Protocol: 660
    Info: Running from : D:\Games\Steam\steamapps\common\Starbound\win32\starbound.exe
    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: Finishing loading Star::Root...
    Info: Initializing SDL Window
    Info: Created initial window 1000x600
    Info: Renderer initialized
    Info: Renderer destroyed
    Info: Initializing SDL Window
    Info: Re-created window 1000x600
    Info: Renderer initialized
    Error: Exception raised during Root finishLoad: (VariantException) No such key in Variant::get("name")
      VariantException::VariantException(string)
      Variant::get(String)
      String Variant::tget<String>(String)
      Variant::getString(String)
      BiomeDatabase::BiomeDatabase()::{lambda(String, Map<String, BiomeDatabase::Config, unordered_map<String, BiomeDatabase::Config, hash<String, void>, equal_to<String>, allocator<pair<String, BiomeDatabase::Config> > > >)#1}::operator()(String, Map<String, BiomeDatabase::Config, unordered_map<String, BiomeDatabase::Config, hash<String, void>, equal_to<String>, allocator<pair<String, BiomeDatabase::Config> > > >)
      BiomeDatabase::BiomeDatabase()
      Root::load(bool)
      Root::finishLoad()
      _Function_handler<void (), _Bind<ClientApplication::preSplashInitialization()::{lambda()#1} ()> >::(_Any_data)
      ThreadImpl::runThread(void*)
      BaseThreadInitThunk
      RtlInitializeExceptionChain
      RtlInitializeExceptionChain
    
    Info: Renderer destroyed
    Info: Shutting down Star::Root
    Error: Fatal Exception Caught: (StarException) An error occurred during loading: (VariantException) No such key in Variant::get("name")
      ClientApplication::postSplashInitialization()
      ClientApplication::update()
      StarApplicationBase::run()
      _SDL_main
      _console_main
    
    

    There's the link to my mod, do you know what's the problem ? (can't figure out how to use the "upload a file" button)
    https://dl.dropboxusercontent.com/u/17078679/antimob.7z
    Thank you
    Douras
     
  2. You are using the __Merge format for merging JSON files. You need to use Patch.
     
  3. douras

    douras Aquatic Astronaut

    The what ? How do I do that ? I'm new to modding, I learned with the tutorials, do you have a link to a page where "patch" is explained ?
    thank you !
     
  4. douras

    douras Aquatic Astronaut

    I found how to do it (using this web page)
    http://helmet.kafuka.org/sbmods/json/

    Thank you for your help.
    I hope the tutorials will be updated soon because it's sad for new modders to learn things that are outdated..



    Edit : nope, not working :p
    Link to my mod in description.
    Normaly, there is no problems with the code.
     

    Attached Files:

    Last edited: Oct 20, 2014
  5. The | Suit

    The | Suit Agent S. Forum Moderator

  6. douras

    douras Aquatic Astronaut

    Ok, so with a ".patch" at the end of eatch file it's not crashing !
    Thanks !
     
  7. DGA

    DGA Void-Bound Voyager

    Could you help I dont understand a bit
     
  8. The | Suit

    The | Suit Agent S. Forum Moderator

    Help with what exactly?
     

Share This Page