« first day (2877 days earlier)      last day (2145 days later) » 

10:27 AM
@Tyyppi_77 That sounds sensible. I'd add to that, if a mob is in the middle of motion and a player comes in near it for the first time, send its previous position+timestamp immediately along with its current/upcoming position+timestamp (don't wait for a client request; the server already has enough information to know this is the first time the client is seeing the mob, and should determine the client needs that extra bit of information on its own)
@TheMattbat999 beautiful :D
 
user92578
@doppelgreener Oh yeah good point, no need for the server to send just the future position
 
10:46 AM
Actually it could just be a good general rule: whenever you tell a client where a mob is, if it is in motion, tell them where it was and what it's doing to perform the transition, plus timestamps. This means if a user's missed packets but they're still in the same spot, they get caught up on what's currently happening.
(that said, if someone's losing packets, they're always liable to see all kinds of weird stuff happening.)
 
 
2 hours later…
user92578
12:48 PM
 
user92578
Wanted to try out programming a platformer physics system with slopes
 
user92578
Works good otherwise but exiting slopes at top is broken and two adjacent slopes don't work either
 
nwp
2 adjacent slopes make a spike or a pit. You just die either way. Easy fix :P
 
user92578
no not adjacent like that
 
user92578
like in the image there are 3 adjacent ones that the player is currently on
 
user92578
1:02 PM
the player currently cannot move from one onto another
 
nwp
Can you just make them a single long slope?
 
I'm trying to remember if I implemented stuff like this in the platformer code I wrote way back when and how I handled it......
 
@Tyyppi_77 Well i think ... its working now :) Thanks a lot (Dammit ... it was honestly pretty hard to implement this :D ) !
 
I really need to dig out that physics code I wrote to share it
 
user92578
So currently I step solid tiles first, and handle collisions with them
 
1:05 PM
Does anyone knows a good "weapon-upgrade" formula for mmos ? Each level should be more expensive of course...
 
user92578
Then I simply see if the player is on a slope and calculate their Y position
 
user92578
@genaray Cool, happy to help
 
@Tyyppi_77 Oh!! So what's happening is your player tries to move right, then collides with the solid tile just behind the ramp.
 
user92578
yup exactly
 
user92578
not really sure what to do about that
 
1:06 PM
@Tyyppi_77 If the player is on a ramp, adjust their movement vector by 45 degrees.
Take the ramp's normal, use that to determine how far the movement vector is rotated.
 
Does anyone know where i could find somekind of formula for item upgrades ( weapons and co ? )
 
user92578
just make one up
 
never made one... honestly ... i have no idea how i should make one :P
 
mess around with whatever seems fun
 
user92578
figure out some values at some points and ask excel to fit a curve
 
1:17 PM
Well ok... im pretty lazy... but this should do it : baseCost + ((level + baseCost) x upgradeFactor)
 
nwp
Be careful that you end up with a game, not a math exam.
 
Usually these formulas are hidden though
you just see the upgrade costs etc
 
nwp
Having to calculate the most cost-effective upgrade is no fun (for normal people).
 
@Almo Thats right, but before i can show those costs... i need to calculate them, right ?
 
Many people disagree with you. I agree with you, but it's pretty common that people like this kind of min/maxing
 
nwp
1:25 PM
Sure, people love min-maxing, but they also hate having to get out their calculator.
 
You need to go play EVE :D
You'd LOVE it
It's even F2P now.
 
nwp
As that guy explained you want people to have choices and make decisions, not have them solve an optimization problem. He explained that in diablo 3 when you compare 2 items almost always one of them is better in every way, but figuring out which one is difficult and requires some annoying calculations.
People should decide if they want extra burn damage or freeze the enemy for some time, not calculate dps.
 
1:50 PM
hi
 
user92578
hey
 
how are you
 
nwp
@Almo Once apt-get install eve works I'll consider it.
 
user92578
doing good
 
@Tyyppi_77 what are you working on today?
 
1:52 PM
hey tyyppi
 
