empyreanx / gdnet Goto Github PK
View Code? Open in Web Editor NEWAn ENet wrapper for Godot.
License: MIT License
An ENet wrapper for Godot.
License: MIT License
I'm getting this error when trying to compile in godot 3:
Assembler messages:
Fatal error: can't create modules/gdnet/enet/packet.x11.tools.64.o: Permission denied
modules/gdnet/enet/packet.cpp:163:1: fatal error: error writing to -: Broken pipe
}
^
compilation terminated.
scons: *** [modules/gdnet/enet/packet.x11.tools.64.o] Error 1
scons: building terminated because of errors.
I am translating your module to Godot 3, so far I have been able to repair all the errors, however in this below I am not understanding how to fix. You who have more experience, could you help me?
[ 19%] Compiling ==> modules/gdnet/gdnet_event.cpp
In file included from core/method_bind.h:375:0,
from core/class_db.h:33,
from core/reference.h:33,
from modules/gdnet/gdnet_event.h:6,
from modules/gdnet/gdnet_event.cpp:3:
core/method_bind.gen.inc: In instantiation of 'void MethodBind0R<R>::ptrcall(Object*, const void**, void*) [with R = PoolVector<unsigned char>&]':
modules/gdnet/gdnet_event.cpp:34:1: required from here
core/method_bind.gen.inc:229:22: error: 'encode' is not a member of 'PtrToArg<PoolVector<unsigned char>&>'
PtrToArg<R>::encode( (instance->*method)() ,r_ret) ;
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/method_bind.gen.inc: In instantiation of 'void MethodBind0R<R>::ptrcall(Object*, const void**, void*) [with R = GDNetEvent::Type]':
modules/gdnet/gdnet_event.cpp:34:1: required from here
core/method_bind.gen.inc:229:22: error: 'encode' is not a member of 'PtrToArg<GDNetEvent::Type>'
scons: *** [modules/gdnet/gdnet_event.x11.tools.64.o] Error 1
scons: building terminated because of errors.
gdnet for Godot 3.0:
gdnet-godot-3.0.zip
Stacktrace:
modules/gdnet/gdnet_address.h:11:2: error: C++ requires a type specifier for all
declarations
OBJ_TYPE(GDNetAddress,Reference);
^
modules/gdnet/gdnet_address.cpp:6:2: error: use of undeclared identifier
'ObjectTypeDB'; did you mean 'ObjectDB'?
ObjectTypeDB::bind_method("set_host",&GDNetAddress::set_host);
^~~~~~~~~~~~
ObjectDB
core/object.h:719:7: note: 'ObjectDB' declared here
class ObjectDB {
^
modules/gdnet/gdnet_address.cpp:6:16: error: no member named 'bind_method' in
'ObjectDB'
ObjectTypeDB::bind_method("set_host",&GDNetAddress::set_host);
~~~~~~~~~~~~~~^
modules/gdnet/gdnet_address.cpp:7:2: error: use of undeclared identifier
'ObjectTypeDB'; did you mean 'ObjectDB'?
ObjectTypeDB::bind_method("get_host",&GDNetAddress::get_host);
^~~~~~~~~~~~
ObjectDB
core/object.h:719:7: note: 'ObjectDB' declared here
class ObjectDB {
^
modules/gdnet/gdnet_address.cpp:7:16: error: no member named 'bind_method' in
'ObjectDB'
ObjectTypeDB::bind_method("get_host",&GDNetAddress::get_host);
~~~~~~~~~~~~~~^
modules/gdnet/gdnet_address.cpp:9:2: error: use of undeclared identifier
'ObjectTypeDB'; did you mean 'ObjectDB'?
ObjectTypeDB::bind_method("set_port",&GDNetAddress::set_port);
^~~~~~~~~~~~
ObjectDB
core/object.h:719:7: note: 'ObjectDB' declared here
class ObjectDB {
^
modules/gdnet/gdnet_address.cpp:9:16: error: no member named 'bind_method' in
'ObjectDB'
ObjectTypeDB::bind_method("set_port",&GDNetAddress::set_port);
~~~~~~~~~~~~~~^
modules/gdnet/gdnet_address.cpp:10:2: error: use of undeclared identifier
'ObjectTypeDB'; did you mean 'ObjectDB'?
ObjectTypeDB::bind_method("get_port",&GDNetAddress::get_port);
^~~~~~~~~~~~
ObjectDB
core/object.h:719:7: note: 'ObjectDB' declared here
class ObjectDB {
^
modules/gdnet/gdnet_address.cpp:10:16: error: no member named 'bind_method' in
'ObjectDB'
ObjectTypeDB::bind_method("get_port",&GDNetAddress::get_port);
~~~~~~~~~~~~~~^
9 errors generated.
scons: *** [modules/gdnet/gdnet_address.osx.tools.64.o] Error 1
scons: building terminated because of errors.
When I try to compile gdnet in godot 3.3.3 I get following errors:
modules\gdnet3\register_types.cpp(22): error C3861: 'ERR_EXPLAIN': identifier not found
modules\gdnet3\gdnet_host.cpp(18): error C2039: 'create': is not a member of 'MutexImpl<std::recursive_mutex>'
C:\Godot\godot3.3.3\core/os/mutex.h(70): note: see declaration of 'MutexImpl<std::recursive_mutex>'
modules\gdnet3\gdnet_host.cpp(18): error C3861: 'create': identifier not found
modules\gdnet3\gdnet_host.cpp(19): error C2039: 'create': is not a member of 'MutexImpl<std::recursive_mutex>'
C:\Godot\godot3.3.3\core/os/mutex.h(70): note: see declaration of 'MutexImpl<std::recursive_mutex>'
scons: *** [modules\gdnet3\register_types.windows.opt.tools.64.obj] Error 2
modules\gdnet3\gdnet_host.cpp(19): error C3861: 'create': identifier not found
modules\gdnet3\gdnet_host.cpp(20): error C2039: 'create': is not a member of 'Thread'
C:\Godot\godot3.3.3\core/os/thread.h(43): note: see declaration of 'Thread'
modules\gdnet3\gdnet_host.cpp(20): error C3861: 'create': identifier not found
modules\gdnet3\gdnet_host.cpp(26): error C2660: 'Thread::wait_to_finish': function does not take 1 arguments
C:\Godot\godot3.3.3\core/os/thread.h(98): note: see declaration of 'Thread::wait_to_finish'
modules\gdnet3\gdnet_host.cpp(183): error C3861: 'ERR_EXPLAIN': identifier not found
modules\gdnet3\gdnet_host.cpp(218): error C3861: 'ERR_EXPLAIN': identifier not found
So far I find out that using ping
or disconnect
will freeze your process.
In case of ping
it's kind of understandable, but why when using disconnect
?
I suppose it will be required to use Threads in both options.
Also timeout time seem to be waaaay to high for the games. It usually takes over 10 seconds till the game realise that server/client disconnected (looking at enet.h it looks like timeout takes 5-30sec).
I think adding function for setting timeout time would be nice.
Hello, i'm a developper in the Godot team and was assigned to research Network API. I just realized this module exists, can you tell me about the current status of this module?
Using MinGW it works fine.
Using VisualStudio it can't find it.
In enet\SCSub
MinGW requires env.Append(LIBS=['ws2_32'])
VisualStudio requires env.Append(LINKFLAGS=["ws2_32.lib"])
instead of it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.