« first day (2152 days earlier)      last day (2858 days later) » 

Sie
2:00 PM
I don't mind hard games but I hate games with artificial difficulty.
 
hehe
 
D3 is a very delicious juicy game. It punches your face with fun-packed hammer each moment when you start the game. Then you progress... Then you progres even more... Then it stops... Stops slowly... then no more of that kick feeling.
 
Sie
I assume you guys are talking about Diablo? I never got into it.
 
i haven't played D3 since they retooled the whole difficulty curve and shit
you know the LoL mac client is still "beta" after over 3 years?
 
@sn0k3 I decided to read your java anyways -_- the error is actually quite obvious.
 
2:02 PM
it's in java
;)
 
Sie
Better than linux support I bet @Almo.
 
hahah yeah
 
@sn0k3 Hint: You go 3 loop levels deep but you think you are only going 2.
Classic java mistake.
I guess it's normal Java design to process the entire file, take one result, and throw away the rest of the processed data. And it's obviously normal Java style to do that heavy operation once for each entry in the file, instead of getting them all at once.
In fact, I think the program is already perfect Java. If you made it actually output a correct result in all cases that would be taboo in a Java world. It should work for a single line just fine, Java users can run the function for each line separately and then merge the results with an instance of a ListMergerFactoryAgentNegotiator after creating a new GenericMergerFactory and configuring it to be a List Merger, and then creating an ListMergerAgent for each processor
 
if Oracle offered you $1,000,000 to become a Java evangelist for a couple of years, would you take it?
 
I think I would
then I oculd open my game studio
 
2:14 PM
@sn0k3 because for each line on your file you overwrite the matrix with the values from the line read currently. last line read is 6,7,8 so you matrix at the end of your loop is

6,7,8
6,7,8
6,7,8
6,7,8

and levelFile[0][0] will be always 6
 
Sie
@ChrisMcFarland What if I have no idea what I'm doing?
 
as long as you only sing praise, no hate lol
 
Sie
On second thought...
 
yeah exactly chris
 
or would the hatred that burns through you currently stand in your way >:D
 
2:20 PM
I don't hate Java so badly. I don't really like it, but I don't hate it. :)
 
@ChrisMcFarland I don't know, a million dollars makes it harder, but I visited an oracle office some miles away and I got word from larry ellison himself that I have a job waiting and they would put me through whatever degrees are required for it
I turned it down
 
@MickLH you could give your contribute toimprove java as you please :)
 
"shut it down"
all Blu-ray players use Java eh
 
do they?
 
2:28 PM
@Tyyppi_77 @Leggy7 @MickLH thank you guys!
And sry, I was afk
Yeah, but the interesting thing is when I add '\n' at the end of each line in the file (exept the last one ) there is again strange error
and I can't do if(string.contains('\n')) it just doesn't working
there is weird exception that is thrown
it is something like "invalid data type"
 
Jon
U stupit?
 
no
why?
 
Jon
I am looking for friend
 
@Leggy7 It seemed like they wanted database engine optimizations
 
Jon
The n thing is a endline lit
 
2:33 PM
@sn0k3 share the error message
 
Jon
yah weird error for you is probably standard error for us
 
Pip
@ChrisMcFarland I totally stole your character style
you okay with that or should I change it?
 
I can't do desk jobs, I blame school for that. It taught me that if you're sitting at a desk for any reason other than your hobbies, then you're being tricked into wasting your life chasing someone's money and they will do their best to keep you blind to that and worthless for anything else until you die and are replaced faster than a light bulb.
 
Pip
 
2:35 PM
I tryed doing this now:
		while(fileToRead.hasNext()) {
				line = fileToRead.nextLine();
				String[] numbers = line.split(",");

				x++;
				if(numbers[x].equals("\n")) {
					x = 0;
					y++;
				}
				levelFile[y][x] = Integer.parseInt(numbers[x]);

			}
 
Pip
It's pretty dang similar
I like it but I can change it if you'd like
Up to you
 
java.lang.ArrayIndexOutOfBoundsException: 3
at levelEditor.LevelLoader.readLevelFromPath(LevelLoader.java:29)
at levelEditor.LevelLoader.main(LevelLoader.java:10)
the array:
int[][] levelFile = new int[4][4];
 
@MickLH I agree with your point of view, unless you need it :)
 
there should be enough symbols for the array
 
@Pip I hope you can come up with your own style, but I can't stop you in any case
 
2:37 PM
file:
0,1,2,\n
3,4,5,\n
6,7,8
 
Pip
@ChrisMcFarland So you want me to change it? Gotchu.
No problem at all
 
@sn0k3 think very exactly about everything that is going on in your code.
 
@MickLH ok
 
You're trying random things, I call it "Code Monkeying"
 
step through it with a debugger
only way to fix this kind of thing and become a better programmer
 
Jon
2:38 PM
well no
 
look at what's in each variable each step through the code
 
