« first day (942 days earlier)      last day (1214 days later) » 

12:03 AM
Back
 
12:17 AM
is it possible to include you're own version of a framework with an app?
 
12:46 AM
 
1:00 AM
@Owatch is it a game you're making?
 
What do you mean? The link I provided to Max is to guardians of the galaxy.
Well it is a bit more sinister TBH.
 
I know, but your planets stuff?
 
Yes, that is a game.
 
What's the gameplay like?
 
It's supposed to be a fun/educational App that allows you to play and explore planets.
 
1:03 AM
Why is everybody wanting me
 
Oh, I was just linking you a fun video.
 
You want to ruin Guardians!?!?
@JasonMurray for $100
JK, how many TV shows do you watch
 
In any case, the core feature is a small N Body simulator which allows you to watch planets move in a gravitational field.
You can add, move, and watch objects react.
You can adjust their mass, ect.
@Maximilian I swear it's perfectly fine.
 
I don't beleive you
 
It's only ten seconds, what could go wrong?
 
1:06 AM
OMGGGGG
OWATCH!!!!
 
I promise, it's just a fun piece I found online.
 
NOOOOOOOOOOOOOO
 
Oh my!
 
NOOOOOOOOOOOOOOOOOOOOOOOO
 
I didn't see that part coming.
 
1:07 AM
Can you crash the planets in to each other?
 
They destroy each other on impact.
 
@Maximilian I only watch Walking Dead and Game of Thrones, the rest is all anime. Watch a lot of anime...
 
I'm using Velocity Verlet Integration to determine positions and movement, ect. It gets very inaccurate at short distances, and doesn't behave correctly. So objects that collide are eliminated.
 
That sounds cool owatch, also sounds like a physics head ache to get the sim running right?
 
There are a lot of issues.
The physics make up about 4 methods only.
But they take up a lot of processing power.
 
1:09 AM
you killed me
 
And for some silly reason I've now got issues where an entire Array of objects is nulled that is necessary for displaying popup information.
I don't know why. It doesn't have anything to do with the physics at all. (They only modify positions of sprites).
But it's pissing me off.
That and problems with Categories which I have used before suddenly refusing to work.
Those are some old screenshots from a couple weeks ago. Game doesn't look much different since though.
 
Nice
 
Judging from the information gathered today, it seems unlikely I will truly model our solar system in any way.
The difference between the sun's mass and those of terrestrial planets are so so gigantic it's unreasonable to use them in a game like this.
Rather, I'll let users toy with smaller planets and moons at distances which are inaccurate but fun to watch.
 
put a UY Scuti button in for fun.
 
A what?
 
1:14 AM
it's the largest known star
I think
 
Oh, no thanks.
I was going to have several scenes.
 
The one I'm working on now (the sandbox), then another where you can swipe to compare sizes, ect.
Where it would zoom in and out for you, or do some tricks to give that illusion.
 
will the planets orbit on their own?
 
What do you mean?
 
1:16 AM
is there movement in the sim?
 
Yes?
 
so if I load it up and add mars earth and the moon will they begin to move relationally
 
Yes.
 
that is awesome
 
Well, right now they would all move towards each other.
 
1:17 AM
yes, I suppose
 
I realised that wasn't very helpful.
The only way to get orbits right now is to move existing planets out of the way of the other one, and watch it curve.
I was going to redo my tables tonight to add Systems, where planet-moon pairs can be added.
Which would have the moons set with an initial velocity so that it maintains an orbit. There is much that can go wrong there though. My last model did not accurately conserve energy, so orbits would spiral out or in.
 
That should be fixed now.
 
The moon moves away by 5cm per year.
 
Mine shouldn't be perfect, but I want orbits to be perfect even if that isn't so.
 
1:23 AM
Yeah that would be the user expectation
 
You could previously move objects around in realtime.
But for some reason that induces vibrations that shouldn't occur.
I may re-enable it once I find out what causes them.
 
