Account system / character system...
by zwwww · in Torque Game Engine · 10/24/2005 (1:02 pm) · 12 replies
Hi there, i've got a server with a mysql account system , and php pages (to create an account for example)
is there a easy way to make this usable with torque, i can log in with my username and password for example, and the game can write some data (how much health i have, what weapons i've got) ..
Thanks
Julien
is there a easy way to make this usable with torque, i can log in with my username and password for example, and the game can write some data (how much health i have, what weapons i've got) ..
Thanks
Julien
About the author
#2
i hit start mission, i put my player name and "New bay" for mission
i hit start mission
i can play 30 seconds, then i've got the LAG ICON
here's my website / server
http://smasher.web-vhosts.com
i post my game.cs and game_login.php
10/25/2005 (5:51 am)
It seems to be not working : ( i hit start mission, i put my player name and "New bay" for mission
i hit start mission
i can play 30 seconds, then i've got the LAG ICON
here's my website / server
http://smasher.web-vhosts.com
i post my game.cs and game_login.php
#3
smasher.web-vhosts.com/auth/game.cs
and here's my game_login.php
smasher.web-vhosts.com/auth/game_login.php
10/25/2005 (5:54 am)
Here's my game.cssmasher.web-vhosts.com/auth/game.cs
and here's my game_login.php
smasher.web-vhosts.com/auth/game_login.php
#4
10/25/2005 (5:39 pm)
Please post your game_login.php as a .txt file, we can't read the script code as it is interpreted by php
#5
10/26/2005 (12:49 am)
You can save link as !
#6
PHP is executed server side, we cannot download it.
You're also being terribly general in your question, put in more details. If you want help, show us that you can put some time into helping us help you. What do you want with the system? Not all account/character systems work the same, etc.
10/26/2005 (1:24 am)
Julien, read what Thomas said.PHP is executed server side, we cannot download it.
You're also being terribly general in your question, put in more details. If you want help, show us that you can put some time into helping us help you. What do you want with the system? Not all account/character systems work the same, etc.
#7
i want an account system that can write player state (health, inventory etc) in a securised file (like mysql account systems on websites)
because this is very useful in a mmorpg
10/26/2005 (1:27 am)
Okay, the game_login.php is exactlty the same as the original (just changed the variables to don't include variables.php, see the tutorial)i want an account system that can write player state (health, inventory etc) in a securised file (like mysql account systems on websites)
because this is very useful in a mmorpg
#8
I would suggest reading through Dreamers MMORPG tutorials (www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8269) for ideas of what to do/how to do it and basically convert what he does to:
1) Fit your project, no two are alike (hopefully).
2) Work with httpObject (which I think you are trying to do)
3) Use your own method, if you think you can improve on it!
Hope that helps,
Matthew Grint
10/26/2005 (2:03 am)
My best advice to you would be to read through about httpObject - I think I have implemented what you are asking for pretty much but it has taken me between one and two months to provide a persistant inventory, character/account system, spawn points, money etc. and can be a lot of work.I would suggest reading through Dreamers MMORPG tutorials (www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8269) for ideas of what to do/how to do it and basically convert what he does to:
1) Fit your project, no two are alike (hopefully).
2) Work with httpObject (which I think you are trying to do)
3) Use your own method, if you think you can improve on it!
Hope that helps,
Matthew Grint
#9
10/26/2005 (6:22 am)
Thanks, do you have an answer about my patch problem
#10
10/26/2005 (6:37 am)
*What* patch problem?
#11
see my thread, on this board
10/26/2005 (6:38 am)
I don't know what is .patch files and how to apply themsee my thread, on this board
#12
EDIT:
Also, in answer to your original question with why it disconnects you every 30 seconds is that the schedule(); command executes after 30seconds of attempting to get a response from the server, running the authfailed(); command. You can fix this with the method posted there by "GimpMaster" or email me if you want to do it appallingly-hackish kind of way that I used!
Matthew Grint
10/26/2005 (1:31 pm)
I have posted there, hope it helps.EDIT:
Also, in answer to your original question with why it disconnects you every 30 seconds is that the schedule(); command executes after 30seconds of attempting to get a response from the server, running the authfailed(); command. You can fix this with the method posted there by "GimpMaster" or email me if you want to do it appallingly-hackish kind of way that I used!
Matthew Grint
Torque Owner Kevin Johnson
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4085