Creating a file that hold info on character?
by David J Weaver · in Torque Game Engine · 01/08/2002 (4:56 am) · 40 replies
OK Ill admit im not perfect with C++ in fact i rather am a NooB at it but for a mod im working on i would like to have a file that stores a characters position, score, etc... any ideas?
About the author
#22
You do things like this server side to protect the database from tampering.
It should be part of your strategy of making data persistant, so all object pickup/drop/trade should also be database driven.
Basically, if your going to do anything persistant, get used to using a database as directly as possible.
Phil.
01/13/2002 (10:43 am)
If youre trying to make something persistant, you really really really really (you get the idea) need to make it server side. Best bet is to use a MySQL database and call into that to log the stats for a given person.You do things like this server side to protect the database from tampering.
It should be part of your strategy of making data persistant, so all object pickup/drop/trade should also be database driven.
Basically, if your going to do anything persistant, get used to using a database as directly as possible.
Phil.
#23
01/13/2002 (5:54 pm)
Whoa! Phil give me the concepts on how to even start doing this.. either post it here or Email me at Trojke@ec.rr.com
#24
01/13/2002 (7:17 pm)
thanks Chris... i'll try that here in a minute =D
#25
This isn't how we're doing it in our game. I programmed some sql support into the game and set it all up on a master server (hosted by GameSpy). The entire database code is finished. Players can login/out, change their password, create new users, etc. It saves and loads the player data effortlessly. It also encrypts the data before sending to the server, then the server decrypts it and saves it. This way, people can play on any server they want and still use their character. It only works with torque though, not T2.
Unfortunately I can't give that code out :( I don't have the time to help people with it and go through it to keep our server secure. It would take a few days do seperate it from our game, and that's valuable programming time.
Dark
01/14/2002 (3:01 pm)
Phil, this saves it onto the game server. So only the server owner (or anyone with telnet access) could touch the player files. You will only be able to play with your character on the server you started it on.This isn't how we're doing it in our game. I programmed some sql support into the game and set it all up on a master server (hosted by GameSpy). The entire database code is finished. Players can login/out, change their password, create new users, etc. It saves and loads the player data effortlessly. It also encrypts the data before sending to the server, then the server decrypts it and saves it. This way, people can play on any server they want and still use their character. It only works with torque though, not T2.
Unfortunately I can't give that code out :( I don't have the time to help people with it and go through it to keep our server secure. It would take a few days do seperate it from our game, and that's valuable programming time.
Dark
#26
i'm looking into having several third party servers running and letting the player choose which server he/she wants to play on (each server chooses pricing for themselves etc.)
01/15/2002 (10:23 am)
GameSpy runs a server for you? hmmi'm looking into having several third party servers running and letting the player choose which server he/she wants to play on (each server chooses pricing for themselves etc.)
#27
Our site is at www.planettribes.com/aoe
01/15/2002 (12:39 pm)
The GameSpy server isn't dedicated to us. We're hosted by planettribes.com. I asked if we could store our player database there and they said yes.Our site is at www.planettribes.com/aoe
#29
My friend's uncle runs it, I'll ask my friend to come here and reply.
Dark
01/16/2002 (1:10 am)
Brinkster is pretty good. It supports asp, and I think it has free sql access too.My friend's uncle runs it, I'll ask my friend to come here and reply.
Dark
#30
*edit*err i mean activly building a RPG as in for T2 but now that i look at it your not going for T2 your making an entirely new game.
01/16/2002 (4:09 am)
Holly cow your part of AOE? sweet! your the only team who is "Activly" building a RPG (besides my wannabe self) and your only other competetor is IS (Ironsphere) becouse of popularity... So could i be a beta tester for you guys? :)*edit*err i mean activly building a RPG as in for T2 but now that i look at it your not going for T2 your making an entirely new game.
#31
We're going ot have a public beta. Right now we're in alpha, but I haven't released anything to the alpha testers (need more models). Hang around in the forums. If we need more testers when the time comes then you can be one.
*Edit: Just noticed that where I wrote "LOL" it looks kind of pig-headedish (which is totally wrong). I wrote it because it was a totally unexpected comment. I didn't know that very many people heard about us :) Also, if you check the site, it looks kind of outdated. I've been posting news in the AoE forum.
Dark
01/16/2002 (9:28 am)
LOL, I'm the lead/only programmer, and one of the lead developers.We're going ot have a public beta. Right now we're in alpha, but I haven't released anything to the alpha testers (need more models). Hang around in the forums. If we need more testers when the time comes then you can be one.
*Edit: Just noticed that where I wrote "LOL" it looks kind of pig-headedish (which is totally wrong). I wrote it because it was a totally unexpected comment. I didn't know that very many people heard about us :) Also, if you check the site, it looks kind of outdated. I've been posting news in the AoE forum.
Dark
#32
01/16/2002 (11:37 am)
Brinkster? hm... got a URL for me or something?
#33
01/16/2002 (1:26 pm)
www.brinkster.com maybe?
#35
it takes a bit of knowlage of mySql but for player stats and other things ( just how meny uber armors do esist in the world including loged out players invintorys ) it's fast and very effecient.
04/21/2002 (7:17 pm)
as for useing mySql ( somthing i also plan on doing ) their are api's made for C++ by mysql that work great if your compiling on a M$ machine but i have yet figured out how to port if over to a unix based os ( i.e any Linux ) ... anyway check out www.mysql.com/downloads/api-mysql++.html and www.mysql.com/documentation/mysql++/4_Tutorial.html ...it takes a bit of knowlage of mySql but for player stats and other things ( just how meny uber armors do esist in the world including loged out players invintorys ) it's fast and very effecient.
#36
greetings
Daniel
04/22/2002 (10:22 am)
If you want basic MySQL support for the Torque Game Engine, you can download it on our page www.futureint.degreetings
Daniel
#37
07/16/2002 (4:35 pm)
Another question, hwo can I make a user/pass system? So it would work a bit like T2 just free.
#38
07/16/2002 (7:23 pm)
This working for folks?
#39
07/17/2002 (3:18 am)
Yes i want that they can create a account ig and can look at their stats aso.
#40
08/05/2002 (3:06 pm)
Any ideas?
Torque Owner David J Weaver