146 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
68
views
How can I check if the peer (relay server) is connected?
I'm trying to create a multiplayer game with GUN.
I made some tests with two browsers opened at the same time and noticed sometimes the changes in one window are not updating the other.
So, I would ...
0
votes
1
answer
119
views
Why doesn't web3 gun library work well together with Angular v18.2?
I'm trying to incorporate gun web3 library into my Angular app, but I'm running into the following error:
[vite] Internal server error: Cannot find module './lib/text-encoding'
Require stack:
I'm ...
0
votes
1
answer
83
views
How to leave a mark on the texture of the walls when in contact with a physical object - a bullet?
Currently I am trying to have a bullet hole appear wherever the bullet from a player lands. Specifically on walls and the floor.
Below is my current script for shooting a gun.
private void Shoot()
{
...
0
votes
1
answer
108
views
Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
I have a sveltekit app in which i use gunjs as a db with user auth etc...
(This error problem didnt exist before i added gunjs auth)
The problem now is that when i use vercel to deploy the app it ...
0
votes
0
answers
140
views
Unable to resolve "text-encoding" from "node_modules/gun/lib/mobile.js"
while developing react native app getting this issue here is my code bellow.
import { REACT_APP_GUN_PEER } from "@env";
import "gun/lib/mobile.js"
import Gun from "gun/gun&...
2
votes
0
answers
612
views
Unable to call function from `injectJavascript` in a react native webview
I am experiencing issues regarding using the injectJavascript method to inject and call a function from the WebView component from the library: react-native-web-view. I am doing this to workaround the ...
2
votes
0
answers
197
views
How does Gun js connect with peers on a deployed app?
I am new to using Gun js and am currently getting familiar with it. There is a great tutorial on YouTube by fireship: https://www.youtube.com/watch?v=J5x3OMXjgMc About building a simple chat app.
My ...
0
votes
1
answer
63
views
Why after adding elements to the document the addEventListener stop working?
I have two .addEvenetListener in my code but one of them stop working after adding a div to my
document.addEventListener("mousemove", (e) => { mouseMove(e) }, false);
document.body....
0
votes
1
answer
372
views
Asynchronously modify value of component in Quasar
I am trying to modify the alias field when a promise is resolved. When I try to await the promise, Quasar errors out with:
[Vue warn]: Component <MainLayout>: setup function returned a promise, ...
Dshiz's user avatar
- 3,373
0
votes
1
answer
488
views
unity : rotating a gun 360 dgrees around the player in a 2d platfrom shooter
trying for 2 days to rotate a gun around a player in a 2d platfromer and i have 3 problems
1: the item or rotate uncontrolebly (my grammer isnt the best my mother language isnt even latin base)
around ...
-2
votes
1
answer
219
views
How to reference a script from another script to access multiple variables in unity c#
Hello I have 2 script my recoil script and my gunystem script
I have my recoil script on my camera recoil obj as a child of camera rot obj
I have my gunsystem script on multiple guns
i am trying to ...
0
votes
1
answer
259
views
Netlify serverless function wont import this package. Leaves it as undefined
import Gun from 'gun'
import SEA from 'gun/sea'
Gun imports and works as expected, but SEA is set to undefined, when it should be an object
Notes:
SEA gets imported correctly on the client, and in ...
0
votes
1
answer
204
views
How to import GUN SEA with Deno Fresh?
The first attempt to import GUN from Fresh was to add the gun library from esm to import_map.json, where it correctly works in simple examples of using GUN.
{
"imports": {
...
&...
1
vote
1
answer
1k
views
How to create a global context in Fresh Deno?
I want to create a global instance of GunDB so that it only initializes once on the client side and I could then use it on any island.
I tried in index.tsx to simply add const gun = Gun() and send ...
-2
votes
2
answers
290
views
Pygame Bullet Hell Game [closed]
I was wondering about bullets/guns in my bullet hell type game. In this game, there will be a shop that you can collect coins for and buy different types of guns and upgrades. I was wondering if I ...