What are you working on? V4 (HTML ISN'T PROGRAMMING)
2,003 replies, posted
FFFFFFFUUUUUUUUUUUUUUUUUU--- OK, I deserve the dumb. I always thought it was "Yet Another" /facepalm. Just to confirm, I'm editing because that shouldn't be part of the argument, not out of shame. May my embarressment live in your quote for eternity!
I also like using JSON for Lua as I can just run one function and the whole thing is decoded into a Lua table. I'm sure I could do the same with XML but I use JSON for most settings and user input storage.
Thanks for your advice, and actually, I agree with you.
I was originally reluctant about using XML for this, I had considered using JSON since it fit perfectly with V8; but I chose XML for the exact reason you shun, everybody is using it! :v:
I thought it would be easier for people who had some entry-level experience with web development (what JS is usually used for) to recognize the syntax of XML than it would be for them to read JSON objects, because many of them are much more familiar with XML in the first place.
Another reason was encapsulation, my program has to read the layout of shapes, lots of details that I didn't include in the XML example, things like RGBA color data, bitmap textures, inlined scripts, etc.
Right now, if switched to JSON, the XML would look somewhat like this:
[cpp]{
"body":
{
"shapes": [
{ "id": "wing_right", "points": [[0,0],[10,5],[0,5]] },
{ "id": "wing_left", "points": [[0,0],[-10,5],[0,5]] },
{ "id": "hull_shape", "points": [[0,-10],[-5,0],[0,10],[5,0] }
],
"parts": [
{ "id":"rightWing", "shape":"wing_right", "hp":20, "hardpoints":[2,3] },
{ "id":"leftWing", "shape":"wing_left", "hp":20, "hardpoints":[2,3] },
],
"hull": {"shape":"hull_shape",
"hp":40,
"joints": [ {"local":2, "target":["rightWing",1], "angle":90, "fixed":true},
{"local":4, "target":["leftWing",1], "angle":90, "fixed":true} ],
"hardpoints": [1,3]
}
}
}[/cpp]
Not sure about you, but I think XML might be easier on the player; and as a matter of fact I'm currently rewriting the XML reader anyways, it would be trivial to make the switch.
Steve, it looks like your L4D2 demo launch page uses the local time of the PC, doesn't that only make it work for one specific timezone? Or am I all wrong here and is the time synced with the server?
[QUOTE=Blynx6;18039770]Classes are probably best. I personally hate using them, because I hate coding them. If you can code them, use them.
Also, as Anthony said, it makes managing multiple instances of the class object, easier.
E.G if you are making forum software. You should use classes, but it is not necessary.
Curious as to why I was rated dumb for agreeing and offering an opinion.[/QUOTE]
You get rated dumb because classes in PHP are easy. :)
[editline]and[/editline]
And people apparently think you steal code.
[QUOTE=TheBoff;18041003]but it seems stupid to use a hammer to put a nail in, just because it will go do the job eventually, and everyone else seems to use a hammer, when a screwdriver will do a much better job.[/QUOTE]
This part of your post was stupid.
Try hammering a nail in with a screwdriver.
[QUOTE=ThePuska;18042204]This part of your post was stupid.
Try hammering a nail in with a screwdriver.[/QUOTE]
He meant a fucking screw.
Deal with it :cool:
[QUOTE=Overv;18042045]Steve, it looks like your L4D2 demo launch page uses the local time of the PC, doesn't that only make it work for one specific timezone? Or am I all wrong here and is the time synced with the server?[/QUOTE]
Unix Timestamps are always in UTC, and it's been fine for people in different timezones for the Borderlands release.
[img]http://i34.tinypic.com/33lhy6o.jpg[/img]
[QUOTE=efeX;18039377]Eh, "working"(learning) with PHP right now.
Quick question for the PHP'ers: Are classes heavily used with recent PHP scripts? Is it standard? Or frowned upon?[/QUOTE]
Besides your standard OOP vs procedural, people don't use full OOP a lot cause only about half of web hosts have PHP5, the rest have PHP4 which doesn't have as many OOP features.
[QUOTE=Mechanical43;18042584]He meant a fucking screw.
Deal with it :cool:[/QUOTE]
it still doesn't make sense, why would you use a hammer for a screw
[QUOTE=Ortzinator;18043668]Besides your standard OOP vs procedural, people don't use full OOP a lot cause only about half of web hosts have PHP5, the rest have PHP4 which doesn't have as many OOP features.[/QUOTE]
What? Almost every major free and paid webhost has PHP5, if it doesn't, get another.
[QUOTE=Pj The Dj;18043692]it still doesn't make sense, why would you use a hammer for a screw[/QUOTE]
Exactly his point :)
[QUOTE=arienh4;18043986]What? Almost every major free and paid webhost has PHP5, if it doesn't, get another.[/QUOTE]
Try telling that to a client.
Steve, your L4D2 demo calculation is wrong. It says it's released, while it's still another hour.
[QUOTE=arienh4;18044931]Steve, your L4D2 demo calculation is wrong. It says it's released, while it's still another hour.[/QUOTE]
It's out in an hour? Who says?
[QUOTE=databee;18045035]It's out in an hour? Who says?[/QUOTE]
[url=http://steamcommunity.com/games/L4D2/events/55327883716288366/?]This page[/url].
ah, fair enough, although it's 7:22PM here
As far as I know, games on steam aren't released automatically, the times are kind of misleading because the games have to be manually released.
whats the big deal about l4d. it's more repetitive than a korean grind mmo
[QUOTE=efeX;18046180]whats the big deal about l4d. it's more repetitive than a korean grind mmo[/QUOTE]
I'd have to disagree. If you play it like a surgeon, yeah, but if you put yourself at risk it can create interesting film-esque circumstances.
[editline]02:08PM[/editline]
It's almost like role-playing for me, actually.
Hahah, yes I did mean a screw. Willfix.
[QUOTE=ryandaniels;18046444]I'd have to disagree. If you play it like a surgeon, yeah, but if you put yourself at risk it can create interesting film-esque circumstances.
[editline]02:08PM[/editline]
It's almost like role-playing for me, actually.[/QUOTE]
a bit creepy, but okay.
[QUOTE=SteveUK;18042615][img]http://i34.tinypic.com/33lhy6o.jpg[/img][/QUOTE]
On the topic of remote desktops, my friend got a server and was showing it to me and a friend though sharedview. He wouldn't give us the password though. So my friend goes "Hey cas let's give darry a keylogger to get that password" ... but sends it to darry, and I'm watching darry's screen, and just facepalming
Also, I connected to your server. What's it for?
You connected to his Remote Desktop server? Why would you do that?
Rate me bad reading if I'm wrong here.
[QUOTE=Diaklu;18047892]You connected to his Remote Desktop server? Why would you do that?[/QUOTE]
Yeah this.
I banned someone on winsauce forums today for double-accounting, and very strangely he was running Windows Server 2003 RC2, on a personal connection? What is that shit?!
Also, ploughing through Love2D tutorials and stuff, going a nice platformer going, and various other tests, I'm falling in love with Lua, because it's finally no longer tied to GMod xD
Going to check out Lua powered websites later, since I believe it's faster than PHP (read it, could be wrong).
Offtopic: new avatar with an animation I fucked up for the game I'm making in Love2D :D
Check out [url=http://oss.digirati.com.br/mod_lua/2.0/]mod_lua[/url] for Apache if you want to use Lua on your web server. Good luck there, Never got mod_lua working on Windows. :(
[QUOTE=Diaklu;18048667]Check out [url=http://oss.digirati.com.br/mod_lua/2.0/]mod_lua[/url] for Apache if you want to use Lua on your web server. Good luck there, Never got mod_lua working on Windows. :([/QUOTE]
Thanks! I've got Windows and Linux servers at my disposal, and possibly OSX soon :D One must work!
[QUOTE=efeX;18046960]a bit creepy, but okay.[/QUOTE]
The game is about you being a character in a horror movie. Part of the game in my opinion is getting into character.
But I forgot, anything with the words "role play" attached to it automatically means I'm an obsessed creep who plays it as a sex act.
Gona be coding a lot tommorow because earlier I fell down some stairs like :downs: and owned my ankle. It's all swollen and stuff.
:sigh:
I hope there's no long term damage.
After all that skating and you hurt your ankle falling down some stairs :D. I hope it heals man. I hurt mine skating the other day as well but it healed really quick.
Sorry, you need to Log In to post a reply to this thread.