rpg style mod that saves data for later use?

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Retsnom

New Member
Nov 23, 2001
10
0
0
Visit site
Is it possible to write a mod, that saved data on the server fot later use? :) Like linking it with a sql server


I know its possible in q2, but does ut support it :)


This way it would be possible to write an rpg style mod, that allows you to return later, upgrade skills etc

Would be very nifty :)))


Thks in advance :)
 

2COOL4-U

New Member
Mar 17, 2001
505
0
0
37
dot NL
2cool.free.fr
I think this should be possible

Perhaps you should try using a child of UBrowserHTTPClientto go to an PHP site that adds everything to a MySQL database. Try looking in UBrowserUpdateServerLink and UBrowserUpdateServerWindow too.

You should use an URL like (
"http://myserver/update.php?name="$GetPlayerOwner().PlayerReplicationInfo.PlayerName)

Good luck :)
 

Sg_Jack

New Member
Nov 12, 2001
12
0
0
www.unrealism.com
good idea :)

Hi !

i'm sorry because i can't help you on that point, but if you succeed, it would be a wonderfull idea !

I hope you'll succeed because it would be the first mod on that kind.

GOOD LUCK :)
 

Shiit

Shiit
Dec 19, 2000
168
0
0
Technically, UT should support things like this very well. I dunno whether it's possible in UScript (it prolly is though), but if that's not possible you could make a native C class with a DLL, and the possibilities shóuld be limitless. (Never tried it myself though)
 

2COOL4-U

New Member
Mar 17, 2001
505
0
0
37
dot NL
2cool.free.fr
You don't need to write native code I think, Unreal has got its http client which can be used to call a PHP script that sets can change things in the database.
 

eXoR

Lead coder
Oct 22, 2001
36
0
0
38
Holland
exorcist.gamepoint.net
Another, way less professional, approach would be to just store the variables in arrays in a custom .ini file on the server. IE, everyone get's an ID that's used for his instance of the array, and in that array you store the info about him. You could probably use a struct array for things like this, but I don't know what the maximum size is you could use with this.

Also, calling an PHP script would be fairly easy but how are you planning on have it return the values ?
 

Retsnom

New Member
Nov 23, 2001
10
0
0
Visit site
it has been done in q2 ingame

I know it has been done in quake 2 already ingame char creation
abilities upgradedable and fast with hundreds of playernames in database

I also read somewhere it should be possible using the netcode in ipdrv and upddrv

I cant really give any more advice since i'm also quite new to uscript (but not to coding :p)

I've just worked through replication and working my way up :)
that at least seemed easy enough, but i cant find any references on how to make ingame menus :p

But i guess i'll just download some mod and start reading the code :) If i make any good progress, i'll keep you up to date :)

I'll write native functions if i have to, coffee is the key :)))
But for now back to studying utscript :))
 
I think I like eXoR's way of doing it... You could probably do it 100% with UScript & .ini files. No need to mess with anything non-UScript, and servers would be VERY easy to set up (just like any other UT server). You would just need to make sure that only the server records all the player stats and stuff, not any of the clients, and you would need some way of identifying a player when they logged back onto a server (perhaps a password system?).

Eater.
 

eXoR

Lead coder
Oct 22, 2001
36
0
0
38
Holland
exorcist.gamepoint.net
It would be harder to get things stored on the client then on the server, so that's not a problem :)
About the identifying .. a password system would indeed be the best option. Match it to your array number and you're done. The part of creating a new member could get a little tricky but it certainly can be done.
 
Well, that's not really a bad thing if you're trying to create a persistent universe type thing. If you want to be able to move your character from one server to another, that might be a problem, because then you would have to store character info on the client, and storing it in .ini format makes it pure cheater bait.

Eater.