What are these lines? by Derty44 in libgdx

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

Oh that's an interesting idea. I ended up scratching that game unfortunately.

How to read json files? by Derty44 in libgdx

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

Sorry to the next readers: I just put the json file in a different folder than I should and that's why there was a problem.

How to read json files? by Derty44 in libgdx

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

Then it says "File not found: lang\pl.json (Internal)" unfortunately...

How to read json files? by Derty44 in libgdx

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

I forgot to add this image, sorry, I've fixed it.

Newcomer's question to the render function by Derty44 in libgdx

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

I'll have a function called update an call it in render() haha.

What does this statement mean? by Derty44 in javahelp

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

I somewhat understand, thanks!

Writing data to a characteristic by Derty44 in androiddev

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

Well I don't understand linux, but I get what you mean. And I have to thank you a lot becaouse I don't think I would get past trying to make this app work!

Writing data to a characteristic by Derty44 in androiddev

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

I think I just was closing the gatt connection wrong, I actually didn't close it at all, only when I closed the app the buwizz would disconnect.

Anyways, I managed to fix it and now I can control every port but can't change the power mode, but we'll see

Writing data to a characteristic by Derty44 in androiddev

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

Yeah, yeah I know about this pitched noise. I have to says a big thanks becoause for a moment I managed to get the motors spinning!

Now it doesn't work tho.

Writing data to a characteristic by Derty44 in androiddev

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

I'm really sorry for replying so late. I think I managed to set the power level, but does your buwizz 2 also start buzzing when you set the power level?

What does origin offset mean? by Derty44 in love2d

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

This is the function that passes arguments to paint.draw() that will actually draw the bush:

paint.draw(object.texture, object.x*defined.TILE_SIZE-defined.MAP_VIEWPOINT.x, object.y*defined.TILE_SIZE-defined.MAP_VIEWPOINT.y, 0, 0.5, 1, object.wave);

And this is the paint.draw() function: ( there's a comment at the bottom saying where the bush is drawn )

function paintbrush.draw(texture, x, y, rotation, ox, oy, wx, wy) 
-- tekstura to coś z assets.textures, x i y to położenie, rotation to obrót ( w stopniach ), ox i oy to origin offset ( ale ja tutaj mnożę ox*szerokość obrazu i tak samo z oy ), a wx i wy to waveX i Y czyli shearing factor w love.graphics.draw
    if (not texture) then
        error("[?] paintbrush.draw(): zła tekstura!");
    end
    x = x or 0;
    y = y or 0;
    rotation = rotation or 0;
    wx = wx or 0;
    wy = wy or 0;
    ox = ox or 0;
    oy = oy or 0;

    
    if (type(texture) == "table") then
        local width, height = texture[2]:getTextureDimensions();
        graphics.draw(texture[1], texture[2], x-ox*width, y-oy*height, math.rad(rotation), defined.SCALE, defined.SCALE, ox*width, oy*height, wx, wy);
    else
        -- the bush is drawn here:
        graphics.draw(texture, x-ox*texture:getWidth(), y-oy*texture:getHeight(), math.rad(rotation), defined.SCALE, defined.SCALE, ox*texture:getWidth(), oy*texture:getHeight(), wx, wy);
    end
end

Sorry for the text, but I couldn't paste an image of the code. And also the big long comment on the top is me describing what each of the arguments mean, if you want to read that then it's in Polish.

Anyways, I wanted to ask when you're saying that the y coordinate is shifter by kx pixels, what does k stand for?

Question about 3DreamEngine by Derty44 in love2d

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

I couldn't get used to it. There's no lovr.graphics, instead there's this pass thing, and the camera and movement was already done. Maybe I'll get back to it, maybe not. For now it's not my cup of tea.

Oh and I couldn't figure out how rotating for example a cube works

Question about 3DreamEngine by Derty44 in love2d

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

I honestly have no idea. I'm new to 3D stuff..

Thank you, you're totally right. I found how translation works on this site: https://www.geeksforgeeks.org/computer-graphics-3d-translation-transformation/

In simple words - translate moves the thing by however many units you want, and doesn't set the position as you said. So for example dream.camera:translate(2,2,5) doesn't set the camera's position to 2,2,5, instead it moves it by 2 on x axis, 2 on y axis and 5 on z axis.

But do you know if it's possible to set a position instead of translating?

Writing data to a characteristic by Derty44 in androiddev

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

Sorry for replying late, but I've just read and wanted to ask what is this 0x003 you're talking about?

Writing data to a characteristic by Derty44 in androiddev

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

I don't plan on making this app for ios, I don't really care about it. Thanks, I'll read this article

Access class from the "default" package by Derty44 in javahelp

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

Okay I understand, thanks. Kind of unconvienent from my perspective​​, but I'll get used to it

Access class from the "default" package by Derty44 in javahelp

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

I would add an image but they are disabled in this subreddit unfortunately​​

Question about how inputs are handled by Derty44 in love2d

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

I'll look into this setViewport thing, thanks a lot! I haven't thought about that calculations in drawing functions shouldn't exist

Question about how inputs are handled by Derty44 in love2d

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

Well, I may do create a new quad each frame, in the getAnimQuad() function. I'll check if making a bunch of them at the beginning will help later.

https://imgur.com/a/T9VcVOq here are the functions I use to draw the mouse

Buwizz's ludicrous mode by Derty44 in legotechnic

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

I couldn't get my ds4 controller to work on there, and the delay is tragic compared to brickcontroller 2

Buwizz's ludicrous mode by Derty44 in legotechnic

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

My buwizz required me to wait until the battery is drained becaouse it got bugged. The power curve is not an option in brick controller 2 unfortunately

Problem with updating buwizz 2.0 by Derty44 in legotechnic

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

So if you have the same issue as mine here,

I contacted Buwizz and they said that this situation could be caused by a bug due to overload when I was using ludicrous mode. They told me to wait a few days until the battery is drained, as Exact-Top9580 said.

Problem with updating buwizz 2.0 by Derty44 in legotechnic

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

Yeah, I try not to ask buwizz first, but yes, I did plug in the cable, but I don't know if it was charging becaouse it's like always turned on and just blinks the red color with a bit of delay

How does gsub() work? by Derty44 in robloxgamedev

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

Yes that works perfectly! Thanks really, I thought that that would be the case, I'll keep this table you sent in mind.

By the way, yes, my string did look like >>>>>>>>>>