1:36 AM
Back
 
I've decided to use a plist to store planet data, is this okay?
It's what the tutorial I am following suggested
 
What data is that?
If it's huge NSData, then NO.
The problem with plist is that, if you want to modify one key-value pair, you have to rewrite the entire plist. There is no way to just update one single entry.
 
The information will be read only.
I just want to store the names of all the planets, their scale, mass, and type.
I just don't know much about loading and saving data.
 
plist suits more of something that exists in your app bundle.
plist is still fine, if you don't have plans to perform complex fetch operations or have relationships between your planet entities.
 
They have relationships in the scene, but they are all calculated. So nothing links to one another.
What would you suggest I use otherwise?
Core Data?
 
1:45 AM
For key-value pair, plist is suitable.
But if you want your data to behave like a database, then use Core Data
For example - Do you want to have 1 to many or 1 to 1 relationship between your planets?
Do you want to perform complex fetch operations? Like get me all planets with mass = xyz and type = T1?
 
I don't need that.
I just need to load in all the data for objects that will be used in the scene.
 
Then plist is suitable, IMO
 
Once they are put in the scene, they can be modified, but nothing will be saved.
The tutorial is having me create several rows, and in it I am putting Names (row 1), Masses(row 2), ect
And in those I add the masses for each planet and stuff in a sort of sub-column.
 
i see
 
It seems like I can't tell the plist to store a float.
 
1:57 AM
Yes
It can't save primitives
Save it as NSNumber
 
How do I configure that in the plist?
 
How do you save in plist? Using a Dictionary, right?
 
I'm manually filling it out lol.
 
I mean, are you creating plist at run time in code or in a plist file?
 
In a plist file.
Should it be done in code?
 
1:59 AM
If in a file, then set the type as number and when you retrieve it, you will get as NSNumber
 
Well, I can choose number, it's just if I type a float, like 0.5, it becomes 0.0
Or do you mean if I write to it through code rather than editing the file in Xcode?
 
if you want it go in your app bundle at compile time, then plist file is fine
4
Q: How to handle float values in a plist

BanjerI'm reading in a plist from a web server, generated with some php. When I read that into an NSArray in my iphone app, and then spit the NSArray out with NSLog to check it out, I see that the float values are treated as strings. I would like the "distance" values to be treated as numeric and not...

Do you see real type?
 
<real>1</real>
?
yes
 
I just set 2.5, without any problem
 
Where are you setting it's type to real?
 
2:06 AM
I didn't
I just set and it worked
 
If I try that, it snaps it to 0.
Or the lowest whole number
 
That was a MAC project. Let me try iOS.
It's possible in IOS too
Can you show your plist screeenshot
 
let me try in array
Its possible
 
Mine simply won't.
9.5 > turns to 9.
0.1 turns to zero.
Why does this have to happen to me.
 
2:14 AM
If you want to simply get out of the problem, set type as String
 
I could do that, it's just frustrating that I have to do it at all.
 
Do it for now, and research it later
You can always call floatValue on NSString. So it's fine.
 
I guess. did you finish watching Zero Dark Thirty?
 
Yes. I skipped the middle portion and saw the last scene. The action sequence.
Did I miss something important?
 
Why, didn't have time?
 
2:19 AM
I like action
 
Did you see her colleague die from the car bomb at the base?
 
I skipped from the Bomb blast at the restaurant
In Pakistan
 
At one point a car drives into a US base where her colleague was going to meet some sort of source or something.
Well, she told them not to check it because it might scare the informants away.
 
oh wow
 
