Forum Replies Created
-
AuthorPosts
-
Alright so more testing and more problems.
It seems UDP works over the net, at least for connecting.
But it can’t send any data.socket_recv error! err=10054, msg=Unknown error, socket=5668, data=0A60FF80, size=4
It seems connecting across the internet still doesn’t work, even when using SocketFlags.Passive
UPDATE: I’ve tried my own code and I’ve separated the example code into a server and client and it never works across the internet.
I’ve had friends try the server and client and connecting to each other online and it sadly never works.There seems to be some junk print messages when a socket is closed by just closing the application.
I keep getting stuff like:
‘socket_recv error! err=0, msg=No error, socket=5756, data=00BC656C, size=1’
It seems like it also does it sometimes even if the socket is closed correctly… hmm…I also can’t seem to be able to connect to myself over the internet.
I’m not using a router of any kind, so no DMZ to setup, I also have no firewall.
Using Listen( “”, 4012 )
Connecting to ‘localhost’ doesn’t work, ‘127.0.0.1’ doesn’t work, my own IP from the same computer doesn’t work.
It just timesout when I try to connect.
I’m running other servers on the computer, so it should be able to accept incoming connections.Easy to test with the ‘echoserver.monkey2’ example.
UPDATE: Okay so..
If you’re using a router you have to Listen( local_IP, port ) and then you can connect to your public IP.
If you’re hosting without a router, you have to do Listen( public_IP, port ) and connect to the public IP.
Listen( “”, port ) never works.And M2 doesn’t seem to be able to fetch your IP.
So a bit of an issue there.But when I’m not actually sending something, CanReceive and Read will be 0 even if they’re still connected?
UPDATE: I think I get it now, thanks Mark
But it would be very nice if there was a Connected property to check against.The Mac has ALT and CTRL, the CMD button is like our Windows Key.
But the shortcuts are not the same, for example our CTRL + C is CMD + C for them, even thought they have CTRL.
So it seems like CMD is mostly (not always?) used instead of CTRL.I’ve got a few Mac computers, but I’m not familiar enough with them to know what the shortcuts usually are.
I think it would really help if someone could just write up a list of all the Ted2Go keyboard shortcuts and then just fill in what each shortcut should be on Mac.
Maybe it’s just me, but I never use “Build” and always use “Build and Run”
I use ‘Build’ a lot.
I ‘Build’ the Server for my game, then run it externally.
Then I ‘Build & Run’ the game from inside Ted2Go.So to me, the shortcuts (on Windows) are perfect for building and running.
Okay good to know Mark!
Resize issue is still a problem though :/Hmm I’m unable to double click .exe files in the Project Tree now.
I have to right click and select “Open on Desktop” in order to open them.Thanks for the issue submit to Github.
I have loads of issues with DataBuffer.
For example, when using ‘server.ReceiveFrom’ with network sockets (seen in ‘banans/echoserver_udp’)Monkey12345If server.CanReceive>0 Thenbuffer=New DataBuffer( server.CanReceive+1 )server.ReceiveFrom( Varptr buffer, server.CanReceive, addr )Print buffer.PeekUByte( 0 )EndifI get this error:
MS DOS12345678910Memory access violation{{!DEBUG!}}>PeekUByte:Ubyte(offset:Int);G:/tools/Monkey2/modules/std/memory/databuffer.monkey2;118;9267912Self:std.memory.DataBuffer=@0159B65Coffset:Int=0>Main:Void();G:/code/monkey2/crawl/src/server/server.monkey2;28;135server:std.socket.Socket=@0008F58Cclients:std.collections.Map<std.socket.SocketAddress,Uint>=@0008F554addr:std.socket.SocketAddress=@0008F7E4buffer:std.memory.DataBuffer=@0159B65CThough I guess that could be a network socket issue and not a DataBuffer issue.
But it seems like whenever I use the DataBuffer, I run into some weird problem heh.You can drag it around outside of its own area.
And when you click on something in it, it should jump there
Something that’s always bugged me with the Monkey 2 logo is that the monkey is like the most basic monkey icon you can find heh.
If you Google ‘monkey icon’ similar ones show up multiple times.
Maybe “Jump to definition” and stuff like that should be under the right click menu too?
I guess the only thing right now that needs some polish is the CodeMap
Very nice new updates nero!
Super impressedI recently had a friend start using Monkey 2, and he’s bugged about this little problem:

The drop down menus can be placed outside of the screen.
Though that’s more of a MojoX issue, so perhaps that should really be addressed by Mark instead.Oh and btw, if you double click a ‘fold out arrow’ in something like the Project tree, the arrow icons bug out:

Ok, I will add your idea. If people consider it annoying – I revert it back.
Adding it as an option might be a good idea, that way everyone is happy
Current comment/uncomment shortcut will stay here too.
Sounds good!
Infact, I’d like that if you have text selected and pressed either ‘, “, [ or ( the selected text would be paired automatically
Instead of being replaced
Sublime Text 3 does that for example, and I use it all the timeI can’t reproduce. Please, try newest DEV version.
I’m on the very latest.
I think it’s related to the theme you’re using.The ‘comment block’ feature is really nice.
But I think a better way to do it would be to check if text is selected, and if the user types ‘ then comment that block, instead of CTRL + ‘I still think this needs to be implanted
-
AuthorPosts