[QUOTE=Fourier;47534183]I get called genious so fucking often that I have started doubt the people. I am just guy with creativity.[/QUOTE]
I think all of our loved ones / family members call us geniuses.
[QUOTE=AntonioR;47532524]I finished the "Soldat meets Quake 2" prototype that I planed to make and made a video. The first part shows networking and multiplayer using SDL_net over TCP. Other players are "replay" bots that don't have AI, those players just read my stored input commands to move around and send it to server, so I could record the video. The other half starts at 1:30 and shows a local "bot" match on single screen. One day I may write some AI. You can read more about it on my blog, and download and try it out. Any feedback would be great, because I have no one to test this.
[url]http://antonior-software.blogspot.com/2015/04/sdl-networking-and-multiplayer-test.html[/url]
I have a problem with online play. I didn't manage to connect a client to a server over Internet using the servers public IP. Only clients that are on the same network can connect using servers local IP (192.168.x.x). I don't know what is the problem, because I did port forwarding and it didn't help.
I would appreciate if someone who is more familiar with hosting a online multiplayer game, setting their routers and firewalls and stuff, could try to host a game and try to connect to it using public IP.
Also if someone has experience with SDL_net, here is some code, I marked where it fails, though I still think the problem is my router or some firewall setting:
[url]www.pastebin.com/3cdNPFxZ[/url][/QUOTE]
You need NAT punchthrough to connect to other public IP addresses because the computer hosting the server probably is behind its own DHCP, so the IP address isn't actually resolving correctly as you're sending packets to the router/modem but not the actual computer running the server.
[url=http://en.wikipedia.org/wiki/Impostor_syndrome]Impostor syndrome[/url].
[editline]15th April 2015[/editline]
I find it's very helpful to take a step back and look at what I've made and say, "That's me. I did that," and realize how much work and knowledge and creativity and just all around awesomeness it took to make what I just made.
Do it.
[editline]15th April 2015[/editline]
Not many people can understand [i]half[/i] of what we do, let alone be able to perform it.
[QUOTE=FalconKrunch;47534384]You need NAT punchthrough to connect to other public IP addresses because the computer hosting the server probably is behind its own DHCP, so the IP address isn't actually resolving correctly as you're sending packets to the router/modem but not the actual computer running the server.[/QUOTE]
WTF is port forwarding good for then ? I'm new to all this and a bit overwhelmed :( This weird improvised NAT hack thing seems to work over UDP and requires a public master server, well I don't have that...
[QUOTE=AntonioR;47534707]WTF is port forwarding good for then ? I'm new to all this and a bit overwhelmed :( This weird improvised NAT hack thing seems to work over UDP and requires a public master server, well I don't have that...[/QUOTE]
Port forwarding is for receiving and sending packets to a server with a public IP address, but it doesn't work if two people behind a NAT'ed router want to talk to each other.
So what you need is a server that keeps track of the public IP address of the server, if you don't, it's lost in the network because of the NAT stuff.
Afterwards both clients know the public IP addresses of each other, and you can communicate directly, but you need the initial setup to configure the routing tables correctly.
This guy can explain it way better than I can.
[url]https://keithjohnston.wordpress.com/2014/02/17/nat-punch-through-for-multiplayer-games/[/url]
Truth be told I don't really have experience with this as it's all just a huge pain in the ass and I can't be bothered to reinvent the wheel.
[video=youtube;Y84D8dSuqNE]http://www.youtube.com/watch?v=Y84D8dSuqNE&feature=youtu.be[/video]
Anyway to make OBS not look like shit?
As far as I can tell, if you're using SDL_net you might as well use BSD sockets and Winsock. I don't see what it's helping you with.
SDL_net requires you to basically know BSD sockets to begin with? wtf?
[QUOTE=2sp00ky;47535137]
Anyway to make OBS not look like shit?[/QUOTE]
Improve your encoding settings? Usually a higher bitrate does the trick, you can always re-encode later if you need a smaller filesize. I also usually set my preset to 'higher' and then lower it until it stops dropping frames, then use the setting below that just to be safe. Once you play around with that stuff it can capture quite excellent quality.
[QUOTE=2sp00ky;47535137][video=youtube;Y84D8dSuqNE]http://www.youtube.com/watch?v=Y84D8dSuqNE&feature=youtu.be[/video]
Anyway to make OBS not look like shit?[/QUOTE]
Put the bitrate on 20000+ instead of what the default is
So it appears web applications as microservices is a thing. I was really fascinated when I encountered it in a live production and I've decided to try and build one myself. I think I'll use Python for it, but can't decide on which web server/framework. Any suggestions? If anyone has experience with microservices, I'd love to hear how you do it in regards to authentication, application etc. I guess there is some kind of token system involved.
Microservices are sort of misnomers: a single microservice is widely worthless, and depends on a number of existing microservices to provide a functional web application.
You can use Flask or any flavor of Sinatra-esque microframework to power a microservice, and have several services intercommunicate.
[editline]15th April 2015[/editline]
It's all development. I don't see why we can't merge the two WAYWOs.
[editline]15th April 2015[/editline]
If I work on something in C# and want to share my background process code, where do I post? Do I post in webdev's WAYWO? But it's not front-end code. Do I post in programming's WAYWO? But it's webdev related.
Clearly the answer is to look at both threads as existing microservices, and post to neither because there's no marshaling microservice that would decide which thread got the post.
Not sure if this is off-topic, but i've just been playing around with some sorting algorithms and such (trying to apply my CS degree in some kind of artistic way) and found this guy's portfolio:
[url]http://bl.ocks.org/mbostock[/url]
How on earth does anyone produce that much content D:
[QUOTE=andrewmcwatters;47535506]Microservices are sort of misnomers: a single microservice is widely worthless, and depends on a number of existing microservices to provide a functional web application.
You can use Flask or any flavor of Sinatra-esque microframework to power a microservice, and have several services intercommunicate.
[editline]15th April 2015[/editline]
It's all development. I don't see why we can't merge the two WAYWOs.[/QUOTE]
Yeah, I get that, but a project like this is probably more useful and productive than me keeping writing half-write bots and hacks, and I think it will be a nice challenge. Will look into those tho, thanks.
Also, yeah I know about the help thread, but I'm not a beginner (programming wise) and I generally lurk here, and I would guess this thread is more active, so I figured it was fine. Worst case you just ignore my message. Sorry if I stepped on any toes though.
[QUOTE=Occlusion;47535533]How on earth does anyone produce that much content D:[/QUOTE]
A lot of common code and obsession with graphs. I have a particular affinity for his search blocks, after having found out how fun they are to implement in games.
Ziks added car colours and I fucked around with steering animations.
[vid]http://files.facepunch.com/layla/2015/April/16/2015-04-16_01-18-23.mp4[/vid]
[QUOTE=layla;47535923]Ziks added car colours and I fucked around with steering animations.[/QUOTE]
this makes me relive those frustrating moments in SA when one of the car doors wouldn't close all the way
Went back to my old space game project (pretty much my first project).
Saw lots of shit that was wrong. LOTS OF SHIT.
Basically, a lot of my classes were retarded singletons, where every method and field was static. So I spent around 2 hours and 30 minutes fixing everything, and making everything nice and object oriented.
[quote]Overhauled a few classes
- Made a few minor optimizations
- Overhauled Screen, Action, and more classes to be treated
appropriately as objects. These classes make much more sense now, and
this game is much more object oriented.[/quote]
[quote][B]Showing 24 changed files with 784 additions and 800 deletions.[/B][/quote]
I can't believe the game still functions after the changes (albeit I had to fix a few things after the initial changes, but still).
Link to the commit:
[url]https://github.com/Tetramputechture/Corraticca/commit/d7c22af0a4f694ce6aa6a485f534d285fd9bee21[/url]
[img]http://i.imgur.com/q2iHjzO.png[/img]
[QUOTE]Went back to my old space game project (pretty much my first project).
Saw lots of shit that was wrong. LOTS OF SHIT.[/QUOTE]
You think the code you write is bad, I just dug up this gem I wrote 6 months ago...
[CODE]
if (!other.isTower() && !other.isDepot()){
if ((!flying && clsMainProgram.program.gameunitmanager.isWalkable(x +clsMainProgram.program.timerDifference*(distance<1?(Math.random()*2-1)*4:(((x-otherx)==0)?1:(x-otherx)/(distance))*(Math.abs(xspeed)*((size/2+othersize/2)/distance))), y +clsMainProgram.program.timerDifference*(distance<1?(Math.random()*2-1)*4:(((y-othery)==0)?1:(y-othery)/(distance))*(Math.abs(yspeed)*((size/2+othersize/2)/distance))))
&& !other.isFlying()) ||
(flying && slow_on_approaching_goal && other.isFlying() && other.getMaxSpeed() < 3) || (x == otherx && y == othery)){//&& //move units outside other units.
//((givenVelocity() > 3 || Math.abs(other.goalx() - goalx) < othersize && Math.abs(other.goaly() - goaly) < othersize) || slow_on_approaching_goal))){
double tempx = x;
double tempy = y;
try{
this.x = x +clsMainProgram.program.timerDifference*(distance<1?(Math.random()*2-1)*4:(((x-otherx)==0)?1:(x-otherx)/(distance))*(Math.abs(xspeed)*((size/2+othersize/2)/distance)));
this.y = y +clsMainProgram.program.timerDifference*(distance<1?(Math.random()*2-1)*4:(((y-othery)==0)?1:(y-othery)/(distance))*(Math.abs(yspeed)*((size/2+othersize/2)/distance)));
blocked = true;
collided = true;
}catch (Exception e)
{
x = tempx;
y = tempy;
collided = true;
blocked = true;
clsMainProgram.printStackTrace(e);
}
}
}[/CODE]
jesus christ
[QUOTE=Xystus234;47536617]You think the code you write is bad, I wrote this just 6 months ago and just dug it up recently...
--mother of GOD--
jesus christ[/QUOTE]
I was not expecting to projectile vomit tonight...
[QUOTE=RickDork;47536979]Super chaotic bullet hell [/QUOTE]
No offense... but is it fun to play this game? I like bullet hells but its so crazy and hard to read that I can't imagine enjoying it, but maybe I am not hardcore enough.
[QUOTE=Socram;47537071]No offense... but is it fun to play this game?[/QUOTE]
I can confirm that it is not.
I've been thinking about doing a series of tutorial videos for people who want to learn Rant, but are visual learners like me who hate learning from just documentation. Would anyone be interested in such a thing?
I could probably make it somewhat entertaining...
For various reasons, GTA5 PC stores Snapmatic images in a custom binary format. So I made a tool that extracts the JPEG image. Have some [URL="https://bitbucket.org/WillKirkby/photomatic/src"]source[/URL] and [URL="https://bitbucket.org/WillKirkby/photomatic/downloads"]executable[/URL]. :)
[QUOTE=layla;47535923]Ziks added car colours and I fucked around with steering animations.
[/QUOTE]
WAYWO's favorite couple.
[QUOTE=Berkin;47537291]I've been thinking about doing a series of tutorial videos for people who want to learn Rant, but are visual learners like me who hate learning from just documentation. Would anyone be interested in such a thing?
I could probably make it somewhat entertaining...[/QUOTE]
It's good idea, if you want to make Rant more popular :).
[editline]16th April 2015[/editline]
Btw, random though, Rant could be used for dictionary attack right?
So I'm trying to work with the API of our national railway network infrastructure caretaker in The Netherlands as a side project because I don't learn shit in college.
I wrote an HttpHelper and XMLHelper to unzip .kmz files that are returned after making a GET request. Then I read through the entire .kml file and store the coordinates in my own datatypes. I could have used some kind of big library for displaying all ArcGIS layers on a JavaFX map or something, but I'm just interested in the actual paths.
[url=http://i.imgur.com/VDKTuQg.jpg][img]http://i.imgur.com/Wd6uiTY.png[/img][/url]
Here you see exactly a 1000 points plotted on Google Maps, I'm still trying to figure out how to get different data sets.
[url=http://i.imgur.com/WGgbM1Y.png][img]http://i.imgur.com/Rlzq4Ua.png[/img][/url]
I'm very happy with the accuracy, so hats of to them:)
[b]Edit:[/b] Oh and these points are not stored individually but in relation to eachother, so I know exactly to which track they belong. I only have to find another way to display them in Google Maps. Now I just copy pasted a string representation in [url=http://www.darrinward.com/lat-long/]this[/url] map tool :v:
[QUOTE=Darwin226;47537720]WAYWO's favorite couple.[/QUOTE]
Hopefully some day we all find love like that.
[QUOTE=FalconKrunch;47535013]Port forwarding is for receiving and sending packets to a server with a public IP address, but it doesn't work if two people behind a NAT'ed router want to talk to each other.[/QUOTE]
Yes it does, just the server host has to port forward. When the client sends packets, the port forward routes them to the server computer and when the server computer replies to the address the packet came trough, NAT punchtrough allows the packets to reach the sending computer, aka the client.
Sorry, you need to Log In to post a reply to this thread.