Is it possible to have War3XP to connect to 2 different databases?
I use amxbans which is on my main server box and I now had a second server box that I have my War3XP server running on.
I want to have the XP saved local on the same box as the war3XP server and I also want to have it connect to the server that my Amxbans is running on.
I know WarFT will do this, it has the options in it.
Multiple Databases??
Moderator: Forum Moderator
Multiple Databases??
-john
- ferret
- Lead Warcraft 3 XP Developer
- Posts: 422
- Joined: Wed Jul 06, 2005 8:20 am
- Location: Atlanta, GA
- Contact:
The WC3XP plugin will only connect to one database. It doesn't care or know about what your amxbans plugin is doing. Each maintains its own mysql connection.
-< www.gamehavoc.com >-
Lazarus Long: And I know you didn't because the Server Files are version 2.2.6 and the file you posted is version 2.2.5, so do as I told you above and don't ever lie to me again or help is gone!
Lazarus Long: And I know you didn't because the Server Files are version 2.2.6 and the file you posted is version 2.2.5, so do as I told you above and don't ever lie to me again or help is gone!
Shouldnt be a problem
Your XP database connection can be set in 1 cfg file, and the one for amxbans in another, thats how i do it on my UWC3 server.......
Re: Shouldnt be a problem
Thanks for your input, However, If it was in the cfg I would not have asked.L0neW0lf wrote:Your XP database connection can be set in 1 cfg file, and the one for amxbans in another, thats how i do it on my UWC3 server.......
UWC3 and Ft both have this option in the cfg War3XP does not.
-john
- ferret
- Lead Warcraft 3 XP Developer
- Posts: 422
- Joined: Wed Jul 06, 2005 8:20 am
- Location: Atlanta, GA
- Contact:
By default, it looks for and loads the default AMXX mysql.cfg
You can open the SMA and change it to whatever file you want.
You can open the SMA and change it to whatever file you want.
-< www.gamehavoc.com >-
Lazarus Long: And I know you didn't because the Server Files are version 2.2.6 and the file you posted is version 2.2.5, so do as I told you above and don't ever lie to me again or help is gone!
Lazarus Long: And I know you didn't because the Server Files are version 2.2.6 and the file you posted is version 2.2.5, so do as I told you above and don't ever lie to me again or help is gone!
- ferret
- Lead Warcraft 3 XP Developer
- Posts: 422
- Joined: Wed Jul 06, 2005 8:20 am
- Location: Atlanta, GA
- Contact:
Hrms. Its basicly all HTML.
Open the SMA and search for "public player_skills(id,saychat){"
This is the start of the function for that display. Its a crappy function that needs rewritten but I haven't had time to change it, kinda a "if not broke don't fix" situation.
You'll see this line multiple times:
format(temp,1023,"%s - %s %d%s%s%s%s<br>",name,racename[1],p_level[playerid],skill1,skill2,skill3,skill4)
The part you'll want to change is "%s - %s %d%s%s%s%s<br>" ... You'll note a <br> at the end. I'd suggest trying "<span style=\"whatever\">%s - %s %d%s%s%s%s</span><br />"
Open the SMA and search for "public player_skills(id,saychat){"
This is the start of the function for that display. Its a crappy function that needs rewritten but I haven't had time to change it, kinda a "if not broke don't fix" situation.
You'll see this line multiple times:
format(temp,1023,"%s - %s %d%s%s%s%s<br>",name,racename[1],p_level[playerid],skill1,skill2,skill3,skill4)
The part you'll want to change is "%s - %s %d%s%s%s%s<br>" ... You'll note a <br> at the end. I'd suggest trying "<span style=\"whatever\">%s - %s %d%s%s%s%s</span><br />"
-< www.gamehavoc.com >-
Lazarus Long: And I know you didn't because the Server Files are version 2.2.6 and the file you posted is version 2.2.5, so do as I told you above and don't ever lie to me again or help is gone!
Lazarus Long: And I know you didn't because the Server Files are version 2.2.6 and the file you posted is version 2.2.5, so do as I told you above and don't ever lie to me again or help is gone!