user92578
I'm fiddling with slope physics in a platformer and see where this takes me
 
@nwp Diablo 3 shows you the DPS
no need to calculate
 
@Tyyppi_77 Cool. What language
 
user92578
C++
 
user92578
works fine otherwise except for a few glitches
 
1:54 PM
Hmm does anyone know i could modify my formula to get even values ? (baseCost+((level * upgradeFactor)) ^2)
 
nwp
@Almo It does, but that's not enough. The problem is that the items add strength or whatever which changes the dps. Also strength scales with a logistic curve, so equipping an item with strength might mean you want to swap out another item that also gives strength. It gets really complicated.
 
@Tyyppi_77 What are they
 
user92578
at the ends of slopes the player is resolved outside of the slope collider, so it ends up switching between in the slope and off the slope collision resolving
 
nwp
@genaray add &~1 to the end :P
 
@nwp What ? :D Never saw this...
 
user92578
1:56 PM
aight I adjusted the collider size and now it works fine
 
cool
In order to understand recursion, one must first understand recursion :P
 
nwp
That's an infinite loop, not recursion.
 
:D
 
@nwp say you have a function called recursion and the only thing it did is call itself... well that kinda is an infinite loop
 
unless the function has an exit condition
recursion(n)
{
    if(n == 0) return
    recursion(n - 1)
}
 
nwp
2:03 PM
recursion(-1) //lol
 
that would still eventually stop
after the int flipped
 
Yup true
 
nwp
Unless you have a weird language like C or C++ where int overflow is undefined behavior.
 
@TheMaskedRebel no need to ping me if it's obvious you're responding to me
 
recursion(){ recursion()};
that is definitely infinite
 
nwp
2:06 PM
Fun fact: Such an infinite loop is also UB in C++, so a compiler can just skip it.
 
user92578
unless the compiler optimizer that away yeah
 
It's allowed to remove it because it's UB =p
 
nwp
But then again almo's code doesn't really look like C++.
 
it's pseudocode
 
I'm watching a tutorial about networking
 
nwp
2:09 PM
... on the network!!111
 
@TheMaskedRebel Got to go to events and parties.
 
:D
 
user92578
lol that's just UI programming so far
 
@Tyyppi_77 Skip to episode 11
 
nwp
2:15 PM
Be careful of youtube video tutorials. Most of them seem to be made by people with 2 weeks experience.
And if you are a beginner yourself you can't tell that most of the things they say is simply wrong.
 
@nwp do you have bad experience with the youtube tutorials
 
nwp
I can tell you that youtube videos on C++ that are from single people and not from conferences are utter garbage.
 
@nwp I'll advance that in some domains, even if you've been doing it for 5 years, you still might be doing it wrong, it's just that you or no one else noticed yet.
 
nwp
It may or may not carry over to whatever you are doing, but I would advice you to be picky when it comes to learning resources and try to find a reputable source.
 
@nwp I've watched the tutorial before
@AlexandreVaillancourt Thats exactly what I do... I optimize it later
 
2:18 PM
@nwp Or multiple sources.
 
user92578
That dude is all right, he just sort of has an habbit of dropping projects pretty quickly
 
user92578
I think I've seen him doing the same game engine tutorials for like 4 different times
 
@TheMaskedRebel What is it that you do?
 
@AlexandreVaillancourt I follow tutorials and then I modify it for my own means
the word it meaning the code
@nwp He just gave me a disclaimer that he didn't have much experience
on the topic
 
nwp
@TheMaskedRebel Listen to him and move on.
 
2:21 PM
3 mins ago, by The Masked Rebel
@nwp I've watched the tutorial before
 
nwp
Some people make these tutorials in order to learn the topic, not to teach. Good for them, bad for you.
 
@TheMaskedRebel Yeah, that's what tutorials are for :)
@nwp Did you ever watched videos on lynda.com?
 
nwp
No, never heard of.
 
0
Q: How to find the degree of interpolation?

