replication with external data

  • 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.

JohnnyFantastic

New Member
Jun 27, 2003
5
0
0
Visit site
Hi. I've just finished hooking up UT to a mySQL database. At the moment I've got a couple of stats for each character like speed, jump height, etc. What's the proper way to replicate this data to each client? Here's what I'm currently doing:

Extended PlayerReplicationInfo, added my var's to the replicate block
Extended Pawn
When the UT receives a query response from mySQL the data in the PRI gets updated
Overloaded the pawn's Tick function so on each tick I set the Pawn's attributes based on the PRI

This method seems inefficient, so I'm assuming there's a better (proper) way to do it

Thanks for any help
 

PVCGilde

New Member
Jul 24, 2003
1
0
0
JohnnyFantastic said:
Hi. I've just finished hooking up UT to a mySQL database. At the moment I've got a couple of stats for each character like speed, jump height, etc. What's the proper way to replicate this data to each client? Here's what I'm currently doing:

Wow - that sounds great. Can you give me some hints how you did this? I would like to try something similar - but using SAPDB instead of mysql.

Best would be some code snipplets - since I am new to ut2003 I have sometimes problems finding the correct classes.

Thanks
Andreas / PVC
 

Qjahe

New Member
Nov 15, 2003
36
0
0
Code Sample...

I would also like to know how you managed that plz.
I managed to Load a file.php's output from my website onto a TextArea like they do in the News section..

Thats what I am wondering about. did you manage to have UScript directly access MYSQL and send query to it or are you passing by an external script...

could you share how you did it plz? :)

Qjahe