|
Post by TinSoldier on Feb 14, 2017 0:03:35 GMT
I've created a number of versions of jestmons original chat script over the years.
At some point in the past i had a version with key repeat & multi-lines ( 4 lines, 96 characters total, prevents chat text from spanning across the whole screen) per entry before sending, and added the network ID number & text fading as well.
Considered it finished, then went on to other parts of the project, in the process, lost this original version.
Came across it 4 days ago, decided to add a few adjustments, had it done i thought, compiled it and tested it as a chat only network project..
Well damn, it wasn't working as expected, client chat text wasn't showing up on other clients screen. Spent days trying to figure out what was wrong till it donned on me...
This script version was designed wrong, but only showed the problem when used in a network project. ( always test, test, & test again )
So anyway.. it turns out, to get this to work properly, clients chat text should only be sent to the server, and the server should send that out to all machines.
All machines need to receive the text chat and print it, problem solved..
You see i was printing all client chat locally and sending it to the server, but the server wasn't sending the received text out to other clients.. the servers chat was also printing locally on screen and sending only its own text to all clients.
If i've lost you, not to worry..
I will share the finished networked chat project for all to use just as soon as i fix it, i know how to fix it, and have done that to other versions.. i just need to do it, but i'm going to stay with this version cause other then this little F***up, it works as i wanted & has all the features i want as well.
|
|
|
Post by sbdjazz on Feb 15, 2017 19:12:56 GMT
Dude I was planning on using a chat script in my game. Good luck, wish to see script through.
|
|
|
Post by Famer on Feb 16, 2017 17:28:54 GMT
That's gonna help a lot of people...
|
|
|
Post by TinSoldier on Feb 17, 2017 22:42:10 GMT
dl.dropbox.com/s/6vbr8q3kxq71p6h/Chat%20Only%20%26%20network.3dr?dl=1First off, if your planning to HOST ( Server) you must have access to your router or internet device were port forwarding is defined. see: portforward.com/ for detailed how-to info for just about ever internet device on the planet, all for free. Port forwarding is almost always required if a firewall and/or more than one device is connected to your internet device. This allows incoming project data to be directed to the proper server machine IP behind the firewall ie(193.168.1.5:2224). The forwarded port allows 2 or more servers of the same project to run on the same machine, each with the same IP but different forwarded port numbers ( both port numbers need forwarding in that case). In the server project, you MUST update the port you forward for that project. As well you'll probably also want to change the project name for the host/server. To test this project on your computer, just run the project 3 times, one as a host/server and 1 or more started as clients, then type away to see the chat on all screens. In the client and server projects you'll see some script used to read and write a file called "_info.txt", this was designed to discover your server IP and print it onscreen for easy reference. This can be ignored. It shouldn't cause any problems, but hasn't been tested under win10. you may need to remove the camchase and or exitfade objects, if you remove the exit fade, be sure to update the script to not run it, which is referenced as OBJ_88 i believe, by adding "//" in front of the StartObject(OBJ_88); line. Also i suggest running the project in windowed mode the first time because you should get a firewall popup requesting internet access for the program ( which is required). This project is best used if you "merge" it with your current project, if used any other way, you'll have to do some project edits, maybe removing any networking script you already have. If i missed something, you know where to find me. DISCLAIMER: Should your computer burst into flames, move away quickly
|
|
hawk
Full Member
Posts: 69
|
Post by hawk on Feb 22, 2017 4:23:09 GMT
Hello TinSolider,
I've been meaning to ask if the client machines also need to be portforwarded? Cause recently I tried the netball arena with a friend who's IP and port for the default netball arena server was setup for port forwarding. I myself wasn't setup but just tried connecting to his server from my machine. I couldn't see his game despite typing in the correct details, Is there anything else that needs to be done?
And back to the main topic, this chat script sounds awesome. hoping to see it in action sometime.
|
|
|
Post by TinSoldier on Feb 22, 2017 7:14:41 GMT
Not that i'm aware of, clients work very much like your web browser would, and don't require port forwarding, they connect to internet servers and request data which gets sent back to them. That's actually a good question, and something i've never had to test out because i pretty much assume i will host any server project i create, at least for testing, so i always port forward and use the same port for all my 3drad server projects. When ports are forwarded, any traffic, even if not 3drad based coming into that forwarded port are redirected to the defined machine, this is why you need to use an unused port for your 3drad server projects ( this may not be a requirement ) but with 65,535 ports ( minus the first 3k used by default for system things ) why not use specific ports. PS You can as i mentioned, run three copies of the chat program on the same machine ( 1 ran as the server, the others as clients ) and all will work as designed for testing, without port forwarding required, because no traffic actually goes out over the internet.. You will still get the firewall popup requesting internet access because the projects are starting networking routines to access the internet / network. As too your specific issue hawk i cant say what the specific issue there was cause i wasnt involded with the server of the game.. you say all info was correct and the server had port forwarding setup, but it still didnt work..... this pretty much says something was wrong or overlooked , 3drads netwoking does work and i have run the netball project as a server and it works fines too, sooooo ... Check check and check again all settings.. PS if anyone wants i can setup my chat program as the server for you guys to play with and test out, it would be setup on my second machine and may or may not catch my attention or i could even be in bed sleeping, but the project will allow 255 people to connect and chat interactively . Just say so, and i'll set it up and let you know when its ready and any details required to connect... PS i had planned to add some chat filtering ( would allow any chatters text to be filtered ), started to add that feature, but figured i'll save that for an update maybe down the road, or not at all, also thought about adding specific private chatting, ( chatting between specific people or groups of people) , again maybe a future update or not at all.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jun 21, 2017 17:11:08 GMT
Couldnt Download your dropbox link,
|
|
|
Post by TinSoldier on Jun 22, 2017 0:10:30 GMT
haha @neonstudios yeah thats correct.. The issue is.. i got an email from dropbox saying the extra 49G of free storage space was expiring in a month or 2, i kinda panicked thinking i mite loose some of my uploaded files. So to be safe, i copied all files localy out of my dropbox space, till they do their thing and remove the extra space. Once thats done, i'll put back all my files... Turns out i was all panicky for nothing, cause all total i onlt used 49Mb of space, no where near 49G THANKGOD Apparently dropbox gave some samsung users the extra 49G as a promotional thing, now it's expiring unless you upgrade to a paid dropbox account. Basically what i consider to be a bate & switch process, give people a whole bunch of space for free, then force them to pay or switch to another service... Kind of like your email provider, giving out free emails for 5 years, then announcing that the free email service was ending due to financial company issues, but it you upgrade to a paid account, you wont loose your free emails. I HAD THIS HAPPEN. What a pain in the AS* to run around updating with new emails... after 5 years worth of usage .. they pretty much have most people by the Ba**s, not me buddy, i changed to a new service, which also forced me to loose one specific email, that some unscrupulous website sold to spam companies... interesting now, i don't even get spam anymore
|
|
|
Post by TinSoldier on Jun 22, 2017 5:50:13 GMT
I should add, i don't even get spam anymore, fingers crossed, toes crossed, salt over shoulder, knock on wood 3 times.
|
|
|
Post by TinSoldier on Jul 31, 2017 4:42:40 GMT
@neonstudios My dropbox files have been restored, you can download what ever you were trying to get before.
|
|