MY_GI have two quaternions: A and B. I want to lerp between them. Given another quaternion C, I want to find the variable unknown, as seen in the equation below: Quaternion.Lerp(A, B, unknown) == C (Unfortunately, the equation above is misleading. In the scenario that C is "out of range" -- i.e. ...

 
2:28 PM
@nwp You never heard of Lynda.com?
 
nwp
Right.
 
I really don't understand that lerp question.
 
Oh! Ok! That's a big-ish website offering video trainings. It now belongs to LinkedIn.
 
Oh, wait, maybe... [writes comment]
 
nwp
@AlexandreVaillancourt So basically youtube except you have to pay for the content? That doesn't seem like something I would want.
Youtube has plenty of good content already. I'm still behind on cppcon videos.
2
And arguably no matter what training videos they have they will not beat the big conferences.
 
2:32 PM
The difference is that courses are complete on lynda.com, and are generally made by "professional" :)
But that answers my question :) I don't know exactly what I think about free VS pay courses...
 
nwp
@nwp Arguably that is only true for people with years of experience. If you are new to C++ watching cppcon videos will not help you, so there is a chance that lynda.com solves a real problem that is worth paying for.
 
@nwp I guess it depends on the topic, yes.
 
@AlexandreVaillancourt Do they do game dev
 
@TheMaskedRebel I've seen some about it, yes. I don't remember what it was about though.
I never liked videos where they code.
 
@nwp It really depends on what you are looking for. Some people might want the conferences or some people might want youtube.
 
nwp
2:40 PM
@TheMaskedRebel Unless you are attending those are the same thing.
(That could have been phrased better but I hope you get what I meant)
 
2:55 PM
@doppelgreener thanks!
 
3:06 PM
@TheMattbat999 what kinda game are you making
 
3:18 PM
@TheMaskedRebel a 3d (ish) retro styled RPG that takes place on a fantasy group of islands during the medieval era.
 
@TheMattbat999 What language are you using
 
Think The Elder Scrolls: Arena or DOOM for the graphical sytle
@TheMaskedRebel C#, with the Unity Engine.
 
@TheMattbat999 can I have the game
 
@TheMaskedRebel ?
 
@TheMattbat999 Is it on an open source repository
 
3:30 PM
@TheMaskedRebel no.
I wanna have it at least half-way done before letting anyone actually play it. Plus, I wanna sell it when I am done, so going open source would be bad.
 
@nwp In java I had to actually write a manual function for checking weather an object is odd or even
 
user92578
@TheMaskedRebel what
 
2 hours ago, by nwp
@genaray add &~1 to the end :P
 
user92578
that performs a bitwise and with every bit set to 1 except the ones place
 
@Tyyppi_77 I am listening to the tutorial in the background
 
user92578
3:41 PM
okay?
 
user92578
we have the pop up, you dont need to paste in new questions
 
@TheMaskedRebel That's the best way to slow down your own work and don't get what's being explained in the tutorial :)
 
not to mention I should be studying :P
 
user92578
at this time of the year?
 
Grade school and high school ends this week here, not sure about TheMaskedRebel's situation though.
 
3:49 PM
@AlexandreVaillancourt I'm in england
 
@TheMaskedRebel There is no need to comment that you edited the post. The post owner will get a notification, and it will enter the suggested edit review queue so that others will be able to approve it.
@TheMaskedRebel Heh we've all been there :P
 
Does anyone here have any experience with networking
 
nwp
@TheMaskedRebel According to this documentation it should work in Java as I wrote it.
 
@AlexandreVaillancourt did you make this?
 
@TheMaskedRebel I don't understand the question? It says it's been released by IGDA, and it's from Ryan Morrison.
 
4:02 PM
I've just crashed my laptop
with an infinite size on my window
@nwp If I do that I doubt that I would ever find a good tutorial
Click, start, code
that's a bot
 
My café's meal deal charges £4.95 for an apple
 
user92578
:)
 
@doppelgreener get wallet out. Wallet looks at prices. Wallet dies
 
