Page 1 of 1

Multiple Databases??

Posted: Sat Feb 11, 2006 11:15 am
by Gunny
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.

Posted: Sat Feb 11, 2006 10:37 pm
by ferret
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.

Shouldnt be a problem

Posted: Sun Apr 23, 2006 4:59 pm
by L0neW0lf
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

Posted: Thu Apr 27, 2006 9:18 am
by Gunny
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.......
Thanks for your input, However, If it was in the cfg I would not have asked.

UWC3 and Ft both have this option in the cfg War3XP does not.

Posted: Thu Apr 27, 2006 10:40 am
by ferret
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.

Posted: Thu Apr 27, 2006 12:34 pm
by Gunny
ferret wrote: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.
That is what I ended up doing.

How can I modify the "/playerskills" layout? Font size and layout in general.

Posted: Thu Apr 27, 2006 2:54 pm
by ferret
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 />"