Jump to content

daretmavi

Vintarian
  • Posts

    178
  • Joined

  • Last visited

Posts posted by daretmavi

  1. On my way to run VS Server on Raspberry Pi 4, I tried to run it through systemd.

    In works nice, but I was not able to send any commands to the server. Terminal emulation "screen" does not work with systemd, so the script server.sh is useless.

    I found some solution. It can be done by adding socket to the service definition (in /etc/systemd/system/).

    vintagestory.service

    [Service]
    ...
    Sockets=vintagestory.socket
    StandardInput=socket
    StandardOutput=journal
    StandardError=journal
    ...

    and create the socket file

    vintagestory.socket

    [Unit]
    PartOf=vintagestory.service
    
    [Socket]
    ListenFIFO=%t/vintagestory.stdin

    Now you can send the command with echo
    e.g.

    echo "/stats" > /run/vintagestory.stdin

    and read the server output with

    systemctl status vintagestory

    of look at the log

    sudo systemctl status vintagestory

     

    My service and socket files are attached (Work in progress).

    vintagestory.service vintagestory.socket

    • Thanks 2
  2. It seems, that turning mesa_glthread on gives nice performance boost. (Avg FPS from 58 to 71)

    Change vintagestory.desktop file
     

    mono Vintagestory.exe

    to

    mesa_glthread=true mono Vintagestory.exe

     

    mesa_glthread is off

    fps58.png.673e28d20cc3dd93aeda553ce7ad3835.png

     

    mesa_glthread is on

    fps71.png.a4005c2f8b2815cf1617ffc4a0b099b9.png

     

    Not sure about the stability. I have to test it a little bit more, but it looks promising.

    Tested with AMD RX580 graphic card.

     

  3. Hi, not sure how it works in GPortal, but fol local server you have to update server.sh file.

    USERNAME='...YOUR_USERNAME_FOR_SERVER_RUN...'
    VSPATH='... PATH TO SERVER ...'
    DATAPATH='... PATH TO DATA - YOUR WORLD FROM SINGLEPLAYER in ~/.config/VintagestoryData/...' 

    under DATA update serverconfig.json - Paths

      "ModPaths": [
        "Mods",
        "... PATH TO SERVER/Mods"
      ],

     

    "SaveFileLocation": "... PATH TO DATA/Saves/default.vcdbs",

    Look here form some info: https://wiki.vintagestory.at/index.php?title=Setting_up_a_Multiplayer_Server

     

    Basically you need to copy your Singleplayer Data from VintagestoryData directory to server and update server files.

  4. 5 hours ago, Tyron said:

    Temproary fix - copy Lib64/libnanosvg.so to the Lib/ folder

    Hi, thanx.

    Game starts, but I can't load/create any world. It stays stuck in loading screen.

    1.16-pre1_stuck.thumb.png.6f86d08aa24919b686ff6ccead93524c.png

    This is console output.

    Spoiler

    17:48:22 [Server Debug] BlockID Remapper: Begin
    17:48:22 [Server Debug] Block IDs not found in savegame.
    17:48:22 [Server Debug] Found 0 block requiring remapping
    17:48:22 [Server Debug] Found 0 missing blocks
    17:48:22 [Server Debug] Added 7907 new blocks to the mapping
    17:48:22 [Server Debug] Block IDs have been written to savegame
    17:48:22 [Server Debug] ItemID Remapper: Begin
    17:48:22 [Server Debug] Item IDs not found in savegame.
    17:48:22 [Server Debug] Found 0 Item requiring remapping
    17:48:22 [Server Debug] Found 0 missing Items
    17:48:22 [Server Debug] Added 2329 new Items to the mapping
    17:48:22 [Server Debug] Item IDs have been written to savegame
    17:48:23 [Server Error] Cannot resolve stack randomizer block with code torch-cloth-extinct-up, wrong code?
    17:48:23 [Server Event] 7 metal alloys loaded                                                                       
    17:48:23 [Server Event] 6 cooking recipes loaded
    17:48:24 [Server Event] 446 crafting recipes loaded from 196 files
    17:48:24 [Server Event] 197 smithing recipes loaded
    17:48:24 [Server Event] 54 clay forming recipes loaded
    17:48:24 [Server Event] 36 knapping recipes loaded
    17:48:24 [Server Event] 148 barrel recipes loaded
    17:48:24 [Server Notification] Server map set
    17:48:24 [Server Notification] Entering runphase LoadGame
    17:48:24 [Server Notification] Entering runphase WorldReady
    17:48:25 [Server Warning] Block schematic file barn-1.json uses blocks that could no longer be found. These will tu
    rn into air blocks! (affected: game:bowl-burned)                                                                    
    17:48:25 [Server Warning] Block schematic file dining-room-1.json uses blocks that could no longer be found. These
    will turn into air blocks! (affected: game:bowl-burned)                                                             
    17:48:25 [Server Warning] Block schematic file archives-1.json uses blocks that could no longer be found. These wil
    l turn into air blocks! (affected: game:bowl-burned)                                                                
    17:48:25 [Server Warning] Block schematic file dormitory-4.json uses blocks that could no longer be found. These wi
    ll turn into air blocks! (affected: game:bowl-burned)                                                               
    17:48:26 [Server Warning] Block schematic file village-27.json uses blocks that could no longer be found. These wil
    l turn into air blocks! (affected: game:torch-burnedout-up)                                                         
    17:48:26 [Server Notification] Reloaded 35 tree generators                                                          
    17:48:26 [Server Warning] Block patch Nr. 79: Unable to resolve block with code game:mushroom-devilsbolete-normal.
    Will ignore.                                                                                                        
    17:48:26 [Server Event] Loading 7x7x8 spawn chunks...                                                               
    17:48:26 [Server Event] 0% (49 in queue)
    17:48:27 [Server Event] 0% (49 in queue)
    17:48:29 [Server Event] 0% (69 in queue)
    17:48:30 [Server Event] 0% (81 in queue)
    17:48:32 [Server Event] 0% (119 in queue)
    17:48:33 [Server Event] 0% (160 in queue)
    17:48:35 [Server Event] 0% (200 in queue)
    17:48:36 [Server Event] 0% (186 in queue)
    17:48:38 [Server Event] Begin save game ticking...
    17:48:38 [Server Notification] Entering runphase RunGame
    17:48:38 [Server Notification] Starting server threads
    17:48:38 [Server Event] Server pre jedného hráča now running!
    17:48:38 [Client Notification] Server launched
    17:48:38 [Server Notification] All clients disconnected, pausing game calendar.
    17:48:38 [Server Notification] A Client attempts connecting via Dummy connection, assigning client id 1
    17:48:38 [Server Notification] Client uid wAwq5J3tdJjN6h+RJJpTpE/X attempting identification. Name: daret
    17:48:38 [Server Error] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an
    invocation. ---> System.MissingMethodException: Method not found: !!0 Vintagestory.API.Common.IModLoader.GetModSyst
    em<!0>()                                                                                                            
     at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeC
    onstructorInfo,object,object[],System.Exception&)                                                                   
     at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System
    .Boolean wrapExceptions) [0x00005] in <533173d24dae460899d2b10975534bb0>:0                                          
      --- End of inner exception stack trace ---                                                                       
     at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System
    .Boolean wrapExceptions) [0x0001a] in <533173d24dae460899d2b10975534bb0>:0                                          
     at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAtt
    r, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086]
    in <533173d24dae460899d2b10975534bb0>:0                                                                            
     at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.
    Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <533173d24dae4608
    99d2b10975534bb0>:0                                                                                                 
     at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder bi
    nder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.
    Threading.StackCrawlMark& stackMark) [0x0022b] in <533173d24dae460899d2b10975534bb0>:0                              
     at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflecti
    on.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttribu
    tes) [0x0009c] in <533173d24dae460899d2b10975534bb0>:0                                                              
     at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <533173d24dae460899d2b10
    975534bb0>:0                                                                                                        
     at Vintagestory.Common.ClassRegistry.CreateEntityBehavior (Vintagestory.API.Common.Entities.Entity forEntity, Sys
    tem.String className) [0x00030] in <3be15e3e91d742dab550cd163b37a7a0>:0                                             
     at Vintagestory.Common.ClassRegistryAPI.CreateEntityBehavior (Vintagestory.API.Common.Entities.Entity forEntity,
    System.String entityBehaviorName) [0x00000] in <3be15e3e91d742dab550cd163b37a7a0>:0                                 
     at Vintagestory.API.Common.Entities.EntitySidedProperties.loadBehaviors (Vintagestory.API.Common.Entities.Entity
    entity, Vintagestory.API.Common.Entities.EntityProperties properties, Vintagestory.API.Common.IWorldAccessor world)
    [0x00051] in <2e0a9922d73a43e783ef0d95da39b328>:0                                                                  
     at Vintagestory.API.Common.Entities.EntityProperties.Initialize (Vintagestory.API.Common.Entities.Entity entity,
    Vintagestory.API.Common.ICoreAPI api) [0x00041] in <2e0a9922d73a43e783ef0d95da39b328>:0                             
     at Vintagestory.API.Common.Entities.Entity.Initialize (Vintagestory.API.Common.Entities.EntityProperties properti
    es, Vintagestory.API.Common.ICoreAPI api, System.Int64 InChunkIndex3d) [0x001f1] in <2e0a9922d73a43e783ef0d95da39b3
    28>:0                                                                                                               
     at Vintagestory.API.Common.EntityAgent.Initialize (Vintagestory.API.Common.Entities.EntityProperties properties,
    Vintagestory.API.Common.ICoreAPI api, System.Int64 InChunkIndex3d) [0x00027] in <2e0a9922d73a43e783ef0d95da39b328>:
    0                                                                                                                   
     at Vintagestory.API.Common.EntityPlayer.Initialize (Vintagestory.API.Common.Entities.EntityProperties properties,
    Vintagestory.API.Common.ICoreAPI api, System.Int64 chunkindex3d) [0x0004b] in <2e0a9922d73a43e783ef0d95da39b328>:0
                                                                                                                       
     at Vintagestory.Server.ServerMain.SpawnEntity (Vintagestory.API.Common.Entities.Entity entity, Vintagestory.API.C
    ommon.Entities.EntityProperties type) [0x000da] in <3be15e3e91d742dab550cd163b37a7a0>:0                             
     at Vintagestory.Server.ServerMain.SpawnEntity (Vintagestory.API.Common.Entities.Entity entity) [0x0000e] in <3be1
    5e3e91d742dab550cd163b37a7a0>:0                                                                                     
     at Vintagestory.Server.ServerMain.FinalizePlayerIdentification (_fuwtwimWTPsAK8Q6HqNY8Nh3Z3N packet, Vintagestory
    .Server.ConnectedClient client, System.String entitlements) [0x00382] in <3be15e3e91d742dab550cd163b37a7a0>:0       
     at Vintagestory.Server.ServerMain.HandlePlayerIdentification (_PgMIN0pxH8Khi2IbHKYtZSIRnaP p, Vintagestory.Server
    .ConnectedClient client) [0x002e9] in <3be15e3e91d742dab550cd163b37a7a0>:0                                          
     at Vintagestory.Server.ServerMain.HandleClientPacket (Vintagestory.Server.ConnectedClient client, System.Byte[] d
    ata) [0x0005a] in <3be15e3e91d742dab550cd163b37a7a0>:0                                                              
     at Vintagestory.Server.ServerMain.ProcessNetMessage (Vintagestory.Common.NetIncomingMessage msg, Vintagestory.Com
    mon.NetServer mainSocket) [0x00150] in <3be15e3e91d742dab550cd163b37a7a0>:0                                         
        

     

     

  5. It is not starting on linux with run.sh

    client-crash.txt:

    Version: v1.16.0-pre.2 (Unstable)01.12.2021 22:36:02: Critical error occurred
    System.DllNotFoundException: libnanosvg.so assembly:<unknown assembly> type:<unknown type> member:(null)
      at (wrapper managed-to-native) NanoSvg.SvgNativeMethods.nsvgCreateRasterizer()
      at Vintagestory.Client.NoObf.SvgLoader..ctor (Vintagestory.API.Client.ICoreClientAPI _capi) [0x0000d] in <3be15e3e91d742dab550cd163b37a7a0>:0 
      at _8hKY98YYLSNuzwitBfBtUzSBDWJ..ctor (_HRfDngnpBWTmEXiuwbRWkFKyJZs , Vintagestory.API.Client.ICoreClientAPI ) [0x00030] in <3be15e3e91d742dab550cd163b37a7a0>:0 
      at _Qhe5emKnc9jNv5pN4mtlr6oB06l..ctor (_HRfDngnpBWTmEXiuwbRWkFKyJZs ) [0x00025] in <3be15e3e91d742dab550cd163b37a7a0>:0 
      at _HRfDngnpBWTmEXiuwbRWkFKyJZs._HH2M6AmcpFUMki4uDKOPMndAYft (_hFZgobIYoX0BrM3J1kokPKB9IqB , System.String[] ) [0x00000] in <3be15e3e91d742dab550cd163b37a7a0>:0 
      at _aeznW7dUzRtbc6gGqfLLAAGPvUF._HH2M6AmcpFUMki4uDKOPMndAYft (_hFZgobIYoX0BrM3J1kokPKB9IqB , System.String[] ) [0x003bf] in <8d66166b5af84e99b52d52577ba8f9cf>:0 
      at _aeznW7dUzRtbc6gGqfLLAAGPvUF+_ixZKgNgo7I3kbr4QthQzdebcglA._hUauVNSzd1WLRRhHfkNd8O6agJy () [0x00000] in <8d66166b5af84e99b52d52577ba8f9cf>:0 
      at _D1bjqjMU3djkJ14p5zl8JiWp0sG._HH2M6AmcpFUMki4uDKOPMndAYft (System.Threading.ThreadStart ) [0x00007] in <3be15e3e91d742dab550cd163b37a7a0>:0 
    -------------------------------

     

  6. It works on Windows (https://cdn.vintagestory.at/gamefiles/stable/vs_archive_1.15.9.tar.gz)

    And with the "--dataPath" it should work.

    Alternatively you can always run your local server and connect to it locally (IP 127.0.0.1).
    https://cdn.vintagestory.at/gamefiles/stable/vs_server_1.15.9.tar.gz
    - extract
    - and update config files

    server.sh

    USERNAME='your-user-name'
    VSPATH='...path-to-server-dir.../vs_server_1.15.9/'
    DATAPATH='...path-to-server-Data-dir.../vs_server_1.15.9/Data/' 


    Data/serverconfig.json - if you copy your existing World Data

        "Mods",
        "...path-to-mods-dir.../vs_server_1.15.9/Data/Mods"
      ],
    
    "SaveFileLocation": "...path-to-saves-db.../vs_server_1.15.9/Data/Saves/default.vcdbs",

     

    • Thanks 1
  7. I just tried it on my old RPi 3B with 64 bit Raspberry Pi OS installed with Raspberry Pi Imager.

    It seems to be working. I have had to install mono and screen first.

    sudo apt install mono-complete
    sudo apt install screen

    and copied files (extracted vs server tar) with scp

    scp -r vs_server_1.15.9 pi@192.168.1.222:/home/pi/vs

    After updating server.sh and serverconfig.json

    nano server.sh
    nano Data/serverconfig.json

    It started fine with

    ./server.sh start

     

    A little bit laggy, but with better RPi4 it could actually work.

  8. Info like here: https://github.com/anegostudios/VintageStory-Issues

    Quote

     

    **Game Version:** X.Y.Z  
    **Platform:** Windows / Mac / Linux (which?)  
    **Modded:** No / Yes (which?)  

    ### Description
    Explain the issue you're running into.

    ### How to reproduce
    1. Make a '....'
    2. Use it on '....'
    3. It crashes / doesn't do the thing.

    ### Expected behavior
    If not obvious, what did you expect to happen?

    ### Screenshots
    Attach a screenshot if it helps explain the issue / shows a visual bug.

    ### Logs
    ```
    Paste crash between the triple backticks.

    In the game's Logs folder you may be able to find more information
    inside client-main.txt and server-main.txt. Alternatively, you may use
    gist.github.com to upload logs, linking them here, if they're too large.
    ```

     

    You can even make video to show it.

     

  9. 1 hour ago, Windego said:

    And if we're going to add something to a class, we also need to take something from it.
    So if we were to add the ability to tailor new custom hide clothing for hunters.... What would you think, needs to be taken away from the hunter? What penalty?

    It would probably be overcomplicated and it is not worth it. I was just surprised, that when I make new coat, the condition is terrible.

    Maybe, when/if more skills are implemented, it could work like in Morrowind and you could train what you need and classes could make use of it.

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.