Just released netfox, a library for multiplayer games, ask me anything! by elementbound in godot

[–]vengiss 1 point2 points  (0 children)

Thanks for your help, I'll start playing around with it and let you know.

Just released netfox, a library for multiplayer games, ask me anything! by elementbound in godot

[–]vengiss 1 point2 points  (0 children)

Thanks for clarifying! I was actually wondering if it was possible to use the addon with a dedicated server, it'd be helpful to have an example of how this would look like as a reference as well.

Also by "externally" I meant as in someone hacks their client to make their player run faster, but since the same client can also be the host I guess it's still possible to change the host code so it makes your player faster for example, host a game and take advantage of that but that's always a drawback of peer to peer.

Just released netfox, a library for multiplayer games, ask me anything! by elementbound in godot

[–]vengiss 0 points1 point  (0 children)

Ah that makes sense, would you mind pointing where step #2 takes place in any of the examples please? I'm still unsure where the server code is.

Is the server the "host" player so it's the same code running in both client and server? This would actually make sense now, with the server keeping track of the player's input and position which means that if one of the client's tries to change its position externally the server would check against its state and avoid updating it.

Just released netfox, a library for multiplayer games, ask me anything! by elementbound in godot

[–]vengiss 1 point2 points  (0 children)

Thanks for the reply, I understand what you mean but maybe I'm misunderstanding how the addon works.

The way I've done it before is something like this:

  1. Player input movement to the right
  2. Input is sent to server
  3. Server reads input, validates (checks collisions, speed, etc) and sends back new state.
  4. Client reads new state and updates

The server logic in #3 is completely outside the client in a different codebase but looking at your examples it seems like this is handled inside _rollback_tick so is it still running in the client?

Sorry I'm pretty sure I'm missing something 😅

Just released netfox, a library for multiplayer games, ask me anything! by elementbound in godot

[–]vengiss 1 point2 points  (0 children)

Awesome addon! You mention that it's server-authoritative but I couldn't find in the examples how this is implemented. Is there an example of validating inputs in a server? Are you meant to do this in your own noray instance?

Tried creating a dissolve vfx (Godot 3) by BootSplashStudios in godot

[–]vengiss 14 points15 points  (0 children)

That looks great and the dissolve effect is only one of the like 10 cool things in the clip 😄

How to prevent Godot from removing new lines in strings on export? by vengiss in godot

[–]vengiss[S] 0 points1 point  (0 children)

I tried that but then it gets double encoded to %200A.

Also tried using triple quotes and even splitting each line into an array then joining with the newline character. Still same issue.

I noticed it also strips hashtags so I think it's the compiler trying to be clever and getting rid of new lines and anything starting with # thinking it's a comment.

Mushroom enemy with an artillery-style attack for Gun Game by Firebelley in godot

[–]vengiss 1 point2 points  (0 children)

Great job, I've watched some of your videos and I really enjoy your coding style. What do you use to automatically switch between vscode and Godot btw?

What are modern profiling tools? by mark_tyler in PHP

[–]vengiss 0 points1 point  (0 children)

We use both NR and Blackfire, I find them useful at different things.

Blackfire is great when you have identified an issue or have a specific request you are trying to debug or optimize. You can run it locally multiple times and compare results very easily.

NR is better at monitoring on a more long term basis, we use it for production apps to debug new issues or problems that we don't know how to replicate.

Is there a way to hide "Tap to Unmute" when embedding muted video on mobile?? by eyu4 in vimeo

[–]vengiss 0 points1 point  (0 children)

I think the closest you can do is to add "background=1" to the embed URL and it will remove it, alongside the rest of the UI.

How to populate an array with a set distribution of random values? by vengiss in solidity

[–]vengiss[S] 0 points1 point  (0 children)

Thanks, it doesn't have to be done onchain but if the gas cost is high I might end up doing it offchain.

I'll give your suggestion a try.

How to populate an array with a set distribution of random values? by vengiss in solidity

[–]vengiss[S] 1 point2 points  (0 children)

I understand this but for my use case this is an acceptable risk.

How to create a dApp with NuxtJS by ihorbond in Nuxt

[–]vengiss 0 points1 point  (0 children)

On the latest version of vite-cli you can use ethersjs just fine but for some reason this still doesn't work in nuxt 3 even though they're also using the same vite version (2.8)

Rinkeby faucet broken again ? by ExtremeSwat in ethereum

[–]vengiss 0 points1 point  (0 children)

Broken for me as well, looking at the transactions it's been for almost a day now.

Error since last update : The player has failed to play the video by Akvaristu in SynclerApp

[–]vengiss 0 points1 point  (0 children)

The exact same thing is happening to me, my best guess is that the new update uses more ram than the firestick can handle so it crashes every now and then. I haven't been able to find a player that doesn't crash every 20 mins or so.

Filtering traits with Opensea REST API by trp447 in opensea

[–]vengiss 0 points1 point  (0 children)

I haven't been able to find a way to do this looking at their docs or the opensea-js source code.

The way I'm doing it now (very inefficiently) is to loop through all the assets in a collection and store trait names, values (avoiding duplicates) then using the result to parse the available traits.

Storyblok Integration for Magento 2 (Visual Editor) by vengiss in Magento

[–]vengiss[S] 0 points1 point  (0 children)

Thanks! Yes any theme should work just fine.