I guess you missed that part.
I cannot find the other scene I recall having action alone, so here is a link to the time in the movie
(It is in French (Which is why it's not taken down))
 
2:25 AM
I see
 
I think her car was armoured.
 
But where did that car come from?
 
Since the car glass remained intact.
Which car, the ambush one or hers?
 
The one bomber came from
 
Oh, you mean from the first link?
 
2:27 AM
yes
 
(The second is to a specific scene too btw)
 
ok let me see second
 
Well, her collegue wanted to meet with this man for information
She was convinced he would provide it or something, it's hard to recall exactly what.
So when it approached the base (Not seen in that clip) she demands it be let through without being checked.
She was very attached to this informant for some weird reason.
And it cost her her life.
 
I see
In second link, who are they shooting at her and why?
 
I think she became known to certain pakistani groups
And they put her on a kill list.
 
2:30 AM
ok
 
I think any american is though.
Hence why the guard, armoured car, and gate. .
The kill list is what I remember from the movie.
 
How do you imagine yourself driving a Car seating on the right hand side?
 
It would be hard.
Especially if it's a manual.
 
In India we do at RHS
Yes, Manual + RHS
Here it's LHS and Automatic
 
The british do it RHS, so I think most countries it influenced do.
 
2:32 AM
Automatic Cars in India are still rare
 
Oh, except Australia, who drive on the left.
Automatics aren't that new.
What's interesting about the last scenes of ZDT
No music over the action
It's very quiet.
 
One of the Chopper fell through
 
Like you're there kind of.
Oh yeah, it had some sort of mechanical problem or something.
Embarassing
 
I had already seen a documentary on the same on NetFlix.
So I knew that already
 
Apparently it was very risky.
Pakistan did not like that at all.
 
2:37 AM
I have a question however
 
oh?
 
When the Choppers come near to Osama's house, don't they hear the noise and get to know something's wrong?
And get prepared
 
If you watch the movie, at some point they show you the helicopters in development.
They aren't standard ones I think, but are supposed to be very quiet.
I suppose they would have heard them coming anyways though.
But the idea was to probably surround them before they could do much about it.
And the entire thing was up once they used explosives to open doors I'm sure too.
 
I guess so
 
They need to do it fast before the Pakistani Army or some militia would show up.
It did sort of screw up.
I'm watching parts of it again
They call them by name
 
2:42 AM
What are other movies of same type? US vs Terrorist movies?
 
I dunno.
Hmm
 
It's fine. I will search it
 
You'd probably find it boring since you prefer action.
But I think there's a movie on the Iranian US Embassy incident
 
Anyways it's start of a new week, So I will search on Friday
 
I forgot what it is called.
The Argo
That's it. But like I said, I'll find something more action-like.
They just shot the not-binladen
 
2:47 AM
ok
 
Do crime movies go as well?
 
Yes
I like Action, Thrillers, Crime, Fiction, Sci-Fi, etc
Sometimes Comedy
 
You like thrillers?
 
Romantic or Love Stories - No No
Yes
 
I don't watch many, but I'm sure I can find some pretty horrifying ones.
 
2:49 AM
Have you watched - I saw the Devil?
That is the most horrifying movie I ever seen.
 
I won't watch it.
 
why
 
They mess with my head, I don't like them.
I watched a horror sci-fi one a month or two back.
 
I saw the Devil is a bloodshed movie
 
I'll check the trailer now.
Lots of stabbing
You should watch Aliens
 
2:55 AM
Yes. I want to. Also Star Wars 1
I will put them on my list for this weekend
 
Aliens is apparently pretty good.
I think I watched Requiem or something, from those.
Didn't get good ratings.
It's more messed up that trying to scare you.
But I guess disgusting is scary too in a sense.
 
No movie has been able to scare me until now.
I watched after browsing
The top list were Exorcist, etc
But they are not scary at all
I think time has gone when people used to get scared seeing scary faces
 
The unknown is scarier.
That is for sure.
 
It has to be something else
Yes, unknown. Like a mystery coupled with some fear
 
The horror movie I last watched had to do with something unknown driving people crazy, and that's what is scary.
 
2:59 AM
The scariest movie I saw was 13B.
 
So nothing has really scared you at all so far?
 

« first day (942 days earlier)      last day (1214 days later) »