It appears you have not yet registered with our community. To register please click here.

Origin XT RPG Network Home

Who Knows What?


Jul 11 2009, 04:42 AM (Post #1)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
This project will for sure involve some Javascript for those designing the framework, and possibly PHP, Python, MySQL, or Ruby (on rails) in the backend depending on what sort of languages we're most familiar with (or willing to learn).

The framework will involve a lot of design and coding, but the goal is to allow many more people to contribute levels/stages/maps/(whatever you want to call the individual modular components) to the project without knowing anything about the implementation details of the framework.

So this topic is for everyone interested (slightly or even as an auxiliary) to post what sorts of technologies they're most familiar with. I'd prefer that we stay away from desktop-specific languages like C, and hard-to-maintain languages like Perl.

It'd be very helpful if you can rate your aptitude (and potential aptitude) in the following:

Java
PHP
Javascript
- with Mootools
- with Jquery
Ruby
- on Rails
Python
- with Django
MySQL/PostgreSQL
HTML/CSS
Flash (We might go that route)

You don't need to rate yourself in all of them, but hopefully you do for the top few so we can have a sense of what we have available to us ssmile.gif

Thanks
Post Options

2 Pages < 1 2 
Jul 23 2009, 08:21 PM (Post #16)
Foot Soldier
* * * * * * *
Posts: 4,710
Cash: 88,623 / 0
Group: Nobility
Joined: 5/04/04 11:36 PM
When you talk about Javascript being the only way to make it interactive, does that mean you can't make a game out of just php? I'm not big on code, so I really don't know how it all works together. Can the php map generator and other php things combine with Javascript to make the final game? How are they related? How will they go together?
Post Options

Jul 24 2009, 12:29 AM (Post #17)
I Love Jingy
* * * * * * * * *
Posts: 11,212
Cash: 2,142,701,519 / 2,147,483,647
Group: Cabinet Member
Joined: 11/30/04 08:44 PM
QUOTE (Angel @ Jul 23 2009, 04:21 PM)
When you talk about Javascript being the only way to make it interactive, does that mean you can't make a game out of just php? I'm not big on code, so I really don't know how it all works together. Can the php map generator and other php things combine with Javascript to make the final game? How are they related? How will they go together?
*


PHP is a server side language. Information is transfered between the browser and server during postbacks, aka when the page refreshes. If you want to move anything without refreshing the page (for example, move a character), you have to use a client side script that lives on the browser and not the server. That's where javascript comes in. PHP will do the backend stuff (save data, generate maps, anything else that has to be done on the server) and JS will make it look pretty on the front end.

This post has been edited by Heartless Krab: Jul 25 2009, 01:03 AM
Post Options

Jul 24 2009, 04:50 AM (Post #18)
Foot Soldier
* * * * * * *
Posts: 4,710
Cash: 88,623 / 0
Group: Nobility
Joined: 5/04/04 11:36 PM
Thank you for the concise and clear answer, that helped.

Question though: Does this mean the page will have to refresh any time a new map is to be generated, for example?
Post Options

Jul 24 2009, 06:56 AM (Post #19)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
QUOTE (Angel @ Jul 23 2009, 08:50 PM)
Thank you for the concise and clear answer, that helped.

Question though: Does this mean the page will have to refresh any time a new map is to be generated, for example?
*


That's where javascript comes in, to make the web page interactive. That means, no, you don't have to reload for every move.
Post Options

Jul 25 2009, 05:02 AM (Post #20)
Foot Soldier
* * * * * * *
Posts: 4,710
Cash: 88,623 / 0
Group: Nobility
Joined: 5/04/04 11:36 PM
Okay, I understand that, but isn't map generation part of the PHP?
Post Options

Jul 25 2009, 06:22 AM (Post #21)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
Yes, but we don't need to generate a map for every move someone does, unless the move involves constructing a building or something. Even then, it's possible to do it on the server-side, and just use client-side scripts like javascript to load it in.

Plus, we're not doing something complex like that yet.
Post Options

Jul 25 2009, 07:30 AM (Post #22)
Commander in Chief
* * * * * * * *
Posts: 5,699
Cash: 2,145,476,571 / 2,147,483,647
Group: Representative
Joined: 12/23/06 04:45 AM
I'm going to brush up on JavaScript tonight. Where should I begin with that?
Post Options

Jul 25 2009, 06:17 PM (Post #23)
Here for the cute boys ;)
* * * * * * * * *
Posts: 16,850
Cash: 9,336,061 / 95,912
Group: Nobility
Joined: 5/08/05 04:11 AM
W3C Schools. stongue.gif
Post Options

Jul 25 2009, 06:47 PM (Post #24)
Commander in Chief
* * * * * * * *
Posts: 5,699
Cash: 2,145,476,571 / 2,147,483,647
Group: Representative
Joined: 12/23/06 04:45 AM
I should rephrase. I know where to brush up (and you hit the nail on the head with that). I mean, where should I start implementing javascript into this project, and what?
Post Options

Jul 25 2009, 09:30 PM (Post #25)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
Read up on AJAX, specifically the XMLHttp class. If you want examples, look at http://scripts.orijing.com/ajaxchess/

It's actually pretty bad code (look at main.js), but if you look at the xmlhttp functions (like send_request) you can get an idea of how they work.

What we're building will be essentially the same, but with a little more complexity.

But for us, we're going to use http://mootools.net/ to avoid having to recode basic functionality and to deal with browser-compatibility issues, so I suggest you start there
Post Options

2 Pages < 1 2