Jon
if(numbers[x].equals("\n")
This is gonna crash
x has nothing to do with your line data here
 
Also, hint: If index 3 is out of bounds but the array you're looking at is size [4], then that array is not the problem.
Have you tried looking at the only other array?
 
Jon
you are literally doing linedata[1] every time
 
Basically, the code is so wrong, it's correct Java.
In so many ways
 
Jon
2:39 PM
yeah it hurts my fragile patience
 
^
 
Jon
i'd scrap it and rewrite it
 
I'd fire the coder and say "Try construction."
The moment they defended Java
 
Jon
"Try retail"
 
I mean before they even got the first word of the sentence out, if the sentence is defending Java I will know.
 
Jon
2:40 PM
haha
 
@Pip Copying game mechanics is fine, but copying art is kinda bad. it's the sort of thing that gets people sent cease and desist letters
 
Pip
@ChrisMcFarland There's a reason why I asked :P
 
cheers
 
Jon
LMAO
 
@Jon why you think that if(numbers[x].equals("\n")) is a problem?
It should be working, it just checks the array of the current line the current element does it is '\n' and if it is then it makes y++
 
Jon
2:42 PM
eh, well why do you do x++
 
It works now, but I'm not sure why they are printed by diagonal
 
Jon
then access the line data using the x variable
 
because x is controlling the line
 
Jon
what is your line data?
how is it controlling the line?
 
the first line from the file:
0,1,2,\n
 
Jon
2:42 PM
You arbitrarily increment it
ok, so your linedata is [0,1,2]
 
yes
 
Jon
you are doing if linedata[1]
then it fails, so you get the next line
and then you check the next line for linedata[2]
 
i am trying to store each element from the lineData in levelFile[][] array (from ints)
 
Pip
Man, eyes are the worst
 
actually levelFile is 2D array
that's why I am using x and y
 
Jon
2:44 PM
you need to add something like, for (int n = 0; n < numbers.Length; n++) { //process numbers[n] here }
 
lol 2 days I am trying to make that levelLoading..
Aha, but I tryed already
but I will try again
 
Jon
If you tried then you are not understanding
 
you tried it wrong, sure 100%. jon's right
 
Jon
Don't just try until something works
What do you want to happen? You have data in a txt file you want to read into an object.
 
that is the correct way. think on it: if you increment a line index. where is the senso to stop after only one increment?
 
Jon
2:46 PM
You are currently reading it line by line -but you are not processing the line data
 
you shoulda loop throughout all numbers in your split line
 
Okay got that:
	for(int i = 0; i < numbers.length; i++) {
					if(numbers[i].equals("\n")) {
						x = 0;
						y++;
					}
					levelFile[y][i] = Integer.parseInt(numbers[i]);
				}
and the error is that:
java.lang.NumberFormatException: For input string: "\n"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at levelEditor.LevelLoader.readLevelFromPath(LevelLoader.java:33)
at levelEditor.LevelLoader.main(LevelLoader.java:10)
File:
0,1,2,\n
3,4,5,\n
6,7,8
 
Jon
you are trying tp parse a string into an integer
 
Yes
 
Jon
ok?
You can't parse a string into an integer
it will throw an exception
 
2:49 PM
but why it is trying to parse string into integer..I mean it should not be trying to parse '\n' to string..
 
you should break when the if cluse passes
 
Jon
because you added "\n" into your data file
don't add a \n add a friggen ENTER
2
the \n is just an escape character
 
ahah
 
Aha
 
how can one not love this man?
 
2:50 PM
But why you said that I can't parse string into integer, I can?
there is Integer.parse
 
no
 
Jon
a string as in.. a actual string
 
jon is saying that \n is not in integer
 
well, how to check if there is a new line in the file?
 
Jon
when you have a string representation of an integer, sure you can
 
2:50 PM
Ooh
@Leggy7 ty
aha
 
:)
 
Jon
If you want to be sure it doesn't crash regardless, you are going to want to include a try{}catch{} block in there to ensure you process the exceptions that could happen
Or clean your data before processing
 
can't you just Split by , and Trim each thing? should trim the newline crap away
 
does trim? @ChrisMcFarland
 
(i haven't been following the convo deeply sorry)
 
2:52 PM
No, I need to check if there is a new line
 
Jon
trim won't remove an actual \n that he entered at the end of his lines
 
lol, right
 
@sn0k3 actually that happen when number array reaches its end
 
				for(int i = 0; i < numbers.length; i++) {
					levelFile[y][i] = Integer.parseInt(numbers[i]);
				}
				y++;
YES
Thank you guys!
Thank you, thank you, thank you!
I tryed thinking what's happened in the code
like @MickLH said
 
Jon
don't thank us, thank hindsight
 
2:54 PM
@sn0k3 actually I don't understand why you are filling 4 rows in your file with the same data and overwriting it every new line
 
@Leggy7 I don't
 
ah ok, yeah, this way it is okay
I was stuck on former code
 
3:05 PM
guys, I have rooms in my project where, after fight, you can face an event unlockable with a sort of password. So far I have to set one room to reveal the code and another room with the puzzle to solve. My struggle is on the reveal method to use. since that there could be several rooms with a code for their own purpose I thought I could allow the player to just read once the passphrase and have to remember it.
the other option is that once you got the revelation when you step into the right room the passphrase will be already typed in. Do you think the former approach would be too lame?
 
3:19 PM
// doing it the baller way for shits and giggles
for(;;) {
    while (*fileData && !isdigit(*fileData++));
    if (!*fileData) break;
    *levelFile++ = atoi(fileData);
    while (*fileData && isdigit(*fileData++));
}
 
Jon
what should I call the bonus star?
Bonus?
 
3:38 PM
Trick shot?
 
Jon
Skill star...
Special
 
user92578
Skill Star
 
user92578
SS
 
Jon
instead of saying On Par
gonna change it to "par"
doesn't have to say Over par for you to understand you don't have par.
 
user92578
That green box has way too much unused space
 
Jon
3:43 PM
yeah that great message could be improved, lol
 
user92578
How about something like this? Might be a totally stupid idea
 
user92578
 
Jon
i kinda want to seperate it from the button
 
user92578
yeah sounds smart
 
Jon
still not sure about the name of it. up to now my favourite is bonus
some levels have it
some don't
 
Jon
4:14 PM
 
Jon
looks more like badges now
 
You should have achievements
 
and shooting stars
and lens flares, those are so Web 2.0
 
Congratz, you're getting a badge for failing 10 times in a row, now stop getting it wrong!
 
4:16 PM
Achievement Unlocked: Soylent Green Top Producer
 
I got it to work, projectiles fire in the direction the ship aims :D
 
Jon
hmmm
achievements might be interesting
@TheMuffinCoder good job, now what if you are flying, does it keep the ship momentum?
 
ooo I haven't thought about that
I assume I can do that by just adding the ship velocity with the default projectile velocity
I really hope my beefy computer isn't lying to me how the game is performing so far
I gotta start testing on my old rig to see how it performs once I add more stuff o.O
 
Jon
hehe that game should run fine on a 386
 
lol muffin.
You gotta relaaaxxxx broooo
 
Jon
4:25 PM
you gotta let those bits flow
 
lol I'm scared for using javascript
 
@TheMuffinCoder You can always optimize later.
 
Or port to another language :)
 
You probably don't need to, but no matter how bad it gets, you can always just speed it up later
 
4:26 PM
I think your game logic needs your attention more than performance gains
 
Jon
man.. gtx1080 brand name is genius
 
ooo + im using Typescript, there's gotta be a compiler out there that makes use of the types
 
For now at least
 
Jon
people are buying it because they want the 1080
 
I want a 1080 too
I still cant get my hands on one
It's been a month so far o.O
 
Jon
4:27 PM
tweet jason mewes
ask him to hook you up
 
lol I'll check him out
 
@TheMuffinCoder You know facebook did this with PHP lol
 
whoa really?
lol I'm not scared anymore
 
They had so much code written in PHP, it was easier to optimize PHP itself, than to optimize all their code.
 
if they used php lmao
LOL
 
4:28 PM
They use a lot of languages
 
Jon
facebook also fucked the rift in the ass
 
@Jon With a big black one!
 
well hey atleast that helped the language overall
 
Jon
well... that is kinda untrue -- they are still currently fucking it in the ass
poor rift.
 
@TheMuffinCoder I think their HHVM is open source, but I don't think regular PHP got most of the benefits.
 
4:30 PM
o :(
 
They made the whole thing into JIT and fancy stuff
Like, they really went full PHP-tard
 
Jon
if I was notch, i'd buy rift
then turn it into a porn empire
rename it to "The Notch"
then the catchphrase would be "Time to step it up a notch"
 
"To mine is not the only craft"
 
Jon
so that retry button i added for over par
should i leave that in?
there is a kid outside screaming like a caged monkey for the past minute
 
@TheMuffinCoder keeping ship momentum on the shots is a huge deal, and may or may not be the kind of gameplay you want. it makes aiming for things while you're moving more difficult.
my asteroids game will have it, as that's been part of asteroids for a long time
 
4:43 PM
ooo nice
I'll add it for sure
My ship already has momentum so why not! :D
 
but few FPSs give player momentum to shots
would make aiming a rocket launcher almost impossible.
 
just to make just my concept is correct, if the player is still, the projectile fires at normal velocity
But if the player is moving fast, the projectile fires at a higher velocity (normal + players?)
 
yeah
 
oh easy then
projectile.velocity = current + players;
 
also if your ship is moving, usually you have it slow down. the best way to implement that is with a velocity-dependent drag.
the faster you move, the more drag.
so when you're hardly moving, you kind of keep drifting
has a good feel if you get the parameters right
the combination of your thrust strength and drag give you the max speed
so you don't limit the ship's speed artificially.
Hmm I might have that wrong
I can't remember because it was 20 years ago I wrote my asteroids game; maybe I did limit the speed with a cap
yeah, maybe I did
anyway, defintiely try velocity-dependent drag.
 
4:47 PM
I have my player accelerate to it's top speed but when they stop moving, the player keeps moving as it deaccelerates until it spawns completely
 
ok
 
I guess I already implemented the drag then :D
 

« first day (2152 days earlier)      last day (2858 days later) »