nwp
You should break into the place at night and add parenthesis.
Also good luck explaining to a police officer or judge what you were doing in case you get caught.
 
good idea
@nwp this is very important, i'm sure they'll understand
 
nwp
4:15 PM
"As the first piece of evidence let me show you this operator precedence table..."
 
"Next, lemme show you my dead wallet due to your insane prices..."
 
hi @Jimmy
 
howdy
 
Howdy
 
hmmm. In your part of the world, does "howdy" rhyme with "daddy"?
 
4:29 PM
Kinda, now I think about it.
(I am in good ole' Mississippi)
 
43 mins ago, by The Masked Rebel
Does anyone here have any experience with networking
I would like to ask them some questions about networking
 
nwp
Don't ask such questions.
 
just ask the question on networking
 
How do I make the program to connect over computers on wifi.
 
what does that mean
do you want to connect a new device over wifi
 
4:39 PM
how do I make the program span mutliple computers
 
or do you want to make a program that communicates with another program on another computer on the same Wifi network
 
@Jimmy Yup
 
hmmm
what language
 
nwp
That is the responsibility of network protocols such as IP.
 
@Jimmy java.
 
4:41 PM
you may want a higher level networking library to do this
 
@Jimmy But how do I do it
 
but sticking to the basics, you can enumerate your computer's addresses
 
@Jimmy ?
 
Aannnnddd the conversation just flew straight over my head.
 
@TheMattbat999 networking
 
@TheMaskedRebel have you looked at oracle's documentation for networking with Java?
 
nwp
You could look up the OSI model but you probably just want to open a socket for listening on one computer and another to connect with the other computer and you can send data across the network.
 
and then, as a slightly naive/dumb method, just try pinging all the other IPs in your subnet
and connecting to them on a port your application listens on
otherwise, there's stuff like upnp that helps you register things on a network to be found
 
nwp
nmap helps with finding services, but normally you don't want that because you can't really do much with an unknown service. You should instead know the service and connect to that, and if it isn't there then it isn't there.
 
yeah, nmap is weapons-grade "pinging everything on your network", hopefully your app doesn't need to do that
 
4:48 PM
thanks for the help
I need to leave this chat
 
@Jimmy thanks, now I want to build an nmap enrichment facility
 
Come to think of it, it would be awesome if I could refactor my code via centrifuge.
 
here's all the unsecured webcam feeds on the internet
oh wait, most of those are secured now
I saw a SHODAN query a while back to find actual CCTV feeds
 
Been a while since I poked at that; haven't seen that particular site. I think I was using insecam.org
 
nwp
4:55 PM
Those people should be severely fined (the ones who own the cameras).
 
yeah shodan is more just "nmap the internet" -- you have to figure out the search parameters yourself if you want to find particular things
 
ah, makes sense
I've seen similar distilled maps for unsecured wifi.
back when wardriving was still a thing.
 
yeah the wardriving maps are less easy to just build centrally, unless you have Google's resources
 
@TheMaskedRebel I knew the topic, but everything else that followed is what flew over.
 
user92578
5:10 PM
 
user92578
trying out some tiles, not a huge fan of these tbh
 
it looks not as isometric as the last screen I saw
new prototype?
 
user92578
yeah I wanted to mess with slopes
 
@Tyyppi_77 what don't you like about them?
 
user92578
I guess they just dont inspire me
 
5:16 PM
the 45° is a bit sharp - does the code support other angles?
 
user92578
not currently no
 
Maybe browse some sloped tilesets for inspiration? Super Mario World used 3 different angles.
Of course posting an image is easier than updating the engine to support them.
A different approach would be to just free hand something that looks interesting & then see how little you could get by with to implement it.
 
user92578
5:37 PM
I'll sleep on this and see what tomorrow brings :)
 
Don't sleep on that, they look uncomfortable
 
6:03 PM
Yay! Added a real day-night cycle to my game!
 
Hooray!
 
Now working on a ranger-styled enemy....
 

« first day (2877 days earlier)      last day (2145 days later) »