[mod] Virtual Backpack

Discussion in 'Empyrion API' started by Xango2000, Oct 31, 2017.

Tags:
  1. SixxGunZ

    SixxGunZ Commander

    Joined:
    May 22, 2017
    Messages:
    98
    Likes Received:
    35
    The only one i have is off your github and the supplied download link to ur google drive above. I've tested both, and they don't seem to work the first time around, its odd, and not by in game chat, like the 2 times i was able to get it to work I had to start egs without eah running. Might be easier to explain over voice chat, my discord is posted on my website if you have free time today.
     
    #21
  2. WinterStorm

    WinterStorm Ensign

    Joined:
    Mar 8, 2017
    Messages:
    3
    Likes Received:
    0
    Ok I downloaded your mod and there is nothing it the folder.
     
    #22
  3. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    229
    Hmmm 160 lines of code, but no comments -there is at least some logging, Hmmmm.
    Is there some kind of classification system for mods and an actual mods catalog?

    I see line 88 and line 91 are identical, intentional?
    BackpackChatDictionary.Remove(PlayerInfoReceived.entityId);

    did you not mean to
    vBackpackChatDictionary.Remove(PlayerInfoReceived.entityId);
     
    #23
  4. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    I'm taking a break from empyrion, I got bored.

    I'll probably be back after the devs add the ability the upload POIs to the workshop.

    In the meantime, this mod is not being worked on but it is still on GitHub. Public Domain as far as I care... Though I forgot the proper documentation.
     
    #24
  5. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    Finally got around to fixing this
    It saves data by SteamID so inventory is persistent across wipes
    49 slots now
    no more interference from other mods that use the ItemExchange Window
    tested in 1636 5/25/2018 on Localhost (single Player present)
     
    #25
    ECubed likes this.
  6. Rahan

    Rahan Ensign

    Joined:
    Apr 27, 2018
    Messages:
    6
    Likes Received:
    0
    Hi Xango, awesome mod, thank you but...do you think you could make a version of this mod with fewer slots? like 14 for example..
     
    #26
  7. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    Not possible with Empyrion's API
     
    #27
  8. Rahan

    Rahan Ensign

    Joined:
    Apr 27, 2018
    Messages:
    6
    Likes Received:
    0
    Ok, thank you very much, still an awesome mod.
     
    #28
  9. GasBandit

    GasBandit Commander

    Joined:
    Mar 19, 2017
    Messages:
    43
    Likes Received:
    35
    Considering installing this on my server, but just out of curiosity, what happens to stuff in the /backpack when the player dies? Does it drop in the "Player's Backpack" item with all their other stuff, or does it stay with the player when they respawn?
     
    #29
  10. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    stays in the VirtualBackpack even if the player dies or does a cb:reset or the server wipes
     
    #30
  11. ButtonPusher

    ButtonPusher Captain

    Joined:
    Nov 8, 2016
    Messages:
    41
    Likes Received:
    24
    Thank you for creating this, I needed it badly and requested it quite some time ago back in alpha 5 and 6 days.
    You heeded the call, I am thoroughly impressed with the work done here. Thank you again Xango!

    *edit, she's not firing up on alpha 8, and the backpacks folder is empty, just a dll... am i missing something? Does the mod need to be updated?

    Log file states :

    Non platform assembly: C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Dedicated Server\Content\Mods\VirtualBackpack\Backpack.dll (this message is harmless)
    25-09:46:52.344 04_46 -LOG- Loaded mod Mod0 from VirtualBackpack
    25-09:46:52.345 04_46 -ERR- Error on executing Game_Start in mod Mod0
    25-09:46:52.347 04_46 -EXC- System.IO.FileNotFoundException: Could not find file "C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Dedicated Server\Content\Mods\VirtualBackpack\Config.yaml".
    File name: 'C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Dedicated Server\Content\Mods\VirtualBackpack\Config.yaml'
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    at System.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0
    at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] in <filename unknown>:0
    at System.IO.StreamReader..ctor (System.String path) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
    at System.IO.File.OpenText (System.String path) [0x00000] in <filename unknown>:0
    at VirtualBackpack.ConfigYaml.Retrieve (System.String filePath) [0x00000] in <filename unknown>:0
    at VirtualBackpack.VirtualBackpack.Game_Start (ModGameAPI gameAPI) [0x00000] in <filename unknown>:0
    at Assembly-CSharp.PackageInvoker.NavigateEmulator (ModGameAPI ) [0x00000] in <filename unknown>:0
     
    #31
    Last edited: Jun 25, 2018
  12. Ratan Kabidge

    Ratan Kabidge Lieutenant

    Joined:
    Nov 14, 2016
    Messages:
    15
    Likes Received:
    8
    Flying by the seat of my pants (as usual), but this mod is indeed working fine on our server (Grandpa's Gaming - Keller's Extreme Universe) in Alpha 8.1.0.1738. If I am reading your error log properly (questionable I admit) it is trying to load a "config.yaml" file that does not exist in our Mod folder. As such, I would suggest deleting that file if it does exist on your server to make sure it is not causing the problems.

    The files located in my working mod folder "VirtualBackpack" are:
    - file "Version Notes.txt" (irrelevant to the mod functionality I believe)
    - file "help.txt" (irrelevant to the mod functionality I believe)
    - file "Backpack.dll" (definitely needed as you would expect I'm sure)
    - folder named "VirtualBackpacks" which is empty at first, but folders with the steam ID64 numbers will appear here as people use it, which contain a file "VirtualBackpack.csv" once used. I believe this saves the contents when that player is not online.
    - folder named "Backpacks" which is currently empty, not certain what information this one stores myself, as I have not seen any contents in it as yet.

    Hope this helps in some fashion even if to just confirm your configuration with a working copy, but my suspicion is the two missing folders may be causing your problems more than the config.yaml error message since I do not have that file either and it is working, but I could be wrong.
     
    #32
    Last edited: Jun 27, 2018
    GamerKeller87 likes this.
  13. MaxiThunder

    MaxiThunder Ensign

    Joined:
    May 27, 2018
    Messages:
    5
    Likes Received:
    0
    Hi,
    Anyone as a sample of a Config.yaml file? I would like to add two Backpacks per player.

    According to the version note:
    ===============================
    v1.0.3
    Added config.yaml as a mod setup file
    Added ability to have Multiple backpacks per player with zero being an acceptible number.
    Added ability for server admin to change the triggering chat command (must be one "word"), default is set to /vb
    ================================

    My current mod doesn't have a config.yaml. I'm getting the error in the log that it's missing but the mod is working "/vb".

    Any help will be appreciated!

    Best Regards,
     
    #33
  14. Tryst

    Tryst Captain

    Joined:
    Dec 8, 2016
    Messages:
    49
    Likes Received:
    39
    I'd love to be able to add this to the SP game. Could it be possible to rework it to do that?
     
    #34
  15. ECubed

    ECubed Commander

    Joined:
    Sep 29, 2016
    Messages:
    48
    Likes Received:
    46
    Mods are not usable in single player yet Tryst. It would be nice but not yet. You can stand up a multiplayer server if you absolutely want to use it.
     
    #35
  16. MaxiThunder

    MaxiThunder Ensign

    Joined:
    May 27, 2018
    Messages:
    5
    Likes Received:
    0
    Anyone?
     
    #36
  17. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    Sorry Maxi, it appears I overwrote v0.0.2 with v0.0.3's files. I've been busy studying for my new job and haven't gotten around to fixing it. I hope to get it fixed and uploaded this weekend.
     
    #37
  18. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    I have been busy lately, but I do still plan on continuing this project in my free time.

    The next version is going to take awhile, I'm planning on adding a bunch of new settings.
     
    #38
  19. Suki

    Suki Ensign

    Joined:
    Feb 18, 2018
    Messages:
    1
    Likes Received:
    0
    ok im dumb or its removed but how do i download?
     
    #39
  20. GasBandit

    GasBandit Commander

    Joined:
    Mar 19, 2017
    Messages:
    43
    Likes Received:
    35
    Unfortunately it looks like Xango's taken down his mods... his steam mod page has been deleted and the google drive that used to have the files says it's in the trash now :/
     
    #40

Share This Page