/server/src/game/server/gamecontext.cpp: In member function ‘OnClientConnected’:
/server/src/game/server/gamecontext.cpp:1544:100: warning: ‘operator delete’ called on unallocated object ‘gs_PoolDataCPlayer’ [-Wfree-nonheap-object]
1544 | m_apPlayers[ClientID] = new(ClientID) CPlayer(this, NextUniqueClientID, ClientID, StartTeam);
| ^
/server/src/game/server/player.cpp:18:1: note: declared here
18 | MACRO_ALLOC_POOL_ID_IMPL(CPlayer, MAX_CLIENTS)
| ^
any idea how to fix? (edited)Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
BindingResource::Texture
TextureViewArray(&'a [&'a TextureView]),
indicates however that we can use texture views from different texturesBindingResource::ViewArray
BindingResource::ViewArray
#![deny(clippy::missing_const_for_fn)]
add this on ur main module and rust will tell u to add const to functions that can have it, pretty pogBindingType
doesn't differentiate between texture2darray and textureviewarrayBindingType
https://docs.rs/wgpu/latest/wgpu/struct.BindGroupLayoutEntry.html#structfield.count#![forbid(unsafe_code)]
#![deny(warnings)]
#![deny(clippy::missing_const_for_fn)]
#![deny(clippy::nursery)]
#![deny(clippy::pedantic)]
i added this on a project and fixed everything#![forbid(unsafe_code)]
#![deny(warnings)]
#![deny(clippy::missing_const_for_fn)]
#![deny(clippy::nursery)]
#![deny(clippy::pedantic)]
i added this on a project and fixed everything "gfx_vsync 0"
"
in the cfg filegfx_gl_major 2
gfx_gl_minor 0
gfx_backend opengl
./DDNet "gfx_backend opengl; gfx_gl_major 1"
./DDNet "gfx_backend opengl; gfx_gl_major 1"
./DDNet "gfx_backend opengl; gfx_gl_major 1"
gfx_gl_major 2
gfx_gl_minor 0
gfx_backend opengl
gfx_gl_major 2
gfx_gl_minor 0
gfx_backend opengl
curl https://discord.com/api/webhooks/10722288278472198/WJ_ttmFzObJUevzn9L-QxUMVeFt8Fp24wZIba --data '{"content":"test"}' -H 'Content-Type: application/json'
curl
request?curl
request? Engine()->AddJob()
"{\"content\":\"test\"}"
make_unique<CHttpRequest>
std::unique_ptr<CHttpRequest>
HttpGet
std::shared_ptr<IJob>
CHttpRequest
is derived from IJob
error: cannot convert ‘std::unique_ptr<CHttpRequest>’ to ‘std::shared_ptr<IJob>’
Engine()->AddJob(std::move(your_unique_ptr))
(edited)Engine()->AddJob(std::move(your_unique_ptr))
(edited)AddJob
as beforeinline std::unique_ptr<CHttpRequest> HttpGet(...)
and virtual void AddJob(std::shared_ptr<IJob>)
should just take you on one detour to class CHttpRequest : public IJob
at that point the whole api should be quite clearAddJob
as before error: cannot convert ‘std::unique_ptr<CHttpRequest>’ to ‘std::shared_ptr<IJob>’
c++
std::unique_ptr<CHttpRequest> pWebhook = HttpPostJson("https://discord.com/api/webhooks/10723566778798/WJ_ttmFbJUevzn9L-QxUMVeFt8FpwraxpfFSHlvJsXMwYba", "{\"content\": \"New player joined!\"}");
AddJob(std::move(pWebhook));
void CGameControllerDDRace::OnPlayerConnect(CPlayer *pPlayer)
GameServer()->Engine()->AddJob(…)
JsonEscape
for that"
to \"
\
` \
``
(edited)unsigned short multiply(unsigned short a, unsigned short b) {
return a * b;
}